pandora-uboot-scripts: Add some default helper scripts to support users booting off...
authorDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 1 Dec 2009 18:23:17 +0000 (18:23 +0000)
committerDavid-John Willis <John.Willis@Distant-earth.com>
Tue, 1 Dec 2009 18:23:17 +0000 (18:23 +0000)
recipes/pandora-system/pandora-uboot-scripts.bb [new file with mode: 0644]
recipes/pandora-system/pandora-uboot-scripts/boot-mmcblk0p2-ext3.cmd [new file with mode: 0644]
recipes/pandora-system/pandora-uboot-scripts/boot-mmcblk1p1-ext3.cmd [new file with mode: 0644]
recipes/pandora-system/pandora-uboot-scripts/boot-ramdisk.cmd [new file with mode: 0644]

diff --git a/recipes/pandora-system/pandora-uboot-scripts.bb b/recipes/pandora-system/pandora-uboot-scripts.bb
new file mode 100644 (file)
index 0000000..17467fd
--- /dev/null
@@ -0,0 +1,36 @@
+DESCRIPTION = "Helper uboot boot scripts for the OpenPandora"
+
+DEPENDS = "u-boot-mkimage-native"
+
+SRC_URI = "file://*.cmd"
+
+do_configure() {
+       cp ${WORKDIR}/*.cmd ${S}
+}
+
+do_compile() {
+       for i in *.cmd ; do
+               uboot-mkimage -A ${TARGET_ARCH} -O linux -T script -C none -a 0 -e 0 -n "OpenPandora $i" -d $i $i.scr
+       done
+}
+
+do_install() {
+       install -d ${D}${datadir}/u-boot-scripts
+       for i in *.scr ; do
+               install -m 0644 $i ${D}${datadir}/u-boot-scripts
+       done
+}
+
+FILES_${PN} += "${datadir}"
+
+addtask deploy before do_package after do_install
+
+do_deploy() {
+       install -d ${DEPLOY_DIR_IMAGE}
+       for i in *.scr ; do
+               cp $i ${DEPLOY_DIR_IMAGE}
+               package_stagefile_shell ${DEPLOY_DIR_IMAGE}/$i
+       done
+}
+
+PACKAGE_ARCH = "${MACHINE_ARCH}"
diff --git a/recipes/pandora-system/pandora-uboot-scripts/boot-mmcblk0p2-ext3.cmd b/recipes/pandora-system/pandora-uboot-scripts/boot-mmcblk0p2-ext3.cmd
new file mode 100644 (file)
index 0000000..9717c09
--- /dev/null
@@ -0,0 +1,2 @@
+setenv bootargs debug root=/dev/mmcblk0p2 console=ttyS0,115200n8 rootdelay=2 rootfstype=ext3 ro vram=6272K omapfb.vram=0:1500K
+fatload mmc 0 0x80300000 uImage; bootm 0x80300000
diff --git a/recipes/pandora-system/pandora-uboot-scripts/boot-mmcblk1p1-ext3.cmd b/recipes/pandora-system/pandora-uboot-scripts/boot-mmcblk1p1-ext3.cmd
new file mode 100644 (file)
index 0000000..8118c90
--- /dev/null
@@ -0,0 +1,2 @@
+setenv bootargs debug root=/dev/mmcblk1p1 console=ttyS0,115200n8 rootdelay=2 rootfstype=ext3 ro vram=6272K omapfb.vram=0:1500K
+fatload mmc 0 0x80300000 uImage; bootm 0x80300000
diff --git a/recipes/pandora-system/pandora-uboot-scripts/boot-ramdisk.cmd b/recipes/pandora-system/pandora-uboot-scripts/boot-ramdisk.cmd
new file mode 100644 (file)
index 0000000..10c82a7
--- /dev/null
@@ -0,0 +1,5 @@
+setenv bootargs debug console=ttyS2,115200n8 ramdisk_size=8192 root=/dev/ram0 rw rootfstype=ext2 initrd=0x81600000,8M vram=6272K omapfb.vram=0:1500K
+fatload mmc 0 0x80300000 uImage; fatload mmc 0 0x81600000 rd-ext2.bin; bootm 0x80300000
+# setenv bootargs debug root=/dev/mmcblk0p2 console=ttyS0,115200n8 rootdelay=2 rootfstype=ext3 ro vram=6272K omapfb.vram=0:1500K
+# fatload mmc 0 0x80300000 uImage; bootm 0x80300000
+# omapfb.debug=y omapdss.debug=y