]> spindle.queued.net Git - xodist/blobdiff - configs/debxo-sugar/olpc.fth-jffs2
mkext3/mkjffs2: rework fstab/olpc.fth file generation during image creation
[xodist] / configs / debxo-sugar / olpc.fth-jffs2
diff --git a/configs/debxo-sugar/olpc.fth-jffs2 b/configs/debxo-sugar/olpc.fth-jffs2
new file mode 100644 (file)
index 0000000..d338716
--- /dev/null
@@ -0,0 +1,25 @@
+\ OLPC boot script
+
+\ fetch the /chosen/bootpath property
+" /chosen" find-package  if                       ( phandle )
+  " bootpath" rot  get-package-property  0=  if   ( propval$ )
+    get-encoded-string                            ( bootpath$ )
+    [char] \ left-parse-string  2nip              ( dn$ )
+
+    \ store the first part of bootpath (up to the '\') in $DN
+    dn-buf place                                  ( )
+  then
+then
+
+" ro root=mtd:root rootfstype=jffs2 video=lxfb fbcon=font:SUN12x22" to boot-file
+game-key-mask h# 80 and if
+       \ boot from backup kernel
+       " ${DN}\vmlinuz.old" expand$ to boot-device
+       " ${DN}\initrd.img.old" expand$ to ramdisk
+else
+       \ boot from regular kernel
+       " ${DN}\vmlinuz" expand$ to boot-device
+       " ${DN}\initrd.img" expand$ to ramdisk
+then
+dcon-unfreeze
+boot