--- /dev/null
+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}"
--- /dev/null
+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