mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-11-16 18:28:23 +01:00
da7b459793
- sun50i include - added orange-pi-pc2.conf - added u-boot and linux: mainline - updated sdcard_image-sunxi.bbclass to build the image for sun50i board
12 lines
582 B
Batchfile
12 lines
582 B
Batchfile
# Default to (primary) SD
|
|
rootdev=mmcblk0p2
|
|
if itest.b *0x28 == 0x02 ; then
|
|
# U-Boot loaded from eMMC or secondary SD so use it for rootfs too
|
|
echo "U-boot loaded from eMMC or secondary SD"
|
|
rootdev=mmcblk1p2
|
|
fi
|
|
setenv bootargs console=${console} console=tty1 root=/dev/${rootdev} panic=10
|
|
load mmc 0:1 ${fdt_addr_r} ${fdtfile} || load mmc 0:1 ${fdt_addr_r} boot/${fdtfile}
|
|
load mmc 0:1 ${kernel_addr_r} zImage || load mmc 0:1 ${kernel_addr_r} boot/zImage || load mmc 0:1 ${kernel_addr_r} uImage || load mmc 0:1 ${kernel_addr_r} boot/uImage
|
|
booti ${kernel_addr_r} - ${fdt_addr_r}
|