Changes between Version 27 and Version 28 of AlixAPU


Ignore:
Timestamp:
Oct 2, 2015, 6:54:04 PM (7 years ago)
Author:
rick
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AlixAPU

    v27 v28  
    9999== Linux ==
    100100
     101The 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
     103Warning: 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
     107Disk /dev/sdc: 1.9 GiB, 2002780160 bytes, 3911680 sectors
     108Units: sectors of 1 * 512 = 512 bytes
     109Sector size (logical/physical): 512 bytes / 512 bytes
     110I/O size (minimum/optimal): 512 bytes / 512 bytes
     111Disklabel type: dos
     112Disk identifier: 0x00000000
     113
     114Device     Boot Start   End Sectors Size Id Type
     115/dev/sdc1  *     2048 53247   51200  25M  b W95 FAT32
     116}}}
     117
     118You can use `sfdisk` to do it directly.
     119{{{
     120$ cat <<EOF | sudo sfdisk /dev/sdc
     121
     122# partition table of /dev/sdc
     123unit: 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
     129EOF
     130}}}
     131
     132Format as FAT32 partition:
     133{{{
     134$ sudo mkfs.vfat /dev/sdc1
     135}}}
     136
     137Install the syslinux bootloader:
     138{{{
     139$ sudo dd if=/usr/share/syslinux/mbr.bin of=/dev/sdc
     140$ sudo syslinux --install /dev/sdc1
     141}}}
     142
     143Mount 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
     151Image completed, boot image and follow instructions to update firmware.
    101152== Building WLnode Image ==
    102153Het bouwen een Wireless-leiden Node image wordt beschreven deze [wiki:FreeBSD10_Guide] pagina.