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.

PROCESSOR-SDK-AM335X: Kernel boot error

Part Number: PROCESSOR-SDK-AM335X


Hello,

I am trying to get our kernel to boot on our custom hardware. I had built this kernel for BBB with different hardware and it worked. Im not sure what it is either looking for and not finding or where to start looking.

Any help would be appreciated!

I have attached the terminal print out. We have 128MiB ram, no RTC

U-Boot SPL 2018.01 (Aug 16 2019 - 09:45:08)
Trying to boot from MMC2
** Bad device mmc 0 **
Using default environment

Does this get printed?5
Does this get printed?5
Does this get printed?5


U-Boot 2018.01 (Aug 16 2019 - 09:45:08 -0700)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM:  128 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
** No partition table - mmc 0 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   Does this get printed?
usb_ether
Hit any key to stop autoboot:  0
=> setenv fdtaddr 0x84000000; setenv fdt_addr_r 0x84000000; setenv loadaddr 0x80008000
=> usb start; setenv bootm_size 0x8000000; setenv bootfile zImage-initramfs
starting USB...
USB0:   scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 1 Ethernet Device(s) found
=> setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype} earlyprintk
=> run findfdt; run netloadfdt; run netloadimage; bootz ${loadaddr} - ${fdtaddr}
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC 04:79:b7:02:9c:c4
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Waiting for Ethernet connection... done.
Using sms0 device
TFTP from server 192.168.7.100; our IP address is 192.168.7.200
Filename 'am335x-evm.dtb'.
Load address: 0x84000000
Loading: ###
         5.9 KiB/s
done
Bytes transferred = 32844 (804c hex)
Waiting for Ethernet connection... done.
Using sms0 device
TFTP from server 192.168.7.100; our IP address is 192.168.7.200
Filename 'zImage-initramfs'.
Load address: 0x80008000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
         1.1 MiB/s
done
Bytes transferred = 10781184 (a48200 hex)
## Flattened Device Tree blob at 84000000
   Booting using the fdt blob at 0x84000000
   Loading Device Tree to 85f04000, end 85f0f04b ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.67-gd315a9bb00 (ebem@debian-64) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 PREEMPT Thu Aug 15 16:26:38 PDT 2019
[    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] OF: fdt: Machine model: TI AM335x EVM
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x82800000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/ram0 rw rootfstype=ext2 earlyprintk
[    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: 61324K/131072K available (8192K kernel code, 316K rwdata, 2456K rodata, 7168K init, 275K bss, 20596K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc1300000   (7168 kB)
[    0.000000]       .data : 0xc1300000 - 0xc134f388   ( 317 kB)
[    0.000000]        .bss : 0xc134f388 - 0xc139410c   ( 276 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
[    0.000020] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.008169] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.017732] OMAP clocksource: timer1 at 25000000 Hz
[    0.022990] timer_probe: no matching timers found
[    0.028294] Console: colour dummy device 80x30
[    0.032971] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.039782] This ensures that you still see kernel messages. Please
[    0.046315] update your kernel commandline.
[    0.050730] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.089950] pid_max: default: 32768 minimum: 301
[    0.095005] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.101898] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110275] CPU: Testing write buffer coherency: ok
[    0.116490] Setting up static identity map for 0x80100000 - 0x80100060
[    0.123538] Hierarchical SRCU implementation.
[    0.128524] EFI services will not be available.
[    0.134846] devtmpfs: initialized
[    0.146333] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
[    0.155902] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.164338] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.174583] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.185847] pinctrl core: initialized pinctrl subsystem
[    0.192296] DMI not present or invalid.
[    0.196993] NET: Registered protocol family 16
[    0.204667] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.226151] omap_hwmod: debugss: _wait_target_disable failed
[    0.232323] Unhandled fault: external abort on non-linefetch (0x1028) at 0xf9e3e078
[    0.240278] pgd = c0004000
[    0.243143] [f9e3e078] *pgd=44e11452(bad)
[    0.247366] Internal error: : 1028 [#1] PREEMPT ARM
[    0.252462] Modules linked in:
[    0.255697] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.67-gd315a9bb00 #2
[    0.262849] Hardware name: Generic AM33XX (Flattened Device Tree)
[    0.269192] task: c7038000 task.stack: c703c000
[    0.273949] PC is at _update_sysc_cache+0x38/0x90
[    0.278870] LR is at _enable+0x1ac/0x284
[    0.282981] pc : [<c011ae6c>]    lr : [<c011b5e0>]    psr: 40000013
[    0.289504] sp : c703de60  ip : 00000000  fp : c703de6c
[    0.294958] r10: c134f3c0  r9 : 000000d0  r8 : c0c3b820
[    0.300410] r7 : c130b3d4  r6 : c134f8f4  r5 : 00000000  r4 : c130ae80
[    0.307202] r3 : c130ae80  r2 : f9e3e078  r1 : c130b95c  r0 : 00000078
[    0.313996] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.321409] Control: 10c5387d  Table: 80004019  DAC: 00000051
[    0.327398] Process swapper (pid: 1, stack limit = 0xc703c208)
[    0.333477] Stack: (0xc703de60 to 0xc703e000)
[    0.338047] de60: c703de94 c703de70 c011b5e0 c011ae40 c130ae80 c1309b84 c130ae80 c130aeb0
[    0.346542] de80: c130aec4 c134f3c0 c703dec4 c703de98 c0c0b044 c011b440 c703dec4 c703dea8
[    0.355039] dea0: c011a114 c0830bc0 c1307ec8 c130ae80 c1307f20 c0c0b460 c703dedc c703dec8
[    0.363533] dec0: c0c0b554 c0c0af80 ffffe000 00000000 c703df4c c703dee0 c0101a18 c0c0b46c
[    0.372025] dee0: c703df4c c703def0 c0145600 c0c00624 c0a9b864 c0a9b844 c0a9b890 c0aa59d8
[    0.380521] df00: 00000000 c0a9b81c 00000002 00000002 c0a92d2c c0b64504 c7fffc79 00000000
[    0.389014] df20: 00000000 c0b64504 00000003 c0b64504 c0c4c360 00000003 c134f3c0 c0c3b820
[    0.397505] df40: c703df94 c703df50 c0c00eb4 c01019d8 00000002 00000002 00000000 c0c00618
[    0.405995] df60: 00000000 c0c00618 00000000 00000000 c0835f38 00000000 00000000 00000000
[    0.414489] df80: 00000000 00000000 c703dfac c703df98 c0835f48 c0c00d78 00000000 c0835f38
[    0.422981] dfa0: 00000000 c703dfb0 c0107ea8 c0835f44 00000000 00000000 00000000 00000000
[    0.431474] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.439971] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    0.448456] Backtrace:
[    0.451063] [<c011ae34>] (_update_sysc_cache) from [<c011b5e0>] (_enable+0x1ac/0x284)
[    0.459211] [<c011b434>] (_enable) from [<c0c0b044>] (_setup.part.12+0xd0/0x404)
[    0.466899]  r7:c134f3c0 r6:c130aec4 r5:c130aeb0 r4:c130ae80
[    0.472803] [<c0c0af74>] (_setup.part.12) from [<c0c0b554>] (__omap_hwmod_setup_all+0xf4/0x108)
[    0.481827]  r6:c0c0b460 r5:c1307f20 r4:c130ae80
[    0.486666] [<c0c0b460>] (__omap_hwmod_setup_all) from [<c0101a18>] (do_one_initcall+0x4c/0x170)
[    0.495774]  r5:00000000 r4:ffffe000
[    0.499544] [<c01019cc>] (do_one_initcall) from [<c0c00eb4>] (kernel_init_freeable+0x148/0x1e4)
[    0.508573]  r8:c0c3b820 r7:c134f3c0 r6:00000003 r5:c0c4c360 r4:c0b64504
[    0.515559] [<c0c00d6c>] (kernel_init_freeable) from [<c0835f48>] (kernel_init+0x10/0x114)
[    0.524141]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0835f38
[    0.532270]  r4:00000000
[    0.534968] [<c0835f38>] (kernel_init) from [<c0107ea8>] (ret_from_fork+0x14/0x2c)
[    0.542825]  r5:c0835f38 r4:00000000
[    0.546590] Code: e5932054 e31c0c01 e0822000 1a000009 (e5922000)
[    0.552967] ---[ end trace ad0498c0a2262fd0 ]---
[    0.557890] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.557890]
[    0.567464] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.567464]
[    2.903403] random: fast init done
[  134.103463] random: crng init done

U-Boot SPL 2018.01 (Aug 16 2019 - 09:45:08)
Trying to boot from MMC2
** Bad device mmc 0 **
Using default environment

Does this get printed?5
Does this get printed?5
Does this get printed?5


U-Boot 2018.01 (Aug 16 2019 - 09:45:08 -0700)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x EVM
DRAM:  128 MiB
NAND:  0 MiB
MMC:   OMAP SD/MMC: 0
** No partition table - mmc 0 **
Using default environment

<ethaddr> not set. Validating first E-fuse MAC
Net:   Does this get printed?
usb_ether
Hit any key to stop autoboot:  0
=> setenv fdtaddr 0x84000000; setenv fdt_addr_r 0x84000000; setenv loadaddr 0x80008000
=> usb start; setenv bootm_size 0x8000000; setenv bootfile zImage-initramfs
starting USB...
USB0:   scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 1 Ethernet Device(s) found
=> setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=${ramrootfstype} earlyprintk
=> run findfdt; run netloadfdt; run netloadimage; bootz ${loadaddr} - ${fdtaddr}
using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
MAC 04:79:b7:02:9c:c4
HOST MAC de:ad:be:ef:00:00
RNDIS ready
Waiting for Ethernet connection... done.
Using sms0 device
TFTP from server 192.168.7.100; our IP address is 192.168.7.200
Filename 'am335x-evm.dtb'.
Load address: 0x84000000
Loading: ###
         5.9 KiB/s
done
Bytes transferred = 32848 (8050 hex)
Waiting for Ethernet connection... done.
Using sms0 device
TFTP from server 192.168.7.100; our IP address is 192.168.7.200
Filename 'zImage-initramfs'.
Load address: 0x80008000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ####################
         1.1 MiB/s
done
Bytes transferred = 10781184 (a48200 hex)
## Flattened Device Tree blob at 84000000
   Booting using the fdt blob at 0x84000000
   Loading Device Tree to 85f04000, end 85f0f04f ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.67-gd315a9bb00 (ebem@debian-64) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #2 PREEMPT Thu Aug 15 16:26:38 PDT 2019
[    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] OF: fdt: Machine model: TI AM335x EVM
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: Getting EFI parameters from FDT:
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x82800000
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32480
[    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/ram0 rw rootfstype=ext2 earlyprintk
[    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: 61324K/131072K available (8192K kernel code, 316K rwdata, 2456K rodata, 7168K init, 275K bss, 20596K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 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 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc1300000   (7168 kB)
[    0.000000]       .data : 0xc1300000 - 0xc134f388   ( 317 kB)
[    0.000000]        .bss : 0xc134f388 - 0xc139410c   ( 276 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
[    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
[    0.000019] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.008165] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.017732] OMAP clocksource: timer1 at 25000000 Hz
[    0.022993] timer_probe: no matching timers found
[    0.028289] Console: colour dummy device 80x30
[    0.032967] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.039784] This ensures that you still see kernel messages. Please
[    0.046319] update your kernel commandline.
[    0.050736] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    0.089946] pid_max: default: 32768 minimum: 301
[    0.095000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.101889] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.110262] CPU: Testing write buffer coherency: ok
[    0.116469] Setting up static identity map for 0x80100000 - 0x80100060
[    0.123519] Hierarchical SRCU implementation.
[    0.128507] EFI services will not be available.
[    0.134824] devtmpfs: initialized
[    0.146316] random: get_random_u32 called from bucket_table_alloc+0x8c/0x1ac with crng_init=0
[    0.155874] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.164325] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.174564] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.185790] pinctrl core: initialized pinctrl subsystem
[    0.192234] DMI not present or invalid.
[    0.196928] NET: Registered protocol family 16
[    0.204601] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.226078] omap_hwmod: debugss: _wait_target_disable failed
[    0.232277] Unhandled fault: external abort on non-linefetch (0x1028) at 0xf9e3e078
[    0.240234] pgd = c0004000
[    0.243102] [f9e3e078] *pgd=44e11452(bad)
[    0.247325] Internal error: : 1028 [#1] PREEMPT ARM
[    0.252422] Modules linked in:
[    0.255657] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.67-gd315a9bb00 #2
[    0.262807] Hardware name: Generic AM33XX (Flattened Device Tree)
[    0.269152] task: c7038000 task.stack: c703c000
[    0.273909] PC is at _update_sysc_cache+0x38/0x90
[    0.278830] LR is at _enable+0x1ac/0x284
[    0.282943] pc : [<c011ae6c>]    lr : [<c011b5e0>]    psr: 40000013
[    0.289466] sp : c703de60  ip : 00000000  fp : c703de6c
[    0.294919] r10: c134f3c0  r9 : 000000d0  r8 : c0c3b820
[    0.300371] r7 : c130b3d4  r6 : c134f8f4  r5 : 00000000  r4 : c130ae80
[    0.307165] r3 : c130ae80  r2 : f9e3e078  r1 : c130b95c  r0 : 00000078
[    0.313963] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    0.321383] Control: 10c5387d  Table: 80004019  DAC: 00000051
[    0.327367] Process swapper (pid: 1, stack limit = 0xc703c208)
[    0.333445] Stack: (0xc703de60 to 0xc703e000)
[    0.338013] de60: c703de94 c703de70 c011b5e0 c011ae40 c130ae80 c1309b84 c130ae80 c130aeb0
[    0.346502] de80: c130aec4 c134f3c0 c703dec4 c703de98 c0c0b044 c011b440 c703dec4 c703dea8
[    0.354996] dea0: c011a114 c0830bc0 c1307ec8 c130ae80 c1307f20 c0c0b460 c703dedc c703dec8
[    0.363487] dec0: c0c0b554 c0c0af80 ffffe000 00000000 c703df4c c703dee0 c0101a18 c0c0b46c
[    0.371984] dee0: c703df4c c703def0 c0145600 c0c00624 c0a9b864 c0a9b844 c0a9b890 c0aa59d8
[    0.380479] df00: 00000000 c0a9b81c 00000002 00000002 c0a92d2c c0b64504 c7fffc79 00000000
[    0.388977] df20: 00000000 c0b64504 00000003 c0b64504 c0c4c360 00000003 c134f3c0 c0c3b820
[    0.397466] df40: c703df94 c703df50 c0c00eb4 c01019d8 00000002 00000002 00000000 c0c00618
[    0.405960] df60: 00000000 c0c00618 00000000 00000000 c0835f38 00000000 00000000 00000000
[    0.414454] df80: 00000000 00000000 c703dfac c703df98 c0835f48 c0c00d78 00000000 c0835f38
[    0.422948] dfa0: 00000000 c703dfb0 c0107ea8 c0835f44 00000000 00000000 00000000 00000000
[    0.431442] dfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    0.439936] dfe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000
[    0.448419] Backtrace:
[    0.451029] [<c011ae34>] (_update_sysc_cache) from [<c011b5e0>] (_enable+0x1ac/0x284)
[    0.459172] [<c011b434>] (_enable) from [<c0c0b044>] (_setup.part.12+0xd0/0x404)
[    0.466860]  r7:c134f3c0 r6:c130aec4 r5:c130aeb0 r4:c130ae80
[    0.472764] [<c0c0af74>] (_setup.part.12) from [<c0c0b554>] (__omap_hwmod_setup_all+0xf4/0x108)
[    0.481789]  r6:c0c0b460 r5:c1307f20 r4:c130ae80
[    0.486626] [<c0c0b460>] (__omap_hwmod_setup_all) from [<c0101a18>] (do_one_initcall+0x4c/0x170)
[    0.495740]  r5:00000000 r4:ffffe000
[    0.499509] [<c01019cc>] (do_one_initcall) from [<c0c00eb4>] (kernel_init_freeable+0x148/0x1e4)
[    0.508538]  r8:c0c3b820 r7:c134f3c0 r6:00000003 r5:c0c4c360 r4:c0b64504
[    0.515522] [<c0c00d6c>] (kernel_init_freeable) from [<c0835f48>] (kernel_init+0x10/0x114)
[    0.524100]  r10:00000000 r9:00000000 r8:00000000 r7:00000000 r6:00000000 r5:c0835f38
[    0.532229]  r4:00000000
[    0.534930] [<c0835f38>] (kernel_init) from [<c0107ea8>] (ret_from_fork+0x14/0x2c)
[    0.542795]  r5:c0835f38 r4:00000000
[    0.546560] Code: e5932054 e31c0c01 e0822000 1a000009 (e5922000)
[    0.552939] ---[ end trace ad0498c0a2262fd0 ]---
[    0.557866] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.557866]
[    0.567438] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    0.567438]
[    2.903393] random: fast init done
[  134.103452] random: crng init done

.

  • Hi,

    Have you made changes to your DTS to account for the H/W changes? It looks like DDR is working, but did you do the S/W leveling procedure for DDR and put in the necessary changes? How did you manage pinmux?

    If you have made changes, can you please summarize your changes or post your DTB here.

    Thanks.

  • Hi, Thank you for your response and help!

    I have made changes to the DTS to account for our hardware changes. They are not 100% finished but i have looked through it to make sure there aren't any obvious issues. I modified the dts for uboot as well and it works enough to talk to our MMC and i2c.

    I am able to have uboot boot from flash now.

    For DDR memory we are using DDR2 and i followed the EMIF procedure and used those values in my board.c file in uboot and we can read and write to RAM. Pinmux was managed in mux.c in uboot as well and in the device tree.

    Is there a suggested default kernel configuration for minimal usage? In order to prevent uboot from crashing I had to remove all of the RTC stuff since we do not have one.

    /*
     * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    
    / {
        model = "TI AM335x EVM";
        compatible = "ti,am335x-evm", "ti,am33xx";
    
    //    cpus {
    //        cpu@0 {
    //            cpu0-supply = <&vdd1_reg>;
    //        };
    //    };
    
        memory@80000000 {
            device_type = "memory";
            reg = <0x80000000 0x8000000>; /* 128 MB */
        };
    
        chosen {
            stdout-path = &uart0;
        };
    
        vmmcsd_fixed: fixedregulator0 {
            compatible = "regulator-fixed";
            regulator-name = "vmmcsd_fixed";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
            regulator-boot-on;
        };
    };
    
    &am33xx_pinmux {
        pinctrl-names = "default";
        pinctrl-0 = <&clkout2_pin>;
    
        i2c0_pins: pinmux_i2c0_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c0_sda.i2c0_sda */
                AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c0_scl.i2c0_scl */
            >;
        };
    
        i2c1_pins: pinmux_i2c1_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3)    /* mii1_col.i2c1_sda */
                AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE3)    /* mii1_rx_er.i2c1_scl */
            >;
        };
    
        i2c2_pins: pinmux_i2c2_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3)    /* uart1_ctsn.i2c2_sda */
                AM33XX_IOPAD(0x97C, PIN_INPUT_PULLUP | MUX_MODE3)    /* uart1_rtsn.i2c2_scl */
            >;
        };
    
        uart0_pins: pinmux_uart0_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)    /* uart0_rxd.uart0_rxd */
                AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)    /* uart0_txd.uart0_txd */
            >;
        };
    
        clkout2_pin: pinmux_clkout2_pin {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3)    /* xdma_event_intr1.clkout2 */
            >;
        };
    
        mmc2_pins: pinmux_mmc2_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk*/
                AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd*/
                AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0*/
                AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1*/
                AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2*/
                AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3*/
                AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4*/
                AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5*/
                AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6*/
                AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7*/
            >;
        };
        
        gpio0_pins: pinmux_gpio0_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x820, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ad8.gpio0_22   (gpio22)  (host_zeroize_a_n  U10)*/
                AM33XX_IOPAD(0x824, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad9.gpio0_23   (gpio23)  (gpp_vmon_rst_n    T10)*/
                AM33XX_IOPAD(0x828, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ad10.gpio0_26  (gpio26)  (host_zeroize_b_n  T11)*/
                AM33XX_IOPAD(0x82C, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ad11.gpio0_27  (gpio27)  (io_exp_int_n      U12)*/
            >;
        };
    
        gpio1_pins: pinmux_gpio1_pins {
            pinctrl-single,pins = <
    //          AM33XX_IOPAD(0x864, PIN_INPUT_PULLUP | MUX_MODE7)  /* gpmc_a9.gpio1_25    (gpio57)  (io_exp_int_n       U16)*/
                AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE7)  /* gpmc_ben1.gpio1_28  (gpio60)  (ext_mii_int_n      U18)*/
    //          AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE7)  /* gpmc_csn1.gpio1_30  (gpio62)  (edge_detect_out_r  U9)*/
    //          AM33XX_IOPAD(0x884, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn1.gpio1_31  (gpio63)  (pnm_rst_n          V9)*/
            >;
        };
    
        gpio2_pins: pinmux_gpio2_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x8E0, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_vsync.gpio2_22       (gpio86)  (gpp_2_dsp      U5)*/
                AM33XX_IOPAD(0x8E4, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_hsync.gpio2_23       (gpio87)  (reset_n        R5)*/
                AM33XX_IOPAD(0x8E8, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* lcd_pclk.gpio2_24        (gpio88)  (dsp_2_gpp      V5)*/
                AM33XX_IOPAD(0x8EC, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_ac_bias_en.gpio2_25  (gpio89)  (batt_low_led   R6)*/
                AM33XX_IOPAD(0x8F8, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* mmc0_dat1.gpio2_28       (gpio92)  (oeb_present_n  G15)*/
            >;
        };
    
        gpio3_pins: pinmux_gpio3_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_aclkx.gpio3_14   (gpio110)  (fp_zeroize_led     A13)*/
                AM33XX_IOPAD(0x994, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_fsx.gpio3_15     (gpio111)  (gpp_fp_alarm_led_n B13)*/
                AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* mcasp0_axr0.gpio3_16    (gpio112)  (batt_adc_alert     D12)*/
                AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_ahclkr.gpio3_17  (gpio113)  (gpp_fp_fault_led_n C12)*/
                AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* mcasp0_ahclkx.gpio3_21  (gpio117)  (jtag_gpp_emu4      A14)*/
            >;
        };
    
        wlan_pins: pinmux_wlan_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE7)    /* gpmc_a0.gpio1_16 */
                AM33XX_IOPAD(0x99c, PIN_INPUT | MUX_MODE7)        /* mcasp0_ahclkr.gpio3_17 */
                AM33XX_IOPAD(0x9ac, PIN_OUTPUT_PULLDOWN | MUX_MODE7)    /* mcasp0_ahclkx.gpio3_21 */
            >;
        };
    
        dcan1_pins_default: dcan1_pins_default {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE2) /* uart0_ctsn.d_can1_tx */
                AM33XX_IOPAD(0x96c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* uart0_rtsn.d_can1_rx */
            >;
        };
    };
    
    
    &rtc {
        status = "disabled";
    };
    
    &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins>;
    
        status = "okay";
    };
    
    &i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins>;
    
        status = "okay";
        clock-frequency = <400000>;
    
    	tmp102: tmp102@48 {
    		compatible = "ti,tmp102";
    		reg = <0x48>;
    	};
    };
    
    &usb {
        status = "okay";
    };
    
    &usb_ctrl_mod {
        status = "okay";
    };
    
    &usb0_phy {
        //status = "okay";
        status = "disabled";
        #phy-cells = <0>;
    };
    
    &usb1_phy {
        status = "okay";
        #phy-cells = <0>;
    };
    
    &usb0 {
        //status = "okay";
        status = "disabled";
    };
    
    &usb1 {
        status = "okay";
        //dr_mode = "host";
    };
    
    &cppi41dma  {
        status = "okay";
    };
    
    &i2c1 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c1_pins>;
    
        status = "okay";
        clock-frequency = <100000>;
    
        gpio5: pca953x@74 {
           compatible = "nxp,pca9539";
           reg = <0x74>;
           pinctrl-names = "default";
        };
    };
    
    &i2c2 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c2_pins>;
    
        status = "okay";
        clock-frequency = <400000>;
    
    
        tmp175_1: tmp175_1@4A {
            compatible = "ti,tmp175";
            reg = <0x4A>;
        };
    
        tmp175_2: tmp175_2@4B {
            compatible = "ti,tmp175";
            reg = <0x4B>;
        };
    
        eeprom: eeprom@50 {
            compatible = "at,24c256";
            reg = <0x50>;
    
            #address-cells = <1>;
            #size-cells = <1>;
            data: data@0 {
                reg = <0 0x100>;
            };
        };
    };
    
    &gpio1 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio0_pins>;
    	status = "okay";
    };
    
    &gpio2 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio1_pins>;
    	status = "okay";
    };
    
    &gpio3 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio2_pins>;
    	status = "okay";
    };
    
    &gpio4 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio3_pins>;
    	status = "okay";
    };
    
    &mmc2 {
        status = "okay";
        vmmc-supply = <&vmmcsd_fixed>;
        bus-width = <8>;
        pinctrl-names = "default";
        pinctrl-0 = <&mmc2_pins>;
    	ti,vcc-aux-disable-is-sleep;
    };
    
    &edma {
    	ti,edma-xbar-event-map = /bits/ 16 <1 12 2 13>;
    };
    
    &sham {
        status = "okay";
    };
    
    &aes {
        status = "okay";
    };
    
    &dcan1 {
        status = "disabled";    /* Enable only if Profile 1 is selected */
        pinctrl-names = "default";
        pinctrl-0 = <&dcan1_pins_default>;
    };
    

    6811.config.txt

  • Hi,

    Looking through the DTS file you sent I noticed that you had commented out the cpu node.

    //   cpus {

    //       cpu@0 {

    //           cpu0-supply = <&vdd1_reg>;

    //       };

    //   };

     Please try this, I have made an assumption that you don't have a cpu0-supply and were commented out the undefined property. 

       cpus {

           cpu@0 {

           };

       };

    Best Regards,

    Schuyler

  • I made the change as suggested, did not have an affect I could see. I added the following node:

    &rtc {
    clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
    clock-names = "ext-clk", "int-clk";
    system-power-controller;
    status = "disabled";
    reg = <0x0 0x0>;
    };
    This allows the kernel to keep booting but still causes an issue within the kernel. I have attached the boot log

    U-Boot SPL 2018.01 (Aug 19 2019 - 16:19:09)
    Trying to boot from MMC2
    ** Bad device mmc 0 **
    Using default environment
    
    Does this get printed?5
    Does this get printed?5
    Does this get printed?5
    
    
    U-Boot 2018.01 (Aug 19 2019 - 16:19:09 -0700)
    
    CPU  : AM335X-GP rev 2.1
    Model: TI AM335x EVM
    DRAM:  128 MiB
    NAND:  0 MiB
    MMC:   OMAP SD/MMC: 0
    ** No partition table - mmc 0 **
    Using default environment
    
    <ethaddr> not set. Validating first E-fuse MAC
    Net:   Does this get printed?
    usb_ether
    Hit any key to stop autoboot:  0
    => setenv fdtaddr 0x84000000; setenv fdt_addr_r 0x84000000; setenv loadaddr 0x80008000
    => setenv bootargs console=${console} ${optargs} root=${ramroot} rootfstype=ext4 earlyprintk
    => usb start; setenv bootm_size 0x8000000; setenv bootfile zImage-initramfs
    starting USB...
    USB0:   scanning bus 0 for devices... 1 USB Device(s) found
           scanning usb for storage devices... 0 Storage Device(s) found
           scanning usb for ethernet devices... 1 Ethernet Device(s) found
    => run findfdt; run netloadfdt; run netloadimage; bootz ${loadaddr} - ${fdtaddr}
    using musb-hdrc, OUT ep1out IN ep1in STATUS ep2in
    MAC 04:79:b7:02:9c:c4
    HOST MAC de:ad:be:ef:00:00
    RNDIS ready
    Waiting for Ethernet connection... done.
    Using sms0 device
    TFTP from server 192.168.7.100; our IP address is 192.168.7.200
    Filename 'am335x-evm.dtb'.
    Load address: 0x84000000
    Loading: ###
             5.9 KiB/s
    done
    Bytes transferred = 32920 (8098 hex)
    Waiting for Ethernet connection... done.
    Using sms0 device
    TFTP from server 192.168.7.100; our IP address is 192.168.7.200
    Filename 'zImage-initramfs'.
    Load address: 0x80008000
    Loading: #################################################################
             #################################################################
             #################################################################
             ########################################
             529.3 KiB/s
    done
    Bytes transferred = 3444680 (348fc8 hex)
    ## Flattened Device Tree blob at 84000000
       Booting using the fdt blob at 0x84000000
       Loading Device Tree to 85f04000, end 85f0f097 ... OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.67-gd315a9bb00 (ebem@debian-64) (gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)) #3 Tue Aug 20 13:38:41 PDT 2019
    [    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] OF: fdt: Machine model: TI AM335x EVM
    [    0.000000] bootconsole [earlycon0] enabled
    [    0.000000] Memory policy: Data cache writeback
    [    0.000000] cma: Reserved 48 MiB at 0x82c00000
    [    0.000000] CPU: All CPU(s) started in SVC mode.
    [    0.000000] AM335X ES2.1 (neon)
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 32512
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/ram0 rw rootfstype=ext4 earlyprintk
    [    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: 70796K/131072K available (5120K kernel code, 242K rwdata, 1468K rodata, 2048K init, 223K bss, 11124K reserved, 49152K cma-reserved, 0K highmem)
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    [    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 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 - 0xc0600000   (6112 kB)
    [    0.000000]       .init : 0xc0800000 - 0xc0a00000   (2048 kB)
    [    0.000000]       .data : 0xc0a00000 - 0xc0a3cb40   ( 243 kB)
    [    0.000000]        .bss : 0xc0a3cb40 - 0xc0a747f4   ( 224 kB)
    [    0.000000] random: get_random_u32 called from __kmem_cache_create+0x20/0x1dc with crng_init=0
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
    [    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] OMAP clockevent source: timer2 at 25000000 Hz
    [    0.000020] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
    [    0.008164] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
    [    0.017728] OMAP clocksource: timer1 at 25000000 Hz
    [    0.023049] timer_probe: no matching timers found
    [    0.028303] Console: colour dummy device 80x30
    [    0.032997] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
    [    0.070051] pid_max: default: 32768 minimum: 301
    [    0.075065] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.081958] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.089953] CPU: Testing write buffer coherency: ok
    [    0.095921] Setting up static identity map for 0x80100000 - 0x80100060
    [    0.106229] devtmpfs: initialized
    [    0.116965] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    0.125298] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.135519] futex hash table entries: 256 (order: -1, 3072 bytes)
    [    0.145879] pinctrl core: initialized pinctrl subsystem
    [    0.152538] NET: Registered protocol family 16
    [    0.159151] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.169618] omap_hwmod: rtc: Missing dt reg0 for /ocp/rtc@44e3e000
    [    0.176116] ------------[ cut here ]------------
    [    0.180988] WARNING: CPU: 0 PID: 1 at arch/arm/mach-omap2/omap_hwmod.c:2494 _init.constprop.23+0x234/0x590
    [    0.191006] omap_hwmod: rtc: doesn't have mpu register target base
    [    0.197445] Modules linked in:
    [    0.200680] CPU: 0 PID: 1 Comm: swapper Not tainted 4.14.67-gd315a9bb00 #3
    [    0.207837] Hardware name: Generic AM33XX (Flattened Device Tree)
    [    0.214246] [<c010de2c>] (unwind_backtrace) from [<c010b9a0>] (show_stack+0x10/0x14)
    [    0.222304] [<c010b9a0>] (show_stack) from [<c012753c>] (__warn+0xe4/0xfc)
    [    0.229475] [<c012753c>] (__warn) from [<c012758c>] (warn_slowpath_fmt+0x38/0x48)
    [    0.237266] [<c012758c>] (warn_slowpath_fmt) from [<c0809bb0>] (_init.constprop.23+0x234/0x590)
    [    0.246306] [<c0809bb0>] (_init.constprop.23) from [<c080a838>] (__omap_hwmod_setup_all+0x40/0x100)
    [    0.255702] [<c080a838>] (__omap_hwmod_setup_all) from [<c01018c8>] (do_one_initcall+0x44/0x168)
    [    0.264847] [<c01018c8>] (do_one_initcall) from [<c0800d88>] (kernel_init_freeable+0x134/0x1c0)
    [    0.273907] [<c0800d88>] (kernel_init_freeable) from [<c050bfc0>] (kernel_init+0x8/0x108)
    [    0.282403] [<c050bfc0>] (kernel_init) from [<c0108068>] (ret_from_fork+0x14/0x2c)
    [    0.290285] ---[ end trace 789b802f58d0de53 ]---
    [    0.304748] omap_hwmod: debugss: _wait_target_disable failed
    [    0.427640] cpuidle: using governor ladder
    [    0.431940] cpuidle: using governor menu
    [    0.440323] omap_gpio 44e07000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_gpio0_pins, deferring probe
    [    0.454400] omap_gpio 4804c000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_gpio1_pins, deferring probe
    [    0.468393] omap_gpio 481ac000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_gpio2_pins, deferring probe
    [    0.482362] omap_gpio 481ae000.gpio: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_gpio3_pins, deferring probe
    [    0.501399] hw-breakpoint: debug architecture 0x4 unsupported.
    [    0.517185] edma 49000000.edma: TI EDMA DMA engine driver
    [    0.524900] usbcore: registered new interface driver usbfs
    [    0.530677] usbcore: registered new interface driver hub
    [    0.536358] usbcore: registered new device driver usb
    [    0.541881] omap_i2c 44e0b000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c0_pins, deferring probe
    [    0.555367] omap_i2c 4802a000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c1_pins, deferring probe
    [    0.568807] omap_i2c 4819c000.i2c: could not find pctldev for node /ocp/l4_wkup@44c00000/scm@210000/pinmux@800/pinmux_i2c2_pins, deferring probe
    [    0.582336] pps_core: LinuxPPS API ver. 1 registered
    [    0.587537] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.597533] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
    [    0.605055] clocksource: Switched to clocksource timer1
    [    0.617957] NET: Registered protocol family 2
    [    0.623202] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.630548] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.637187] TCP: Hash tables configured (established 1024 bind 1024)
    [    0.643949] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.650061] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.656778] NET: Registered protocol family 1
    [    0.739353] hw perfevents: no interrupt-affinity property for /pmu, guessing.
    [    0.747065] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
    [    0.757245] workingset: timestamp_bits=30 max_order=15 bucket_order=0
    [    0.769595] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
    [    0.777376] io scheduler noop registered
    [    0.781489] io scheduler deadline registered
    [    0.786114] io scheduler cfq registered (default)
    [    0.791032] io scheduler mq-deadline registered
    [    0.795791] io scheduler kyber registered
    [    0.801160] pinctrl-single 44e10800.pinmux: 142 pins at pa f9e10800 size 568
    [    0.854254] Serial: 8250/16550 driver, 10 ports, IRQ sharing disabled
    [    0.864113] omap_rng 48310000.rng: Random Number Generator ver. 20
    [    0.881575] brd: module loaded
    [    0.890831] loop: module loaded
    [    0.895342] libphy: Fixed MDIO Bus: probed
    [    0.900832] i2c /dev entries driver
    [    0.905403] sdhci: Secure Digital Host Controller Interface driver
    [    0.911843] sdhci: Copyright(c) Pierre Ossman
    [    0.916426] sdhci-pltfm: SDHCI platform and OF driver helper
    [    0.924535] NET: Registered protocol family 10
    [    0.930700] Segment Routing with IPv6
    [    0.934635] NET: Registered protocol family 17
    [    0.939413] Key type dns_resolver registered
    [    0.943969] omap_voltage_late_init: Voltage driver support not added
    [    0.956618] OMAP GPIO hardware version 0.1
    [    0.985204] tmp102 0-0048: error reading config register
    [    0.990921] tmp102: probe of 0-0048 failed with error -121
    [    0.996708] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
    [    1.003905] pca953x 1-0074: 1-0074 supply vcc not found, using dummy regulator
    [    1.038046] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 400 kHz
    [    1.075373] at24 2-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
    [    1.082579] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 400 kHz
    [    1.089291] vmmcsd_fixed: disabling
    [    1.093054] Warning: unable to open an initial console.
    [    1.102904] Freeing unused kernel memory: 2048K
    [    1.124005] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
    [    6.125089] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
    [    6.140274] Failed to execute /init (error -8)
    [    6.169053] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
    [   11.245145] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
    [   11.260241] Starting init: /sbin/init exists but couldn't execute it (error -8)
    [   11.291952] request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-464c, throttling...
    [   16.365158] request_module: modprobe binfmt-464c cannot be processed, kmod busy with 50 threads for more than 5 seconds now
    [   16.380286] Starting init: /bin/sh exists but couldn't execute it (error -8)
    [   16.399247] Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
    [   16.413910] ---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
    [   17.065043] random: fast init done
    [  148.255105] random: crng init done

    Any suggestions on how to resolve the dt issue with RTC. We do not have a Real Time Clock.

    I am not sure the issue with the other devices either, any help in regards to those would be appreciated.
    Attached are the new config and dts. I cleaned out a lot of the kernel config that is not required but am not sure if i made any mistakes.
    kernel.config

    /*
     * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.com/
     *
     * This program is free software; you can redistribute it and/or modify
     * it under the terms of the GNU General Public License version 2 as
     * published by the Free Software Foundation.
     */
    /dts-v1/;
    
    #include "am33xx.dtsi"
    #include <dt-bindings/interrupt-controller/irq.h>
    
    / {
        model = "TI AM335x EVM";
        compatible = "ti,am335x-evm", "ti,am33xx";
    
        cpus {
            cpu@0 {
    //            cpu0-supply = <&vdd1_reg>;
            };
        };
    
        memory@80000000 {
            device_type = "memory";
            reg = <0x80000000 0x8000000>; /* 128 MB */
        };
    
        chosen {
            stdout-path = &uart0;
        };
    
        vmmcsd_fixed: fixedregulator0 {
            compatible = "regulator-fixed";
            regulator-name = "vmmcsd_fixed";
    		regulator-min-microvolt = <3300000>;
    		regulator-max-microvolt = <3300000>;
            regulator-boot-on;
        };
    };
    
    &am33xx_pinmux {
        pinctrl-names = "default";
        pinctrl-0 = <&clkout2_pin>;
    
        i2c0_pins: pinmux_i2c0_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x988, PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c0_sda.i2c0_sda */
                AM33XX_IOPAD(0x98c, PIN_INPUT_PULLUP | MUX_MODE0)    /* i2c0_scl.i2c0_scl */
            >;
        };
    
        i2c1_pins: pinmux_i2c1_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x90C, PIN_INPUT_PULLUP | MUX_MODE3)    /* mii1_col.i2c1_sda */
                AM33XX_IOPAD(0x910, PIN_INPUT_PULLUP | MUX_MODE3)    /* mii1_rx_er.i2c1_scl */
            >;
        };
    
        i2c2_pins: pinmux_i2c2_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x978, PIN_INPUT_PULLUP | MUX_MODE3)    /* uart1_ctsn.i2c2_sda */
                AM33XX_IOPAD(0x97C, PIN_INPUT_PULLUP | MUX_MODE3)    /* uart1_rtsn.i2c2_scl */
            >;
        };
    
        uart0_pins: pinmux_uart0_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x970, PIN_INPUT_PULLUP | MUX_MODE0)    /* uart0_rxd.uart0_rxd */
                AM33XX_IOPAD(0x974, PIN_OUTPUT_PULLDOWN | MUX_MODE0)    /* uart0_txd.uart0_txd */
            >;
        };
    
        clkout2_pin: pinmux_clkout2_pin {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x9b4, PIN_OUTPUT_PULLDOWN | MUX_MODE3)    /* xdma_event_intr1.clkout2 */
            >;
        };
    
        mmc2_pins: pinmux_mmc2_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn1.mmc1_clk*/
                AM33XX_IOPAD(0x884, PIN_INPUT_PULLUP | MUX_MODE2) /* gpmc_csn2.mmc1_cmd*/
                AM33XX_IOPAD(0x800, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad0.mmc1_dat0*/
                AM33XX_IOPAD(0x804, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad1.mmc1_dat1*/
                AM33XX_IOPAD(0x808, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad2.mmc1_dat2*/
                AM33XX_IOPAD(0x80c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad3.mmc1_dat3*/
                AM33XX_IOPAD(0x810, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad4.mmc1_dat4*/
                AM33XX_IOPAD(0x814, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad5.mmc1_dat5*/
                AM33XX_IOPAD(0x818, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad6.mmc1_dat6*/
                AM33XX_IOPAD(0x81c, PIN_INPUT_PULLUP | MUX_MODE1) /* gpmc_ad7.mmc1_dat7*/
            >;
        };
        
        gpio0_pins: pinmux_gpio0_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x820, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ad8.gpio0_22   (gpio22)  (host_zeroize_a_n  U10)*/
                AM33XX_IOPAD(0x824, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* gpmc_ad9.gpio0_23   (gpio23)  (gpp_vmon_rst_n    T10)*/
                AM33XX_IOPAD(0x828, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ad10.gpio0_26  (gpio26)  (host_zeroize_b_n  T11)*/
                AM33XX_IOPAD(0x82C, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* gpmc_ad11.gpio0_27  (gpio27)  (io_exp_int_n      U12)*/
            >;
        };
    
        gpio1_pins: pinmux_gpio1_pins {
            pinctrl-single,pins = <
    //          AM33XX_IOPAD(0x864, PIN_INPUT_PULLUP | MUX_MODE7)  /* gpmc_a9.gpio1_25    (gpio57)  (io_exp_int_n       U16)*/
                AM33XX_IOPAD(0x878, PIN_INPUT_PULLUP | MUX_MODE7)  /* gpmc_ben1.gpio1_28  (gpio60)  (ext_mii_int_n      U18)*/
    //          AM33XX_IOPAD(0x880, PIN_INPUT_PULLUP | MUX_MODE7)  /* gpmc_csn1.gpio1_30  (gpio62)  (edge_detect_out_r  U9)*/
    //          AM33XX_IOPAD(0x884, PIN_OUTPUT_PULLUP | MUX_MODE7) /* gpmc_csn1.gpio1_31  (gpio63)  (pnm_rst_n          V9)*/
            >;
        };
    
        gpio2_pins: pinmux_gpio2_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x8E0, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_vsync.gpio2_22       (gpio86)  (gpp_2_dsp      U5)*/
                AM33XX_IOPAD(0x8E4, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_hsync.gpio2_23       (gpio87)  (reset_n        R5)*/
                AM33XX_IOPAD(0x8E8, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* lcd_pclk.gpio2_24        (gpio88)  (dsp_2_gpp      V5)*/
                AM33XX_IOPAD(0x8EC, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* lcd_ac_bias_en.gpio2_25  (gpio89)  (batt_low_led   R6)*/
                AM33XX_IOPAD(0x8F8, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* mmc0_dat1.gpio2_28       (gpio92)  (oeb_present_n  G15)*/
            >;
        };
    
        gpio3_pins: pinmux_gpio3_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x990, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_aclkx.gpio3_14   (gpio110)  (fp_zeroize_led     A13)*/
                AM33XX_IOPAD(0x994, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_fsx.gpio3_15     (gpio111)  (gpp_fp_alarm_led_n B13)*/
                AM33XX_IOPAD(0x998, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* mcasp0_axr0.gpio3_16    (gpio112)  (batt_adc_alert     D12)*/
                AM33XX_IOPAD(0x99c, PIN_OUTPUT_PULLDOWN | MUX_MODE7) /* mcasp0_ahclkr.gpio3_17  (gpio113)  (gpp_fp_fault_led_n C12)*/
                AM33XX_IOPAD(0x9ac, PIN_INPUT_PULLDOWN | MUX_MODE7)  /* mcasp0_ahclkx.gpio3_21  (gpio117)  (jtag_gpp_emu4      A14)*/
            >;
        };
    
        wlan_pins: pinmux_wlan_pins {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x840, PIN_OUTPUT_PULLDOWN | MUX_MODE7)    /* gpmc_a0.gpio1_16 */
                AM33XX_IOPAD(0x99c, PIN_INPUT | MUX_MODE7)        /* mcasp0_ahclkr.gpio3_17 */
                AM33XX_IOPAD(0x9ac, PIN_OUTPUT_PULLDOWN | MUX_MODE7)    /* mcasp0_ahclkx.gpio3_21 */
            >;
        };
    
        dcan1_pins_default: dcan1_pins_default {
            pinctrl-single,pins = <
                AM33XX_IOPAD(0x968, PIN_OUTPUT | MUX_MODE2) /* uart0_ctsn.d_can1_tx */
                AM33XX_IOPAD(0x96c, PIN_INPUT_PULLDOWN | MUX_MODE2) /* uart0_rtsn.d_can1_rx */
            >;
        };
    };
    
    
    &rtc {
    	clocks = <&clk_32768_ck>, <&clkdiv32k_ick>;
    	clock-names = "ext-clk", "int-clk";
    	system-power-controller;
    	status = "disabled";
    	reg = <0x0 0x0>;
    };
    
    &uart0 {
        pinctrl-names = "default";
        pinctrl-0 = <&uart0_pins>;
    
        status = "okay";
    };
    
    &i2c0 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c0_pins>;
    
        status = "okay";
        clock-frequency = <400000>;
    
    	tmp102: tmp102@48 {
    		compatible = "ti,tmp102";
    		reg = <0x48>;
    	};
    };
    
    &usb {
        status = "okay";
    };
    
    &usb_ctrl_mod {
        status = "okay";
    };
    
    &usb0_phy {
        //status = "okay";
        status = "disabled";
        #phy-cells = <0>;
    };
    
    &usb1_phy {
        status = "okay";
        #phy-cells = <0>;
    };
    
    &usb0 {
        //status = "okay";
        status = "disabled";
    };
    
    &usb1 {
        status = "okay";
        //dr_mode = "host";
    };
    
    &cppi41dma  {
        status = "okay";
    };
    
    &i2c1 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c1_pins>;
    
        status = "okay";
        clock-frequency = <400000>;
    
        gpio5: pca953x@74 {
           compatible = "nxp,pca9539";
           reg = <0x74>;
           pinctrl-names = "default";
        };
    };
    
    &i2c2 {
        pinctrl-names = "default";
        pinctrl-0 = <&i2c2_pins>;
    
        status = "okay";
        clock-frequency = <400000>;
    
    
        tmp175_1: tmp175_1@4A {
            compatible = "ti,tmp175";
            reg = <0x4A>;
        };
    
        tmp175_2: tmp175_2@4B {
            compatible = "ti,tmp175";
            reg = <0x4B>;
        };
    
        eeprom: eeprom@50 {
            compatible = "at,24c256";
            reg = <0x50>;
    
            #address-cells = <1>;
            #size-cells = <1>;
            data: data@0 {
                reg = <0 0x100>;
            };
        };
    };
    
    &gpio1 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio0_pins>;
    	status = "okay";
    };
    
    &gpio2 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio1_pins>;
    	status = "okay";
    };
    
    &gpio3 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio2_pins>;
    	status = "okay";
    };
    
    &gpio4 {
    	pinctrl-names = "default";
    	pinctrl-0 = <&gpio3_pins>;
    	status = "okay";
    };
    
    &mmc2 {
        status = "okay";
        vmmc-supply = <&vmmcsd_fixed>;
        bus-width = <8>;
        pinctrl-names = "default";
        pinctrl-0 = <&mmc2_pins>;
    	ti,vcc-aux-disable-is-sleep;
    };
    
    &edma {
    	ti,edma-xbar-event-map = /bits/ 16 <1 12 2 13>;
    };
    
    &sham {
        status = "okay";
    };
    
    &aes {
        status = "okay";
    };
    
    &dcan1 {
        status = "disabled";    /* Enable only if Profile 1 is selected */
        pinctrl-names = "default";
        pinctrl-0 = <&dcan1_pins_default>;
    };
    

    Thank you for your help and further assistance!

  • Hi,

    If you do not have a RTC, you may need to remove it from the HWMOD init in arch/arm/mach-omap2/omap_hwmod_43xx_data.c:

    .//r

    int __init am43xx_hwmod_init(void)
    {
            int ret;
    
            omap_hwmod_am43xx_reg();
            omap_hwmod_init();
            ret = omap_hwmod_register_links(am43xx_hwmod_ocp_ifs);
    
            if (!ret && of_machine_is_compatible("ti,am4372"))  <-- Delete
                    ret = omap_hwmod_register_links(am43xx_rtc_hwmod_ocp_ifs); <-- Delete
    
            return ret;
    }
    

    You should then be able to remove the node from DT and still boot.

    I hope this helps.

  • Hi,

    That helped a lot with preventing the RTC from getting initialized. Instead of deleting those lines i commented out: &am33xx_l4_wkup__rtc on line 524 from omap_hwmod_33xx_data.c.
    This prevents it from even attempting anything with the RTC.

    Thanks!