summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Foss <robert.foss@collabora.com>2017-04-23 15:33:09 (GMT)
committerRobert Foss <robert.foss@collabora.com>2017-04-23 15:33:09 (GMT)
commite99b08cc7df489d05901ab08725847baeabcdea5 (patch)
tree44d385eb0ded3234a41ebb5be0f2389f341e3ca7
parent7c96b53118b960764f743baa322455e82b1e2e1b (diff)
downloadrdu2-e99b08cc7df489d05901ab08725847baeabcdea5.tar.gz
rdu2-e99b08cc7df489d05901ab08725847baeabcdea5.tar.xz
Add uboot boot.scr input
Signed-off-by: Robert Foss <robert.foss@collabora.com>
-rw-r--r--uboot_android_boot.scr14
1 files changed, 14 insertions, 0 deletions
diff --git a/uboot_android_boot.scr b/uboot_android_boot.scr
new file mode 100644
index 0000000..54b03bd
--- /dev/null
+++ b/uboot_android_boot.scr
@@ -0,0 +1,14 @@
+setenv fdt_file imx6qp-zii-rdu2.dtb
+
+setenv fdt_addr 0x18000000
+setenv kernel_addr 0x12000000
+setenv ramdisk_addr 0x13000000
+
+setenv bootargs "console=ttymxc0,115200 console=tty0 rw rootwait ip=dhcp buildvariant=userdebug debug ignore_loglevel root=/dev/mmcblk0p2 rootfstype=ext4 rootwait init=/init printk.devkmsg=on verbose enforcing=0 androidboot.selinux=permissive drm.debug=0x00"
+
+mmcinit
+
+ext4load mmc 0:1 ${ramdisk_addr} /android_ramdisk.img.gz
+ext4load mmc 0:1 ${kernel_addr} /android_zImage
+ext4load mmc 0:1 ${fdt_addr} /${fdt_file}
+booti ${kernel_addr} ${ramdisk_addr} ${fdt_addr}