1\ OLPC XO boot script 2 3: (visible) " unfreeze visible" evaluate ; 4' (visible) catch drop forget (visible) 5 6" /aliases" find-device " last" get-property 7abort" No last alias" 8" /pci/sd@c" 2over substring? if " root=/dev/mmcblk0p1 " to boot-file then 9" /sd/sdhci@d4280000" 2over substring? if " root=/dev/mmcblk1p1 " to boot-file then 10" /pci/usb@" 2over substring? if " root=/dev/sda1 " to boot-file then 11" /usb@" 2over substring? if " root=/dev/sda1 " to boot-file then 12" /pci/nandflash@c" 2over substring? if " root=/dev/mtdblock0 rootfstype=jffs2 " to boot-file then 132drop 14 15root-device " compatible" get-property dend if 0 0 then ( compatible$ ) 16" olpc,xo-1.75" 2over sindex -1 > if ( compatible$ ) 17 \ Version check on XO-1.75 18 " mrvl,mmp2" 2over sindex -1 = if ( compatible$ ) 19 2drop ( ) 20 cr 21 ." Firmware Q4E00 or newer is needed to boot a Devicetree enabled kernel." cr 22 cr 23 ." One way to update is to copy http://dev.laptop.org/~quozl/q4e00ja.rom" cr 24 ." to a FAT partition on a USB flash stick and run ""flash u:\q4e00ja.rom""" cr 25 cr 26 ." Aborting boot." cr 27 " show-sad" evaluate 28 abort 29 then 30then ( compatible$ ) 31 32" mmp" 2swap sindex -1 > if 33 \ A Marvell MMP-based machine 34 " last:\boot\zImage" to boot-device 35 boot-file " console=ttyS2,115200 " $cat2 to boot-file 36else 37 \ Assume XO-1 38 " last:\boot\bzImage" to boot-device 39 boot-file " console=ttyS0,115200 reboot=pci " $cat2 to boot-file 40then 41 42\ Pick a terminal that looks better on the XO screen 43root-device " architecture" get-property dend if 0 0 else 1- then 44" OLPC" $= if boot-file " fbcon=font:TER16x32 vt.color=0xf0 " $cat2 to boot-file then 45 46boot-file " console=tty0 rootwait" $cat2 to boot-file 47boot 48