Talk:Custom bootloader
Jump to navigation
Jump to search
An olpc.fth for DebXO
I am interested to run DebXO on a 1.5 machine. According to http://wiki.laptop.org/go/DebXO the olpc.fth in the release works for the XO-1. On the 1.5 the text of the boot console does not fit the display properly. The olpc.fth from the release, with the boot command adjusted, follows. In the boot command, the viafb driver is specified. Given that the 1 and 1.5 models both have 1200x900 screens, misfitting of the console puzzles. If anyone can explain, that would be helpful. A suggestion to fix olpc.fth for the 1.5 would be even better. When a suitable olpc.fth is found, I can try to add the details such that the XO model is detected automatically. Regards, ... Peter E.
\ OLPC boot script
game-key-mask button-check and if " int:\boot\olpc.fth" $boot then
\ 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=LABEL=DebXO video=viafb" to boot-file " ro root=LABEL=DebXO video=viafb:1200x900 fbcon=font:SUN12x22" to boot-file game-key-mask h# 80 and if \ boot from backup kernel " ${DN}\vmlinuz.bak" expand$ to boot-device " ${DN}\initrd.img.bak" expand$ to ramdisk else \ boot from regular kernel " ${DN}\vmlinuz" expand$ to boot-device " ${DN}\initrd.img" expand$ to ramdisk then dcon-unfreeze boot ction "Extensions" Option "DPMS" "off" EndSection
Section "ServerFlags" Option "SuspendTime" "0" Option "OffTime" "0" Option "BlankTime" "0" Option "StandbyTime" "0" Option "DontZap" "true" EndSection
#Section "Screen" # Identifier "Default Screen" # Monitor "Monitor0" #EndSection