Welcome to the Pandawill Forum | Community for China Products Discussion.
Page 10 of 10 FirstFirst ... 8910
Results 91 to 97 of 97
  1. #91
    @FUN now tring to build an 8Gb image
    root@duo:~/cx-01/ROM/8k# ~/bin/mkbootimg --kernel boot.img-zImage --ramdisk ramdisk_new.gz --cmdline "console=null" --base 0x80000000 --pagesize 8192 -o boot_new.img
    error: unsupported page size 8192
    root@duo:~/cx-01/ROM/8k# cat boot.img-pagesize
    8192
    So the incoming rom has a 8K page size for the boot image, but the mkbootimage doesn't support it.
    Last edited by Hairybiker; 09-05-2012 at 11:09 AM.

  2. #92
    My bad I was using an old mkbootimage for some reason.
    recompiled and it built the rom fine.
    Last edited by Hairybiker; 09-05-2012 at 11:19 AM.

  3. #93
    Quote Originally Posted by Hairybiker View Post
    My bad I was using an old mkbootimage for some reason.
    recompiled and it built the rom fine.
    good to know hairbiker you solve the issue. we are near to get a rom soooooon.

  4. #94
    i have updated the tutorial how to create a custom firmware. this was tested by our self and does work perfect. check the first post.

  5. #95
    How to pack tccutils.

    Compiling applications needed:

    based on debian linux: sudo apt-get install gcc libssl-dev git

    Code:
    Compiling the tools
    
    $ mkdir rom
    $ cd rom
    $ git clone https://github.com/naobsd/tccutils.git
    $ cd tccutils/
    $ cc -o tccpack tccpack.c
    $ cc -o tccunpack tccunpack.c
    $ cd ../
    
    $ git clone -b ics-telechips-naobsd https://github.com/naobsd/cm_system_core.git
    $ cd cm_system_core/mkbootimg/
    $ cc -o mkbootimg mkbootimg.c -lcrypto
    $ cc -o unpackbootimg unpackbootimg.c
    $ cd ../../
    
    $ git clone -b ics-telechips-naobsd https://github.com/naobsd/cm_external_yaffs2.git
    $ cd cm_external_yaffs2/yaffs2/utils/
    $ make mkyaffs2image
    $ cd ../../../
    
    $ git clone https://github.com/ehlers/unyaffs.git
    $ cd unyaffs/
    $ make
    $ cd ../
    
    Copy compiled binaries to somewhere you like.

    Code:
    using tools
    
    MTD image
    
    $ tccunpack MTD.img
    (boot.img, system.img, and recovery.img will be extracted)
    $ tccpack boot.img system.img recovery.img MTD_new.img
    
    boot.img/recovery.img
    
    $ unpackbootimg -i boot.img
    $ mkdir ramdisk
    $ cd ramdisk
    $ gzip -cd ../boot.img-ramdisk.gz | cpio -i
    (modify files)
    $ find * | cpio -o -H newc | gzip -9 > ../boot.img-ramdisk_new.gz
    $ cd ../
    $ mkbootimg --kernel boot.img-zImage --ramdisk boot.img-ramdisk_new.gz --cmdline `boot.img-cmdline` --base 0x`boot.img-base` --pagesize `boot.img-pagesize` -o boot_new.img
    
    system.img
    
    $ unyaffs -d system.img
    (check page(chunk) size and spare size)
    $ sudo unyaffs system.img system
    $ cd system
    (modify files)
    $ cd ../
    $ cd system
    $ sudo mkyaffs2image -c (PAGESIZE, e.g. 4096(not 4)) -s (SPARESIZE, e.g. 128) . ../system_new.img
    
    Example for 4gb: sudo mkyaffs2image -c 4096 -s 128 . ../system_new.img
    Example for 8gb: sudo mkyaffs2image -c 8192 -s 256 . ../system_new.img


    source: http://androtab.info/arm/telechips/customize-firmware/
    Last edited by tatubias; 09-06-2012 at 01:33 PM.

  6. #96
    reupload Un Packing / Packing Scripts, please

  7. #97
    The full scripts are shown below.
    Don't know why the file is missing.
    ex.sh
    Code:
    #!/bin/bash
    PATH=~/bin:$PATH # delete if you have your tcc* etc files in a different location
    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
    mk.sh
    Code:
    #!/bin/bash
    PATH=~/bin:$PATH # delete if you have your tcc* etc files in a different location
    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
    use mk.sh 8 to make an 8Gb rom defaults to a 4Gb one.
    I use ~/bin to hold my compiled files, like tccpack etc then the "PATH=~/bin:$PATH " adds the ~/bin to the path while the script is running, you can delete it if you have the files already in the path or ~/bin in you path already.


 
Page 10 of 10 FirstFirst ... 8910

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •