Cubieboard A20 - Instalando o Kankin na NAND
De Área31 Hackerspace
Particione a NAND
w3m 'http://dl.cubieforums.com/loz/boot_partition/bootloader/cubie_nand_uboot_partition_image.bin'
dd bs=4096 if=./cubie_nand_uboot_partition_image.bin of=/dev/nand
Ou
Compile as ferramentas necessárias para particionar a NAND:
cd /opt
git clone git://github.com/linux-sunxi/sunxi-tools
cd sunxi-tools ; make
Particione o NAND (responda Y para a pergunta):
./nand-part -f a20 /dev/nand 32768 'bootloader 120480' 'boot 512' 'rootfs 0'
reinicie o cubieboard2:
shutdown -r now
Formate as partições:
mkfs.vfat /dev/nanda
mkfs.ext4 /dev/nandc
ou
mkfs.btrfs -O ^extref /dev/nandc -f
Crie os diretórios e monte a partição raiz (ext4):
mkdir /mnt/nand
mount /dev/nandc /mnt/nand
Crie os diretórios e monte a partição de boot (vfat):
mkdir /mnt/nand/boot
mount /dev/nanda /mnt/nand/boot/
mkdir /mnt/nand/boot/linux
Baixe os arquivos de boot:
wget http://hackstore.com.br/downloads/kankin-cubie2/u-boot-nand-ext4.bin.gz
Extraia os arquivos de boot:
gunzip u-boot-nand-ext4.bin.gz && mv u-boot-nand-ext4.bin /mnt/nand/boot/linux/u-boot.bin
Crie o arquivo de configuração:
touch /mnt/nand/boot/uEnv.txt
echo -e "console=tty0\nextraargs=console=ttyS0,115200 disp.screen0_output_mode=EDID:1440x900p75 root=/dev/nandc rootwait panic=10 consoleblank=0" > /mnt/nand/boot/uEnv.txt
Fonte:
http://linux-sunxi.org/Cubieboard/Installing_on_NAND