Talk:Custom bootloader

From OLPC
Revision as of 09:35, 23 February 2013 by PeasthopeOld (talk | contribs) (An olpc.fth for DebXO: Switched to another server for the display image and deleted the spurious text from the olpc.fth.)
Jump to: navigation, search

An olpc.fth for DebXO

I am interested to run DebXO on a 1.5 machine. According to 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., Peasthope 17:03, 22 February 2013 (UTC)

\ 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
You appear to have combined Xorg configuration text with your olpc.fth, and this is not valid, but is harmless. Nothing after boot is processed. Your photograph seems incomplete. The differences in XO-1 and XO-1.5 are expected, since different frame buffer drivers are used by the kernel. I suggest using the DebXO talk page for this, as it isn't really a custom bootloader problem. --Quozl 22:59, 22 February 2013 (UTC)