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.

question about segmentation fault error on DM6467

Hi,

I meet a segmentation fault error on a DM6467 custom board. This defect is reproduced on only one board as of now.

Could you please suggest any debugging point or clue?

Thanks,

Devin

=============================

▒▒▒▒▒▒▒
Booting PSP Boot Loader

Version 1.3.1 ( Hy )

Device ID of NAND = 0x000000F1

Starting NAND Copy

Booting Application @ 0x81080000
chany : DDR, FAN, HEATER ...


U-Boot 1.2.0 (Jul  5 2010 - 14:05:26)

I2C:   ready
DRAM:  256 MB
unknown vendor=0 Flash:  0 kB
NAND:  NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (<NULL> NAND 128MiB 3,3V 8-bit)
NAND bus width 8 instead 8 bit
128 MiB
chany : nand_read(nand_base.c)
In:    serial
Out:   serial
Err:   serial
ARM Clock :- 297MHz
DDR Clock :- 297MHz
Hit any key to stop autoboot:  0

Loading from NAND 128MiB 3,3V 8-bit, offset 0xa0000
chany : nand_read(nand_base.c)
   Image Name:   Linux-2.6.10_mvl401-davinci_evm-
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1443556 Bytes =  1.4 MB
   Load Address: 80008000
   Entry Point:  80008000
chany : nand_read(nand_base.c)
## Booting image at 80700000 ...
   Image Name:   Linux-2.6.10_mvl401-davinci_evm-
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1443556 Bytes =  1.4 MB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux................................................................................................... done, booting the kernel.
Linux version 2.6.10_mvl401-davinci_evm-PSP_01_30_00_070 (root@ipcam) (gcc version 3.4.3 (MontaVista 3.4.3-25.0.104.0600975 2006-07-06)) #1036 Mon Mar 11 16:19:31 KST 2013
CPU: ARM926EJ-Sid(wb) [41069265] revision 5 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets
Machine: DaVinci DM6467 EVM
Memory policy: ECC disabled, Data cache writeback
DM6467
Built 1 zonelists
TI DaVinci EMAC: Kernel Boot params Eth address: $(ethaddr)
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 120MB = 120MB total
Memory: 118400KB available (2563K code, 457K data, 144K init)
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
CPU: Testing write buffer coherency: ok
spawn_desched_task(00000000)
desched cpu_callback 3/00000000
ksoftirqd started up.
desched cpu_callback 2/00000000
desched thread 0 started up.
NET: Registered protocol family 16
DaVinci: 48 gpio irqs
Registering platform device 'serial8250.0'. Parent at platform
Registering platform device 'musb_hdrc'. Parent at platform
Registering platform device 'nand_davinci.0'. Parent at platform
DaVinci I2C DEBUG: 16:18:26 Mar 11 2013
Registering platform device 'i2c'. Parent at platform
ch0 default output "COMPOSITE", mode "NTSC"
ch1 default output "", mode ""
Registering platform device 'dm_spi.0'. Parent at platform
NTFS driver 2.1.22 [Flags: R/W].
Registering platform device 'DavinciHD_vdce.2'. Parent at platform
enable_irq(12) unbalanced from c002321c
Serial: 8250/16550 driver $Revision: 1.90 $ 3 ports, IRQ sharing disabled
Registering platform device 'serial8250'. Parent at platform
ttyS0 at MMIO 0x1c20000 (irq = 40) is a ST16654
ttyS1 at MMIO 0x1c20400 (irq = 41) is a ST16654
ttyS2 at MMIO 0x1c20800 (irq = 42) is a ST16654
io scheduler noop registered
io scheduler anticipatory registered
RAMDISK driver initialized: 1 RAM disks of 32768K size 1024 blocksize
elevator: using anticipatory as default io scheduler
nbd: registered device at major 43
Registering platform device 'ti_davinci_emac'. Parent at platform
TI DaVinci EMAC: MAC address is $(ethaddr)
i2c /dev entries driver
Linux video capture interface: v1.00
Registering platform device 'vpif capture.1'. Parent at platform
nand_davinci nand_davinci.0: Using soft ECC

 

nand_maf_id = ad, nand_dev_id = f1 , mtd->oobsize = 40


NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
mtd: partition "storage" extends beyond the end of device "nand_davinci.0" -- size truncated to 0x360000
nand_davinci nand_davinci.0: hardware revision: 2.2
dm_spi.0: davinci SPI Controller driver at 0xc8006800 (irq = 43) use_dma=0
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP: Hash tables configured (established 8192 bind 16384)
NET: Registered protocol family 1
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
yaffs: dev is 32505859 name is "mtdblock3"
yaffs: Attempting MTD mount on 31.3, "mtdblock3"
VFS: Mounted root (yaffs2 filesystem).
Freeing init memory: 144K
init started: BusyBox v1.12.1 (2008-10-27 15:13:49 KST)
starting pid 369, tty '': '/etc/init.d/rcS'
warning: can't open /etc/mtab: No such file or directory
mount: proc already mounted
yaffs: dev is 32505860 name is "mtdblock4"
yaffs: Attempting MTD mount on 31.4, "mtdblock4"
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c6298000
[00000000] *pgd=8625c031, *pte=00000000, *ppte=00000000
Internal error: Oops: 17 [#1]
Modules linked in:
CPU: 0
PC is at yaffs_FindObjectByNumber+0x34/0x8c
LR is at 0xffffffd9
pc : [<c014d838>]    lr : [<ffffffd9>]    Not tainted
sp : c6253ca8  ip : 00000000  fp : c6253cbc
r10: c6296000  r9 : ffffffff  r8 : 00000001
r7 : c70d2800  r6 : c624f000  r5 : ffffffb2  r4 : c624f000
r3 : 9a9f8900  r2 : c624eefc  r1 : 9a9f88d9  r0 : c624f000
Flags: NzCv  IRQs on  FIQs on  Mode SVC_32  Segment user
Control: 5317F  Table: 86298000  DAC: 00000015
Process mount (pid: 372, stack limit = 0xc62521a0)
Stack: (0xc6253ca8 to 0xc6254000)
3ca0:                   c62a4554 c62a40f8 c6253d54 c6253cc0 c01534e4 c014d814
3cc0: c62a2000 c70d2800 00000000 ffffffff 00000000 00000005 0000101b 000000b7
3ce0: aaaaaaaa 00000001 00000001 00000000 0000ffff ffffffff 00000000 00000000
3d00: 00000000 00001000 00000000 00000000 00000000 00000000 00000000 00000000
3d20: 00000000 55555555 c6253f00 c624f000 c7020200 c000ee00 c02bd3f0 00000000
3d40: c6253f00 00000000 c6253da4 c6253d58 c014c97c c0152428 6264746d 6b636f6c
3d60: c6250034 00000000 c6253d84 c000ef30 00000009 00000009 c6253db8 c000ef30
3d80: c04547dc c000ee00 c04547c0 00000000 00000000 00000000 c6253db4 c6253da8
3da0: c014cba0 c014c47c c6253dfc c6253db8 c008b838 c014cb8c 6264746d 6b636f6c
3dc0: c6250034 c6253dd0 c6253df4 c70debc0 0000000f c04593c0 c70debc0 c04593c0
3de0: fffffff4 c02bd410 c625d000 00000000 c6253e14 c6253e00 c014cbcc c008b720
3e00: c014cb7c c625d000 c6253e3c c6253e18 c008ba78 c014cbc0 00000000 c0468000
3e20: 00000000 c625d000 00000000 c625e000 c6253f6c c6253e40 c00a3c54 c008ba2c
3e40: c00736bc c0072fe0 c625c894 c6298000 c006a168 c00699e0 000000ff 000000ff
3e60: c6298000 00000000 c6298000 00000000 c6252000 ffffffeb c6243648 c6215d20
3e80: c00276a0 c00276d0 00000001 c6243648 c6253edc c6253ea0 c0034ef0 c0163984
3ea0: 000000b0 c6243438 c00734f4 c6253f08 c6253efc c6253ec0 c0066ed0 c00664c8
3ec0: c02b1414 c6253f08 60000013 00000000 c6253f04 000001b6 00000001 000000d0
3ee0: c02b49b4 00000000 c6252000 c6215d20 c6253f3c c6253f00 c00670d0 c0066ce8
3f00: c625b338 c0459540 00000010 c625eed0 00000000 00000001 00000001 00000000
3f20: c6253f80 c002d154 c6252000 00900015 c6253f4c c6253f40 c0067330 c0066ff4
3f40: c6253f6c 00000000 00000000 c0468000 c0ed0000 c002d154 c6252000 00900015
3f60: c6253fa4 c6253f70 c00a40d8 c00a3640 00000000 00023100 c6253fac 00000000
3f80: c625d000 c625e000 00000000 00024108 befffbec 00000015 00000000 c6253fa8
3fa0: c002c9c0 c00a4040 00000000 00024108 00024108 00024120 00024130 c0ed0000
3fc0: 00000000 00024108 befffbec 00000000 befffb88 000218b8 00023100 beffff22
3fe0: 400d0770 befffb74 0000a7f4 400d077c 60000010 00024108 ffffefff fefcdfff
Backtrace:
[<c014d804>] (yaffs_FindObjectByNumber+0x0/0x8c) from [<c01534e4>] (yaffs_GutsInitialise+0x10cc/0x12c4)
 r5 = C62A40F8  r4 = C62A4554
[<c0152418>] (yaffs_GutsInitialise+0x0/0x12c4) from [<c014c97c>] (yaffs_internal_read_super+0x510/0x6b4)
[<c014c46c>] (yaffs_internal_read_super+0x0/0x6b4) from [<c014cba0>] (yaffs2_internal_read_super_mtd+0x24/0x34)
[<c014cb7c>] (yaffs2_internal_read_super_mtd+0x0/0x34) from [<c008b838>] (get_sb_bdev+0x128/0x184)
[<c008b710>] (get_sb_bdev+0x0/0x184) from [<c014cbcc>] (yaffs2_read_super+0x1c/0x28)
 r8 = 00000000  r7 = C625D000  r6 = C02BD410  r5 = FFFFFFF4
 r4 = C04593C0
[<c014cbb0>] (yaffs2_read_super+0x0/0x28) from [<c008ba78>] (do_kern_mount+0x5c/0xf4)
[<c008ba1c>] (do_kern_mount+0x0/0xf4) from [<c00a3c54>] (do_mount+0x624/0x658)
[<c00a3630>] (do_mount+0x0/0x658) from [<c00a40d8>] (sys_mount+0xa8/0xf4)
[<c00a4030>] (sys_mount+0x0/0xf4) from [<c002c9c0>] (ret_fast_syscall+0x0/0x2c)
 r7 = 00000015  r6 = BEFFFBEC  r5 = 00024108  r4 = 00000000
Code: e0802102 e592c0d0 e1a04000 e28220d0 (e59c3000)
 /etc/init.d/rcS: line 6:   372 Segmentation fault      mount -t yaffs2 /dev/mtdblock4 /usr/local
<6>yaffs: dev is 32505861 name is "mtdblock5"
yaffs: Attempting MTD mount on 31.5, "mtdblock5"

chmod: /usr/local/ipsca: No such file or directory
chmod: /usr/local/ipsca/kipsca.db: No such file or directory
mkdir: cannot create directory '/data/tmp': File exists
starting pid 394, tty '': '/sbin/getty -L 115200 ttyS0 vt100'
/etc/init.d/run_EncodeProc: line 4: cd: /usr/local/ipsca: No such file or directory
There is no EncodeProc on on /usr/local/ipsca
/etc/init.d/run_StreamProc: line 4: cd: /usr/local/ipsca: No such file or directory
There is no StreamProc on on /usr/local/ipsca
chany 3: phy id(1) = ffff
MdioPhyMode=000031E1, PhyMode=00012769, Auto:1, FD10:64, HD10:32, FD100:256, HD100:128 FD1000:8192 HD1000:4096PhyMode:000031E1 Auto:1, FD10:64, HD10:32, FD100:256, HD100:128 FD1000:8192 HD1000:4096
eth0, PhyNum 0,  Half Duplex, 10 Mbps, NO LINK
eth0, PhyNum 0,  Half Duplex, 10 Mbps, NO LINK
Unable to open database "/usr/local/ipsca/kipsca.db": unable to open database file
Unable to open database "/usr/local/ipsca/kipsca.db": unable to open database file
TIMEZONE=
No Time zone

Sun Nov 14 18:31:53 GMT 2010
Unable to open database "/usr/local/ipsca/kipsca.db": unable to open database file
hostname: invalid option -- D
Unable to open database "/usr/local/ipsca/kipsca.db": unable to open database file
Unable to open database "/usr/local/ipsca/kipsca.db": unable to open database file

(none) login: