This is an old revision of the document!


Buildroot and liteSOM - quick start

Depends on your needs you can:

We recommends to use always the latest stable release.
Below we will use stable release 2016.11.2.

wget https://buildroot.org/downloads/buildroot-2016.11.2.tar.gz
tar xf buildroot-2016.11.2.tar.gz
cd buildroot-2016.11.2

Apply configuration from grinn_liteboard_defconfig file.

make grinn_liteboard_defconfig
make all

During the first build Buildroot will download and compile cross-compiler for liteSOM. This operation will take several minutes (around 30 minutes @ 8 x Intel® Core™ i7-2760QM CPU).

But after first build cross-compiler will be reused and build time will be reduced to the minimal value (in most cases it will take less than 1 minute).

sudo dd if=output/images/sdcard.img of=/dev/<SD card> bs=4M
sync

Where <SD card> points to your SD card device.

Check how to find SD card device ...

Method 1

Insert SD cart to PC and check last lines from dmesg command output. Name assigned to the detected SD card will be presented as in the following example.

[ 6163.014768] mmc0: new high speed SDHC card at address 1234
[ 6163.024433] mmcblk0: mmc0:1234 SA16G 14.6 GiB 
[ 6163.025749]  mmcblk0: p1
[ 6163.375207] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)

Method 2

lsblk command will list all detected block devices where your SD card will be displayed.

NAME                      MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda                         8:0    0 238.5G  0 disk 
├─sda1                      8:1    0    28G  0 part /
├─sda2                      8:2    0     1K  0 part 
├─sda5                      8:5    0   9.3G  0 part 
└─sda6                      8:6    0 201.2G  0 part /home
sr0                        11:0    1  1024M  0 rom  
mmcblk0                   179:0    0  14.7G  0 disk 
└─mmcblk0p1               179:1    0  14.7G  0 part /media/foo/804b0b54-f37e-49cb-9299-87759d7b68d4

Device name

In both examples SD card was detected as mmcblk0 so valid dd … command syntax is

sudo dd if=output/images/sdcard.img of=/dev/mmcblk0 bs=4M

Insert programmed SD card to the liteboard card socket.

Configure boot switches as presented below.

BMODE0 BMODE1 BT_CFG1[7] BT_CFG1[6] BT_CFG1[5] BT_CFG2[3]
UP UP
DOWN DOWN DOWN DOWN
1 2 3 4 5 6

Connect your liteboard to your PC via USB ↔ micro USB cable.

liteboard will be automatically powered-up and on debug console you should see starting Linux, as presented below.



  • litesom/buildroot/quick_start.1486236503.txt.gz
  • Last modified: 2017/02/04 19:28
  • by filug