This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM335x memory configuration on 256DDR3 custom design

Other Parts Discussed in Thread: AM3354, DA8XX

Good day,

Please help; we've designed a custom board with:

AM3354

256MB DDR3

2GB eMMC

No NAND chip

We've gone through all the guides and configured the DDR3 timings and other registers as per the instructions using CCS6 - all seems good.

We get zero memory failures in testing

We got fastboot working very well - thanks for the great dev notes!

The eMMC chip is partitioned as per the guide.

The kernel seems to be loading fine; but Android always aborts on a memory related paging type error - please see below.

Our previous development system was running 512MB RAM as booted of SD card - this worked very well.

I changed the build.prop to have 256MB memory; I also tried 192MB.

My guess is that I need to configure the memory mapping - but I do not know where to do this.

Please assist.

Please see the full log below:

Kernel:

U-Boot 2013.01.01-bbb-fb-gb554b8e-dirty (Aug 28 2015 - 20:46:42)

I2C:   ready
DRAM:  256 MiB
WARNING: Caches not enabled
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Using default environment

musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Host mode controller at 47401000 using PIO, IRQ 0
musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
musb-hdrc: MHDRC RTL version 2.0
musb-hdrc: setup fifo_mode 4
musb-hdrc: 28/31 max ep, 16384/16384 memory
USB Peripheral mode controller at 47401800 using PIO, IRQ 0
Net:   <ethaddr> not set. Validating first E-fuse MAC
PHY reset timed out
cpsw
Hit any key to stop autoboot:  0
mmc_send_cmd : timeout: No status update
mmc0(part 0) is current device
mmc_send_cmd : timeout: No status update
SD/MMC found on device 0
** Unrecognized filesystem type **
mmc0(part 0) is current device
mmc_send_cmd : timeout: No status update
Loading efi partition table:
     256     128K spl
     512     512K bootloader
    1536     128K misc
    2048       8M recovery
   18432       8M boot
   34816     512M system
 1083392     256M cache
 1607680    1047M userdata
 3751936       0K media
Loaded eMMC partition table
SELECT MMC DEV: 0
mmc0(part 0) is current device
mmc_send_cmd : timeout: No status update
   Image magic:   ANDROID!x}?
   kernel_size:   0x3f7d78
   kernel_addr:   0x80008000
   rdisk_size:   0x2cee8
   rdisk_addr:   0x81000000
   second_size:   0x0
   second_addr:   0x80f00000
   tags_addr:   0x80000100
   page_size:   0x800
   name:      
   cmdline:   0x8fb97530
   id[0]:   0x0
   id[1]:   0x0
   id[2]:   0x0
   id[3]:   0x0
   id[4]:   0x0
   id[5]:   0x0
   id[6]:   0x0
   id[7]:   0x0

Header: Kernel Addr:0x80008000
Header: Kernel Size:0x3f7d78
Header: Ramdisk Addr:0x81000000
Header: Ramdisk Size:0x2cee8

ramdisk sector count:359

ramdisk sector count:359kernel   @ 80008000 (4160888)
ramdisk  @ 81000000 (184040)

Starting kernel ...


Cleanup before kernel ...


Starting kernel, theKernel ...

Uncompressing Linux... done, booting the kernel.
ting file 'enable'
FS-Cache: Loaded
musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
musb-hdrc musb-hdrc.0: dma type: dma-cppi41
MUSB0 controller's USBSS revision = 4ea20800
musb0: Enabled SW babble control
musb-hdrc musb-hdrc.0: USB OTG mode controller at 9083c000 using PIO, IRQ 18
musb-hdrc musb-hdrc.1: dma type: dma-cppi41
MUSB1 controller's USBSS revision = 4ea20800
musb1: Enabled SW babble control
musb-hdrc musb-hdrc.1: MUSB HDRC host driver
musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: MUSB HDRC host driver
usb usb1: Manufacturer: Linux 3.2.0-00244-gcf99001-dirty musb-hcd
usb usb1: SerialNumber: musb-hdrc.1
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
musb-hdrc musb-hdrc.1: USB Host mode controller at 9083e800 using PIO, IRQ 19
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 176K
NetWinder Floating Point Emulator V0.97 (double precision)
cpuidle-am33xx cpuidle-am33xx.0: failed to register driver
ashmem: initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
fuse init (API version 7.17)
msgmni has been set to 488
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
da8xx_lcdc da8xx_lcdc.0: GLCD: Found nxp-1280x720@60 panel
XDOz - da8xx: lcd_reset
XDOz - da8xx: in lcd_disable_raster
XDOz - da8xx: lcd_cfg_vertical_sync
XDOz - da8xx: lcd_cfg_horizontal_sync
XDOz - da8xx: LCD_VERSION 2
XDOz - da8xx: in lcd_disable_raster
XDOz - da8xx: if (stat & LCD_PL_LOAD_DONE)
omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
console [ttyO0] enabled
omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
brd: module loaded
loop: module loaded
LinMux:  *** Enter Cinterion Wireless Modules Serial Multiplex Driver ***
LinMux:  Kernel-Version: 3.2.0
LinMux:  LinMux-Version: 3.00
CAN device driver interface
CAN bus driver for Bosch D_CAN controller 1.0
PPP generic driver version 2.4.2
PPP BSD Compression module registered
PPP Deflate Compression module registered
usbcore: registered new interface driver r871x_usb_drv
ieee80211 phy0: Failed to select rate control algorithm
usbcore: registered new interface driver cdc_subset
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
usbcore: registered new interface driver cdc_acm
cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
 gadget: Mass Storage Function, version: 2009/09/11
 gadget: Number of LUNs=1
 lun0: LUN: removable file: (no medium)
 gadget: Mass Storage Gadget, version: 2009/09/11
 gadget: userspace failed to provide iSerialNumber
 gadget: g_mass_storage ready
musb-hdrc musb-hdrc.0: MUSB HDRC host driver
musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: MUSB HDRC host driver
usb usb2: Manufacturer: Linux 3.2.0-00244-gcf99001-dirty musb-hcd
usb usb2: SerialNumber: musb-hdrc.0
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
mousedev: PS/2 mouse device common for all mice
using rtc device, am33xx-rtc, for alarms
omap_rtc am33xx-rtc: rtc core: registered am33xx-rtc as rtc0
i2c /dev entries driver
Linux video capture interface: v2.00
usbcore: registered new interface driver uvcvideo
USB Video Class driver (1.1.1)
OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
Bluetooth: Generic Bluetooth USB driver ver 0.6
usbcore: registered new interface driver btusb
_regulator_get: deviceless supply vdd_mpu not found, using dummy regulator
logger: created 256K log 'log_main'
logger: created 256K log 'log_events'
logger: created 256K log 'log_radio'
logger: created 256K log 'log_system'
tiadc tiadc: attached adc driver
ALSA device list:
  No soundcards found.
oprofile: hardware counters not available
oprofile: using timer interrupt.
Netfilter messages via NETLINK v0.30.
nf_conntrack version 0.5.0 (3906 buckets, 15624 max)
ctnetlink v0.93: registering with nfnetlink.
NF_TPROXY: Transparent proxy support initialized, version 4.1.0
NF_TPROXY: Copyright (c) 2006-2007 BalaBit IT Ltd.
xt_time: kernel timezone is -0000
ip_tables: (C) 2000-2006 Netfilter Core Team
arp_tables: (C) 2002 David S. Miller
TCP cubic registered
NET: Registered protocol family 10
Mobile IPv6
ip6_tables: (C) 2000-2006 Netfilter Core Team
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
NET: Registered protocol family 15
can: controller area network core (rev 20090105 abi 8)
NET: Registered protocol family 29
can: raw protocol (rev 20090105)
can: broadcast manager protocol (rev 20090105 t)
lib80211: common routines for IEEE802.11 drivers
Registering the dns_resolver key type
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
ThumbEE CPU extension supported.
mux: Failed to setup hwmod io irq -22
Power Management for AM33XX family
Trying to load am335x-pm-firmware.bin (60 secs timeout)
Copied the M3 firmware to UMEM
Cortex M3 Firmware Version = 0x181

 The clk freq is 100000000

 period_ticks is 200
 period_ticks is 200
 Prescaler value is 1

 Prescaler value is 1
 duty ticks is 192
clock: disabling unused clocks to save power
<<-GTP-FUNC->> Func:goodix_ts_init@Line:2805
<<-GTP-INFO->> GTP driver installing...
<<-GTP-INFO->> GTP Driver Version: V2.1<2014/06/13>
<<-GTP-INFO->> GTP Driver Built@18:37:46, Aug 28 2015
<<-GTP-INFO->> GTP I2C Address: 0x5d
<<-GTP-INFO->> GTP I2C Name: Goodix-TS
<<-GTP-INFO->> GTP Device Model: 9110
<<-GTP-INFO->> GTP SWAP XY: 1
<<-GTP-INFO->> GTP MIRROR XY: 1


loaded GT911 driver - goodix_init_platform_hw

mmc0: new high speed MMC card at address 0001
mmcblk0: mmc0:0001 MMC02G 1.78 GiB
mmcblk0boot0: mmc0:0001 MMC02G partition 1 1.00 MiB
mmcblk0boot1: mmc0:0001 MMC02G partition 2 1.00 MiB
Alternate GPT is invalid, using primary GPT.
 mmcblk0: p1 p2 p3 p4 p5 p6 p7 p8
 mmcblk0boot1: unknown partition table
 mmcblk0boot0: unknown partition table
<<-GTP-ERROR->> I2C Read: 0x8047, 1 bytes failed, errcode: -121! Process reset.
<<-GTP-ERROR->> GTP i2c test failed time 1.
usb 2-1: new high-speed USB device number 2 using musb-hdrc
<<-GTP-INFO->> IC Version: 911_1060
<<-GTP-INFO->> CTP_CONFIG_GROUP1 used, config length: 186
<<-GTP-INFO->> Ic fixed config with config version(90, 0x5A)
<<-GTP-INFO->> X_MAX = 0, Y_MAX = 0, TRIGGER = 0x00
input: Goodix Capacitive TouchScreen as /devices/virtual/input/input0
<<-GTP-ERROR->> Request (7) IRQ failed!ERRNO:-1.
<<-GTP-INFO->> GTP works in polling mode.
i2c-core: driver [Goodix-TS] using legacy suspend method
i2c-core: driver [Goodix-TS] using legacy resume method
omap_rtc am33xx-rtc: setting system clock to 2000-01-01 00:00:01 UTC (946684801)
Freeing init memory: 344K
init (1): /proc/1/oom_adj is deprecated, please use /proc/1/oom_score_adj instead.
usb 2-1: New USB device found, idVendor=0424, idProduct=2514
usb 2-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
init: cannot open '/initlogo.rle'
EXT4-fs (mmcblk0p6): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (mmcblk0p7): recovery complete
EXT4-fs (mmcblk0p7): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=panic
EXT4-fs (mmcblk0p8): recovery complete
EXT4-fs (mmcblk0p8): mounted filesystem with ordered data mode. Opts: nomblk_io_submit,errors=panic

Then the error is always something like:

Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel paging request at virtual address 0000b8fb
Unable to handle kernel NULL pointer dereference at virtual address 000000a4
pgd = 80004000
[000000a4] *pgd=00000000
Internal error: Oops: 5 [#1]
Modules linked in:
CPU: 0    Not tainted  (3.2.0-00244-gcf99001-dirty #39)
PC is at do_page_fault+0x68/0x23c
LR is at do_translation_fault+0xa8/0xb0
pc : [<805baaa4>]    lr : [<805bad20>]    psr: 20000193
sp : ffd7e038  ip : ffd7e070  fp : ffd7e06c
r10: 00000000  r9 : e24cb038  r8 : 8f3fccc0
r7 : 00000005  r6 : 000000a4  r5 : 807c8650  r4 : ffd7e138
r3 : ffd7e000  r2 : ffd7e038  r1 : ffd7e038  r0 : 000000a4
Flags: nzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8e05c019  DAC: 00000015

PC: 0x805baa24:
aa24  e348205b e581300c e581e008 e3a03000 ebfffe2a e89da800 e1a0c00d e92ddff0
aa44  e24cb004 e24dd00c e92d4000 e8bd4000 e5923040 e1a04002 e1a06000 e313000f
aa64  e1a07001 0a000008 e59f2200 e5922000 e3520000 0a000004 e1a00004 ebfffbab
aa84  e3500000 1a000014 e5943040 e1a0100d e3c12d7f e3130080 e3c2303f e593a00c
aaa4  e59a50a4 1a000000 f1080080 e5933004 e3d32101 03a03000 13a03001 e3550000
aac4  03833001 e3530000 0a000006 e1a00004 ebe980b2 e3500000 0a00005d e3a00000
aae4  e24bd028 e89daff0 e2859034 e1a00009 ebeac492 e3500000 1a000004 e5943040
ab04  e313000f 1a00002b e1a00009 ebfff72b e1a00005 e1a01006 ebec295b e2508000

LR: 0x805baca0:
aca0  e5922040 e312000f 0a00000c e59f1070 e1a02aa0 e7e06a50 e1a00182 e5915024
acc0  ee127f10 e0851000 e3c77dff e3c7703f e7916106 e2477400 e3560000 1a000005
ace0  e1a00003 e1a01004 e1a0200c ebe9808b e3a00000 e89da8f0 e7953182 e0870000
ad00  e7873182 e5913004 e5803004 ee070f3a f57ff04f e3a00000 e89da8f0 ebffff46
ad20  e89da8f0 807f4430 e1a0c00d e92dd9f8 e24cb004 e92d4000 e8bd4000 e590c000
ad40  e1a04003 e1a08001 e3530000 135c0000 e1a07002 e59b6004 03a00000 13a00001
ad60  089da9f8 e59c3000 e1a0000c e1a01008 e1a02007 e59c5004 e12fff33 e3560000
ad80  15963000 e1a0c005 12833001 15863000 e3100902 189da9f8 e2544001 03a03000

SP: 0xffd7dfb8:
dfb8  000000a4 00000005 8f3fccc0 00000001 00000000 ffd7e01c 805baaa4 20000193
dfd8  ffffffff ffd7e024 ffd7e06c ffd7dff0 805b9118 80008360 000000a4 ffd7e038
dff8  ffd7e038 ffd7e000 ffd7e138 807c8650 000000a4 00000005 8f3fccc0 e24cb038
e018  00000000 ffd7e06c ffd7e070 ffd7e038 805bad20 805baaa4 20000193 ffffffff
e038  80008398 805bac84 00000000 00000005 807c8650 000000a4 ffd7e138 8f3fccc0
e058  e24cb038 00000000 ffd7e08c ffd7e070 805bad20 805baa48 00000005 807c8650
e078  000000a4 ffd7e138 ffd7e134 ffd7e090 80008398 805bac84 00000000 00000000
e098  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

IP: 0xffd7dff0:
dff0  000000a4 ffd7e038 ffd7e038 ffd7e000 ffd7e138 807c8650 000000a4 00000005
e010  8f3fccc0 e24cb038 00000000 ffd7e06c ffd7e070 ffd7e038 805bad20 805baaa4
e030  20000193 ffffffff 80008398 805bac84 00000000 00000005 807c8650 000000a4
e050  ffd7e138 8f3fccc0 e24cb038 00000000 ffd7e08c ffd7e070 805bad20 805baa48
e070  00000005 807c8650 000000a4 ffd7e138 ffd7e134 ffd7e090 80008398 805bac84
e090  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e0b0  00000000 00000000 00000000 00000000 00000000 00000000 805baaa4 20000193
e0d0  ffffffff ffd7e11c ffd7e164 ffd7e0e8 805b9118 80008360 000000a4 ffd7e130

FP: 0xffd7dfec:
dfec  80008360 000000a4 ffd7e038 ffd7e038 ffd7e000 ffd7e138 807c8650 000000a4
e00c  00000005 8f3fccc0 e24cb038 00000000 ffd7e06c ffd7e070 ffd7e038 805bad20
e02c  805baaa4 20000193 ffffffff 80008398 805bac84 00000000 00000005 807c8650
e04c  000000a4 ffd7e138 8f3fccc0 e24cb038 00000000 ffd7e08c ffd7e070 805bad20
e06c  805baa48 00000005 807c8650 000000a4 ffd7e138 ffd7e134 ffd7e090 80008398
e08c  805bac84 00000000 00000000 00000000 00000000 00000000 00000000 00000000
e0ac  00000000 00000000 00000000 00000000 00000000 00000000 00000000 805baaa4
e0cc  20000193 ffffffff ffd7e11c ffd7e164 ffd7e0e8 805b9118 80008360 000000a4

R1: 0xffd7dfb8:
dfb8  000000a4 00000005 8f3fccc0 00000001 00000000 ffd7e01c 805baaa4 20000193
dfd8  ffffffff ffd7e024 ffd7e06c ffd7dff0 805b9118 80008360 000000a4 ffd7e038
dff8  ffd7e038 ffd7e000 ffd7e138 807c8650 000000a4 00000005 8f3fccc0 e24cb038
e018  00000000 ffd7e06c ffd7e070 ffd7e038 805bad20 805baaa4 20000193 ffffffff
e038  80008398 805bac84 00000000 00000005 807c8650 000000a4 ffd7e138 8f3fccc0
e058  e24cb038 00000000 ffd7e08c ffd7e070 805bad20 805baa48 00000005 807c8650
e078  000000a4 ffd7e138 ffd7e134 ffd7e090 80008398 805bac84 00000000 00000000
e098  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R2: 0xffd7dfb8:
dfb8  000000a4 00000005 8f3fccc0 00000001 00000000 ffd7e01c 805baaa4 20000193
dfd8  ffffffff ffd7e024 ffd7e06c ffd7dff0 805b9118 80008360 000000a4 ffd7e038
dff8  ffd7e038 ffd7e000 ffd7e138 807c8650 000000a4 00000005 8f3fccc0 e24cb038
e018  00000000 ffd7e06c ffd7e070 ffd7e038 805bad20 805baaa4 20000193 ffffffff
e038  80008398 805bac84 00000000 00000005 807c8650 000000a4 ffd7e138 8f3fccc0
e058  e24cb038 00000000 ffd7e08c ffd7e070 805bad20 805baa48 00000005 807c8650
e078  000000a4 ffd7e138 ffd7e134 ffd7e090 80008398 805bac84 00000000 00000000
e098  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

R3: 0xffd7df80:
df80  805baaa4 20000193 ffffffff ffd7dfd4 ffd7e01c ffd7dfa0 805b9118 80008360
dfa0  000000a4 ffd7dfe8 ffd7c028 ffd7c000 ffd7e0e8 807c8650 000000a4 00000005
dfc0  8f3fccc0 00000001 00000000 ffd7e01c 805baaa4 20000193 ffffffff ffd7e024
dfe0  ffd7e06c ffd7dff0 805b9118 80008360 000000a4 ffd7e038 ffd7e038 ffd7e000
e000  ffd7e138 807c8650 000000a4 00000005 8f3fccc0 e24cb038 00000000 ffd7e06c
e020  ffd7e070 ffd7e038 805bad20 805baaa4 20000193 ffffffff 80008398 805bac84
e040  00000000 00000005 807c8650 000000a4 ffd7e138 8f3fccc0 e24cb038 00000000
e060  ffd7e08c ffd7e070 805bad20 805baa48 00000005 807c8650 000000a4 ffd7e138

R4: 0xffd7e0b8:
e0b8  00000000 00000000 00000000 00000000 805baaa4 20000193 ffffffff ffd7e11c
e0d8  ffd7e164 ffd7e0e8 805b9118 80008360 000000a4 ffd7e130 ffd7e030 ffd7e000
e0f8  ffd7e230 807c8650 000000a4 00000005 8f3fccc0 00000001 00000000 ffd7e164
e118  805baaa4 20000193 ffffffff ffd7e16c ffd7e1b4 ffd7e138 805b9118 80008360
e138  000000a4 ffd7e180 ffd7e000 ffd7e000 ffd7e280 807c8650 000000a4 00000005
e158  8f3fccc0 e24cb038 00000000 ffd7e1b4 ffd7e1b8 ffd7e180 805bad20 805baaa4
e178  20000193 ffffffff 80008398 805bac84 00000000 00000005 807c8650 000000a4
e198  ffd7e280 8f3fccc0 e24cb038 00000000 ffd7e1d4 ffd7e1b8 805bad20 805baa48

R5: 0x807c85d0:
85d0  00000000 00000000 00000000 00000000 8001a0ec 00000000 00000000 ff800000
85f0  8f246a40 8f246a00 ff800000 ffe00000 8001addc 0000000b 00000000 806bc8a8
8610  8001cda4 00000007 00030001 806bc8bc 8001addc 00000009 00000000 806bc8d0
8630  8001addc 0000000b 00030001 806bc828 805bac78 0000000b 00030001 806bc80c
8650  805bac78 0000000b 00030001 806bc900 8001addc 0000000b 00030001 806bc828
8670  805baa3c 0000000b 00030001 806bc91c 8001addc 00000007 00000000 806bc934
8690  8001addc 0000000b 00030002 806bc954 8001addc 00000007 00000000 806bc934
86b0  8001addc 0000000b 00030002 806bc96c 8001addc 00000007 00000000 806bc980

R8: 0x8f3fcc40:
cc40  0000000e 000003ef 00000017 00000000 00000019 7e9d4ca9 0000001f 7e9d4fed
cc60  0000000f 7e9d4cb9 00000000 00000000 00000000 00000000 00000000 00000000
cc80  00000000 00000000 00000000 807f5954 00000001 0000011c 00000000 00000000
cca0  00000000 00000000 000000cd 00000000 00000000 00000000 00000000 ffcfa3fd
ccc0  8e064d30 8e064eac 8e064ee8 8001be90 800c558c 2aaaaaaa 7f000000 00000000
cce0  2ab65000 8e05c000 00000001 00000002 00000015 ffffffff 8f3fccf8 8f3fccf8
cd00  8f3fcd00 8f3fcd00 0000002b 000000dc 000000e3 00000000 00000000 000000aa
cd20  00000090 00000022 00000000 00000000 00000003 2aabe000 2aae4d00 2aae5fd0

R9: 0xe24cafb8:
afb8  ******** ******** ******** ******** ******** ******** ******** ********
afd8  ******** ******** ******** ******** ******** ******** ******** ********
aff8  ******** ******** ******** ******** ******** ******** ******** ********
b018  ******** ******** ******** ******** ******** ******** ******** ********
b038  ******** ******** ******** ******** ******** ******** ******** ********
b058  ******** ******** ******** ******** ******** ******** ******** ********
b078  ******** ******** ******** ******** ******** ******** ******** ********
b098  ******** ******** ******** ******** ******** ******** ******** ********
Process  (pid: -2637528, stack limit = 0xffd7c2f0)
Stack: (0xffd7e038 to 0x807ca650)
Backtrace: invalid frame pointer 0xffd7e06c
Code: e3c12d7f e3130080 e3c2303f e593a00c (e59a50a4)
omap_hsmmc omap_hsmmc.0: IRQ Status is 2
omap_hsmmc omap_hsmmc.0: mmc0: CMD12, argument 0x00000000
Unable to handle kernel NULL pointer dereference at virtual address 000000b8
pgd = 80004000
[000000b8] *pgd=00000000
Internal error: Oops: 5 [#2]
Modules linked in:
CPU: 0    Tainted: G      D       (3.2.0-00244-gcf99001-dirty #39)
PC is at account_system_time+0x80/0x150
LR is at account_process_tick+0x44/0x88
pc : [<8004524c>]    lr : [<800453dc>]    psr: 40000193
sp : ffd7dc30  ip : 00000000  fp : ffd7dc4c
r10: 807e58c8  r9 : 80075b94  r8 : 807e58c8
r7 : 805bad21  r6 : 00000005  r5 : 00000000  r4 : 00000001
r3 : 00000006  r2 : 00000001  r1 : 807e3330  r0 : ffd7c018
Flags: nZcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment user
Control: 10c5387d  Table: 8e05c019  DAC: 00000015

PC: 0x800451cc:
51cc  e1a0c00d e92dd8f0 e24cb004 e92d4000 e8bd4000 e590c00c e1a0400d e31c0010
51ec  e3c4cd7f e3ccc03f 0a000004 e59c4004 e3c4433f e3c440ff e1540001 0a00001e
520c  e59c4004 e3a0c000 e340c1ff e004c00c e15c0001 159f10e8 0a000012 e590c1e0
522c  e3a05000 e5907140 e1a04002 e5906148 e0877002 e5807140 e0863003 e5803148
524c  e59c30b8 e1530005 159c30ac 10832002 158c20ac e1c120d0 e0922004 e0a33005
526c  e1c120f0 e89da8f0 e59f1098 e3140c01 e281c008 11a0100c eaffffe7 e59011e0
528c  e3a07000 e590c144 e1a06002 e590413c e08c3003 e5803144 e0844002 e580413c
52ac  e59130b8 e1530007 159130a8 10833002 158130a8 e590101c e590314c e2411078

LR: 0x8004535c:
535c  e92d4000 e8bd4000 e59f1028 e3a05000 e1a04000 e5913408 e1530005 c3000448
537c  d3a00d11 e18120d0 e0922004 e0a33005 e18120f0 e89da830 807e2f08 e1a0c00d
539c  e92dd800 e24cb004 e92d4000 e8bd4000 e3510000 e1a03000 1a000014 e59f205c
53bc  e59223e8 e1520000 0a000005 e3a02001 e1a00003 e3a01801 e1a03002 ebffff7b
53dc  e89da800 e1a0100d e3c12d7f e3c2203f e5922004 e3c2233f e3c220ff e3520801
53fc  1afffff1 e3a00001 ebffffd1 e89da800 e3a01001 e1a02001 ebffff4c e89da800
541c  807e2f08 e1a0c00d e92dd800 e24cb004 e92d4000 e8bd4000 e3021f08 e348107e
543c  e3a0ce45 e18120dc e0922000 e2a33000 e18120fc e89da800 e1a0c00d e92dd800

SP: 0xffd7dbb0:
dbb0  80071160 80044ec4 8083f900 807e345c 0a083657 00000000 8004524c 40000193
dbd0  ffffffff ffd7dc1c ffd7dc4c ffd7dbe8 805b9118 80008360 ffd7c018 807e3330
dbf0  00000001 00000006 00000001 00000000 00000005 805bad21 807e58c8 80075b94
dc10  807e58c8 ffd7dc4c 00000000 ffd7dc30 800453dc 8004524c 40000193 ffffffff
dc30  ffd7c018 00000000 807e5d90 ffd7de08 ffd7dc5c ffd7dc50 800453dc 800451d8

Thank you

Louis

  • Update...

    The kernel is booting very well.

    I've disabled zygote and other services to allow me to test.

    I have no NAND on the custom board, only eMMC.

    Please see:
    130|root@android:/system/bin # cat /proc/meminfo
    MemTotal: 250760 kB
    MemFree: 235568 kB
    Buffers: 996 kB
    Cached: 3432 kB
    SwapCached: 0 kB
    Active: 1764 kB
    Inactive: 3360 kB
    Active(anon): 696 kB
    Inactive(anon): 56 kB
    Active(file): 1068 kB
    Inactive(file): 3304 kB
    Unevictable: 0 kB
    Mlocked: 0 kB
    SwapTotal: 0 kB
    SwapFree: 0 kB
    Dirty: 0 kB
    Writeback: 0 kB
    AnonPages: 684 kB
    Mapped: 1044 kB
    Shmem: 68 kB
    Slab: 4604 kB
    SReclaimable: 1632 kB
    SUnreclaim: 2972 kB
    KernelStack: 400 kB
    PageTables: 84 kB
    NFS_Unstable: 0 kB
    Bounce: 0 kB
    WritebackTmp: 0 kB
    CommitLimit: 125380 kB
    Committed_AS: 2612 kB
    VmallocTotal: 761856 kB
    VmallocUsed: 25320 kB
    VmallocChunk: 651260 kB
    root@android:/system/bin #

    VMalloc is set to 761MB; but there is no swap active.

    Is this related to my memory errors?

    I created a swap file; but I'm not able to enable it on Android - how do you typically do this on Android?
    There is no swapon command in the default TI busybox build - must I add it and use swapon?
  • Update ...

    Starting Zygote manually gives the error below.

    The last segment of the error might be pointing to the cause - any suggestions on how to progress this?


    root@android:/ # start zygote
    root@android:/ # D/AndroidRuntime( 86):
    D/AndroidRuntime( 86): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
    D/AndroidRuntime( 86): CheckJNI is ON
    D/dalvikvm( 86): Trying to load lib libjavacore.so 0x0
    D/dalvikvm( 86): Added shared lib libjavacore.so 0x0
    D/dalvikvm( 86): Trying to load lib libnativehelper.so 0x0
    D/dalvikvm( 86): Added shared lib libnativehelper.so 0x0
    F/libc ( 86): Fatal signal 11 (SIGSEGV) at 0x6a806800 (code=1), thread 86 (zygote)
    I/DEBUG ( 63): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG ( 63): Build fingerprint: 'Android/am335xevm/am335xevm:4.2.2/JDQ39/eng.louis.20150830.231017:eng/test-keys'
    I/DEBUG ( 63): Revision: '0'
    I/DEBUG ( 63): pid: 86, tid: 86, name: zygote >>> zygote <<<
    I/DEBUG ( 63): signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 6a806800
    I/DEBUG ( 63): r0 415ad003 r1 4157d168 r2 00000053 r3 00000044
    I/DEBUG ( 63): r4 418bff18 r5 415ad003 r6 418c0018 r7 00000004
    I/DEBUG ( 63): r8 415b5780 r9 415ad003 sl 415b5780 fp 00000000
    I/DEBUG ( 63): ip 40858968 sp bed7a3e8 lr 40866e5d pc 6a806800 cpsr 80000010
    I/DEBUG ( 63): d0 726168432f676e61 d1 1110020f0e0d0c63
    I/DEBUG ( 63): d2 2e322e343a6d7674 d3 2f393351444a2f65
    I/DEBUG ( 63): d4 69756f6c2e676e65 d5 3830353130322e73
    I/DEBUG ( 63): d6 31303133322e3033 d7 65742f676e653a37
    I/DEBUG ( 63): d8 0000000000000000 d9 0000000000000000
    I/DEBUG ( 63): d10 0000000000000000 d11 0000000000000000
    I/DEBUG ( 63): d12 0000000000000000 d13 0000000000000000
    I/DEBUG ( 63): d14 0000000000000000 d15 0000000000000000
    I/DEBUG ( 63): d16 726168432f676e61 d17 1110020f0e0d0c63
    I/DEBUG ( 63): d18 2e322e343a6d7674 d19 2f393351444a2f65
    I/DEBUG ( 63): d20 69756f6c2e676e65 d21 3830353130322e73
    I/DEBUG ( 63): d22 31303133322e3033 d23 65742f676e653a37
    I/DEBUG ( 63): d24 0000000000000000 d25 0000000000000000
    I/DEBUG ( 63): d26 0000000000000000 d27 0000000000000000
    I/DEBUG ( 63): d28 0000000000000000 d29 0000000000000000
    I/DEBUG ( 63): d30 0000000000000000 d31 0000000000000000
    I/DEBUG ( 63): scr 60000010
    I/DEBUG ( 63):
    I/DEBUG ( 63): backtrace:
    I/DEBUG ( 63): #00 pc 6a806800 <unknown>
    I/DEBUG ( 63): #01 pc 0006ae59 /system/lib/libdvm.so (dvmFindStaticField(ClassObject const*, char const*, char const*)+22)
    I/DEBUG ( 63): #02 pc 0006ae91 /system/lib/libdvm.so (dvmFindStaticFieldHier(ClassObject const*, char const*, char const*)+20)
    I/DEBUG ( 63): #03 pc 0006b497 /system/lib/libdvm.so (dvmResolveStaticField+66)
    I/DEBUG ( 63): #04 pc 00022ab4 /system/lib/libdvm.so (dvmAsmSisterStart+1716)
    I/DEBUG ( 63): #05 pc 0002b54c /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    I/DEBUG ( 63): #06 pc 0005f9d9 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
    I/DEBUG ( 63): #07 pc 0005fa03 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
    I/DEBUG ( 63): #08 pc 0006a9a9 /system/lib/libdvm.so (dvmInitClass+1032)
    I/DEBUG ( 63): #09 pc 0006b72b /system/lib/libdvm.so (dvmResolveMethod+246)
    I/DEBUG ( 63): #10 pc 00022cf4 /system/lib/libdvm.so (dvmAsmSisterStart+2292)
    I/DEBUG ( 63): #11 pc 0002b54c /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    I/DEBUG ( 63): #12 pc 0005f9d9 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
    I/DEBUG ( 63): #13 pc 0005fa03 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
    I/DEBUG ( 63): #14 pc 0006a9a9 /system/lib/libdvm.so (dvmInitClass+1032)
    I/DEBUG ( 63): #15 pc 0006b4b5 /system/lib/libdvm.so (dvmResolveStaticField+96)
    I/DEBUG ( 63): #16 pc 00022ab4 /system/lib/libdvm.so (dvmAsmSisterStart+1716)
    I/DEBUG ( 63): #17 pc 0002b54c /system/lib/libdvm.so (dvmInterpret(Thread*, Method const*, JValue*)+184)
    I/DEBUG ( 63): #18 pc 0005f9d9 /system/lib/libdvm.so (dvmCallMethodV(Thread*, Method const*, Object*, bool, JValue*, std::__va_list)+272)
    I/DEBUG ( 63): #19 pc 0005fa03 /system/lib/libdvm.so (dvmCallMethod(Thread*, Method const*, Object*, JValue*, ...)+20)
    I/DEBUG ( 63): #20 pc 0006a9a9 /system/lib/libdvm.so (dvmInitClass+1032)
    I/DEBUG ( 63): #21 pc 0004b125 /system/lib/libdvm.so
    I/DEBUG ( 63): #22 pc 0003df4b /system/lib/libdvm.so
    I/DEBUG ( 63): #23 pc 000660e9 /system/lib/libandroid_runtime.so (register_android_os_Binder(_JNIEnv*)+624)
    I/DEBUG ( 63): #24 pc 00047377 /system/lib/libandroid_runtime.so (android::AndroidRuntime::startReg(_JNIEnv*)+34)
    I/DEBUG ( 63): #25 pc 00047475 /system/lib/libandroid_runtime.so (android::AndroidRuntime::start(char const*, char const*)+200)
    I/DEBUG ( 63): #26 pc 00000db7 /system/bin/app_process
    I/DEBUG ( 63): #27 pc 000126f7 /system/lib/libc.so (__libc_init+38)
    I/DEBUG ( 63): #28 pc 00000ae8 /system/bin/app_process
    I/DEBUG ( 63):
    I/DEBUG ( 63): stack:
    I/DEBUG ( 63): bed7a3a8 00000001
    I/DEBUG ( 63): bed7a3ac 418bff18 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3b0 400ec010
    I/DEBUG ( 63): bed7a3b4 40866a49 /system/lib/libdvm.so (dvmInitClass+1192)
    I/DEBUG ( 63): bed7a3b8 418ba008 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3bc 4086bfb7 /system/lib/libdvm.so (mspace_malloc+2778)
    I/DEBUG ( 63): bed7a3c0 00000000
    I/DEBUG ( 63): bed7a3c4 418ba008 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3c8 0000000c
    I/DEBUG ( 63): bed7a3cc 0000000c
    I/DEBUG ( 63): bed7a3d0 418de018 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3d4 418de018 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3d8 0000000c
    I/DEBUG ( 63): bed7a3dc 0000000c
    I/DEBUG ( 63): bed7a3e0 df0027ad
    I/DEBUG ( 63): bed7a3e4 00000000
    I/DEBUG ( 63): #00 bed7a3e8 418bff18 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): ........ ........
    I/DEBUG ( 63): #01 bed7a3e8 418bff18 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3ec 00000469
    I/DEBUG ( 63): bed7a3f0 413bbcb4 /system/framework/core.odex
    I/DEBUG ( 63): bed7a3f4 418bff18 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a3f8 400eced0
    I/DEBUG ( 63): bed7a3fc 40866e95 /system/lib/libdvm.so (dvmFindStaticFieldHier(ClassObject const*, char const*, char const*)+24)
    I/DEBUG ( 63): #02 bed7a400 40e22000 /dev/ashmem/dalvik-aux-structure (deleted)
    I/DEBUG ( 63): bed7a404 00000469
    I/DEBUG ( 63): bed7a408 413bbcb4 /system/framework/core.odex
    I/DEBUG ( 63): bed7a40c 418bff18 /dev/ashmem/dalvik-heap (deleted)
    I/DEBUG ( 63): bed7a410 400eced0
    I/DEBUG ( 63): bed7a414 415ad003 /system/framework/core.odex
    I/DEBUG ( 63): bed7a418 40e54074 /dev/ashmem/dalvik-aux-structure (deleted)
    I/DEBUG ( 63): bed7a41c 4086749b /system/lib/libdvm.so[ 25.039703] binder: 91:91 refcount change on invalid ref 0
    (dvmResolveStat[ 25.046447] binder: 91:91 refcount change on invalid ref 0
    icField+70)
    I/D[ 25.053588] binder: 91:91 transaction failed 29189, size 128-4
    EBUG ( 63):
    I/DEBUG ( 63): memory near r0:
    I/DEBUG ( 63): 415acfe0 4c41565f 00534555 414d5318 4e5f4c4c
    I/DEBUG ( 63): 415acff0 454e4e4f 49544147 565f4556 45554c41
    I/DEBUG ( 63): 415ad000 530c0053 4c4c414d 4c41565f 00534555
    I/DEBUG ( 63): 415ad010 414d5305 05004b53 646f4e53 53140065
    I/DEBUG ( 63): 415ad020 454b434f 54535f54 53555441 4f4c435f
    I/DEBUG ( 63): 415ad030 00444553 434f5317 5f54454b 54415453
    I/DEBUG ( 63): 415ad040 435f5355 454e4e4f 44455443 4f531500
    I/DEBUG ( 63): 415ad050 54454b43 4154535f 5f535554 444e4550
    I/DEBUG ( 63): 415ad060 00474e49 434f5319 5f54454b 54415453
    I/DEBUG ( 63): 415ad070 555f5355 4e4f434e 5443454e 1b004445
    I/DEBUG ( 63): 415ad080 4b434f53 535f5445 55544154 4e555f53
    I/DEBUG ( 63): 415ad090 54494e49 494c4149 0044455a 434f5305
    I/DEBUG ( 63): 415ad0a0 1700534b 4b434f53 6f632053 63656e6e
    I/DEBUG ( 63): 415ad0b0 6e6f6974 69616620 0064656c 434f530d
    I/DEBUG ( 63): 415ad0c0 565f534b 49535245 0a004e4f 4b434f53
    I/DEBUG ( 63): 415ad0d0 5247445f 08004d41 4b434f53 5741525f
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near r1:
    I/DEBUG ( 63): 4157d148 72614263 72656972 76616a2e 44010061
    I/DEBUG ( 63): 4157d158 41440c00 494c474e 4b5f474e 10005945
    I/DEBUG ( 63): 4157d168 48534144 4e55505f 41555443 4e4f4954
    I/DEBUG ( 63): 4157d178 41440400 08004154 41544144 4b4e494c
    I/DEBUG ( 63): 4157d188 41442400 59544154 41464550 524f5443
    I/DEBUG ( 63): 4157d198 4d495f59 4d454c50 41544e45 4e4f4954
    I/DEBUG ( 63): 4157d1a8 414c435f 18005353 41544144 45505954
    I/DEBUG ( 63): 4157d1b8 54434146 5f59524f 504f5250 59545245
    I/DEBUG ( 63): 4157d1c8 41440400 08004554 45544144 454d4954
    I/DEBUG ( 63): 4157d1d8 41440a00 465f4554 444c4549 41440400
    I/DEBUG ( 63): 4157d1e8 0b005359 53594144 4645425f 0045524f
    I/DEBUG ( 63): 4157d1f8 5941440c 5f464f5f 544e4f4d 440b0048
    I/DEBUG ( 63): 4157d208 4f5f5941 45575f46 11004b45 5f594144
    I/DEBUG ( 63): 4157d218 575f464f 5f4b4545 4c454946 44140044
    I/DEBUG ( 63): 4157d228 4f5f5941 45575f46 495f4b45 4f4d5f4e
    I/DEBUG ( 63): 4157d238 0048544e 5941441a 5f464f5f 4b454557
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near r4:
    I/DEBUG ( 63): 418bfef8 418bfe10 415dbfd3 415858f0 0000001a
    I/DEBUG ( 63): 418bff08 00000000 00000000 00000000 0000070b
    I/DEBUG ( 63): 418bff18 418ba1e8 00000000 00000000 00000000
    I/DEBUG ( 63): 418bff28 00000000 00000000 4158896e 00000000
    I/DEBUG ( 63): 418bff38 00030011 50000074 40e22000 00000006
    I/DEBUG ( 63): 418bff48 00000000 00000001 0000000c 00000000
    I/DEBUG ( 63): 418bff58 00000000 00000000 418ba890 00000000
    I/DEBUG ( 63): 418bff68 00000000 00000000 00000002 518cdd58
    I/DEBUG ( 63): 418bff78 0000006b 518cdd80 00000006 518cf4f0
    I/DEBUG ( 63): 418bff88 0000000e 518cf648 00000002 518cf690
    I/DEBUG ( 63): 418bff98 00000001 518cf6a8 00000001 00000000
    I/DEBUG ( 63): 418bffa8 518cdd68 00000000 4157bda5 00000044
    I/DEBUG ( 63): 418bffb8 418bff18 4157ac0d 41579098 00000019
    I/DEBUG ( 63): 418bffc8 00000008 415c0231 418bff18 4157acf8
    I/DEBUG ( 63): 418bffd8 41579098 00000019 00000017 415c0231
    I/DEBUG ( 63): 418bffe8 418bff18 4157ad5f 41579098 00000019
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near r5:
    I/DEBUG ( 63): 415acfe0 4c41565f 00534555 414d5318 4e5f4c4c
    I/DEBUG ( 63): 415acff0 454e4e4f 49544147 565f4556 45554c41
    I/DEBUG ( 63): 415ad000 530c0053 4c4c414d 4c41565f 00534555
    I/DEBUG ( 63): 415ad010 414d5305 05004b53 646f4e53 53140065
    I/DEBUG ( 63): 415ad020 454b434f 54535f54 53555441 4f4c435f
    I/DEBUG ( 63): 415ad030 00444553 434f5317 5f54454b 54415453
    I/DEBUG ( 63): 415ad040 435f5355 454e4e4f 44455443 4f531500
    I/DEBUG ( 63): 415ad050 54454b43 4154535f 5f535554 444e4550
    I/DEBUG ( 63): 415ad060 00474e49 434f5319 5f54454b 54415453
    I/DEBUG ( 63): 415ad070 555f5355 4e4f434e 5443454e 1b004445
    I/DEBUG ( 63): 415ad080 4b434f53 535f5445 55544154 4e555f53
    I/DEBUG ( 63): 415ad090 54494e49 494c4149 0044455a 434f5305
    I/DEBUG ( 63): 415ad0a0 1700534b 4b434f53 6f632053 63656e6e
    I/DEBUG ( 63): 415ad0b0 6e6f6974 69616620 0064656c 434f530d
    I/DEBUG ( 63): 415ad0c0 565f534b 49535245 0a004e4f 4b434f53
    I/DEBUG ( 63): 415ad0d0 5247445f 08004d41 4b434f53 5741525f
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near r6:
    I/DEBUG ( 63): 418bfff8 0000000f 415c0231 418bff18 4157afc1
    I/DEBUG ( 63): 418c0008 41579098 00000019 0000001a 415c0231
    I/DEBUG ( 63): 418c0018 418bff18 4157d168 41579098 00000019
    I/DEBUG ( 63): 418c0028 00000014 415c0231 418bff18 4157d344
    I/DEBUG ( 63): 418c0038 41579098 00000019 00000009 415c0231
    I/DEBUG ( 63): 418c0048 418bff18 4157dcf4 415b54f5 0000001a
    I/DEBUG ( 63): 418c0058 418dd7c0 415c0231 418bff18 4157dd04
    I/DEBUG ( 63): 418c0068 41579098 00000019 00000006 415c0231
    I/DEBUG ( 63): 418c0078 418bff18 4157dd22 41579098 00000019
    I/DEBUG ( 63): 418c0088 00000009 415c0231 418bff18 4157dd43
    I/DEBUG ( 63): 418c0098 41579098 00000019 00000007 415c0231
    I/DEBUG ( 63): 418c00a8 418bff18 4157dd6b 41579098 00000019
    I/DEBUG ( 63): 418c00b8 00000003 415c0231 418bff18 4157dd8b
    I/DEBUG ( 63): 418c00c8 41579098 00000019 00000004 415c0231
    I/DEBUG ( 63): 418c00d8 418bff18 4157ddb5 41579098 00000019
    I/DEBUG ( 63): 418c00e8 00000005 415c0231 418bff18 4157dde0
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near r8:
    I/DEBUG ( 63): 415b5760 616c2f61 432f676e 61726168 72657463
    I/DEBUG ( 63): 415b5770 696e5524 65646f63 636f6c42 16003b6b
    I/DEBUG ( 63): 415b5780 616a4c5b 6c2f6176 2f676e61 72616843
    I/DEBUG ( 63): 415b5790 65746361 12003b72 616a4c5b 6c2f6176
    I/DEBUG ( 63): 415b57a0 2f676e61 73616c43 15003b73 616a4c5b
    I/DEBUG ( 63): 415b57b0 6c2f6176 2f676e61 73616c43 3e2a3c73
    I/DEBUG ( 63): 415b57c0 5b11003b 76616a4c 616c2f61 452f676e
    I/DEBUG ( 63): 415b57d0 3b6d756e 4c5b1400 6176616a 6e616c2f
    I/DEBUG ( 63): 415b57e0 6e492f67 65676574 11003b72 616a4c5b
    I/DEBUG ( 63): 415b57f0 6c2f6176 2f676e61 676e6f4c 5b13003b
    I/DEBUG ( 63): 415b5800 76616a4c 616c2f61 4f2f676e 63656a62
    I/DEBUG ( 63): 415b5810 14003b74 616a4c5b 6c2f6176 2f676e61
    I/DEBUG ( 63): 415b5820 6b636150 3b656761 4c5b1500 6176616a
    I/DEBUG ( 63): 415b5830 6e616c2f 75522f67 62616e6e 003b656c
    I/DEBUG ( 63): 415b5840 6a4c5b12 2f617661 676e616c 6f68532f
    I/DEBUG ( 63): 415b5850 003b7472 6a4c5b1e 2f617661 676e616c
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near r9:
    I/DEBUG ( 63): 415acfe0 4c41565f 00534555 414d5318 4e5f4c4c
    I/DEBUG ( 63): 415acff0 454e4e4f 49544147 565f4556 45554c41
    I/DEBUG ( 63): 415ad000 530c0053 4c4c414d 4c41565f 00534555
    I/DEBUG ( 63): 415ad010 414d5305 05004b53 646f4e53 53140065
    I/DEBUG ( 63): 415ad020 454b434f 54535f54 53555441 4f4c435f
    I/DEBUG ( 63): 415ad030 00444553 434f5317 5f54454b 54415453
    I/DEBUG ( 63): 415ad040 435f5355 454e4e4f 44455443 4f531500
    I/DEBUG ( 63): 415ad050 54454b43 4154535f 5f535554 444e4550
    I/DEBUG ( 63): 415ad060 00474e49 434f5319 5f54454b 54415453
    I/DEBUG ( 63): 415ad070 555f5355 4e4f434e 5443454e 1b004445
    I/DEBUG ( 63): 415ad080 4b434f53 535f5445 55544154 4e555f53
    I/DEBUG ( 63): 415ad090 54494e49 494c4149 0044455a 434f5305
    I/DEBUG ( 63): 415ad0a0 1700534b 4b434f53 6f632053 63656e6e
    I/DEBUG ( 63): 415ad0b0 6e6f6974 69616620 0064656c 434f530d
    I/DEBUG ( 63): 415ad0c0 565f534b 49535245 0a004e4f 4b434f53
    I/DEBUG ( 63): 415ad0d0 5247445f 08004d41 4b434f53 5741525f
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near sl:
    I/DEBUG ( 63): 415b5760 616c2f61 432f676e 61726168 72657463
    I/DEBUG ( 63): 415b5770 696e5524 65646f63 636f6c42 16003b6b
    I/DEBUG ( 63): 415b5780 616a4c5b 6c2f6176 2f676e61 72616843
    I/DEBUG ( 63): 415b5790 65746361 12003b72 616a4c5b 6c2f6176
    I/DEBUG ( 63): 415b57a0 2f676e61 73616c43 15003b73 616a4c5b
    I/DEBUG ( 63): 415b57b0 6c2f6176 2f676e61 73616c43 3e2a3c73
    I/DEBUG ( 63): 415b57c0 5b11003b 76616a4c 616c2f61 452f676e
    I/DEBUG ( 63): 415b57d0 3b6d756e 4c5b1400 6176616a 6e616c2f
    I/DEBUG ( 63): 415b57e0 6e492f67 65676574 11003b72 616a4c5b
    I/DEBUG ( 63): 415b57f0 6c2f6176 2f676e61 676e6f4c 5b13003b
    I/DEBUG ( 63): 415b5800 76616a4c 616c2f61 4f2f676e 63656a62
    I/DEBUG ( 63): 415b5810 14003b74 616a4c5b 6c2f6176 2f676e61
    I/DEBUG ( 63): 415b5820 6b636150 3b656761 4c5b1500 6176616a
    I/DEBUG ( 63): 415b5830 6e616c2f 75522f67 62616e6e 003b656c
    I/DEBUG ( 63): 415b5840 6a4c5b12 2f617661 676e616c 6f68532f
    I/DEBUG ( 63): 415b5850 003b7472 6a4c5b1e 2f617661 676e616c
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near ip:
    I/DEBUG ( 63): 40858948 0004d1c2 4c05b510 6824447c 03b0f8d4
    I/DEBUG ( 63): 40858958 ef9af7c0 f8c42300 bd1033b0 0004d1a4
    I/DEBUG ( 63): 40858968 6a806800 b90b7f03 4770800a b9c6f7e7
    I/DEBUG ( 63): 40858978 bfde2aff f023880b 431a03ff 0212dd02
    I/DEBUG ( 63): 40858988 02fff042 f7ffb292 0000bfeb 41f3e92d
    I/DEBUG ( 63): 40858998 f8d04607 460d8028 f8d84614 f853300c
    I/DEBUG ( 63): 408589a8 2e006021 f8d8d131 68c10000 1025f851
    I/DEBUG ( 63): 408589b8 fedaf7f9 b12b7803 b91a7842 f00b4618
    I/DEBUG ( 63): 408589c8 e002fe13 f00d6cf9 4606fcf9 b19cb9c8
    I/DEBUG ( 63): 408589d8 f928f7f6 e0006c45 46284605 fc92f7e7
    I/DEBUG ( 63): 408589e8 d1f92800 49216828 44796980 e81ef7c1
    I/DEBUG ( 63): 408589f8 b1002308 60232302 f914f7f6 fc29f7e7
    I/DEBUG ( 63): 40858a08 f8d8e030 f843300c 6a310025 d50c020b
    I/DEBUG ( 63): 40858a18 20044917 44794a17 447a69b3 ef46f7c0
    I/DEBUG ( 63): 40858a28 2602b1fc 26006026 4638e01c f7ff4631
    I/DEBUG ( 63): 40858a38 4638ff17 f00a4631 4605ff21 f7ff4630
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory near sp:
    I/DEBUG ( 63): bed7a3c8 0000000c 0000000c 418de018 418de018
    I/DEBUG ( 63): bed7a3d8 0000000c 0000000c df0027ad 00000000
    I/DEBUG ( 63): bed7a3e8 418bff18 00000469 413bbcb4 418bff18
    I/DEBUG ( 63): bed7a3f8 400eced0 40866e95 40e22000 00000469
    I/DEBUG ( 63): bed7a408 413bbcb4 418bff18 400eced0 415ad003
    I/DEBUG ( 63): bed7a418 40e54074 4086749b 00000080 4142dab4
    I/DEBUG ( 63): bed7a428 40e21e4c 400ec010 00000162 4081a400
    I/DEBUG ( 63): bed7a438 00000000 4081eab8 401be201 400ec010
    I/DEBUG ( 63): bed7a448 408a5c98 518cdd80 fffffe6c bed7a474
    I/DEBUG ( 63): bed7a458 bed7a578 00000000 00000000 40827550
    I/DEBUG ( 63): bed7a468 6d612f6d 78353333 3a6d7665 52f9b6b0
    I/DEBUG ( 63): bed7a478 40e21e4c 518d0f40 40e22000 00000031
    I/DEBUG ( 63): bed7a488 b6b4e730 bed7a620 00000000 bed7a654
    I/DEBUG ( 63): bed7a498 00000000 00000000 00000000 00000000
    I/DEBUG ( 63): bed7a4a8 00000000 00000000 00000000 00000000
    I/DEBUG ( 63): bed7a4b8 00000000 00000000 00000000 00000000
    I/DEBUG ( 63):
    I/DEBUG ( 63): code around pc:
    I/DEBUG ( 63): 6a8067e0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a8067f0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806800 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806810 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806820 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806830 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806840 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806850 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806860 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806870 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806880 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a806890 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a8068a0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a8068b0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a8068c0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63): 6a8068d0 ffffffff ffffffff ffffffff ffffffff
    I/DEBUG ( 63):
    I/DEBUG ( 63): code around lr:
    I/DEBUG ( 63): 40866e3c d1f62c00 e92dbd70 460441f0 4690460d
    I/DEBUG ( 63): 40866e4c 06a0f100 e00b2700 68714628 edecf7b2
    I/DEBUG ( 63): 40866e5c 4640b920 f7b268b1 b130ede8 36183701
    I/DEBUG ( 63): 40866e6c 309cf8d4 dbef429f 46302600 81f0e8bd
    I/DEBUG ( 63): 40866e7c 47f0e92d 46894604 e0004692 4620462c
    I/DEBUG ( 63): 40866e8c 46524649 ffd7f7ff b9c04607 462e6ca5
    I/DEBUG ( 63): 40866e9c 6faeb105 08c6ea4f 6fe3e00a 46524649
    I/DEBUG ( 63): 40866eac 0008f853 0808f108 ffc5f7ff 3601b930
    I/DEBUG ( 63): 40866ebc 42866fa0 2d00dbf1 e000d1e0 46384607
    I/DEBUG ( 63): 40866ecc 87f0e8bd 47f0e92d 46884604 e0004692
    I/DEBUG ( 63): 40866edc 46204634 46524641 ffadf7ff b9f84605
    I/DEBUG ( 63): 40866eec 46414620 f7ff4652 4605ff7b 6ca6b9c0
    I/DEBUG ( 63): 40866efc b1064637 ea4f6fb7 e00a09c7 46416fe3
    I/DEBUG ( 63): 40866f0c f8534652 f1090009 f7ff0908 b930ff94
    I/DEBUG ( 63): 40866f1c 6fa03701 dbf14287 d1d92e00 4605e000
    I/DEBUG ( 63): 40866f2c e8bd4628 b50787f0 9200460b 22002101
    I/DEBUG ( 63):
    I/DEBUG ( 63): memory map around fault addr 6a806800:
    I/DEBUG ( 63): 5463b000-5473a000
    I/DEBUG ( 63): (no map for address)
    I/DEBUG ( 63): bed5a000-bed7b000 [stack]
    I/Netd ( 92): Netd 1.0 starting
    W/InterfaceController( 92): Warning (Cannot load library: load_library(linker.cpp:745): library "/system/lib/libnetcmdiface.so" not found) while opening the net interfy
    I/mediaserver( 91): ServiceManager: 0x40a6dee8
    I/AudioFlinger( 91): Using default 3000 mSec as standby time.
    I/CameraService( 91): CameraService started (pid=91)
    E/CameraService( 91): Could not load camera HAL module
    I/HAL ( 91): XDOz load module: audio_policy - /system/lib/hw/audio_policy.default.so
    I/AudioPolicyManagerBase( 91): loadAudioPolicyConfig() loaded /system/etc/audio_policy.conf
    I/ServiceManager( 91): Waiting for service media.audio_flinger...
    D/MDnsDS ( 92): MDnsSdListener::Hander starting up
    D/MDnsDS ( 92): MDnsSdListener starting to monitor
    D/MDnsDS ( 92): Going to poll with pollCount 1
    I/ServiceManager( 91): Waiting for service media.audio_flinger...
    I/ServiceManager( 91): Waiting for service media.audio_flinger...
    D/AndroidRuntime( 299):
    D/AndroidRuntime( 299): >>>>>> AndroidRuntime START com.android.internal.os.ZygoteInit <<<<<<
    D/AndroidRuntime( 299): CheckJNI is ON
    D/dalvikvm( 299): Trying to load lib libjavacore.so 0x0
    D/dalvikvm( 299): Added shared lib libjavacore.so 0x0
    D/dalvikvm( 299): Trying to load lib libnativehelper.so 0x0
    D/dalvikvm( 299): Added shared lib libnativehelper.so 0x0
    F/libc ( 299): Fatal signal 11 (SIGSEGV) at 0x0000006e (code=1), thread 299 (zygote)
    I/DEBUG ( 63): *** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
    I/DEBUG ( 63): Build fingerprint: 'Android/am335xevm/am335xevm:4.2.2/JDQ39/eng.louis.20150830.231017:eng/test-keys'
    I/DEBUG ( 63): Revision: '0'
    I/DEBUG ( 63): pid: 299, tid: 299, name: zygote >>> zygote <<<
    I/DEBUG ( 63): signal 11 (SIGSEGV), code
  • Hi Louis,


    What is your command line ?

    Have you set memory size in it ?

    console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/mmcblk0p2 rw rootfstype=ext4 rootwait init=/init ip=off

    Android does not use Swap, so there is no need to define one.

    the memory usage seems to be good, there is lot of memory available.

    Did you modify Android or the kernel ? Added some drivers ? What is your reference platform and BSP ?

  • Thanks for the reply.


    The memory has been set to 256MB.

    The command line: console=ttyO0,115200n8 androidboot.console=ttyO0 mem=256M root=/dev/ram0 rw initramfs=0x80008000,8M init=/init ip=off

    I've disabled zygote to assist with testing - this is why there is a lot of memory available.

    I made a lot of modifications to the kernel and android - mostly added drivers and removed some of the default android features to facilitate the running of our single application. All this worked really well on the previous design where we used a module from MYIR.

    We were forced to do a custom design to reduce product cost - the design was based on the TI EVM - but we made a lot of modifications to incorporate a MIPI controller, sound and eMMC.

    We boot of the eMMC chip.

    Loading efi partition table:
         256     128K spl
         512     512K bootloader
        1536     128K misc
        2048       8M recovery
       18432       8M boot
       34816     512M system
     1083392     256M cache
     1607680    1047M userdata
     3751936       0K media
    Loaded eMMC partition table

     
    The previous memory related dumps are/were very much misleading. They were mostly caused by asserts in the Android code when writing error messages to the log files.

    The Android team has a lot of conditions which results in calls to code similar to this: "*((int **) 0xdeadbaad) = (int *) p;"

    This produces a nice big error message; but it is extremely misleading....

    I changed the logging and disabled the asserts to be able to see the actual errors.

    I've made a bit of progress. My thinking is that the system get stuck on a driver that aborts.

    I'll hook my JTAG up now to try find the location.

    I have an old XDS510USB - but it is not working on Windows10!!!

    I'll get back to debugging as soon as I can get the JTAG working with CCS6 on windows 10.

    Please let me know if you have any recommendations on tracking the problem down.

    The system basically starts fine - no errors (zygote still disabled). It runs for a minute or two and get stuck without any error being displayed

  • OK I see,

    It seems like a stability issue with 256MB DDR.

    Are you using the same parts as the reference board for the DDR (256MB) ?

    If it not the exact same, you may need to do the calibration :

    http://processors.wiki.ti.com/index.php/Sitara_Linux_Training:_Tuning_the_DDR3_Timings_on_BeagleBoneBlack


    If the calibration has already been done, it may look at the power lines, it happened that the power lines were not stable enough and randomly freeze the board.

  • Hi Guys,

    Thanks for the support.

    The issues was mostly due to unstable power rails as you mentioned.

    Cheers

    Louis