#11233 NORM 12.1.0: XO-1 usb and sd boot does not work in recent builds

Zarro Boogs per Child bugtracker at laptop.org
Tue Nov 22 16:19:48 EST 2011


#11233: XO-1 usb and sd boot does not work in recent builds
------------------------------------+---------------------------------------
           Reporter:  fanoush       |       Owner:  dsd                              
               Type:  defect        |      Status:  new                              
           Priority:  normal        |   Milestone:  12.1.0                           
          Component:  initramfs     |     Version:  Development build as of this date
         Resolution:                |    Keywords:                                   
        Next_action:  add to build  |    Verified:  0                                
Deployment_affected:                |   Blockedby:                                   
           Blocking:                |  
------------------------------------+---------------------------------------
Changes (by dsd):

  * next_action:  diagnose => add to build
  * milestone:  11.3.0 => 12.1.0


Comment:

 This should work in next 12.1.0 build as USB stuff is now included in the
 kernel (x86-3.1 2098f73d2).

 However, the requirements are that the SD card or USB disk must be
 partitioned in the way that is produced by the sd_card_image module of
 olpc-os-builder. That is, the first partition includes boot contents, and
 the second includes the main filesystem. For SD I would suggest just using
 sd_card_image.

 For USB, if working from the tree tarball, the following should work:
  1. extract the entire contents of the tarball onto the 2nd partition
  2. look at the name of the directory in versions/pristine (e.g. "884").
 This is the fs version number and will be referred to as FSVERSION below.
  3. On the first partition (PARTITION1), create security and boot-versions
 toplevel directories
  4. Create directory PARTITION1/boot-versions/FSVERSION
  5. copy PARTITION2/versions/pristine/FSVERSION/boot/* into PARTITION1
 /boot-versions/FSVERSION
  6. create a symlink at PARTITION1/boot that points at boot-
 versions/FSVERSION

 Contributions to add an appropriate USB output module (or sd_card_image
 "USB mode") to olpc-os-builder would be accepted if they have a sensible
 design; this would simplify the above.

 This is untested but expected to work - please provide feedback with
 following 12.1.0 builds.

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


More information about the Bugs mailing list