June 2017
Intermediate to advanced
478 pages
13h 14m
English
Using barebox at the command line you can see the similarities with Linux. First, you can see that there are filesystem commands such as ls, and there is a /dev directory:
# ls /devfull mdio0-phy00 mem mmc0 mmc0.0mmc0.1 mmc1 mmc1.0 null ram0 zero
The device /dev/mmc0.0 is the first partition on the microSD card, which contains the kernel and initial ramdisk. You can mount it like this:
# mount /dev/mmc0.0 /mnt
Now you can see the files:
# ls /mntMLO am335x-boneblack.dtb barebox.binu-boot.img uRamdisk zImage
Boot from the root partition:
# global.bootm.oftree=/mnt/am335x-boneblack.dtb# global linux.bootargs.root="root=/dev/mmcblk0p2 rootwait"# bootm /mnt/zImage
Read now
Unlock full access