[oe-commits] org.oe.dev linux-handhelds-2.6: Generate sample HaRET boot script just like reflash.ctl.

pfalcon commit openembedded-commits at lists.openembedded.org
Wed Sep 26 00:18:38 UTC 2007


linux-handhelds-2.6: Generate sample HaRET boot script just like reflash.ctl.

Author: pfalcon at openembedded.org
Branch: org.openembedded.dev
Revision: ad34928597dd3958fba76d0d375a901a6f371138
ViewMTN: http://monotone.openembedded.org/revision/info/ad34928597dd3958fba76d0d375a901a6f371138
Files:
1
packages/linux/linux-handhelds-2.6.inc
Diffs:

#
# mt diff -ra493869a7d551d53571e92e48875bd51c432c6e9 -rad34928597dd3958fba76d0d375a901a6f371138
#
# 
# 
# patch "packages/linux/linux-handhelds-2.6.inc"
#  from [9b3c8a9d312251557d97f3ea805ec796b389c4cc]
#    to [81ad97e2eba4d17f9cb187c2c6f0a9b9383fbb8c]
# 
============================================================
--- packages/linux/linux-handhelds-2.6.inc	9b3c8a9d312251557d97f3ea805ec796b389c4cc
+++ packages/linux/linux-handhelds-2.6.inc	81ad97e2eba4d17f9cb187c2c6f0a9b9383fbb8c
@@ -60,8 +60,42 @@ do_deploy() {
 	# format:
 	# name file md5sumfile destination
 	echo "${MACHINE}-kernel-${DATETIME} ${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME} - kernel" >> ${DEPLOY_DIR_IMAGE}/reflash.ctl
+	gen_haret_startup
 }   
    
 do_deploy[dirs] = "${S}"
 
 addtask deploy before do_package after do_install
+
+
+gen_haret_startup() {
+	cat >${DEPLOY_DIR_IMAGE}/startup.txt <<EOF 
+# This is startup file for HaRET, Linux bootloader for WinCE
+# http://handhelds.org/wiki/HaRET
+
+set kernel "${KERNEL_IMAGETYPE}-${PV}-${MACHINE}-${DATETIME}"
+
+# Boot choices. Uncomment 'set' statements in exactly one section
+
+## Choice 1 - Boot from SD/MMC card
+# Have 2 partition on a card:
+# 1st - FAT with HaRET executable, this file and zImage above
+# 2nd - EXT2 with rootfs tarball extracted
+set cmdline "root=/dev/mmcblk0p2 rootdelay=10 console=ttyS0,115200n8 console=tty0"
+
+## Choice 2 - Boot from CD card, setup like above
+#set cmdline "root=/dev/hda2 rootdelay=10 console=ttyS0,115200n8 console=tty0"
+
+## Choice 3 - Boot rootfs image as initramfs (works only for smaller images)
+# have a cpio.gz file below together with zImage, no EXT2 partition required
+#set initrd "<image>.rootfs.cpio.gz"
+#set cmdline "rdinit=/sbin/init console=ttyS0,115200n8 console=tty0"
+
+## Choice 4 - Boot via NFS over USB networking (must be kernel-builtin)
+# 192.168.x.x - Server address (the other side)
+# 192.168.x.x - Handheld's address
+#set cmdline "root=/dev/nfs nfsroot=192.168.x.x:<nfs_path> ip=192.168.y.y:192.168.x.x:192.168.x.x:255.255.255.0:pda:usb0 console=ttyS0,115200n8 console=tty0"
+
+bootlinux
+EOF
+}






More information about the Openembedded-commits mailing list