User Tools

Site Tools


tutorials:ct1:installation:install_lubuntu_desktop_server_to_sd_card

This is an old revision of the document!


CT Lubuntu Desktop/Server SD Card Installation

About this Article

Abstract

We may want to install lubuntu desktop/​server to SD card, here is a guide for you. This guide is for Linux platform only.

Prerequisites

  • Any Linux environment,​ we want sfdisk, dd, wget commands
  • An SD Card(at least 2GB)

Installation

We assume card=/dev/sdd here

Get Images

Name Desc URL
u-boot u-boot with spl download
bootfs uImage, uEnv.txt, script.bin download
rootfs rootfs download

Cleaning

$card=/dev/sdd
$sudo dd if=/dev/zero of=${card} bs=1024 seek=544 count=128

Make Bootable SD Card

$sudo dd if=u-boot-sunxi-with-spl-ct-20131102.bin of=$card bs=1024 seek=8

Partitioning

$sudo dd if=/dev/zero of=$card bs=1M count=1
$sudo sfdisk -R $card
$cat <<EOT | sudo sfdisk --in-order -uM $card
1,16,c
,,L
EOT

$sudo mkfs.ext2 ${card}1
$sudo mkfs.ext4 ${card}2
	 

Copying

$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

Tips

VGA output

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

Kernel

Wifi

#modprobe bcmdhd
tutorials/ct1/installation/install_lubuntu_desktop_server_to_sd_card.1383632006.txt.gz · Last modified: 2013/12/23 14:50 (external edit)