mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-09-01 15:08:33 +00:00
tools: Add mkimage-rpi3 to build images for raspberry Pi 3
The package contains u-boot and the RPi firmware blobs. It expects a tar ball of the root filesystem (including kernel and dtbs) on stdin and produces a compressed tar ball on stdout with the files to copy to a FAT32 formatted SD card. Signed-off-by: Rolf Neugebauer <rolf.neugebauer@docker.com>
This commit is contained in:
9
tools/mkimage-rpi3/boot.script
Normal file
9
tools/mkimage-rpi3/boot.script
Normal file
@@ -0,0 +1,9 @@
|
||||
setenv bootargs "dwc_otg.lpm_enable=0 earlyprintk console=tty1 console=ttyS0,115200 root=/dev/ram0 rw"
|
||||
setenv dtbfile bcm2837-rpi-3-b.dtb
|
||||
setenv machid 0x00000c42
|
||||
saveenv
|
||||
|
||||
fatload mmc 0:1 ${kernel_addr_r} kernel.uimg
|
||||
fatload mmc 0:1 ${fdt_addr_r} ${dtbfile}
|
||||
fatload mmc 0:1 ${ramdisk_addr_r} initrd.uimg
|
||||
bootm ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
|
Reference in New Issue
Block a user