Linux on XV6600 – Formatting SD Card
Earlier, I gave a quick overview of putting Linux on my XV6600. This and the following posts will describe in more detail how to put Linux on an XV6600 (U Verizon version).
Assuming that your linux box can see the card, the tool to format the card is fdisk.
For me, my linux box saw the card as /dev/sdc. You’ll need to figure out which device to use. You can find out by looking at /var/log/messages.
First, you need to delete any existing partitions. Then you’ll need to create two new partitions, the first one being 30MB and FAT16, the second the remainder of the card and a Linux partition (I recommend at least a 64MB SD card). After you create the partitions, and write it out to the card, you create the file systems and the you are good to go.
Here is a transcript of me doing this to a 128MB SD Card – the card is plugged into a USB-HUB Combo Card Reader. I’ve bolded my input. Comments are italicized and should not be entered. Note the following is done as root – be very careful!
to exit tail -f command>
| [root@chocolate ~]# tail -f /var/log/messages Feb 23 18:22:43 chocolate kernel: SCSI device sdc: 246016 512-byte hdwr sectors (126 MB) Feb 23 18:22:43 chocolate kernel: sdc: Write Protect is off Feb 23 18:22:43 chocolate kernel: sdc: assuming drive cache: write through Feb 23 18:22:43 chocolate kernel: SCSI device sdc: 246016 512-byte hdwr sectors (126 MB) Feb 23 18:22:43 chocolate kernel: sdc: Write Protect is off Feb 23 18:22:43 chocolate kernel: sdc: assuming drive cache: write through Feb 23 18:22:43 chocolate kernel: sdc: sdc1 Feb 23 18:22:44 chocolate fstab-sync[18371]: added mount point /media/CANON_DV for /dev/sdc1 ^C[root@chocolate ~]# fdisk /dev/sdc Command (m for help): p (print partition table for sanity check) Disk /dev/sdc: 125 MB, 125960192 bytes Device Boot Start End Blocks Id System Command (m for help): d (make sure to delete all partitions) Command (m for help): n (create first primary partition) Command (m for help): p (sanity check) Disk /dev/sdc: 125 MB, 125960192 bytes Device Boot Start End Blocks Id System Command (m for help): t (change partition type) Command (m for help): p Disk /dev/sdc: 125 MB, 125960192 bytes Device Boot Start End Blocks Id System Command (m for help): n (second partition is linux, remainder of card) Command (m for help): p (check out our work) Disk /dev/sdc: 125 MB, 125960192 bytes Device Boot Start End Blocks Id System Command (m for help): w (write it out, use q if uncertain. w will destroy whatever is on the card) Calling ioctl() to re-read partition table. WARNING: If you have created or modified any DOS 6.x Writing inode tables: done This filesystem will be automatically checked every 24 mounts or |
That should be it.
Good luck.









