Installing 10.1.3 to SD Card/USB Stick

Jon Nettleton jon.nettleton at gmail.com
Thu Dec 23 19:19:24 EST 2010


On Thu, Dec 23, 2010 at 4:07 PM, James Cameron <quozl at laptop.org> wrote:
> On Thu, Dec 23, 2010 at 06:09:19PM -0500, Chris Marshall wrote:
>> I would like to try installing 10.1.3 to
>> an external SD card (the slot) or a USB
>> pen drive.  The directions from the wiki:
>>
>>   http://wiki.laptop.org/go/Installing_to_SD_Card
>>
>> say to use the ext3 image format file but
>> there don't appear to be any of those being
>> generated with the candidate osXXX.img files.
>
*snip*
>
> If you would like to try installing to an external SD card on an XO-1,
> the method would involve:
>

My quick and dirty notes I have from the last time I did this are as
follow.  Note this needs to be done on a machine with enough free RAM
to create an appropriately sized ramdisk

1)  get the jffs2 image
2)  sudo modprobe -v mtd
3)  sudo modprobe -v jffs2
4)  sudo modprobe -v mtdram total_size=700000 erase_size=25 (note this
just needs to be as large as the image.  I have 8GB's of RAM so I
don't skimp)
5)  sudo modprobe -v mtdchar
6)  sudo modprobe -v mtdblock  ( 5 and 6 might not be needed.  I have
them *'d but didn't write myself a note why :-(  )
7)  sudo dd if=imagename.jffs2 of=/dev/mtd0
8)  sudo mount -t jffs2 /dev/mtdblock0 /where/the/image/shouldbe/mounted
9) partition your SD card
10) tar over the file files from the ramdisk image to the sd card.

After this there may be some configuration changes however I did not
document them.  If you run into problems let me know and I can put
together more complete instructions.

-Jon



More information about the Devel mailing list