Flash Nand Image on Cubieboard 2 with Ubuntu

From Bitbull Wiki
Jump to navigation Jump to search


1 Serial Console


#> lsusb | grep -i serial
   Type: Bus 005 Device 002: ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
  • Cable Order
White > Green > Red > Black
  • Connect
screen -L /dev/ttyUSB0 115200,-parenb,-cstopb,cs8
  • Get Images:

http://cubieboard.org/download/

2 Flashing Lubuntu Server


2.1 Install Software

apt-get remove --purge dkms
apt-get install dkms
modprobe awusb

2.2 Install LifeSuit

wget http://dl.cubieboard.org/software/tools/livesuit/LiveSuitV306_For_Linux32.zip
unzip LiveSuitV306_For_Linux32.zip
cd LiveSuit_For_Linux32/

bash LiveSuit.run
# install awusb again after kernel update
# dpkg -i cd Bin/awdev-dkms*.deb
#  modprobe awusb
sudo ~/Bin/LiveSuit/LiveSuit.sh
  • select image
  • Press FEL
  • Connect MiniUSB

3 cleanup system

chmod 755 /etc/default /etc
chown root.root /
apt-get remove --purge apache* libapache* mysql-* nano php*
apt-get install openssh-server

4 resize root partition

Include server-13.06-v1.00 and server-13.06-v1.06

sfdisk -s
nand-part -f a20 /dev/nand 32768 "bootloader 131072" "rootfs 7569408" "UDISK 0"
reboot
sfdisk -s
resize2fs /dev/nandb