OFW RPM packaging
Daniel Drake
dsd at laptop.org
Thu Nov 26 04:07:36 EST 2009
On Thu, 2009-11-26 at 08:40 +0000, Daniel Drake wrote:
> On Wed, 2009-11-25 at 15:36 -0500, Richard A. Smith wrote:
> > The person who build/releases the firmware (me or mitch) would modify the spec files we have for the firmware and then build the rpm.
> > Editing the spec file is manual but I have some scripts that automate making and releasing the rpms.
>
> OK, thanks for the info. Would you be able to start that process again?
> The resultant RPMs should go in your ~/public_rpms/f11-xo1.5 on
> dev.laptop.org.
Here is a new olpc.fth you can use.
It's like the one for XO-1, but the kernel params are updated for XO-1.5
and the stuff that tried to determine and pass root= has been removed.
Daniel
-------------- next part --------------
\ OLPC boot script
[ifndef] do-firmware-update
: do-firmware-update ( img$ -- )
\ Keep .error from printing an input sream position report
\ which makes a buffer@<address> show up in the error message
['] noop to show-error
visible
tuck flash-buf swap move ( len )
['] ?image-valid catch ?dup if ( )
visible
red-letters
." Bad firmware image file - " .error
." Continuing with old firmware" cr
black-letters
exit
then
true to file-loaded?
d# 12,000 wait-until \ Wait for EC to notice the battery
['] ?enough-power catch ?dup if
visible
red-letters
." Unsafe to update firmware now - " .error
." Continuing with old firmware" cr
black-letters
exit
then
" Updating firmware" ?lease-debug-cr
ec-indexed-io-off? if
visible
." Restarting to enable SPI FLASH writing." cr
d# 3000 ms
ec-ixio-reboot
security-failure
then
\ Latch alternate? flag for next startup
alternate? if [char] A h# 82 cmos! then
reflash \ Should power-off and reboot
show-x
" Reflash returned, unexpectedly" .security-failure
;
[then]
[ifndef] ?ofw-reflash
\ Check for new firmware.
: ?ofw-reflash ( -- )
" ${DN}${PN}\bootfw.zip" expand$
['] (boot-read) catch if 2drop exit then
img$ firmware-up-to-date? if exit then
img$ do-firmware-update
;
[then]
: set-path-macros ( -- )
button-o game-key? if " \boot-alt" else " \boot" then pn-buf place
" /chosen" find-package if ( phandle )
" bootpath" rot get-package-property 0= if ( propval$ )
get-encoded-string ( bootpath$ )
[char] \ left-parse-string 2nip ( dn$ )
dn-buf place ( )
then
then
;
: olpc-fth-boot-me
set-path-macros
?ofw-reflash
" console=ttyS0,115200 console=tty0 fbcon=font:SUN12x22 video=viafb:viafb_mode=1200x900,viafb_bpp=24,viafb_active_dev=LCD,viafb_lcd_panel_id=23 no_console_suspend reboot=acpi selinux=0 " expand$ to boot-file
" ${DN}${PN}\vmlinuz" expand$ to boot-device
" ${DN}${PN}\initrd.img" expand$ to ramdisk
boot
;
olpc-fth-boot-me
More information about the Devel
mailing list