[Gen9 Android Development] trevd:
EDIT : Possible useful documentation, after a quick goolge into the problem described below

http://www.mjmwired.net/kernel/Documentation/arm/OMAP/DSS

I suppose it might be an idea to RTFM that comes in every kernel tree.... Often forget about it because google's so easy just to type in a search term but hours can be lost!!

Hi Folks,

I'm going to have an hack on this tonight..... There was a time when I was in the club on Saturday's but a quiet night in with linux kernel is how I get my kick now-a-days, :laugh: anyway I digress.

strace at the ready then :D...... Currently on the A101S I've had to disable watchdog_daemon because It could not find the battery path, there may be a slight difference there from the A80's

My surface flinger doesn't want to start because /dev/graphics/fb0 doesn't exist :confused: which is slightly confusing in the least, Is ( should ) this device be created by a kernel level code and setup in [device drivers]/[graphics .. ]/[Framebuffer Devices] or whatever the path is in menuconfig :). From what I understand it is??? I was getting framebuffer and gralloc not a typewriter , which is a message i've seen before when trying to force in drivers of other devices, but I've stripped it all back to just load the android Open GL Drivers and that is what strace currently reveals....

I'll keep hacking on it, maybe something will click in my brain because it's still blowing my mind a bit...... I think I've got kernel fear, I'll get over it though! :good:

---------- Post added at 11:31 PM ---------- Previous post was at 10:49 PM ----------

Hmmm, Well it's pretty self explantory why I've not got an fb device, the question is why ? Highlighted line is missing from my 3.0.31 bring up

--------- beginning of /dev/log/main
I/cat ( 418): <6>[ 0.000000] Initializing cgroup subsys cpu
I/cat ( 418): <5>[ 0.000000] Linux version 3.0.8+ (rd@debian) (gcc version 4.4.1 (GCC) ) #4 SMP PREEMPT Thu Jun 7 16:12:27 CEST 2012
I/cat ( 418): <4>[ 0.000000] CPU: ARMv7 Processor [411fc093] revision 3 (ARMv7), cr=10c5387f
I/cat ( 418): <4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
I/cat ( 418): <4>[ 0.000000] Machine: ARCHOS A101S board
I/cat ( 418): <6>[ 0.000000] fixup_archos: 512M@0x80000000 from bootloader.
I/cat ( 418): <4>[ 0.000000] fixup_archos: [mem=512M init=/linuxrc debug omapdss.debug=0 omapfb.debug=0]
I/cat ( 418): <6>[ 0.000000] Product Name: A101S
I/cat ( 418): <6>[ 0.000000] DDR type elpida
[B][SIZE="4"]I/cat ( 418): <6>[ 0.000000] Reserving 8388608 bytes SDRAM for VRAM[/SIZE][/B]
I/cat ( 418): <4>[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
I/cat ( 418): <6>[ 0.000000] OMAP4430 ES2.3
I/cat ( 418): <6>[ 0.000000] SRAM: Mapped pa 0x40300000 to va 0xfe400000 size: 0xd000
I/cat ( 418): <7>[ 0.000000] On node 0 totalpages: 114432
I/cat ( 418): <7>[ 0.000000] free_area_init_node: node 0, pgdat c07eda40, node_mem_map c0977000
I/cat ( 418): <7>[ 0.000000] Normal zone: 1024 pages used for memmap
I/cat ( 418): <7>[ 0.000000] Normal zone: 0 pages reserved
I/cat ( 418): <7>[ 0.000000] Normal zone: 113408 pages, LIFO batch:31
I/cat ( 418): <6>[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0d7d000 s7072 r8192 d13408 u32768
I/cat ( 418): <7>[ 0.000000] pcpu-alloc: s7072 r8192 d13408 u32768 alloc=8*4096
I/cat ( 418): <7>[ 0.000000] pcpu-alloc: [0] 0 [0] 1
I/cat ( 418): <4>[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 113408
I/cat ( 418): <5>[ 0.000000] Kernel command line: mem=512M init=/linuxrc debug omapdss.debug=0 omapfb.debug=0
I/cat ( 418): <6>[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
I/cat ( 418): <6>[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
I/cat ( 418): <6>[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
I/cat ( 418): <6>[ 0.000000] Memory: 446MB 1MB = 447MB total
I/cat ( 418): <5>[ 0.000000] Memory: 442284k/442284k available, 82004k reserved, 0K highmem
I/cat ( 418): <5>[ 0.000000] Virtual kernel memory layout:
I/cat ( 418): <5>[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
I/cat ( 418): <5>[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
I/cat ( 418): <5>[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
I/cat ( 418): <5>[ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB)
I/cat ( 418): <5>[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
I/cat ( 418): <5>[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
I/cat ( 418): <5>[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
I/cat ( 418): <5>[ 0.000000] .init : 0xc0008000 - 0xc005a000 ( 328 kB)
I/cat ( 418): <5>[ 0.000000] .text : 0xc005a000 - 0xc0778000 (7288 kB)
I/cat ( 418): <5>[ 0.000000] .data : 0xc0778000 - 0xc07ee5a0 ( 474 kB)
I/cat ( 418): <5>[ 0.000000] .bss : 0xc07ee5c4 - 0xc09768c8 (1569 kB)
I/cat ( 418): <6>[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
I/cat ( 418): <6>[ 0.000000] Preemptible hierarchical RCU implementation.

--------- beginning of /dev/log/main
I/cat ( 601): <6>[ 0.000000] Initializing cgroup subsys cpu
I/cat ( 601): <5>[ 0.000000] Linux version 3.0.31+ (mueller@OfficePC) (gcc version 4.7.1 20120531 (prerelease) (Linaro GCC 4.7-2012.06-1~dev) ) #186 SMP PREEMPT Mon Sep 17 21:23:15 CEST 2012
I/cat ( 601): <7>[ 0.000000] CPU: ARMv7 Processor [411fc093] revision 3 (ARMv7), cr=10c5387d
I/cat ( 601): <7>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
I/cat ( 601): <7>[ 0.000000] Machine: ARCHOS A101S board
I/cat ( 601): <6>[ 0.000000] fixup_archos: 512M@0x80000000 from bootloader.
I/cat ( 601): <7>[ 0.000000] fixup_archos: [mem=512M console=ttyO2,115200n8 init=/linuxrc debug omapdss.debug=0 omapfb.debug=0]
I/cat ( 601): <6>[ 0.000000] Product Name: A101S
I/cat ( 601): <3>[ 0.000000] Perform archos reserve...
I/cat ( 601): <3>[ 0.000000] Found 1 memory banks with total size: 536870912
I/cat ( 601): <3>[ 0.000000] Perform omap_ion_init()
I/cat ( 601): <6>[ 0.000000] omap4_total_ram_size = 0x20000000
I/cat ( 601): <6>[ 0.000000] omap4_smc_size = 0x300000
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_secure_input_size = 0x0
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_secure_output_wfdhdcp_size = 0x0
I/cat ( 601): <6>[ 0.000000] omap4_ducati_heap_size = 0x5300000
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_tiler_mem_size = 0x0
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_nonsec_tiler_mem_size = 0x0
I/cat ( 601): <6>[ 0.000000] omap4_smc_addr = 0x9fd00000
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_secure_input_addr = 0x9fd00000
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_secure_output_wfdhdcp_addr = 0x9fd00000
I/cat ( 601): <6>[ 0.000000] omap4_ducati_heap_addr = 0x9aa00000
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_tiler_mem_addr = 0x9aa00000
I/cat ( 601): <6>[ 0.000000] omap4_ion_heap_nonsec_tiler_mem_addr = 0x9aa00000
I/cat ( 601): <6>[ 0.000000] omap_ion_init: secure_input id=2 [9fd00000-9fd00000] size=0
I/cat ( 601): <6>[ 0.000000] omap_ion_init: secure_output_wfdhdcp id=5 [9fd00000-9fd00000] size=0
I/cat ( 601): <6>[ 0.000000] omap_ion_init: tiler id=1 [9aa00000-9aa00000] size=0
I/cat ( 601): <6>[ 0.000000] omap_ion_init: nonsecure_tiler id=3 [9aa00000-9aa00000] size=0
I/cat ( 601): <6>[ 0.000000] omap_ion_init: system id=0 [0-0] size=0
I/cat ( 601): <6>[ 0.000000] omap_ion_init: tiler_reservation id=4 [0-0] size=0
I/cat ( 601): <6>[ 0.000000] DDR type elpida
I/cat ( 601): <3>[ 0.000000] omap_ipu_set_static_mempool(start=0x9aa00000, size=0x5300000)
I/cat ( 601): <7>[ 0.000000] Memory policy: ECC disabled, Data cache writealloc
I/cat ( 601): <6>[ 0.000000] OMAP4430 ES2.3
I/cat ( 601): <6>[ 0.000000] SRAM: Mapped pa 0x40300000 to va 0xfe400000 size: 0xd000
I/cat ( 601): <7>[ 0.000000] On node 0 totalpages: 108544
I/cat ( 601): <7>[ 0.000000] free_area_init_node: node 0, pgdat c085aea0, node_mem_map c0b71000
I/cat ( 601): <7>[ 0.000000] Normal zone: 1024 pages used for memmap
I/cat ( 601): <7>[ 0.000000] Normal zone: 0 pages reserved
I/cat ( 601): <7>[ 0.000000] Normal zone: 107520 pages, LIFO batch:31
I/cat ( 601): <6>[ 0.000000] PERCPU: Embedded 7 pages/cpu @c0f77000 s7328 r8192 d13152 u32768
I/cat ( 601): <7>[ 0.000000] pcpu-alloc: s7328 r8192 d13152 u32768 alloc=8*4096
I/cat ( 601): <7>[ 0.000000] pcpu-alloc: [0] 0 [0] 1
I/cat ( 601): <7>[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 107520
I/cat ( 601): <5>[ 0.000000] Kernel command line: mem=512M console=ttyO2,115200n8 init=/linuxrc debug omapdss.debug=0 omapfb.debug=0
I/cat ( 601): <6>[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
I/cat ( 601): <6>[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
I/cat ( 601): <6>[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
I/cat ( 601): <6>[ 0.000000] Memory: 256MB 168MB = 424MB total
I/cat ( 601): <5>[ 0.000000] Memory: 416684k/416684k available, 107604k reserved, 0K highmem
I/cat ( 601): <5>[ 0.000000] Virtual kernel memory layout:
I/cat ( 601): <5>[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
I/cat ( 601): <5>[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
I/cat ( 601): <5>[ 0.000000] DMA : 0xffc00000 - 0xffe00000 ( 2 MB)
I/cat ( 601): <5>[ 0.000000] vmalloc : 0xe0800000 - 0xf8000000 ( 376 MB)
I/cat ( 601): <5>[ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB)
I/cat ( 601): <5>[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
I/cat ( 601): <5>[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
I/cat ( 601): <5>[ 0.000000] .init : 0xc0008000 - 0xc007c000 ( 464 kB)
I/cat ( 601): <5>[ 0.000000] .text : 0xc007c000 - 0xc082d000 (7876 kB)
I/cat ( 601): <5>[ 0.000000] .data : 0xc082e000 - 0xc085ccc0 ( 188 kB)
I/cat ( 601): <5>[ 0.000000] .bss : 0xc09f5e60 - 0xc0b70c48 (1516 kB)
I/cat ( 601): <6>[ 0.000000] SLUB: Genslabs=13, HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
I/cat ( 601): <6>[ 0.000000] Preemptible hierarchical RCU implementation.
I/cat ( 601): <6>[ 0.000000] NR_IRQS:410
I/cat ( 601): <4>[ 0.000000] omap_hwmod: dpll_mpu_m2_ck: missing clockdomain for dpll_mpu_m2_ck.
I/cat ( 601): <6>[ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
I/cat ( 601): <6>[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
I/cat ( 601): <6>[ 0.000061] Calibrating delay loop... 1990.38 BogoMIPS (lpj=7774208)
I/cat ( 601): <6>[ 0.070312] pid_max: default: 32768 minimum: 301
I/cat ( 601): <6>[ 0.070709] Mount-cache hash table entries: 512
I/cat ( 601): <6>[ 0.071807] Initializing cgroup subsys debug
I/cat ( 601): <6>[ 0.071838] Initializing cgroup subsys cpuacct
I/cat ( 601): <6>[ 0.071899] Initializing cgroup subsys freezer
I/cat ( 601): <6>[ 0.071990] CPU: Testing write buffer coherency: ok

---------- Post added 30th September 2012 at 12:26 AM ---------- Previous post was 29th September 2012 at 11:31 PM ----------

More brain dump..... could well be usefulhttp://omappedia.org/wiki/Android_How-tos#KERNEL_CONFIG

http://omappedia.org/wiki/Android_How-tos#KERNEL_CONFIG