Tests/SD card

From OLPC
< Tests
Revision as of 22:52, 22 June 2007 by Xavi (talk | contribs) (+cat)
Jump to navigation Jump to search

Insert the SD card

Justification: Self

Actions:

  1. Rotate the XO's monitor 90 degrees counterclockwise so the SD slot is accessible.
  2. Push the SD card into the slot (on the underside of the screen, far right) until you hear it click.
  3. Rotate the XO's monitor 90 degrees clockwise, so that it aligns with the keyboard.

Verify:

  • That the monitor is able to rotate properly.
  • That the SD card fits into the slot properly.
  • That the SD card slides in properly and clicks.

Notes: While it's always easy to get an SD card in properly, clicking it in immediately isn't always easy - it sometimes gets slightly stuck. This shouldn't be much of a problem, but it can trigger a very nasty bug detailed in the next section.

Check the log

Justification: Self

Actions

  1. Press Ctrl+Alt+Groups (F2) to get to the console.
  2. Login as "root."
  3. Type "dmesg | tail."

Verify:

  • That no error messages are displayed in the log.
  • That the following message (slightly altered depending on the type/size of the SD card you insert) appears:
PM: Adding info for mmc:mmc0:1234
mmcblk0: mmc0:1234 SD512 497152KiB
  mmcblk0: p1

Notes: Sometimes, if the SD card got stuck halfway through insertion, a long string of error messages will appear on the screen.

Mount the SD card

Justification: Self

Actions:

  1. Type "mount /dev/mmcblk0p1 /mnt" in the console.

Verify:

  • That no error messages are displayed in the log.
  • That you have successfully mounted the card.

Notes: If you received error messages while inserting the SD card, this step will fail. You will receive the message "mount: You must specify the filesystem type."

Navigate the SD card

Justification: Self

Actions

  1. Type "cd /mnt" in the console.
  2. Type "pwd" in the console.
  3. Type "ls" in the console.

Verify:

  • That no error messages are displayed in the log.
  • That you successfully move to /mnt.
  • That your location is displayed as "/mnt" is displayed after you type "pwd."
  • That typing "ls" displays two files: "test" and "vmlinuz-2.6.18-20061031.10.olpc.2a1ac1000865f321"

Editing data on the SD card

Justification:

Actions

  1. Type "cat > /mnt/test2" in the console.
  2. Type some text, then press ctrl+D
  3. Type "ls" in the console.
  4. Type "rm test2" in the console.
  5. Type "ls" in the console.

Verify:

  • That no error messages are displayed in the log.
  • That the ls command indicates that test2 has been created properly.
  • That the later ls command indicates that test2 has been removed properly.

Unmount the SD card

Justification: Self

Actions

  1. Type "umount /mnt" in the console.
  2. Type "cd .." to leave /mnt.
  3. Type "umount /mnt" to unmount the SD card.
  4. Type "pwd" in the console.
  5. Type "cd /mnt" in the console.
  6. Type "ls" in the console.

Verify:

  • That no error messages are displayed in the log.
  • That you receive the message "umount: /mnt: device is busy" when you first tr to unmount.
  • That typing "umount /mnt" the second time successfully unmounts the SD card.
  • That typing "pwd" displays "/" as your location.
  • That typing "ls" after entering "/mnt" displays nothing.

Remove the SD card

Justification: Self

Actions

  1. Rotate the XO's monitor 90 degrees counterclockwise.
  2. Push in on the card so that it pops out.
  3. Pull the SD card out of the SD slot.

Verify:

  • That the SD card pops out far enough for you to fit your fingers around it. **
  • That the SD card slides out smoothly.

Notes: As has been well-documented, most SD cards get stuck when you try to pop them out. While they do pop out, they don't pop out nearly far enough -they're still almost fully inside the slot. I had to use pliers to get one of the cards out.