Olimex Support Forum

OLinuXino Android / Linux boards and System On Modules => A13 => Topic started by: jnrguerreiro on October 13, 2016, 03:07:10 PM

Title: Error Compiling Android Image to A13-SOM-512
Post by: jnrguerreiro on October 13, 2016, 03:07:10 PM
Into a few days I've started a journey... Try to Compile a kernel and an Android
Image , to run on A13.  Following these steps : https://www.olimex.com/forum/index.php?topic=628.msg2624#msg2624 (https://www.olimex.com/forum/index.php?topic=628.msg2624#msg2624).

After getting a lot of problems while try to compile, the image finally works on A13-Olinuxino-Rev.F https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino/open-source-hardware (https://www.olimex.com/Products/OLinuXino/A13/A13-OLinuXino/open-source-hardware) board.
Now I need to compile a image to run on A13-SOM-512 https://www.olimex.com/Products/SOM/A13/A13-SOM-512/ (https://www.olimex.com/Products/SOM/A13/A13-SOM-512/).

Could someone help me with this? The image that was running on A13-OLinuXino, don't work as well on A13-SOM-512.
This is the log that I get through the Serial while starting the A13-SOm-512.

dram size =512
0xea0020b2,0xe3a01060
super_standby_flag = 0
HELLO! BOOT0 is starting!
boot0 version : 1.6.0
Succeed in opening nand flash.
Succeed in reading Boot1 file head.
The size of Boot1 is 0x00064000.
The file stored in 0X00000000 of block 2 is perfect.
Check is correct.
Ready to disable icache.
Succeed in loading Boot1.
Jump to Boot1.
[       0.149] boot1 version : 1.7.0
[       0.149] set dcdc2 failed, set default clock 384M
[       0.151] key
[       0.164] no key found
[       0.164] flash init start
[       0.211] flash init finish
[       0.212] fs init ok
[       0.213] fattype FAT16
[       0.213] fs mount ok
[       0.219] script finish
[       0.220] power finish
[       0.221] storage_type=0
[       0.234] BootMain start [       0.234] 0 [       0.268] init to usb pc [       0.299] power_start=0x00000000 [       0.299] startup status = -1 [       0.311]
try to power off

Can this problem be solved by changing the settings in the sys_config1.fex file ?
Could someone Help me With This ?
Title: Re: Error Compiling Android Image to A13-SOM-512
Post by: JohnS on October 13, 2016, 05:58:38 PM
Can you not extract everything from the Olimex image(s)?

Also, did you make whatever changes are needed for the RAM as in their wiki?

John
Title: Re: Error Compiling Android Image to A13-SOM-512
Post by: jnrguerreiro on October 25, 2016, 05:23:28 PM
Hi JohnS.
    I don't understand as well what you said about changes that are needed to RAM. Could you post the link where is this information for me ? Thanks a lot. =)
Title: Re: Error Compiling Android Image to A13-SOM-512
Post by: JohnS on October 26, 2016, 07:50:47 PM
Check if the RAM changed and adjust as needed.

John
Title: Re: Error Compiling Android Image to A13-SOM-512
Post by: jnrguerreiro on October 31, 2016, 07:36:51 PM
I did the changes about the RAM in the .fex file and packed another image, but doesn't work. The .fex I have is working in another image, but when i try to compile a kernel with android image, the SOM doesn't boot.

Details about .fex:

[dram_para]
+dram_baseaddr = 0x40000000
+dram_clk = 408
+dram_type = 3
+dram_rank_num = 1
+dram_chip_density = 4096
+dram_io_width = 16
+dram_bus_width = 16
+dram_cas = 9
+dram_zq = 0x7b
+dram_odt_en = 0
+dram_size = 512
+dram_tpr0 = 0x42d899b7
+dram_tpr1 = 0xa090
+dram_tpr2 = 0x22a00
+dram_tpr3 = 0x0
+dram_tpr4 = 0x0
+dram_tpr5 = 0x0
+dram_emr1 = 0x0
+dram_emr2 = 0x10
+dram_emr3 = 0x0

Is there any setting that has to be changed in the kernel compilation, or only the RAM?
Title: Re: Error Compiling Android Image to A13-SOM-512
Post by: LubOlimex on November 16, 2016, 08:35:24 AM
There is a step-by-step guide for building the official image for A13-SOM here: https://www.olimex.com/wiki/A13-SOM-building-latest-Debian

Best regards,
Lub/OLIMEX