User:NeoAmsterdam/10.1.3/Bootable SD: Difference between revisions
Jump to navigation
Jump to search
NeoAmsterdam (talk | contribs) (Concise how-to based on `User:NeoAmsterdam/10.1.2/Bootable SD`) |
|||
(2 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Image:YamaDone.JPG|right|thumb|link=|If only it were this easy]] |
[[Image:YamaDone.JPG|right|thumb|link=|If only it were this easy]] |
||
There is no [[Cheat codes|cheat code]] or [[Open Firmware|OpenFirmware]] command for installing an OS image to an SD card. This document explains how make a bootable SD card with [[Release_notes/10.1.3|Release 10.1.3 (Build 860)]]. |
There is no [[Cheat codes|cheat code]] or [[Open Firmware|OpenFirmware]] command for installing an OS image to an SD card on an XO-1, though there is for an XO-1.5. This document explains how make a bootable SD card with [[Release_notes/10.1.3|Release 10.1.3 (Build 860)]] on an XO-1. |
||
= Before you Begin = |
= Before you Begin = |
||
* <span style="color: red;">This procedure will erase any data stored on the XO.</span> |
* <span style="color: red;">This procedure will erase any data stored on the XO-1.</span> |
||
* <span style="color: red;">This procedure will erase any data stored on the SD card.</span> |
* <span style="color: red;">This procedure will erase any data stored on the SD card.</span> |
||
* <span style="color: red;">Do not execute these instructions on battery power.</span> |
* <span style="color: red;">Do not execute these instructions on battery power.</span> |
||
Line 12: | Line 12: | ||
== Requirements == |
== Requirements == |
||
* An XO |
* An XO-1 |
||
* A USB drive with ≥1GB capacity and formatted as FAT-32 |
* A USB drive with ≥1GB capacity and formatted as FAT-32 |
||
* An SD card with at least 1GB of storage capacity |
* An SD card with at least 1GB of storage capacity |
||
Line 21: | Line 21: | ||
== Pre-Installation == |
== Pre-Installation == |
||
# '''Back up your data!'''<small><br />I take no responsibility for preventable data loss.</small> |
# '''Back up your data!'''<small><br />I take no responsibility for preventable data loss.</small> |
||
# Download build |
# Download build 860 and its associated filesystem information: |
||
#* [http://download.laptop.org/xo-1/os/official/os860/os860.img os860.img] (604MB) |
#* [http://download.laptop.org/xo-1/os/official/os860/os860.img os860.img] (604MB) |
||
#* [http://download.laptop.org/xo-1/os/official/os860/os860.img.fs.zip os860.img.fs.zip] (398KB) |
#* [http://download.laptop.org/xo-1/os/official/os860/os860.img.fs.zip os860.img.fs.zip] (398KB) |
||
Line 28: | Line 28: | ||
[[Image:YamaKeep.JPG|thumb|right|link=]] |
[[Image:YamaKeep.JPG|thumb|right|link=]] |
||
== First Phase == |
== First Phase == |
||
# Shut down the XO. |
# Shut down the XO-1. |
||
# If there is an SD card in the SD card slot, eject it now. |
# If there is an SD card in the SD card slot, eject it now. |
||
# Insert the USB drive. |
# Insert the USB drive. |
||
# Hold down all four game keys (<b>✓</b> + <b>◻</b> + <b>O</b> + <b>×</b>) while pressing the power button.<br />Keep all four game keys depressed until the XO prompts you otherwise (see illustration). |
# Hold down all four game keys (<b>✓</b> + <b>◻</b> + <b>O</b> + <b>×</b>) while pressing the power button.<br />Keep all four game keys depressed until the XO-1 prompts you otherwise (see illustration). |
||
Release 10.1.3 will now "automagically" be installed to the XO's internal storage. When it finishes, the XO will restart. Wait until you are presented with the "Name" screen (see illustration) before starting the second phase. |
Release 10.1.3 will now "automagically" be installed to the XO-1's internal storage. When it finishes, the XO-1 will restart. Wait until you are presented with the "Name" screen (see illustration) before starting the second phase. |
||
[[Image:NA 852 S Name Screen.png|thumb|right|link=|The second phase can't begin until you see this on your screen]] |
[[Image:NA 852 S Name Screen.png|thumb|right|link=|The second phase can't begin until you see this on your screen]] |
||
Line 44: | Line 45: | ||
# Create a mount point for the SD card.<br /><tt style="color: green; background: #cfc;"><b>mkdir</b> /mnt/sd</tt> |
# Create a mount point for the SD card.<br /><tt style="color: green; background: #cfc;"><b>mkdir</b> /mnt/sd</tt> |
||
# Mount the SD card.<br /><tt style="color: green; background: #cfc;"><b>mount</b> -t ext3 /dev/mmcblk0p1 /mnt/sd</tt> |
# Mount the SD card.<br /><tt style="color: green; background: #cfc;"><b>mount</b> -t ext3 /dev/mmcblk0p1 /mnt/sd</tt> |
||
# Copy the files from the pristine build directory to the SD card.<br /><tt style="color: green; background: #cfc;"><b>cp</b> -pr /versions/pristine/860/* /mnt/sd/.</tt> |
# Copy the files from the pristine build directory to the SD card.<small><br />This can take as long as three hours. Have patience.<br /></small><tt style="color: green; background: #cfc;"><b>cp</b> -pr /versions/pristine/860/* /mnt/sd/.</tt> |
||
# Copy your Dev Key to the SD card now<br /><tt style="color: green; background: #cfc;"><b>cp</b> /mnt/usb/develop.sig /mnt/sd/security/develop.sig</tt> |
# Copy your Dev Key to the SD card now<br /><tt style="color: green; background: #cfc;"><b>cp</b> /mnt/usb/develop.sig /mnt/sd/security/develop.sig</tt> |
||
# Create the home directory.<br /><tt style="color: green; background: #cfc;"><b>mkdir</b> -p /mnt/sd/home/olpc</tt> |
# Create the home directory.<br /><tt style="color: green; background: #cfc;"><b>mkdir</b> -p /mnt/sd/home/olpc</tt> |
||
Line 51: | Line 52: | ||
# Remove the SD card's mount point.<br /><tt style="color: green; background: #cfc;"><b>rmdir</b> /mnt/sd</tt> |
# Remove the SD card's mount point.<br /><tt style="color: green; background: #cfc;"><b>rmdir</b> /mnt/sd</tt> |
||
Release 10.1.3 has now been grafted onto the SD card. <tt style="color: green; background: #cfc;"><b>shutdown</b> -r now</tt> and your XO should reboot from the SD card. |
Release 10.1.3 has now been grafted onto the SD card. <tt style="color: green; background: #cfc;"><b>shutdown</b> -r now</tt> and your XO-1 should reboot from the SD card. |
||
<!-- Good stuff, well done. The command for installing an image to SD card on an XO-1.5 is fs-update. There are also no SD card specific prebuilt images for SD on an XO-1. -- Quozl> |
Latest revision as of 09:52, 20 February 2011
There is no cheat code or OpenFirmware command for installing an OS image to an SD card on an XO-1, though there is for an XO-1.5. This document explains how make a bootable SD card with Release 10.1.3 (Build 860) on an XO-1.
Before you Begin
- This procedure will erase any data stored on the XO-1.
- This procedure will erase any data stored on the SD card.
- Do not execute these instructions on battery power.
- This procedure requires the SD card to be partitioned.
Disk partitioning is beyond the scope of this document. - The SD will be formatted as an ext3 filesystem.
This is not an optimal arrangement for SD cards. - Refrain from altering the volume label.
/boot/olpc.fth expects it to be "OLPCRoot". - Children should get permission from a parent, guardian, teacher, and/or Linux guru before attempting this procedure.
Adult supervision is not required, but it is highly recommended.
Requirements
- An XO-1
- A USB drive with ≥1GB capacity and formatted as FAT-32
- An SD card with at least 1GB of storage capacity
- A Developer's key ("Dev Key")
- Internet access
Procedure
Pre-Installation
- Back up your data!
I take no responsibility for preventable data loss. - Download build 860 and its associated filesystem information:
- os860.img (604MB)
- os860.img.fs.zip (398KB)
- Copy os860.img, os860.img.fs.zip, and your Dev Key to the root directory of the USB drive
- Rename os860.img.fs.zip to fs.zip
First Phase
- Shut down the XO-1.
- If there is an SD card in the SD card slot, eject it now.
- Insert the USB drive.
- Hold down all four game keys (✓ + ◻ + O + ×) while pressing the power button.
Keep all four game keys depressed until the XO-1 prompts you otherwise (see illustration).
Release 10.1.3 will now "automagically" be installed to the XO-1's internal storage. When it finishes, the XO-1 will restart. Wait until you are presented with the "Name" screen (see illustration) before starting the second phase.
Second Phase
- Drop into a console.
♦ ctrl + ♢ alt + f1 - Drop runlevels.
/sbin/init 3 - Insert the SD card into the SD slot.
If you have not partitioned the SD card, do so now. See the 10.1.2 Bootable SD note for more information. - Initialize a filesystem on the SD card.
mkfs.ext3 -L OLPCRoot /dev/mmcblk0p1 - Create a mount point for the SD card.
mkdir /mnt/sd - Mount the SD card.
mount -t ext3 /dev/mmcblk0p1 /mnt/sd - Copy the files from the pristine build directory to the SD card.
This can take as long as three hours. Have patience.
cp -pr /versions/pristine/860/* /mnt/sd/. - Copy your Dev Key to the SD card now
cp /mnt/usb/develop.sig /mnt/sd/security/develop.sig - Create the home directory.
mkdir -p /mnt/sd/home/olpc - Change ownership of the home directory.
chown -R olpc:olpc /mnt/sd/home/olpc - Unmount the SD card.
umount /mnt/sd - Remove the SD card's mount point.
rmdir /mnt/sd
Release 10.1.3 has now been grafted onto the SD card. shutdown -r now and your XO-1 should reboot from the SD card.