Translations of this page:
This is an old revision of the document!
About this Article
We may want to install lubuntu desktop/server to SD card, here is a guide for you. This guide is for Linux platform only. We take Desktop as a example in this guide. If you are interested in Server, just replace the images with server one.
We assume card=/dev/sdd here
$card=/dev/sdd $sudo dd if=/dev/zero of=${card} bs=1024 seek=544 count=128
$sudo dd if=u-boot-sunxi-with-spl-ct-20131102.bin of=$card bs=1024 seek=8
$ sudo fdisk /dev/sdd
Command (m for help): p Disk /dev/sdd: 7822 MB, 7822376960 bytes 241 heads, 62 sectors/track, 1022 cylinders, total 15278080 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x7b720c4c Device Boot Start End Blocks Id System Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): **p** Partition number (1-4, default 1): 1 First sector (2048-15278079, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-15278079, default 15278079): +64M Command (m for help): n Partition type: p primary (1 primary, 0 extended, 3 free) e extended Select (default p): p Partition number (1-4, default 2): Using default value 2 First sector (133120-15278079, default 133120): Using default value 133120 Last sector, +sectors or +size{K,M,G} (133120-15278079, default 15278079): Using default value 15278079 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.
$sudo mkfs.ext2 ${card}1 $sudo mkfs.ext4 ${card}2
$mkdir /tmp/sdd1 /tmp/sdd2 $sudo mount -t ext2 ${card}1 /tmp/sdd1 $sudo mount -t ext4 ${card}2 /tmp/sdd2 $sudo tar -C /tmp/sdd1 -xvf bootfs-part1.tar.gz $sudo tar -C /tmp/sdd2 -xvf rootfs-part2.tar.gz $sync $sudo umount /tmp/sdd1 $sudo umount /tmp/sdd2
If we want to change to VGA output default, we need to modify the script.bin at the 1st partition
$bin2fex script.bin 1.fex $vim 1.fex (and change screen0_output_type to 4) $fex2bin 1.fex script.bin
#modprobe bcmdhd