mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
23 lines
740 B
Text
23 lines
740 B
Text
|
# After modifying, run ./mkscr
|
||
|
|
||
|
# MAC address configuration
|
||
|
#setenv macaddr "b8:27:eb:fc:c8:c2"
|
||
|
|
||
|
# Device tree
|
||
|
setenv fdtfile "bcm2836-rpi-2-b.dtb"
|
||
|
|
||
|
# Set root partition to the second partition of boot device
|
||
|
part uuid ${devtype} ${devnum}:2 uuid
|
||
|
|
||
|
setenv bootargs "console=ttyAMA0,115200 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr=${macaddr}"
|
||
|
|
||
|
if load ${devtype} ${devnum}:${bootpart} ${kernel_addr_r} /zImage; then
|
||
|
if load ${devtype} ${devnum}:${bootpart} ${fdt_addr_r} /dtbs/${fdtfile}; then
|
||
|
if load ${devtype} ${devnum}:${bootpart} ${ramdisk_addr_r} /initramfs-linux.img; then
|
||
|
bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r};
|
||
|
else
|
||
|
bootz ${kernel_addr_r} - ${fdt_addr_r};
|
||
|
fi;
|
||
|
fi;
|
||
|
fi
|