]> spindle.queued.net Git - xodist/blob - configs/debxo-xfce/olpc.fth-jffs2
debxo: make ext3 root partition even larger
[xodist] / configs / debxo-xfce / olpc.fth-jffs2
1 \ OLPC boot script
2
3 \ fetch the /chosen/bootpath property
4 " /chosen" find-package  if                       ( phandle )
5   " bootpath" rot  get-package-property  0=  if   ( propval$ )
6     get-encoded-string                            ( bootpath$ )
7     [char] \ left-parse-string  2nip              ( dn$ )
8
9     \ store the first part of bootpath (up to the '\') in $DN
10     dn-buf place                                  ( )
11   then
12 then
13
14 " ro root=mtd:root rootfstype=jffs2 video=lxfb fbcon=font:SUN12x22" to boot-file
15 game-key-mask h# 80 and if
16         \ boot from backup kernel
17         " ${DN}\vmlinuz.bak" expand$ to boot-device
18         " ${DN}\initrd.img.bak" expand$ to ramdisk
19 else
20         \ boot from regular kernel
21         " ${DN}\vmlinuz" expand$ to boot-device
22         " ${DN}\initrd.img" expand$ to ramdisk
23 then
24 dcon-unfreeze
25 boot