| 101 | The MBR partition table on the SD card should contain one bootable FAT32 partition. Use `fdisk`, `cdisk` or `sfdisk` to create this scheme. Some examples of a SD card located in `/dev/sdc`. |
| 102 | |
| 103 | Warning: If you do not know what you are doing here you should NOT do it or accept the risk of potentially loosing ALL your data including those of the host system. |
| 104 | {{{ |
| 105 | $ sudo fdisk -l /dev/sdc |
| 106 | |
| 107 | Disk /dev/sdc: 1.9 GiB, 2002780160 bytes, 3911680 sectors |
| 108 | Units: sectors of 1 * 512 = 512 bytes |
| 109 | Sector size (logical/physical): 512 bytes / 512 bytes |
| 110 | I/O size (minimum/optimal): 512 bytes / 512 bytes |
| 111 | Disklabel type: dos |
| 112 | Disk identifier: 0x00000000 |
| 113 | |
| 114 | Device Boot Start End Sectors Size Id Type |
| 115 | /dev/sdc1 * 2048 53247 51200 25M b W95 FAT32 |
| 116 | }}} |
| 117 | |
| 118 | You can use `sfdisk` to do it directly. |
| 119 | {{{ |
| 120 | $ cat <<EOF | sudo sfdisk /dev/sdc |
| 121 | |
| 122 | # partition table of /dev/sdc |
| 123 | unit: sectors |
| 124 | |
| 125 | /dev/sdc1 : start= 2048, size= 51200, Id= b, bootable |
| 126 | /dev/sdc2 : start= 0, size= 0, Id= 0 |
| 127 | /dev/sdc3 : start= 0, size= 0, Id= 0 |
| 128 | /dev/sdc4 : start= 0, size= 0, Id= 0 |
| 129 | EOF |
| 130 | }}} |
| 131 | |
| 132 | Format as FAT32 partition: |
| 133 | {{{ |
| 134 | $ sudo mkfs.vfat /dev/sdc1 |
| 135 | }}} |
| 136 | |
| 137 | Install the syslinux bootloader: |
| 138 | {{{ |
| 139 | $ sudo dd if=/usr/share/syslinux/mbr.bin of=/dev/sdc |
| 140 | $ sudo syslinux --install /dev/sdc1 |
| 141 | }}} |
| 142 | |
| 143 | Mount partition and copy [http://www.pcengines.ch/tinycore.htm PC Engines TinyCore] image on it: |
| 144 | {{{ |
| 145 | $ sudo mount /dev/sdc1 /mnt |
| 146 | $ curl -o /tmp/apu_tinycore.tar.bz2 http://www.pcengines.ch/file/apu_tinycore.tar.bz2 |
| 147 | $ sudo tar -C /mnt /tmp/apu_tinycore.tar.bz2 |
| 148 | $ sudo umount /mnt |
| 149 | }}} |
| 150 | |
| 151 | Image completed, boot image and follow instructions to update firmware. |