Building Android 4.2.2 from source for A20-OLinuXino-LIME (no NAND)

Started by NK, September 03, 2014, 12:03:28 AM

Previous topic - Next topic

NK

I have successfully setup the environment for compiling Android 4.2.2 from the source for A20-OLinuXino-MICRO. and able to compile both kernel and Android 4.2.2 sources.

I read the blog posts https://www.olimex.com/wiki/A20-OLinuXino-MICRO and http://axonjakarta.wordpress.com/2014/02/14/olimex-a20-android-building-4/

When I try booting from SD card, I get following error in serial debug port:
My sys_config.fex file has storage_type = 1
I still see boot-loader trying to detect NAND. How do I disable this behavior?


Can anyone share working sys_config.fex and sys_partitions.pex files for A20-OLinuXino-LIME (no NAND)?

I have copied image file using dd command :
sudo dd bs=1M if=./lichee/tools/pack/sun7i_android_olinuxino-a20.img of=/dev/sdc1
Is this the correct way to copy img file to SD card?

=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2014.09.02 13:38:13 =~=~=~=~=~=~=~=~=~=~=~=
ELLO! BOOT0 is starting!
boot0 version : 2.0.0
try dram para.
dram driver version: 1.15
dram size =512MB
0xefffffff
super_standby_flag = 0
boot card number =0
sdcard 0 init ok
The size of Boot1 is 0x00048000.
Succeed in loading boot1 from sdmmc flash.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[       0.230] boot1 version : 2.0.0
[       0.230] script installed early ok
[       0.231] pmu type = 3
[       0.335] bat vol = 589 mv
[       0.348] axi:ahb:apb=4:2:2
[       0.348] set dcdc2=1400mv, clock=912M successed
[       0.351] key
[       0.363] no key found
[       0.363] flash init start
[       0.378] flash init finish
[       0.380] fs init ok
[       0.381] fattype FAT16
[       0.381] fs mount ok
[       0.384] storage_type=1
[       0.402] big firmware! here we go !
[       0.402] Sprite start
[       0.403] 0
[       0.407] display init
[       0.496] char init
[       0.499] try gpio config
[       0.499] try codec config
[       0.499] zdisk mount
[       0.502] fattype FAT32
[       0.504] zdisk mount ok
[       0.522] log file name m:\slog2.txt
[       0.637] log file m:\slog2.txt open ok
[       0.637] mbr fetch
[       0.807] NB1 : enter NFB_Init
[       0.807] NB1 : enter phy init
[       0.808] [NAND] nand driver(b) version: 0x0x00000002, 0x0x00000012, data: 0x20130627
[       0.816] NFC Randomizer start.
[       0.819] [SCAN_DBG] Nand flash chip id is:0x0x00000000 0x0x00000000 0x0x00000000 0x0x426fb8d0 0x0x40818b05 0x0x408388c0
[       0.830] [SCAN_ERR] search nand physical architecture parameter failed!
[       0.837] NB1 : nand scan fail
[       0.840] NB1 : phy init fail
[       0.852] update flash env err: flash init
[       0.852] erase flag=0
[       0.862] sprite error: try sdcard failed
[       0.862] sprite update error: fail to scan flash infomation
[       0.948] sprite update error: current card sprite failed
[       1.034] now hold the machine


NK

Quote from: JohnS on September 03, 2014, 12:42:21 AM
May need /dev/sdc

John

Thanks John,
I tried that too. Also used PheonixCard to burn the SD. Still get the same boot-loader error

NK

Finally, I got it working.
Used PheonixCard tool from windows, did the following steps:
1) formatted the card with "write mode" set to "Startup !"
2) used "burn" option with "Startup !" selected to write sun7i_android_olinuxino-a20.img

Now I have a working Android compiled from the sources :)