How to Create a Custom Android Firmware for CX-01 mini PC

Stock and Custom Firmware Development For the CX-01.
tatubias
Posts: 12
Joined: Mon Oct 29, 2012 11:07 am

How to Create a Custom Android Firmware for CX-01 mini PC

Postby tatubias » Mon Oct 29, 2012 11:21 am

Special thanks to Hairybiker for his scripts also fun for his utilities

1 - Download The ROMs (in the rar are for the 4gb and 8gb device):
Official roms: http://www.pandawillforum.com/soft/ROM%20for%20android%20TV%20CX-01.rar


2 - Download the tccUtils (already compiled)
Linux:
32bits: http://dl.dropbox.com/u/40354951/tccutils.tgz
64bit: https://www.dropbox.com/s/4xea2pclo08ix5o/cx-01%20utils.7z

3 - Download Un Packing / Packing Scripts
Link: http://dl.dropbox.com/u/40354951/tccScripts.tgz


4 - a) if you are running as root copy the tccutils and packing and unpacking scripts into /sbin
b) if you are running as a user copy tccutils and packing and unpacking scripts into ~/bin


5 - un pack the rom ROM for android TV CX-01.rar

You will get 2 directories:
V1.0-4096-8189_en (Directory for 4GB firmware)
CX1-V1.0-4096-8189_en.rom (this is the file we are interested for 4gb version)
lk.rom
NAND Data.fai

V1.0-8192-8189_en (Directory for 8GB firmware)
CX1-V1.0-8192-8189_en.rom (this is the file we are interested for 8gb version)
lk.rom

Note: this example will be with the 4gb file (CX1-V1.0-4096-8189_en.rom ).

Make a directory called ROM
copy CX1-V1.0-4096-8189_en.rom into the ROM directory.
enter to the ROM directory and run:

Code: Select all

sudo ex.sh


This will un pack all the rom and will also unpack the boot.img

Make all the changes you are interested in.

Then run:

Code: Select all

 sudo mkall.sh


This will repack all the system img and the boot image and will provide a final ROM to be flashed into the cx-01 called: CX-01.v0.0.rom

note: if you are packing the 8gb version run the following command.

Code: Select all

 sudo mkall.sh 8



Extras:

Tccutils soruces:http://androtab.info/arm/telechips/customize-firmware/
To be able to compile applications run and install all dependencies: sudo apt-get install gcc libssl-dev git


Un packing Packing Scripts:

Code: Select all

#!/bin/bash
PATH=~/bin:$PATH
tccunpack CX1*en.rom
unpackbootimg -i boot.img
mkdir ramdisk
cd ramdisk
gunzip -cd ../boot.img-ramdisk.gz | cpio -i
cd ..
mkdir system
unyaffs -d system.img
unyaffs system.img system


Make complete Rom

Code: Select all

#!/bin/bash
PATH=~/bin:$PATH
if ( "$1" == "8") then
   page=8192
   step=256
else   
   page=4096   
   step=128
fi

cd system
mkyaffs2image -c $page -s $step . ../system_new.img

cd ..

cd ramdisk
find . | cpio -o -H newc | gzip -9 > ../ramdisk_new.gz
cd ..
mkbootimg --kernel boot.img-zImage --ramdisk ramdisk_new.gz --cmdline "console=null" --base 0x80000000 --pagesize $page -o boot_new.img
tccpack boot_new.img system_new.img recovery.img CX-01.v0.0.rom


This script does only compile the System and build the rom.

Code: Select all

#!/bin/bash
PATH=~/bin:$PATH
if [ "$1" = "8" ]; then
   page=8192
   step=256
else   
   page=4096   
   step=128
fi
echo Page=$page Step=$step
cd system
mkyaffs2image -c $page -s $step . ../system_new.img

cd ..
tccpack boot.img system_new.img recovery.img CX-01.$1v0.0.rom

Return to “Firmware”

Who is online

Users browsing this forum: No registered users and 1 guest