Changes

Jump to: navigation, search

XUELK-AN-003: Running Buildroot distribution

36,305 bytes added, 10:43, 14 February 2017
Created page with "{{InfoBoxTop}} {{AppliesToSBCLynx}} {{InfoBoxBottom}} == History == {| class="wikitable" border="1" !Version !Date !Notes |- |1.0.0 |February 2017 |First public release |- |}..."
{{InfoBoxTop}}
{{AppliesToSBCLynx}}
{{InfoBoxBottom}}
== History ==
{| class="wikitable" border="1"
!Version
!Date
!Notes
|-
|1.0.0
|February 2017
|First public release
|-
|}
==Introduction==
By default, [[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)|'''AXEL ULite and SBC Lynx Embedded Linux Kit (XUELK)''']] comes with a Yocto distribution. Nevertheless, other distributions can be used as well. This application shows how to run one of them, [https://buildroot.org buildroot].

buildroot is known to be very simple to configure and build. An exhaustive discussion of buildroot is beyond the scope of this application note. Interested reader can refer to [http://events.linuxfoundation.org/sites/events/files/slides/belloni-petazzoni-buildroot-oe_0.pdf this presentation] which compares in detail Yocto and buildroot.

The test bed used for this application note is composed of the same hardware/software platform delivered along with the XUELK. About buildroot, the version 2016.11.2 was used.

==Donwloading, configuring and building buildroot==
This process is straightforward. Once the file [https://buildroot.org/downloads/buildroot-2016.11.2.tar.gz <code>buildroot-2016.11.2.tar.gz</code>] is downloaded and decompressed on your Linux host machine, get into the buildroot directory, and run <code>make menuconfig</code>.

Then select:
*<code>ARM (little endian)</code> for <code>Target Architecture</code>
*<code>cortex-A7</code> for <code>Target Architecture Variant</code>
as shown in the following picture.
[[File:Buildroot-cortex-A7.png|thumb|center|600px|]]

That's it: after saving your configuration, and exiting <code>menuconfig</code> you can start the build process, by simply issuing the <code>make</code> command.

==Mounting buildroot file system on the target==
Once the build process is completed, in the <code>output/images</code> subdirectory the file <code>rootfs.tar</code> is available. This file contains the root file system for the target.

In this example, this file is untarred on a NFS server, in order to mount it via NFS protocol by the target:

<pre class="mw-collapsible mw-collapsed">
U-Boot 2015.04-xuelk-1.1.0-00004-g007c1d7 (Feb 03 2017 - 15:39:12)

CPU: Freescale i.MX6UL rev1.1 at 396 MHz
CPU: Temperature 39 C
Reset cause: POR
Environment: SPI Flash
I2C: ready
DRAM: WARNING: SOM ConfigID on block 0 is UNLOCKED
WARNING: SOM ConfigID on block 0 is UNLOCKED
512 MiB
WARNING: SOM ConfigID on block 0 is UNLOCKED
WARNING: SOM ConfigID on block 0 is UNLOCKED
PMIC: PFUZE300 DEV_ID=0x30 REV_ID=0x11
NAND: 1024 MiB
MMC: WARNING: SOM ConfigID on block 0 is UNLOCKED
WARNING: SOM ConfigID on block 0 is UNLOCKED
FSL_SDHC: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
In: serial
Out: serial
Err: serial
MMC: no card present
WARNING: SOM ConfigID on block 0 is UNLOCKED
SOM ConfigID#: 00000010
SOM UniqueID#: e6b3f362:3f3b61d4
WARNING: SOM ConfigID on block 0 is UNLOCKED
WARNING: SOM ConfigID on block 0 is UNLOCKED
Board: MX6UL SBCEXWARNING: SOM ConfigID on block 0 is UNLOCKED

WARNING: SOM ConfigID on block 0 is UNLOCKED
Net: WARNING: SOM ConfigID on block 0 is UNLOCKED
WARNING: SOM ConfigID on block 0 is UNLOCKED
FEC0
Normal Boot
Hit any key to stop autoboot: 0
=> run net_nfs
Using FEC0 device
TFTP from server 192.168.0.23; our IP address is 192.168.0.81
Filename 'lynx/linux/xuelk-1.1.0_uImage'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
##############
2 MiB/s
done
Bytes transferred = 6723656 (669848 hex)
Using FEC0 device
TFTP from server 192.168.0.23; our IP address is 192.168.0.81
Filename 'lynx/linux/xuelk-1.1.0_imx6ul-lynx-som0010.dtb'.
Load address: 0x83000000
Loading: #######
1.6 MiB/s
done
Bytes transferred = 31663 (7baf hex)
FDT: override 'som_uniqueid' with 'e6b3f362:3f3b61d4'
FDT: override 'cb_uniqueid' with '00000000:00000000'
## Booting kernel from Legacy Image at 80800000 ...
Image Name: Linux-3.14.52-xuelk-1.1.0
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 6723592 Bytes = 6.4 MiB
Load Address: 80008000
Entry Point: 80008000
Verifying Checksum ... OK
## Flattened Device Tree blob at 83000000
Booting using the fdt blob at 0x83000000
Loading Kernel Image ... OK
reserving fdt memory region: addr=83000000 size=8000
Using Device Tree in place at 83000000, end 8300afff

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.14.52-xuelk-1.1.0 (jenkins@linuxserver2) (gcc version 4.9.2 (GCC) ) #7 SMP PREEMPT Fri Nov 25 17:15:33 CET 2016
[ 0.000000] CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=10c53c7d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Freescale i.MX6 UltraLite SBCEX Board
[ 0.000000] cma: CMA: reserved 64 MiB at 9c000000
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 8 pages/cpu @9bbc0000 s8832 r8192 d15744 u32768
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048
[ 0.000000] Kernel command line: root=/dev/nfs rw nfsroot=192.168.0.80:/opt/nfsroot/buildroot/2016.11.2/A7,v3,tcp ip=192.168.0.81:192.168.0.23::255.255.255.0:lynx:eth0:off panic=1 fec_mac=00:50:C2:1E:af:b3 console=ttymxc0,115200 vmalloc=400M mtdparts=gpmi-nand:8M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-fdt),1M(nand-spare),8M(nand-kernel),4M(nand-splash),-(nand-ubi);spi0.0:1M(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),6M(spi-kernel),4M(spi-splash),-(spi-free)
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 441204K/524288K available (8228K kernel code, 596K rwdata, 3084K rodata, 408K init, 436K bss, 83084K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xa0800000 - 0xff000000 (1512 MB)
[ 0.000000] lowmem : 0x80000000 - 0xa0000000 ( 512 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .text : 0x80008000 - 0x80b14508 (11314 kB)
[ 0.000000] .init : 0x80b15000 - 0x80b7b280 ( 409 kB)
[ 0.000000] .data : 0x80b7c000 - 0x80c113d0 ( 597 kB)
[ 0.000000] .bss : 0x80c113dc - 0x80c7e624 ( 437 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] Switching to timer-based delay loop
[ 0.000019] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 1431655765682ns
[ 0.002380] clocksource_of_init: no matching clocksources found
[ 0.002728] Console: colour dummy device 80x30
[ 0.002778] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=30000)
[ 0.002812] pid_max: default: 32768 minimum: 301
[ 0.003218] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.003251] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.020283] Initializing cgroup subsys net_cls
[ 0.020397] CPU: Testing write buffer coherency: ok
[ 0.020921] /cpus/cpu@0 missing clock-frequency property
[ 0.020963] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.021025] Setting up static identity map for 0x807d6458 - 0x807d64b0
[ 0.068230] Brought up 1 CPUs
[ 0.068270] SMP: Total of 1 processors activated (6.00 BogoMIPS).
[ 0.068291] CPU: All CPU(s) started in SVC mode.
[ 0.069675] devtmpfs: initialized
[ 0.081295] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
[ 0.082099] pinctrl core: initialized pinctrl subsystem
[ 0.083065] regulator-dummy: no parameters
[ 0.088276] NET: Registered protocol family 16
[ 0.106487] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.108180] cpuidle: using governor ladder
[ 0.108208] cpuidle: using governor menu
[ 0.108754] Use WDOG1 as reset source
[ 0.127190] syscon 20c8000.anatop: regmap [mem 0x020c8000-0x020c8fff] registered
[ 0.127947] vdd3p0: 2625 <--> 3400 mV at 3000 mV
[ 0.128935] cpu: 725 <--> 1450 mV at 1150 mV
[ 0.129875] vddsoc: 725 <--> 1450 mV at 1175 mV
[ 0.135446] syscon 20e4000.iomuxc-gpr: regmap [mem 0x020e4000-0x020e7fff] registered
[ 0.142591] syscon 21ac000.romcp: regmap [mem 0x021ac000-0x021affff] registered
[ 0.144111] syscon 21bc000.ocotp-ctrl: regmap [mem 0x021bc000-0x021bffff] registered
[ 0.149153] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[ 0.149185] hw-breakpoint: maximum watchpoint size is 8 bytes.
[ 0.153092] imx6ul-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.156049] 20dc000.gpc supply pu not found, using dummy regulator
[ 0.188853] bio: create slab <bio-0> at 0
[ 0.195613] mxs-dma 1804000.dma-apbh: initialized
[ 0.196578] vref-3v3: 3300 mV
[ 0.197345] usb_otg1_vbus: 5000 mV
[ 0.198091] usb_otg2_vbus: 5000 mV
[ 0.198722] wilink-wl-en: 3300 mV
[ 0.200555] i2c-core: driver [max17135] using legacy suspend method
[ 0.200582] i2c-core: driver [max17135] using legacy resume method
[ 0.202062] SCSI subsystem initialized
[ 0.203310] usbcore: registered new interface driver usbfs
[ 0.203494] usbcore: registered new interface driver hub
[ 0.203822] usbcore: registered new device driver usb
[ 0.205527] imx-i2c 21a0000.i2c: Cannot look up pinctrl state recovery: -19
[ 0.207069] i2c i2c-0: IMX I2C adapter registered
[ 0.207307] Linux video capture interface: v2.00
[ 0.207508] pps_core: LinuxPPS API ver. 1 registered
[ 0.207532] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.207597] PTP clock support registered
[ 0.210225] MIPI CSI2 driver module loaded
[ 0.210791] Advanced Linux Sound Architecture Driver Initialized.
[ 0.212934] Bluetooth: Core ver 2.18
[ 0.213083] NET: Registered protocol family 31
[ 0.213106] Bluetooth: HCI device and connection manager initialized
[ 0.213145] Bluetooth: HCI socket layer initialized
[ 0.213178] Bluetooth: L2CAP socket layer initialized
[ 0.213264] Bluetooth: SCO socket layer initialized
[ 0.215228] Switched to clocksource mxc_timer1
[ 0.216766] cfg80211: Calling CRDA to update world regulatory domain
[ 0.241491] NET: Registered protocol family 2
[ 0.243442] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.243574] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.243733] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.243852] TCP: reno registered
[ 0.243887] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 0.243947] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 0.244474] NET: Registered protocol family 1
[ 0.245371] RPC: Registered named UNIX socket transport module.
[ 0.245406] RPC: Registered udp transport module.
[ 0.245425] RPC: Registered tcp transport module.
[ 0.245444] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.248491] imx rpmsg driver is registered.
[ 0.250163] Bus freq driver module loaded
[ 0.252148] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.270899] VFS: Disk quotas dquot_6.5.2
[ 0.271599] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.277819] NFS: Registering the id_resolver key type
[ 0.278044] Key type id_resolver registered
[ 0.278068] Key type id_legacy registered
[ 0.278159] jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
[ 0.279996] fuse init (API version 7.22)
[ 0.281228] msgmni has been set to 989
[ 0.290261] io scheduler noop registered
[ 0.290296] io scheduler deadline registered
[ 0.290802] io scheduler cfq registered (default)
[ 0.291918] imx-weim 21b8000.weim: Driver registered.
[ 0.299233] MIPI DSI driver module loaded
[ 0.299681] MIPI DSI driver module loaded
[ 0.304197] imx-sdma 20ec000.sdma: no event needs to be remapped
[ 0.304416] imx-sdma 20ec000.sdma: loaded firmware 3.2
[ 0.313067] imx-sdma 20ec000.sdma: initialized
[ 0.315788] pfuze100-regulator 0-0008: Full layer: 1, Metal layer: 1
[ 0.316457] pfuze100-regulator 0-0008: FAB: 0, FIN: 0
[ 0.316490] pfuze100-regulator 0-0008: pfuze3000 found.
[ 0.317845] SW1A: 700 <--> 3300 mV at 3300 mV
[ 0.319602] SW1B: 700 <--> 1475 mV at 1400 mV
[ 0.320724] SW2: 2500 <--> 3300 mV at 3300 mV
[ 0.321848] SW3: 900 <--> 1650 mV at 1350 mV
[ 0.322960] SWBST: 5000 <--> 5150 mV at 5000 mV
[ 0.324107] VSNVS: 1000 <--> 3000 mV at 3000 mV
[ 0.324576] VREFDDR: 750 mV
[ 0.325663] VLDO1: 1800 <--> 3300 mV at 3300 mV
[ 0.327347] VLDO2: 800 <--> 1550 mV at 1500 mV
[ 0.328489] VCCSD: 2850 <--> 3300 mV at 3300 mV
[ 0.329614] V33: 2850 <--> 3300 mV at 3300 mV
[ 0.330795] VLDO3: 1800 <--> 3300 mV at 1800 mV
[ 0.331917] VLDO4: 1800 <--> 3300 mV at 1800 mV
[ 0.332748] Serial: IMX driver
[ 0.333445] 2020000.serial: ttymxc0 at MMIO 0x2020000 (irq = 58, base_baud = 5000000) is a IMX
[ 1.153740] console [ttymxc0] enabled
[ 1.158938] 2024000.serial: ttymxc7 at MMIO 0x2024000 (irq = 72, base_baud = 5000000) is a IMX
[ 1.169508] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 59, base_baud = 5000000) is a IMX
[ 1.179198] serial: Freescale lpuart driver
[ 1.187242] imx sema4 driver is registered.
[ 1.191646] [drm] Initialized drm 1.1.0 20060810
[ 1.197500] [drm] Initialized vivante 1.0.0 20120216 on minor 0
[ 1.224817] brd: module loaded
[ 1.239619] loop: module loaded
[ 1.259766] nand: device found, Manufacturer ID: 0x01, Chip ID: 0xd3
[ 1.266221] nand: AMD/Spansion S34ML08G1
[ 1.270182] nand: 1024MiB, SLC, page size: 2048, OOB size: 64
[ 1.276281] gpmi-nand 1806000.gpmi-nand: mode:4 ,failed in set feature.
[ 1.282957] Scanning device for bad blocks
[ 1.613201] Bad eraseblock 2341 at 0x0000124a0000
[ 1.651873] random: nonblocking pool is initialized
[ 2.437712] 8 cmdlinepart partitions found on MTD device gpmi-nand
[ 2.443938] Creating 8 MTD partitions on "gpmi-nand":
[ 2.449087] 0x000000000000-0x000000800000 : "nand-uboot"
[ 2.457226] 0x000000800000-0x000000900000 : "nand-env1"
[ 2.465057] 0x000000900000-0x000000a00000 : "nand-env2"
[ 2.473064] 0x000000a00000-0x000000b00000 : "nand-fdt"
[ 2.480936] 0x000000b00000-0x000000c00000 : "nand-spare"
[ 2.489157] 0x000000c00000-0x000001400000 : "nand-kernel"
[ 2.497286] 0x000001400000-0x000001800000 : "nand-splash"
[ 2.505036] 0x000001800000-0x000040000000 : "nand-ubi"
[ 2.514568] gpmi-nand 1806000.gpmi-nand: driver registered.
[ 2.523703] m25p80 spi0.0: s25fl256s1 (32768 Kbytes)
[ 2.528827] 7 cmdlinepart partitions found on MTD device spi0.0
[ 2.534781] Creating 7 MTD partitions on "spi0.0":
[ 2.539716] 0x000000000000-0x000000100000 : "spi-uboot"
[ 2.547540] 0x000000100000-0x000000140000 : "spi-env1"
[ 2.555091] 0x000000140000-0x000000180000 : "spi-env2"
[ 2.562796] 0x000000180000-0x000000200000 : "spi-dtb"
[ 2.570361] 0x000000200000-0x000000800000 : "spi-kernel"
[ 2.578370] 0x000000800000-0x000000c00000 : "spi-splash"
[ 2.586430] 0x000000c00000-0x000002000000 : "spi-free"
[ 2.594067] spi_imx 2008000.ecspi: probed
[ 2.600294] CAN device driver interface
[ 2.606791] 20b4000.ethernet supply phy not found, using dummy regulator
[ 2.614740] pps pps0: new PPS source ptp0
[ 2.619948] libphy: fec_enet_mii_bus: probed
[ 2.627151] fec 20b4000.ethernet eth1: registered PHC device 0
[ 2.634664] 2188000.ethernet supply phy not found, using dummy regulator
[ 2.642855] pps pps1: new PPS source ptp1
[ 2.649366] fec 2188000.ethernet eth0: registered PHC device 1
[ 2.657167] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver
[ 2.664781] usbcore: registered new interface driver pegasus
[ 2.670726] usbcore: registered new interface driver rtl8150
[ 2.676709] usbcore: registered new interface driver r8152
[ 2.682445] usbcore: registered new interface driver asix
[ 2.688140] usbcore: registered new interface driver ax88179_178a
[ 2.694398] usbcore: registered new interface driver cdc_ether
[ 2.700469] usbcore: registered new interface driver dm9601
[ 2.706260] usbcore: registered new interface driver sr9700
[ 2.712060] usbcore: registered new interface driver CoreChips
[ 2.718154] usbcore: registered new interface driver smsc75xx
[ 2.724106] usbcore: registered new interface driver smsc95xx
[ 2.730066] usbcore: registered new interface driver net1080
[ 2.735935] usbcore: registered new interface driver plusb
[ 2.741585] usbcore: registered new interface driver cdc_subset
[ 2.747709] usbcore: registered new interface driver zaurus
[ 2.753447] usbcore: registered new interface driver MOSCHIP usb-ethernet driver
[ 2.761182] usbcore: registered new interface driver cdc_ncm
[ 2.766931] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.773543] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 2.779388] usbcore: registered new interface driver usb-storage
[ 2.785650] usbcore: registered new interface driver usb_ehset_test
[ 2.794150] 2184800.usbmisc supply vbus-wakeup not found, using dummy regulator
[ 2.814305] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 2.819519] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[ 2.845311] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 2.853021] hub 1-0:1.0: USB hub found
[ 2.857048] hub 1-0:1.0: 1 port detected
[ 2.863249] mousedev: PS/2 mouse device common for all mice
[ 2.870377] snvs_pwrkey 20cc000.snvs-pwrkey: can't get snvs clock
[ 2.877429] input: 20cc000.snvs-pwrkey as /devices/soc0/soc.0/2000000.aips-bus/20cc000.snvs-pwrkey/input/input0
[ 2.888334] snvs_pwrkey 20cc000.snvs-pwrkey: i.MX snvs powerkey probed
[ 2.896300] i2c-core: driver [egalax_allpoint_i2c] using legacy suspend method
[ 2.903563] i2c-core: driver [egalax_allpoint_i2c] using legacy resume method
[ 2.912223] i2c-core: driver [isl29023] using legacy suspend method
[ 2.918664] i2c-core: driver [isl29023] using legacy resume method
[ 2.926102] snvs_rtc 20cc034.snvs-rtc-lp: can't get snvs-rtc clock
[ 2.933270] snvs_rtc 20cc034.snvs-rtc-lp: rtc core: registered 20cc034.snvs-rtc-lp as rtc0
[ 2.941677] snvs_rtc 20cc034.snvs-rtc-lp: configured with power off disabled
[ 2.949121] i2c /dev entries driver
[ 2.953536] IR NEC protocol handler initialized
[ 2.958988] IR RC5(x) protocol handler initialized
[ 2.963819] IR RC6 protocol handler initialized
[ 2.968430] IR JVC protocol handler initialized
[ 2.972987] IR Sony protocol handler initialized
[ 2.977703] IR RC5 (streamzap) protocol handler initialized
[ 2.983308] IR SANYO protocol handler initialized
[ 2.988072] IR MCE Keyboard/mouse protocol handler initialized
[ 2.997242] i2c-core: driver [mag3110] using legacy suspend method
[ 3.003467] i2c-core: driver [mag3110] using legacy resume method
[ 3.010792] imx2-wdt 20bc000.wdog: IMX2+ Watchdog Timer enabled. timeout=60s (nowayout=0)
[ 3.019494] Bluetooth: HCI UART driver ver 2.2
[ 3.023989] Bluetooth: HCI H4 protocol initialized
[ 3.028855] Bluetooth: HCI BCSP protocol initialized
[ 3.033849] Bluetooth: HCILL protocol initialized
[ 3.038662] ci_hdrc ci_hdrc.0: there is a vbus glitch
[ 3.043821] Bluetooth: HCIATH3K protocol initialized
[ 3.049176] usbcore: registered new interface driver bcm203x
[ 3.055094] usbcore: registered new interface driver btusb
[ 3.060887] usbcore: registered new interface driver ath3k
[ 3.067034] sdhci: Secure Digital Host Controller Interface driver
[ 3.073248] sdhci: Copyright(c) Pierre Ossman
[ 3.077693] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.086961] mmc0: no vqmmc regulator found
[ 3.091120] mmc0: no vmmc regulator found
[ 3.135309] mmc0: SDHCI controller on 2190000.usdhc [2190000.usdhc] using ADMA
[ 3.146912] mmc1: no vqmmc regulator found
[ 3.265308] mmc1: SDHCI controller on 2194000.usdhc [2194000.usdhc] using ADMA
[ 3.282442] caam 2140000.caam: Instantiated RNG4 SH0
[ 3.343205] caam 2140000.caam: Instantiated RNG4 SH1
[ 3.348265] caam 2140000.caam: device ID = 0x0a160300 (Era 8)
[ 3.354049] caam 2140000.caam: job rings = 3, qi = 0
[ 3.492589] caam algorithms registered in /proc/crypto
[ 3.503290] caam_jr 2141000.jr0: registering rng-caam
[ 3.510591] platform caam_sm: blkkey_ex: 8 keystore units available
[ 3.517836] platform caam_sm: 64-bit clear key:
[ 3.522430] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 3.528240] platform caam_sm: 64-bit black key:
[ 3.532820] platform caam_sm: [0000] f7 1f 6f 3d 30 4e 37 e5
[ 3.538622] platform caam_sm: [0008] eb 5b f9 c7 8b 67 f1 57
[ 3.544318] platform caam_sm: 128-bit clear key:
[ 3.549077] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 3.554776] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
[ 3.560588] platform caam_sm: 128-bit black key:
[ 3.565296] platform caam_sm: [0000] a1 86 60 78 4f 18 9e f4
[ 3.571050] platform caam_sm: [0008] 8a 57 ff d7 d5 79 5a a6
[ 3.576783] platform caam_sm: 192-bit clear key:
[ 3.581442] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 3.589249] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
[ 3.594953] platform caam_sm: [0016] 10 11 12 13 14 15 16 17
[ 3.600681] platform caam_sm: 192-bit black key:
[ 3.605437] platform caam_sm: [0000] 12 35 88 69 a5 74 58 32
[ 3.613236] platform caam_sm: [0008] d1 e2 7f 80 d9 62 ca e5
[ 3.623148] platform caam_sm: [0016] fc e0 79 c5 97 89 1b a3
[ 3.632013] platform caam_sm: [0024] 88 9a bb 13 42 6f 75 1a
[ 3.639845] platform caam_sm: 256-bit clear key:
[ 3.646659] platform caam_sm: [0000] 00 01 02 03 04 0f 06 07
[ 3.654439] platform caam_sm: [0008] 08 09 0a 0b 0c 0d 0e 0f
[ 3.662263] platform caam_sm: [0016] 10 11 12 13 14 15 16 17
[ 3.670101] platform caam_sm: [0024] 18 19 1a 1b 1c 1d 1e 1f
[ 3.677922] platform caam_sm: 256-bit black key:
[ 3.684661] platform caam_sm: [0000] ea 3b 52 80 d6 b8 75 2a
[ 3.692493] platform caam_sm: [0008] 44 d3 b2 ab db 6c 23 d4
[ 3.701350] platform caam_sm: [0016] 09 6c fb 25 3e b8 d0 26
[ 3.711222] platform caam_sm: [0024] 69 d6 76 dc 08 55 f3 ad
[ 3.716959] platform caam_sm: 64-bit unwritten blob:
[ 3.721964] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 3.727695] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 3.733393] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 3.739119] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 3.744815] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 3.750539] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 3.756265] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 3.761961] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 3.767683] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 3.773379] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 3.779102] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 3.784798] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 3.790574] platform caam_sm: 128-bit unwritten blob:
[ 3.795746] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 3.801446] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 3.807181] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 3.812879] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 3.820673] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 3.826408] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 3.832106] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 3.837885] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 3.845719] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 3.855531] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 3.864325] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 3.872159] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 3.879973] platform caam_sm: 196-bit unwritten blob:
[ 3.887181] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 3.894944] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 3.902768] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 3.910602] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 3.918434] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 3.926259] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 3.935064] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 3.944917] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 3.950663] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 3.956394] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 3.962091] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 3.967817] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 3.973507] platform caam_sm: 256-bit unwritten blob:
[ 3.978634] platform caam_sm: [0000] 00 00 00 00 00 00 00 00
[ 3.984331] platform caam_sm: [0008] 00 00 00 00 00 00 00 00
[ 3.990130] platform caam_sm: [0016] 00 00 00 00 00 00 00 00
[ 3.995877] platform caam_sm: [0024] 00 00 00 00 00 00 00 00
[ 4.001577] platform caam_sm: [0032] 00 00 00 00 00 00 00 00
[ 4.007321] platform caam_sm: [0040] 00 00 00 00 00 00 00 00
[ 4.013021] platform caam_sm: [0048] 00 00 00 00 00 00 00 00
[ 4.018748] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 4.024445] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 4.030173] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 4.035907] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 4.041605] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 4.047666] platform caam_sm: 64-bit black key in blob:
[ 4.052945] platform caam_sm: [0000] 45 c0 f1 d7 5b d5 9f 7f
[ 4.058690] platform caam_sm: [0008] d0 e6 4b 15 63 48 df 7a
[ 4.064391] platform caam_sm: [0016] ae 13 19 88 4b cb 5f 45
[ 4.070120] platform caam_sm: [0024] 13 38 df 94 aa 75 bd 14
[ 4.075848] platform caam_sm: [0032] ab 48 68 f3 6a e2 fe fa
[ 4.081545] platform caam_sm: [0040] 70 81 04 c8 24 dc ba 5c
[ 4.087270] platform caam_sm: [0048] 16 cf d1 db 12 3c f7 3d
[ 4.092966] platform caam_sm: [0056] 00 00 00 00 00 00 00 00
[ 4.098689] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 4.104385] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 4.110108] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 4.115834] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 4.121522] platform caam_sm: 128-bit black key in blob:
[ 4.126902] platform caam_sm: [0000] d8 46 54 69 68 b9 f5 c4
[ 4.132599] platform caam_sm: [0008] e9 17 c6 16 63 b9 84 44
[ 4.138325] platform caam_sm: [0016] dd 13 09 b4 c1 e9 87 b2
[ 4.144022] platform caam_sm: [0024] 80 99 40 49 d1 ab 15 47
[ 4.149744] platform caam_sm: [0032] f8 78 66 b8 6f a8 ae b2
[ 4.155469] platform caam_sm: [0040] 81 b9 22 8f 54 73 fb 20
[ 4.161167] platform caam_sm: [0048] af 98 70 8d c0 5d 41 33
[ 4.166895] platform caam_sm: [0056] 95 4e 49 34 9f 81 f7 26
[ 4.172591] platform caam_sm: [0064] 00 00 00 00 00 00 00 00
[ 4.178313] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 4.184010] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 4.189731] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 4.195446] platform caam_sm: 192-bit black key in blob:
[ 4.200798] platform caam_sm: [0000] 64 b2 9b f5 c2 d3 bd e0
[ 4.206520] platform caam_sm: [0008] 91 ed 95 31 0d 79 b4 4c
[ 4.212216] platform caam_sm: [0016] c1 d2 df 5f d2 1e 0e eb
[ 4.217940] platform caam_sm: [0024] 3b 03 30 01 57 35 f9 a3
[ 4.223637] platform caam_sm: [0032] 07 3d ec 91 bc f4 e6 b0
[ 4.229359] platform caam_sm: [0040] 50 3d 54 58 f6 c8 dc 6c
[ 4.235055] platform caam_sm: [0048] 82 f9 35 55 30 24 63 7d
[ 4.240780] platform caam_sm: [0056] 44 4a 90 56 c3 70 6c de
[ 4.246503] platform caam_sm: [0064] 8b d3 00 a2 59 ac 6a dc
[ 4.252200] platform caam_sm: [0072] 00 00 00 00 00 00 00 00
[ 4.257922] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 4.263617] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 4.269332] platform caam_sm: 256-bit black key in blob:
[ 4.274685] platform caam_sm: [0000] 4f e9 36 6d 4a ae 1f 86
[ 4.280409] platform caam_sm: [0008] 74 aa 04 5a 27 2c 83 81
[ 4.286134] platform caam_sm: [0016] d2 92 61 02 a2 be a8 23
[ 4.291832] platform caam_sm: [0024] b9 71 84 d0 b1 91 eb e1
[ 4.297556] platform caam_sm: [0032] d3 2a 0c f8 e6 10 19 7a
[ 4.303253] platform caam_sm: [0040] 1b 7f 11 df 03 6c 03 ad
[ 4.308977] platform caam_sm: [0048] 3d d8 01 90 b0 97 e2 8c
[ 4.314675] platform caam_sm: [0056] 50 80 d4 fe 2f 88 b4 61
[ 4.320397] platform caam_sm: [0064] 44 6d ec cb c1 ae 93 3e
[ 4.326120] platform caam_sm: [0072] c1 ee b4 2b 31 43 80 aa
[ 4.331816] platform caam_sm: [0080] 00 00 00 00 00 00 00 00
[ 4.337541] platform caam_sm: [0088] 00 00 00 00 00 00 00 00
[ 4.343493] platform caam_sm: restored 64-bit black key:
[ 4.348896] platform caam_sm: [0000] fb 64 84 76 81 7a fb 55
[ 4.354594] platform caam_sm: [0008] 48 48 d6 a4 1f 87 99 de
[ 4.360313] platform caam_sm: restored 128-bit black key:
[ 4.365782] platform caam_sm: [0000] a1 86 60 78 4f 18 9e f4
[ 4.371479] platform caam_sm: [0008] 8a 57 ff d7 d5 79 5a a6
[ 4.377197] platform caam_sm: restored 192-bit black key:
[ 4.382632] platform caam_sm: [0000] 12 35 88 69 a5 74 58 32
[ 4.388357] platform caam_sm: [0008] d1 e2 7f 80 d9 62 ca e5
[ 4.394053] platform caam_sm: [0016] eb 3a 05 ce b9 ee cb 8b
[ 4.399775] platform caam_sm: [0024] ae 03 5b 02 5c a8 87 35
[ 4.405491] platform caam_sm: restored 256-bit black key:
[ 4.410928] platform caam_sm: [0000] ea 3b 52 80 d6 b8 75 2a
[ 4.416653] platform caam_sm: [0008] 44 d3 b2 ab db 6c 23 d4
[ 4.422350] platform caam_sm: [0016] 09 6c fb 25 3e b8 d0 26
[ 4.428074] platform caam_sm: [0024] 69 d6 76 dc 08 55 f3 ad
[ 4.434334] snvs-secvio 20cc000.caam-snvs: can't get snvs clock
[ 4.440428] snvs-secvio 20cc000.caam-snvs: violation handlers armed - non-secure state
[ 4.449277] usbcore: registered new interface driver usbhid
[ 4.454891] usbhid: USB HID core driver
[ 4.468317] fsl-asrc 2034000.asrc: driver registered
[ 4.483606] NET: Registered protocol family 26
[ 4.488274] Netfilter messages via NETLINK v0.30.
[ 4.493078] nfnl_acct: registering with nfnetlink.
[ 4.498067] nf_conntrack version 0.5.0 (7917 buckets, 31668 max)
[ 4.505436] nf_tables: (c) 2007-2009 Patrick McHardy <kaber@trash.net>
[ 4.512184] xt_time: kernel timezone is -0000
[ 4.517289] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 4.522847] arp_tables: (C) 2002 David S. Miller
[ 4.527670] TCP: cubic registered
[ 4.532393] NET: Registered protocol family 10
[ 4.539220] sit: IPv6 over IPv4 tunneling driver
[ 4.545738] NET: Registered protocol family 17
[ 4.550284] can: controller area network core (rev 20120528 abi 9)
[ 4.556749] NET: Registered protocol family 29
[ 4.561235] can: raw protocol (rev 20120528)
[ 4.565579] can: broadcast manager protocol (rev 20120528 t)
[ 4.571287] can: netlink gateway (rev 20130117) max_hops=1
[ 4.577526] Bluetooth: RFCOMM TTY layer initialized
[ 4.582487] Bluetooth: RFCOMM socket layer initialized
[ 4.587892] Bluetooth: RFCOMM ver 1.11
[ 4.591735] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[ 4.597130] Bluetooth: BNEP filters: protocol multicast
[ 4.602419] Bluetooth: BNEP socket layer initialized
[ 4.607454] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
[ 4.613427] Bluetooth: HIDP socket layer initialized
[ 4.618633] 8021q: 802.1Q VLAN Support v1.8
[ 4.622981] Key type dns_resolver registered
[ 4.629007] cpu cpu0: dev_pm_opp_get_opp_count: device OPP not found (-19)
[ 4.659283] SWBST: disabling
[ 4.662219] wilink-wl-en: disabling
[ 4.665854] usb_otg1_vbus: disabling
[ 4.669467] regulator-dummy: disabling
[ 4.673781] imx mcc test is registered.
[ 4.679572] snvs_rtc 20cc034.snvs-rtc-lp: setting system clock to 2016-12-15 12:03:42 UTC (1481803422)
[ 4.785699] fec 2188000.ethernet eth0: Freescale FEC PHY driver [Micrel KSZ8081 or KSZ8091] (mii_bus:phy_addr=20b4000.ethernet:03, irq=-1)
[ 4.835433] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 8.786030] libphy: 20b4000.ethernet:03 - Link is Up - 100/Full
[ 8.795480] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 8.816234] IP-Config: Complete:
[ 8.819581] device=eth0, hwaddr=00:50:c2:1e:af:b3, ipaddr=192.168.0.81, mask=255.255.255.0, gw=255.255.255.255
[ 8.830383] host=lynx, domain=, nis-domain=(none)
[ 8.836534] bootserver=192.168.0.23, rootserver=192.168.0.80, rootpath=
[ 8.843915] ALSA device list:
[ 8.847022] No soundcards found.
[ 10.874100] VFS: Mounted root (nfs filesystem) on device 0:12.
[ 10.882159] devtmpfs: mounted
[ 10.887539] Freeing unused kernel memory: 408K (80b15000 - 80b7b000)
Starting logging: OK
Initializing random number generator... done.
Starting network: ip: RTNETLINK answers: File exists
FAIL

Welcome to Buildroot
buildroot login: root
#
</pre>

As we used the default configuration, the resulting root file system is very small:
<pre>
# cd ..
# pwd
/
# du -csh
1.5M .
1.5M total
# du -csh *
640.0K bin
0 dev
124.0K etc
556.0K lib
0 lib32
0 linuxrc
4.0K media
4.0K mnt
4.0K opt
0 proc
8.0K root
12.0K run
16.0K sbin
0 sys
52.0K tmp
56.0K usr
12.0K var
1.5M total
# free
total used free shared buffers cached
Mem: 507148 22068 485080 0 0 1380
-/+ buffers/cache: 20688 486460
Swap: 0 0 0
</pre>
In real world applications, additional packages are added by selecting them under the <code>Target packages</code> item of the configuration menu. Just look at the <code>packages</code> directory to see which ones are available out of the box. To add further packages, please refer to [https://buildroot.org/downloads/manual/manual.html#adding-packages this link].
4,650
edits

Navigation menu