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.

Kernel panic on custom am335x board

Other Parts Discussed in Thread: TPS65910

I am trying to do board bringup on a custom am335x board. I have a kernel panic at early stages probably with the dts. I have 128M x 16 memory = 2Gbit memory from micron running at 400MHz DDR3. The follwing has both the environment and the kernel boot log:

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

U-Boot# bootm_size 0x8000000
Unknown command 'bootm_size' - try 'help'
U-Boot# setenv bootm_size 0x8000000
U-Boot# rintenv
Unknown command 'rintenv' - try 'help'
U-Boot# print
arch=arm
autoload=no
baudrate=115200
board=neato
board_name=A33515BB
board_rev=1.1
boot_fdt=try
bootargs=console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait earlyprintk=serial mem=128m
bootcmd=run findfdt; run mmcboot;setenv mmcdev 1; setenv bootpart 1:2; run mmcboot;run nandboot;
bootdelay=10
bootdir=/boot
bootenv=uEnv.txt
bootfile=zImage
bootm_size=0x8000000
bootpart=1:2
console=ttyO0,115200n8
cpu=armv7
ethact=usb_ether
fdt_addr_r=0x88000000
fdt_high=0x88000000
fdtaddr=87000000
fdtfile=am335x-neato.dtb
filesize=82f3
findfdt=setenv fdtfile am335x-neato.dtb;
importbootenv=echo Importing environment from mmc ...; env import -t -r $loadaddr $filesize
kernel_addr_r=0x82000000
loadaddr=0x82000000
loadbootenv=load mmc ${mmcdev} ${loadaddr} ${bootenv}
loadfdt=load mmc ${bootpart} ${fdtaddr} ${bootdir}/${fdtfile}
loadimage=load mmc ${bootpart} ${loadaddr} ${bootdir}/${bootfile}
loadramdisk=load mmc ${mmcdev} ${rdaddr} ramdisk.gz
mmcargs=setenv bootargs console=${console} ${optargs} root=${mmcroot} rootfstype=${mmcrootfstype}
mmcboot=mmc dev ${mmcdev}; if mmc rescan; then echo SD/MMC found on device ${mmcdev};if run loadbootenv; then echo Loaded environment from ${bootenv};run importbootenv;fi;if test -n $uenvcmd; then echo Ru;
mmcdev=1
mmcloados=run mmcargs; if test ${boot_fdt} = yes || test ${boot_fdt} = try; then if run loadfdt; then bootz ${loadaddr} - ${fdtaddr}; else if test ${boot_fdt} = try; then bootz; else echo WARN: Cannot loa;
mmcroot=/dev/mmcblk0p2 ro
mmcrootfstype=ext4 rootwait
netargs=setenv bootargs console=${console} ${optargs} root=/dev/nfs nfsroot=${serverip}:${rootpath},${nfsopts} rw ip=dhcp
netboot=echo Booting from network ...; setenv autoload no; dhcp; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} ${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr}
nfsopts=nolock
partitions=uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}
ramargs=setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype}
ramboot=echo Booting from ramdisk ...; run ramargs; bootz ${loadaddr} ${rdaddr} ${fdtaddr}
ramdisk_addr_r=0x88080000
ramroot=/dev/ram0 rw
ramrootfstype=ext2
rdaddr=0x88080000
rootpath=/export/rootfs
soc=am33xx
spiboot=echo Booting from spi ...; run spiargs; sf probe ${spibusno}:0; sf read ${loadaddr} ${spisrcaddr} ${spiimgsize}; bootz ${loadaddr}
static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
stderr=serial
stdin=serial
stdout=serial
usbnet_devaddr=78:c5:e5:7a:c5:ee
vendor=ti
ver=U-Boot 2014.07-00109-g1c5bbe1-dirty (Jun 02 2015 - 14:19:57)

Environment size: 2816/131067 bytes
U-Boot# bootz $loadaddr - $fdtaddr
Kernel image @ 0x82000000 [ 0x000000 - 0x43a980 ]
## Flattened Device Tree blob at 87000000
Booting using the fdt blob at 0x87000000
Loading Device Tree to 8672c000, end 867372f2 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 3.14.26-gb9df364-dirty (preetam@preetam-core) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #3 Thu Jun 4 17:39:01 PDT 2015
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: TI AM335x EVM
[ 0.000000] bootconsole [earlycon0] enabled
[ 0.000000] cma: CMA: reserved 24 MiB at 84800000
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES1.0 (neon )
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32000
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait earlyprintk=serial mem=128m
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 93816K/129024K available (6043K kernel code, 376K rwdata, 2344K rodata, 281K init, 231K bss, 35208K reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xfff00000 - 0xfffe0000 ( 896 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc083901c (8389 kB)
[ 0.000000] .init : 0xc083a000 - 0xc0880734 ( 282 kB)
[ 0.000000] .data : 0xc0882000 - 0xc08e0208 ( 377 kB)
[ 0.000000] .bss : 0xc08e0208 - 0xc091a1e8 ( 232 kB)
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[ 0.000000] Total of 128 interrupts on 1 active controller
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000016] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956969942ns
[ 0.008255] OMAP clocksource: timer1 at 24000000 Hz
[ 0.013666] Console: colour dummy device 80x30
[ 0.018358] Calibrating delay loop... 718.02 BogoMIPS (lpj=3590144)
[ 0.076569] pid_max: default: 32768 minimum: 301
[ 0.081482] Security Framework initialized
[ 0.085872] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.092764] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.107477] CPU: Testing write buffer coherency: ok
[ 0.112942] Setting up static identity map for 0x805ec540 - 0x805ec598
[ 0.125101] devtmpfs: initialized
[ 0.130639] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.146507] omap_hwmod: tptc0 using broken dt data from edma
[ 0.152495] omap_hwmod: tptc1 using broken dt data from edma
[ 0.158490] omap_hwmod: tptc2 using broken dt data from edma
[ 0.168696] omap_hwmod: debugss: _wait_target_disable failed
[ 0.174865] Unhandled fault: external abort on non-linefetch (0x1028) at 0xf9e3e078
[ 0.182833] Internal error: : 1028 [#1] ARM
[ 0.187218] Modules linked in:
[ 0.190453] CPU: 0 PID: 1 Comm: swapper Not tainted 3.14.26-gb9df364-dirty #3
[ 0.197879] task: c7066c00 ti: c706a000 task.ti: c706a000
[ 0.203539] PC is at _update_sysc_cache+0x38/0x9c
[ 0.208464] LR is at _enable+0x2d8/0x314
[ 0.212584] pc : [<c0026550>] lr : [<c0026e7c>] psr: 40000113
[ 0.212584] sp : c706be50 ip : c706be60 fp : c706be5c
[ 0.224565] r10: c0846728 r9 : 00000000 r8 : 00000000
[ 0.230023] r7 : 00000000 r6 : c08e0b14 r5 : c08d0f50 r4 : c08954b4
[ 0.236821] r3 : c08954b4 r2 : f9e3e078 r1 : f9e3e000 r0 : c08954b4
[ 0.243620] Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 0.251222] Control: 10c5387d Table: 80004019 DAC: 00000015
[ 0.257215] Process swapper (pid: 1, stack limit = 0xc706a238)
[ 0.263298] Stack: (0xc706be50 to 0xc706c000)
[ 0.267866] be40: c706be8c c706be60 c0026e7c c0026524
[ 0.276367] be60: c0895500 c08e0240 c706be8c c08954b4 00000002 c0895500 c08e0240 c706a010
[ 0.284867] be80: c706beb4 c706be90 c0846140 c0026bb0 c0895d6c c0890100 c08e0240 c08954b4
[ 0.293367] bea0: c0890100 c08e0240 c706becc c706beb8 c08467a4 c0846074 c087ff30 00000001
[ 0.301866] bec0: c706bf4c c706bed0 c0008a14 c0846734 c083a4e8 c027b290 c083a4cc c7dff0db
[ 0.310367] bee0: c060fe00 000000c7 c706bf4c c706bef8 c0054020 c083a4d8 00000240 c0899d94
[ 0.318866] bf00: 00000000 00000000 00000001 00000001 c08d1b20 c7dff0e3 c0836cf4 c07f452c
[ 0.327366] bf20: c0063160 c087ff30 00000001 c08e0240 c08e0240 c083a4cc c08723c8 c08723e8
[ 0.335866] bf40: c706bf94 c706bf50 c083ac48 c0008944 00000001 00000001 c083a4cc 00000000
[ 0.344365] bf60: 00000000 000000c7 00000000 00000000 c05df470 00000000 00000000 00000000
[ 0.352865] bf80: 00000000 00000000 c706bfac c706bf98 c05df480 c083ab28 c706a000 00000000
[ 0.361364] bfa0: 00000000 c706bfb0 c000f218 c05df47c 00000000 00000000 00000000 00000000
[ 0.369863] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[ 0.378362] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[ 0.386854] Backtrace:
[ 0.389465] [<c0026518>] (_update_sysc_cache) from [<c0026e7c>] (_enable+0x2d8/0x314)
[ 0.397620] [<c0026ba4>] (_enable) from [<c0846140>] (_setup+0xd8/0x214)
[ 0.404595] r8:c706a010 r7:c08e0240 r6:c0895500 r5:00000002 r4:c08954b4
[ 0.411590] [<c0846068>] (_setup) from [<c08467a4>] (__omap_hwmod_setup_all+0x7c/0x94)
[ 0.419816] r6:c08e0240 r5:c0890100 r4:c08954b4
[ 0.424661] [<c0846728>] (__omap_hwmod_setup_all) from [<c0008a14>] (do_one_initcall+0xdc/0x184)
[ 0.433779] r5:00000001 r4:c087ff30
[ 0.437558] [<c0008938>] (do_one_initcall) from [<c083ac48>] (kernel_init_freeable+0x12c/0x1cc)
[ 0.446587] r10:c08723e8 r9:c08723c8 r8:c083a4cc r7:c08e0240 r6:c08e0240 r5:00000001
[ 0.454735] r4:c087ff30
[ 0.457439] [<c083ab1c>] (kernel_init_freeable) from [<c05df480>] (kernel_init+0x10/0xf8)
[ 0.465932] r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c05df470
[ 0.474078] r4:00000000
[ 0.476778] [<c05df470>] (kernel_init) from [<c000f218>] (ret_from_fork+0x14/0x3c)
[ 0.484645] r4:00000000 r3:c706a000
[ 0.488414] Code: e3110c01 e590105c e6f12072 1a00000c (e5921000)
[ 0.494811] ---[ end trace 72d3c5f49c006d9b ]---
[ 0.499699] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 0.499699]

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

Can I get suggestions for fixing this.

Regards,

PReetam