meta-raspberrypi/recipes-bsp/rpi-u-boot-scr/files/raspberrypi3/boot.cmd
Paul Barker 56047ad7db rpi-u-boot-scr: Add recipe to create u-boot boot script
Upstream u-boot searches the boot partition for a script named 'boot.scr'. If
this file exists it is executed as a sequence of u-boot commands in order to
boot the system. This script must be compiled using the mkimage command to
ensure that it is understood by u-boot.

Signed-off-by: Paul Barker <paul@paulbarker.me.uk>
2016-10-31 15:58:48 +01:00

7 lines
278 B
Batchfile

setenv fdtfile bcm2710-rpi-3-b.dtb
setenv bootargs 'earlyprintk console=tty0 console=ttyAMA0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait noinitrd'
mmc dev 0
fatload mmc 0:1 ${kernel_addr_r} uImage
fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}
bootm ${kernel_addr_r} - ${fdt_addr_r}