Hi Olimex
Why this thread is locked :
How to Build Android 4.2.2 for A20-OLinuXino-MICRO
https://www.olimex.com/forum/index.php?topic=2475.0
I've try to follow this procedure to build my own custom Android image, I'm facing some problems with it.
I wish to post on this thread and figured out that it is LOCKED ... >:(
Send error message please.
Post your errors here. I've been building the Android OS based on 4.2.2 without any issues so we can try to help you out here now :)
Regards
Dave...
Hi Dave,
It is not at compile time, but at run time that I get the following error, a crash in audio driver :
HELLO! BOOT0 is starting!
boot0 version : 2.0.0�
read dram para.
dram driver version: 1.15
dram size =1024MB
0xfe475f67
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.125] boot1 version : 2.0.0
[ 0.125] script installed early ok
[ 0.126] pmu type = 3
[ 0.230] bat vol = 0 mv
[ 0.243] axi:ahb:apb=4:2:2
[ 0.243] set dcdc2=1400mv, clock=912M successed
[ 0.246] key
[ 0.258] no key found
[ 0.258] flash init start
[ 0.272] flash init finish
[ 0.275] fs init ok
[ 0.276] fattype FAT16
[ 0.276] fs mount ok
[ 0.278] storage_type=1
[ 0.290] 0
[ 0.290] set pc
[ 0.290] usbdc_vol = 4000, usbdc_cur = 0
[ 0.292] usbpc_vol = 4400, usbpc_cur = 0
[ 0.296] init to usb pc
[ 0.299] set pc
[ 0.382] battery enough
[ 0.382] power_start=0x00000001
[ 0.383] key value = 0
[ 0.386] recovery key high 40, low 4
[ 0.410] show pic finish
[ 0.410] load kernel start
[ 0.430] load kernel successed
[ 0.430] start address = 0x4a000000
[ 0.899] power exit detect
U-Boot 2011.09-rc1 (Jul 08 2015 - 20:11:08) Allwinner Technology
CPU: SUNXI Family
Board: SUN7I-EVB
DRAM: 1 GiB
MMC: SUNXI SD/MMC: 0
In: serial
Out: serial
Err: serial
--------fastboot partitions--------
-total partitions:11-
-name- -start- -size-
bootloader : 8000 8000
env : 10000 8000
boot : 18000 8000
system : 20000 100000
data : 120000 100000
misc : 220000 8000
recovery : 228000 10000
cache : 238000 100000
databk : 338000 80000
private : 3b8000 8000
UDISK : 3c0000 3a0000
-----------------------------------
bootcmd set setargs_mmc
Hit any key to stop autoboot: 0
Starting kernel ...
[ 0.783449] something wrong in chip id
[ 1.467759] something wrong in chip id
[ 1.477040] something wrong in chip id
[ 2.696968] init: width = 1024
[ 2.700383] init: height = 600
[ 2.703839] init: s.st_size = 1536000
[ 2.707926] init: logo match failed!fbsize = 2457600
[ 4.249714] init: do_umount: /data
[ 4.529539] init: do_umount: /cache
[ 4.642765] init: dont need format /dev/block/UDISK
[ 4.664894] init: do_umount: /databk
[ 4.773541] init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
[ 5.113205] i2c i2c-1: Invalid 7-bit I2C address 0x00
[ 5.272699] android_usb: already disabled
[ 5.277563] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
[ 5.289425] init: using deprecated syntax for specifying property 'sys.usb.config', use ${name} instead
[ 12.121708] ------------[ cut here ]------------
[ 12.126886] kernel BUG at include/linux/mm.h:403!
[ 12.132136] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[ 12.138647] Modules linked in: cdc_ether rtl8150 mcs7830 qf9700 asix usbnet sunxi_csi0 gt2005 camera videobuf_dma_contig videobuf_core sw_device mali(O) ump(O) hdmi(O) lcd disp nand(O)
[ 12.157092] CPU: 0 Tainted: G O (3.4.39 #1)
[ 12.163133] PC is at snd_pcm_mmap_data_fault+0xb8/0xf8
[ 12.168867] LR is at __do_fault+0x9c/0x468
[ 12.173439] pc : [<c0353c74>] lr : [<c00b8524>] psr: 60000113
[ 12.173445] sp : ee495e00 ip : 00040000 fp : 00000001
[ 12.186256] r10: 00000000 r9 : 00000000 r8 : ef0f93c0
[ 12.192087] r7 : 00000029 r6 : 00000000 r5 : d06c0480 r4 : ee495e28
[ 12.199373] r3 : 00000000 r2 : 00000024 r1 : 00000000 r0 : ef3e7a00
[ 12.206663] Flags: nZCv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
[ 12.214628] Control: 10c5387d Table: 6e51406a DAC: 00000015
[ 12.221040]
[ 12.221043] PC: 0xc0353bf4:
[ 12.225804] 3bf4 e1510003 8a000027 e590309c e5933028 e3530000 0a000002 e12fff33 e1a05000
[ 12.234977] 3c14 ea00000a e59f308c e5925224 e3a02024 e5933000 e0855001 e2855480 e1a03623
[ 12.244137] 3c34 e0635625 e59f3070 e5933000 e0253592 e3550000 0a000015 e5953000 e3130902
[ 12.253304] 3c54 0a000003 e1a00005 ebf5610f e3500000 1a000009 e5953010 e3530000 ca000000
[ 12.262468] 3c74 e7f001f2 e2853010 e1932f9f e2822001 e1831f92 e3310000 1afffffa e584500c
[ 12.271632] 3c94 e3a00000 e8bd8038 e3a00002 e8bd8038 e3a00002 e8bd8038 c070ef74 c0773a40
[ 12.280795] 3cb4 e5913008 e3a0200c e2433008 e0200392 e591301c e59f200c e3a0100d e5933010
[ 12.289962] 3cd4 e2800f41 ea000f0e c073c37c e92d401f e3a02000 e591301c e58d2004 e3a0200c
[ 12.299127]
Does the rest of the system boot ok and come up or does it exit and restart at this point?
Are you sure that it is inside the audio driver itself or not another one that makes calls to it? I recall something similar in my early builds with the camera driver. I don't us it so I removed the init for the gt2500 etc.
Also, I can't remember how I did it now but there is a way to get the exact line of code that the error appears for. There was some kind of tool that would show you this. I'll see if I can dig it out.
Hi Dave,
Sorry for late reply ...
For the rest of the system boot log, there are no much more, after the dump above, it finalize by doing at CPU halt if I understood :
[ 12.785378] [<c0353c74>] (snd_pcm_mmap_data_fault+0xb8/0xf8) from [<c00b8524>] (__do_fault+0x9c/0x468)
[ 12.795778] [<c00b8524>] (__do_fault+0x9c/0x468) from [<c00babc0>] (handle_pte_fault+0x2d8/0xae0)
[ 12.805687] [<c00babc0>] (handle_pte_fault+0x2d8/0xae0) from [<c00bb490>] (handle_mm_fault+0xc8/0xe4)
[ 12.815992] [<c00bb490>] (handle_mm_fault+0xc8/0xe4) from [<c0015820>] (do_page_fault+0x110/0x264)
[ 12.826004] [<c0015820>] (do_page_fault+0x110/0x264) from [<c0008394>] (do_DataAbort+0x34/0x98)
[ 12.835726] [<c0008394>] (do_DataAbort+0x34/0x98) from [<c000d674>] (__dabt_usr+0x34/0x40)
[ 12.844952] Exception stack(0xee613fb0 to 0xee613ff8)
[ 12.850589] 3fa0: 4192f000 4106b3e0 00001000 00000000
[ 12.859723] 3fc0: 4119cf78 00000000 00000000 00001080 00000420 4192f000 00000420 00000000
[ 12.868858] 3fe0: 4105effc 41194d50 4105d473 40105688 20000010 ffffffff
[ 12.876252] Code: 1a000009 e5953010 e3530000 ca000000 (e7f001f2)
[ 12.883730] ---[ end trace f2ef0743768b50e1 ]---
[ 12.888962] Kernel panic - not syncing: Fatal exception
[ 12.894874] CPU1: stopping
[ 12.897926] [<c00142a8>] (unwind_backtrace+0x0/0xe0) from [<c0012818>] (handle_IPI+0xf8/0x1d4)
[ 12.907526] [<c0012818>] (handle_IPI+0xf8/0x1d4) from [<c00084e0>] (gic_handle_irq+0x50/0x58)
[ 12.917032] [<c00084e0>] (gic_handle_irq+0x50/0x58) from [<c000d6bc>] (__irq_usr+0x3c/0x60)
[ 12.926324] Exception stack(0xee66dfb0 to 0xee66dff8)
[ 12.931949] dfa0: 42430ec0 0000002f 00000001 00000001
[ 12.941061] dfc0: beef2824 42430ec0 40beae00 00000001 40bea968 43b1f000 433737c4 42430ec0
[ 12.950163] dfe0: 402cbdac beef26fc 4027f043 4027f088 20000030 ffffffff
[ 12.957529] [hotplug]: cpu(0) try to kill cpu(1)
[ 13.954981] [hotplug]: try to kill cpu:1 failed!
I've also checked in lichee/linux-3.4/.config, and it seems that the SND_PCM driver is built-in, not as module : CONFIG_SND_PCM=y
I will continue digging with the different versions downloaded, but if I remenber, the lichee-v3.0 was doing the same thing.
Is there anyone who have standard Android image for SD working anf shared ?
The Olimex one was thru obsolete torrent, and they didn't answered to my other post ...
What is your configuration?
I can try and build you an image. I can build with the resistive touch for the 7" for example.
PM me your email address and I will send you a link to the image once it's done.
Hi Dave,
Sorry for the delay...
Mainly, I wish to have Android on SDCard, displaying on HDMI with USB Mouse, and DHCP Networking.
If the image becomes successful, without the previous SND_PCM crash, maybe you can also provides me source snapshot.
(This SND_PCM issue is really strange, I have no clues yet :-[)
Thanks in advance !
Your help is really appreciated !