#12727 NORM Not Tri: OFW doesn't follow x86 linux boot protocol

Zarro Boogs per Child bugtracker at laptop.org
Mon Jul 15 10:34:09 EDT 2013


#12727: OFW doesn't follow x86 linux boot protocol
-------------------------------------------+--------------------------------
           Reporter:  dsd                  |       Owner:  Quozl        
               Type:  defect               |      Status:  new          
           Priority:  normal               |   Milestone:  Not Triaged  
          Component:  ofw - open firmware  |     Version:  not specified
         Resolution:                       |    Keywords:               
        Next_action:  communicate          |    Verified:  0            
Deployment_affected:                       |   Blockedby:               
           Blocking:                       |  
-------------------------------------------+--------------------------------

Comment(by dsd):

 I think that is closer but not quite matching what the docs say. How about
 (untested):

 {{{
 : setup-header-end  ( -- endbyte )   load-base h# 201 + c@ h# 202 + ;
 : setup-header-size ( -- #bytes ) setup-header-end h# 1f1 - 1+ ;

 0 +lp  d# 4096 erase
 load-base h# 1f1 + h# 1f1 +lp  setup-header-size  move   \ Copy the 16-bit
 stuff
 }}}

 Then remove all the erase statements from set-parameters.

 I have gone all the way back to 2008 and the protocol has not changed, so
 this should be safe to apply for all kernels.

 I'm not sure if any change is also needed to this line as I can't figure
 out what "/string" does:
 {{{
    loaded code16-size /string  linux-base  swap  move  \ Copy the 32-bit
 stuff
 }}}

 If you build a firmware I am happy to test. It can wait until you are back
 at home of course.

-- 
Ticket URL: <http://dev.laptop.org/ticket/12727#comment:4>
One Laptop Per Child <http://laptop.org/>
OLPC bug tracking system


More information about the Bugs mailing list