Project

General

Profile

A20 TV Box (SDK758)

The SDK758 is a small A20 processor based device, targeted at running Android to make your TV smart.


Hardware

SoC A20 1Ghz
DRAM 512MiB DDR3
384MHz
NAND 4GB or 8GB
Power DC 5.6V @ 2A

Unfortunately it has only 512MB of RAM memory, so you must make sure you only install and run the most basic parts of Ubuntu and DomotiGa on it.

Operating System

We are going to install Ubuntu 13.04 on it.

Installation steps

You cannot install Ubuntu or DomotiGa on it without some tweaking/hacking, this means you will void the warranty, but the device is so cheap you can get away with that.
You need to connect a serial port to the UART header to be able to access the console, find on-board buttons, and prepare/use an SD Card.

Here are the steps:

1.
Download the firmware image from:
http://docs.cubieboard.org/tutorials/a20-cubieboard_lubuntu_desktop_releases

2.
Download and install the Phoenix suite on your host machine.

3.
Open the box and take the PCB out or find something to push the uboot button which is located on the bottom side of the box.
You find two little holes, one is uboot and the other one recovery.
The uboot button is near the SD Card slot

Push the button and connect USB to the PC with Phoenix on it, let the drivers install.
(you will need and USB AtoA cable for this, you can buy one or make your own)

4.
When the drivers are installed open the Phoenix program, choose your downloaded firmware and click the upgrade button in Phoenix.
When the upgrade is finished close Phoenix.

5.
Because with this firmware the LAN and Wi-Fi networking doesn't work without some tweaks you will need and USB to Serial adapter, and connect to the console serial port so we can apply some changes to the script.bin file.

Open the box and pull the PCB out if not already done in previous steps.
Next to SD Card slot is 4 pin UART header for the serial console.

Connect your USB to Serial cable like so:

Box USB to Serial
txd rxd
rdx txd
gnd gnd

Open Putty in Windows, or a serial terminal program on your Linux box, and connect to the console.

login root
password linao

Than do this

mount /dev/nanda /mnt/
cd /mnt

NOTE: All needed files except the Linaro image can be found in attached A20Notes.rar file, see bottom of this page.

Copy the a20-sdk758.fex to a USB memory stick.
(You can't use SD Card, we need to fix that first)

Rename it to script.fex

Then put your USB stick in free USB port of tv box.

fdisk -l

Find your USB device, it will be something like /dev/sda1 or similar.

Make a directory and mount USB Stick.

mkdir ~/usb1
mount /dev/xx ~/usb1
copy script.fex to /mnt
cp ~/usb1/script.fex /mnt

Then convert it to a bin file.

fex2bin /mnt/script.fex /mnt/script.bin

After that reboot your box.

Now the Ethernet port and the SD Card slot should be working.

6.

Repartition and resize your NAND for system. (8GB version)

sudo nand-part -f a20 /dev/nand 32768 'boot 131072' 'rootfs 14778368'
sudo reboot
sudo resize2fs /dev/nandb
sudo fdisk -l

Check if your system is using whole available space now.

7.

We need to add apt-get sources to our sources.list so we can update the system and install DomotiGa.

cd /etc/apt
sudo nano sources.list

Make sure contents look like this:

deb http://ports.ubuntu.com/ubuntu-ports/ raring universe main   
deb-src http://ports.ubuntu.com/ubuntu-ports/ raring universe main   
# deb http://ports.ubuntu.com/ubuntu-ports/ quantal universe main  
# deb-src http://ports.ubuntu.com/ubuntu-ports/ quantal main universe 
# deb http://ports.ubuntu.com/ubuntu-ports/ precise multiverse main universe restricted 
# deb-src http://ports.ubuntu.com/ubuntu-ports/ precise multiverse main universe restricted 
# deb http://ports.ubuntu.com/ubuntu-ports/ precise-backports universe main multiverse restricted 
# deb http://ports.ubuntu.com/ubuntu-ports/ precise-proposed universe main multiverse restricted 
# deb http://ports.ubuntu.com/ubuntu-ports/ precise-updates universe main multiverse restricted 
# deb http://ports.ubuntu.com/ubuntu-ports/ precise-security universe main multiverse restricted 

deb http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ raring main universe restricted multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-security main universe restricted multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-updates main universe restricted multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-backports main restricted universe multiverse 
deb http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse 
deb-src http://old-releases.ubuntu.com/ubuntu/ raring-proposed main restricted universe multiverse 
deb http://ports.ubuntu.com/ubuntu-ports/ saucy main universe 
deb-src http://ports.ubuntu.com/ubuntu-ports/ saucy main universe 
deb https://domotiga.nl/apt/raspbian/ wheezy main 

Save file, and update system (it will take some time to do upgrade)

sudo apt-get update and apt-get upgrade 
sudo apt-get install ntp

The steps to install DomotiGa are the same for Raspberry and Cubieboard2, you can use packages from the repository https://domotiga.nl/apt/raspbian/


Resources

    Updated by: rdnzl, Updated over 4 years ago
    Access count: 30195 since 2015-03-24

    Attached Files

    Also available in: PDF HTML TXT