Custom AM335x: CEC 4.20 with Debian stretch 9 boot hangs

I have a custom board based on beaglebone black. I am trying to enable HDMI-CEC. I started off with Kernel 4.19 as per RCN, but it had some bugs on HDMI-CEC side. So Hans Verkuil (HDMI-CEC kernel framework moderator) recommended using kernel 4.20

I compiled the kernel and tried booting it with Debian stretch 9 but it fails at boot.

I am not able to attach or copy my complete boot log here.

But It hangs here:
[ 1.903109] mmcblk1rpmb: mmc1:0001 DG4008 partition 3 4.00 MiB, chardev (248)

This is the first time I am seeing this hang up. I would really appreciate if anyone can help me figure out this problem.

Thank you

@samy03, there is something else going on, can you get us your full serial boot log from power on?

Regards,

@RobertCNelson Here is my boot log:

U-Boot 2018.03-dirty (Aug 14 2018 - 08:41:54 -0600)

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver ‘omap_hsmmc’
No match for driver ‘omap_hsmmc’
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4… ** File not found /boot/uboot.env **

** Unable to read “/boot/uboot.env” from mmc0:1 **
Failed (-5)
Board: BeagleBone Black
not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] …
board_rev=[000C] …
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
** Bad device 0:2 0x82000000 **
** Bad device 0:2 0x82000000 **
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt …
Checking for: /boot.scr …
Checking for: /boot/boot.scr …
Checking for: /boot/uEnv.txt …
gpio: pin 55 (gpio 55) value is 1
216 bytes read in 29 ms (6.8 KiB/s)
Loaded environment from /boot/uEnv.txt
debug: [dtb=am335x-boneblack.dtb] …
Using: dtb=am335x-boneblack.dtb …
Checking if uname_r is set in /boot/uEnv.txt…
gpio: pin 56 (gpio 56) value is 1
Running uname_boot …
loading /boot/vmlinuz-4.20.0-rc1 …
4462936 bytes read in 313 ms (13.6 MiB/s)
loading /boot/dtbs/4.20.0-rc1/am335x-boneblack.dtb …
34886 bytes read in 51 ms (668 KiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable…
debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait].
debug: [bootz 0x82000000 - 0x88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Device Tree to 8fff4000, end 8ffff845 … OK

Starting kernel …

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.20.0-rc1 (root@threesixty-1) (gcc version 6.4.1 9
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructie
[ 0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] cma: Reserved 16 MiB at 0x9e800000
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] AM335X ES2.1 (sgx neon)
[ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x49c wit0
[ 0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s42152 r8192 d23384 u7378
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
[ 0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p1 t
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 479012K/522240K available (9216K kernel code, 796K rwdat)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xdfe00000 ( 510 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0x(ptrval) - 0x(ptrval) (10208 kB)
[ 0.000000] .init : 0x(ptrval) - 0x(ptrval) (1024 kB)
[ 0.000000] .data : 0x(ptrval) - 0x(ptrval) ( 797 kB)
[ 0.000000] .bss : 0x(ptrval) - 0x(ptrval) (7445 kB)
[ 0.000000] Running RCU self tests
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] rcu: RCU event tracing is enabled.
[ 0.000000] rcu: RCU lockdep checking is enabled.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=2 to nr_cpu_ids=1.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 ji.
[ 0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrus
[ 0.000000] OMAP clockevent source: timer2 at 24000000 Hz
[ 0.000019] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 8947s
[ 0.000052] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, mas
[ 0.000114] OMAP clocksource: timer1 at 24000000 Hz
[ 0.000631] timer_probe: no matching timers found
[ 0.001833] Console: colour dummy device 80x30
[ 0.001899] WARNING: Your ‘console=ttyO0’ has been replaced by ‘ttyS0’
[ 0.001917] This ensures that you still see kernel messages. Please
[ 0.001932] update your kernel commandline.
[ 0.001949] Lock dependency validator: Copyright © 2006 Red Hat, Inc., Ingr
[ 0.001965] … MAX_LOCKDEP_SUBCLASSES: 8
[ 0.001981] … MAX_LOCK_DEPTH: 48
[ 0.001997] … MAX_LOCKDEP_KEYS: 8191
[ 0.002012] … CLASSHASH_SIZE: 4096
[ 0.002028] … MAX_LOCKDEP_ENTRIES: 32768
[ 0.002043] … MAX_LOCKDEP_CHAINS: 65536
[ 0.002058] … CHAINHASH_SIZE: 32768
[ 0.002074] memory used by lock dependency info: 4623 kB
[ 0.002090] per task-struct memory footprint: 1536 bytes
[ 0.002180] Calibrating delay loop… 996.14 BogoMIPS (lpj=4980736)
[ 0.078553] pid_max: default: 32768 minimum: 301
[ 0.078997] LSM: Security Framework initializing
[ 0.079165] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.079190] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.082598] CPU: Testing write buffer coherency: ok
[ 0.082783] CPU0: Spectre v2: using BPIALL workaround
[ 0.084290] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.086708] Setting up static identity map for 0x80100000 - 0x80100078
[ 0.087366] rcu: Hierarchical SRCU implementation.
[ 0.089248] smp: Bringing up secondary CPUs …
[ 0.089279] smp: Brought up 1 node, 1 CPU
[ 0.089298] SMP: Total of 1 processors activated (996.14 BogoMIPS).
[ 0.089317] CPU: All CPU(s) started in SVC mode.
[ 0.093420] devtmpfs: initialized
[ 0.119755] VFP support v0.3: implementor 41 architecture 3 part 30 variant 3
[ 0.120539] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ms
[ 0.120610] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.122325] pinctrl core: initialized pinctrl subsystem
[ 0.127515] NET: Registered protocol family 16
[ 0.134683] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.194146] l4_wkup_cm:clk:0010:0: failed to disable
[ 0.236054] audit: initializing netlink subsys (disabled)
[ 0.239114] cpuidle: using governor menu
[ 0.252733] audit: type=2000 audit(0.230:1): state=initialized audit_enabled1
[ 0.254187] OMAP GPIO hardware version 0.1
[ 0.279445] No ATAGs?
[ 0.279458] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.279938] omap4_sram_init:Unable to allocate sram needed to handle errata 8
[ 0.279967] omap4_sram_init:Unable to get sram pool needed to handle errata 8
[ 0.317209] edma 49000000.edma: TI EDMA DMA engine driver
[ 0.324082] vgaarb: loaded
[ 0.325197] SCSI subsystem initialized
[ 0.327186] pps_core: LinuxPPS API ver. 1 registered
[ 0.327216] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giom>
[ 0.327271] PTP clock support registered
[ 0.331909] clocksource: Switched to clocksource timer1
[ 0.484785] VFS: Disk quotas dquot_6.6.0
[ 0.485013] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.511275] NET: Registered protocol family 2
[ 0.513755] tcp_listen_portaddr_hash hash table entries: 256 (order: 1, 1024)
[ 0.513857] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.513954] TCP bind hash table entries: 4096 (order: 5, 147456 bytes)
[ 0.514535] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.514961] UDP hash table entries: 256 (order: 2, 20480 bytes)
[ 0.515080] UDP-Lite hash table entries: 256 (order: 2, 20480 bytes)
[ 0.515665] NET: Registered protocol family 1
[ 0.518591] RPC: Registered named UNIX socket transport module.
[ 0.518678] RPC: Registered udp transport module.
[ 0.518697] RPC: Registered tcp transport module.
[ 0.518716] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.522319] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 countee
[ 0.527496] Initialise system trusted keyrings
[ 0.528485] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 0.532006] NFS: Registering the id_resolver key type
[ 0.532217] Key type id_resolver registered
[ 0.532293] Key type id_legacy registered
[ 0.532554] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc.
[ 0.553833] Key type asymmetric registered
[ 0.554043] Asymmetric key parser ‘x509’ registered
[ 0.554235] io scheduler noop registered
[ 0.554260] io scheduler deadline registered
[ 0.554478] io scheduler cfq registered (default)
[ 0.554506] io scheduler mq-deadline registered
[ 0.554526] io scheduler kyber registered
[ 0.557314] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[ 0.566379] Serial: 8250/16550 driver, 6 ports, IRQ sharing enabled
[ 0.579318] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 30, base_baud =0
[ 1.298801] printk: console [ttyS0] enabled
[ 1.335897] brd: module loaded
[ 1.366217] loop: module loaded
[ 1.372230] mtdoops: mtd device (mtddev=name/number) must be supplied
[ 1.381998] libphy: Fixed MDIO Bus: probed
[ 1.461895] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 0
[ 1.469723] libphy: 4a101000.mdio: probed
[ 1.476813] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, dri0
[ 1.487587] cpsw 4a100000.ethernet: Detected MACID = fc:69:47:3a:98:d5
[ 1.494761] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[ 1.501171] cpsw 4a100000.ethernet: ALE Table size 1024
[ 1.506606] cpsw 4a100000.ethernet: cpts: overflow check period 500 (jiffies)
[ 1.517293] i2c /dev entries driver
[ 1.524649] sdhci: Secure Digital Host Controller Interface driver
[ 1.530891] sdhci: Copyright© Pierre Ossman
[ 1.536827] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000)
[ 1.545726] omap_hsmmc 48060000.mmc: Got CD GPIO
[ 1.552301] omap_hsmmc 48060000.mmc: Linked as a consumer to regulator.1
[ 1.588899] omap_hsmmc 481d8000.mmc: Linked as a consumer to regulator.1
[ 1.622285] sdhci-pltfm: SDHCI platform and OF driver helper
[ 1.629329] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.638534] oprofile: using arm/armv7
[ 1.643220] Initializing XFRM netlink socket
[ 1.648098] NET: Registered protocol family 10
[ 1.656830] Segment Routing with IPv6
[ 1.660686] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[ 1.668953] NET: Registered protocol family 17
[ 1.673686] NET: Registered protocol family 15
[ 1.678361] Key type dns_resolver registered
[ 1.682906] ThumbEE CPU extension supported.
[ 1.687235] Registering SWP/SWPB emulation handler
[ 1.692168] omap_voltage_late_init: Voltage driver support not added
[ 1.698576] sr_dev_init: Unknown instance smartreflex0
[ 1.704244] SmartReflex Class3 initialized
[ 1.711917] Loading compiled-in X.509 certificates
[ 1.803239] random: fast init done
[ 1.824403] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[ 1.830888] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[ 1.840876] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[ 1.848785] hctosys: unable to open rtc device (rtc0)
[ 1.854132] sr_init: No PMIC hook to init smartreflex
[ 1.863820] Waiting for root device /dev/mmcblk0p1…
[ 1.871113] mmc1: new high speed MMC card at address 0001
[ 1.880735] mmcblk1: mmc1:0001 DG4008 7.28 GiB
[ 1.887532] mmcblk1boot0: mmc1:0001 DG4008 partition 1 4.00 MiB
[ 1.895408] mmcblk1boot1: mmc1:0001 DG4008 partition 2 4.00 MiB
[ 1.903109] mmcblk1rpmb: mmc1:0001 DG4008 partition 3 4.00 MiB, chardev (248)

Just FYI, the custom board boots fine with kernel 4.19 or any older kernel.
Appreciate your response.

Thank you

Yeah, let’s not deal with 4.20.0-rc1…

From your working image, run to install 5.1.x:

cd /opt/scripts/tools/
git pull
sudo ./update_kernel.sh --bone-channel --exp
sudo reboot

Next update the bb.org-overlays repo to get this file: Add CEC version of HDMI · beagleboard/bb.org-overlays@d3c7711 · GitHub

cd /opt/source/bb.org-overlays/
git pull
make
sudo make install

Next open /boot/uEnv.txt and make a few changes:

#disable_uboot_overlay_video=1 -> disable_uboot_overlay_video=1

and

dtb_overlay=/lib/firmware/<file8>.dtbo -> dtb_overlay=/lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo

Bootup should look like:

U-Boot SPL 2019.04-00002-gc8b5ad3a1f (Apr 16 2019 - 09:21:31 -0500)
Trying to boot from MMC1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **


U-Boot 2019.04-00002-gc8b5ad3a1f (Apr 16 2019 - 09:21:31 -0500), Build: jenkins-github_Bootloader-Builder-116

CPU  : AM335X-GP rev 2.0
I2C:   ready
DRAM:  512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Global warm SW reset has occurred.
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

** Unable to read "/boot/uboot.env" from mmc0:1 **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[0A5A] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
2288 bytes read in 160 ms (13.7 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-5.1.3-bone3 ...
8229376 bytes read in 700 ms (11.2 MiB/s)
debug: [enable_uboot_overlays=1] ...
debug: [enable_uboot_cape_universal=1] ...
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ...
loading /boot/dtbs/5.1.3-bone3/am335x-boneblack-uboot-univ.dtb ...
206146 bytes read in 126 ms (1.6 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ...
1440 bytes read in 79 ms (17.6 KiB/s)
uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_video=1]...
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ...
711 bytes read in 415 ms (1000 Bytes/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-UIO-00A0.dtbo ...
883 bytes read in 772 ms (1000 Bytes/s)
uboot_overlays: [dtb_overlay=/lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo] ...
uboot_overlays: loading /lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo ...
5323 bytes read in 265 ms (19.5 KiB/s)
loading /boot/initrd.img-5.1.3-bone3 ...
4688111 bytes read in 497 ms (9 MiB/s)
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet cape_universal=enable] ...
debug: [bootz 0x82000000 0x88080000:4788ef 88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Ramdisk to 8fb87000, end 8ffff8ef ... OK
   Loading Device Tree to 8faf0000, end 8fb86fff ... OK

Starting kernel ...

[    0.001551] timer_probe: no matching timers found
[    0.296729] l3-aon-clkctrl:0000:0: failed to disable
[    1.670641] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    2.183713] omap_voltage_late_init: Voltage driver support not added
rootfs: clean, 46038/108640 files, 271757/434176 blocks
Debian GNU/Linux 9 arm ttyS0

rcn-ee.net console Debian Image 2019-05-10

Support/FAQ: http://elinux.org/BeagleBoardDebian

default username:password is [debian:temppwd]

arm login:

I don’t see the cec driver loaded, but device tree should have the cec stuff enabled now…

Regards,

I followed your instructions, and latest kernel is still doing the same thing. I tested the image on beaglebone black and it seems to boot and work on it, but not on my custom board.

Following is my boot log on my custom board:

U-Boot 2018.09-00002-gd5b4c4b656 (Oct 19 2018 - 14:16:02 -0500), Build: jenkins-
github_Bootloader-Builder-84

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver ‘omap_hsmmc’
No match for driver ‘omap_hsmmc’
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4… ** File not found /boot/uboot.env **

** Unable to read “/boot/uboot.env” from mmc0:1 **
Board: BeagleBone Black
not set. Validating first E-fuse MAC
BeagleBone Black:
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
BeagleBone: cape eeprom: i2c_probe: 0x54:
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
BeagleBone: cape eeprom: i2c_probe: 0x55:
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
BeagleBone: cape eeprom: i2c_probe: 0x56:
Timed out in wait_for_event: status=0000
Check if pads/pull-ups of bus are properly configured
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] …
board_rev=[000C] …
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1…
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt …
Checking for: /boot.scr …
Checking for: /boot/boot.scr …
Checking for: /boot/uEnv.txt …
gpio: pin 55 (gpio 55) value is 1
2134 bytes read in 23 ms (89.8 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt…
gpio: pin 56 (gpio 56) value is 1
Running uname_boot …
loading /boot/vmlinuz-5.1.3-bone3 …
8229376 bytes read in 539 ms (14.6 MiB/s)
debug: [enable_uboot_overlays=1] …
debug: [enable_uboot_cape_universal=1] …
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] …
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] …
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb …
loading /boot/dtbs/5.1.3-bone3/am335x-boneblack-uboot-univ.dtb …
206146 bytes read in 40 ms (4.9 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] …
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo …
1440 bytes read in 53 ms (26.4 KiB/s)
uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disab
led by /boot/uEnv.txt [disable_uboot_overlay_video=1]…
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo …
711 bytes read in 168 ms (3.9 KiB/s)
uboot_overlays: loading /lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo …
3513 bytes read in 149 ms (22.5 KiB/s)
uboot_overlays: [dtb_overlay=/lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo] …
uboot_overlays: loading /lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo …
5323 bytes read in 77 ms (67.4 KiB/s)
loading /boot/initrd.img-5.1.3-bone3 …
4895831 bytes read in 330 ms (14.1 MiB/s)
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mm
cblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] …
debug: [bootz 0x82000000 0x88080000:4ab457 88000000] …

Flattened Device Tree blob at 88000000

Booting using the fdt blob at 0x88000000
Loading Ramdisk to 8fb54000, end 8ffff457 … OK
reserving fdt memory region: addr=88000000 size=94000
Loading Device Tree to 8fabd000, end 8fb53fff … OK

Starting kernel …

[ 0.001579] timer_probe: no matching timers found
[ 0.298145] l3-aon-clkctrl:0000:0: failed to disable
[ 1.684586] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[ 10.141728] omap_voltage_late_init: Voltage driver support not added
[ 10.947291] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd),
retry #3, port1 0008010c
Gave up waiting for root file system device. Common problems:

  • Boot args (cat /proc/cmdline)
    • Check rootdelay= (did the system wait long enough?)
  • Missing modules (cat /proc/modules; ls /dev)
    ALERT! /dev/mmcblk0p1 does not exist. Dropping to a shell!

BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)
Enter ‘help’ for a list of built-in commands.

(initramfs)

What can I do to make it work on the custom board? All older kernels seem to work fine but its just anything above 4.19 is not booting.

So you have a “custom” board reporting itself as a BeagleBone Black Rev C…

Is it a 100% clone of the BeagleBone Black, as in ddr3 memory, mmc, regulators, etc?

Aka what did you change or do differently?

Regards,

Only USB is removed. Rest is all the same as beaglebone.
DDR, EMMC, regulators are all the same.

Thank you

okay, well in /boot/uEnv.txt let remove the “quiet” option from the enabled cmdline near the bottom, and let’s capture the full boot log to see what’s failing…

Regards,

Here is the full boot log:

U-Boot 2018.09-00002-gd5b4c4b656 (Oct 19 2018 - 14:16:02 -0500), Build: jenkins-
github_Bootloader-Builder-84                                                    
                                                                                
CPU  : AM335X-GP rev 2.1                                                        
I2C:   ready                                                                    
DRAM:  512 MiB                                                                  
No match for driver 'omap_hsmmc'                                                
No match for driver 'omap_hsmmc'                                                
Some drivers were not found                                                     
Reset Source: Power-on reset has occurred.                                      
RTC 32KCLK Source: External.                                                    
MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1                                           
Loading Environment from EXT4... ** File not found /boot/uboot.env **           
                                                                                
** Unable to read "/boot/uboot.env" from mmc0:1 **                              
Board: BeagleBone Black                                                         
<ethaddr> not set. Validating first E-fuse MAC                                  
BeagleBone Black:                                                               
Timed out in wait_for_event: status=0000                                        
Check if pads/pull-ups of bus are properly configured                           
BeagleBone: cape eeprom: i2c_probe: 0x54:                                       
Timed out in wait_for_event: status=0000                                        
Check if pads/pull-ups of bus are properly configured                           
BeagleBone: cape eeprom: i2c_probe: 0x55:                                       
Timed out in wait_for_event: status=0000                                        
Check if pads/pull-ups of bus are properly configured                           
BeagleBone: cape eeprom: i2c_probe: 0x56:                                       
Timed out in wait_for_event: status=0000                                        
Check if pads/pull-ups of bus are properly configured                           
BeagleBone: cape eeprom: i2c_probe: 0x57:                                       
Net:   eth0: MII MODE                                                           
cpsw, usb_ether                                                                 
Press SPACE to abort autoboot in 2 seconds                                      
board_name=[A335BNLT] ...                                                       
board_rev=[000C] ...                                                            
switch to partitions #0, OK                                                     
mmc0 is current device                                                          
SD/MMC found on device 0                                                        
switch to partitions #0, OK                                                     
mmc0 is current device                                                          
Scanning mmc 0:1...                                                             
gpio: pin 56 (gpio 56) value is 0                                               
gpio: pin 55 (gpio 55) value is 0                                               
gpio: pin 54 (gpio 54) value is 0                                               
gpio: pin 53 (gpio 53) value is 1                                               
switch to partitions #0, OK                                                     
mmc0 is current device                                                          
gpio: pin 54 (gpio 54) value is 1                                               
Checking for: /uEnv.txt ...                                                     
Checking for: /boot.scr ...                                                     
Checking for: /boot/boot.scr ...                                                
Checking for: /boot/uEnv.txt ...                                                
gpio: pin 55 (gpio 55) value is 1                                               
2128 bytes read in 20 ms (103.5 KiB/s)                                          
Loaded environment from /boot/uEnv.txt                                          
Checking if uname_r is set in /boot/uEnv.txt...                                 
gpio: pin 56 (gpio 56) value is 1                                               
Running uname_boot ...                                                          
loading /boot/vmlinuz-5.1.3-bone3 ...                                           
8229376 bytes read in 539 ms (14.6 MiB/s)                                       
debug: [enable_uboot_overlays=1] ...                                            
debug: [enable_uboot_cape_universal=1] ...                                      
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ...                
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...            
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ...          
loading /boot/dtbs/5.1.3-bone3/am335x-boneblack-uboot-univ.dtb ...              
206146 bytes read in 40 ms (4.9 MiB/s)                                          
uboot_overlays: [fdt_buffer=0x60000] ...                                        
uboot_overlays: loading /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo ...            
1440 bytes read in 52 ms (26.4 KiB/s)                                           
uboot_overlays: uboot loading of [/lib/firmware/BB-HDMI-TDA998x-00A0.dtbo] disab
led by /boot/uEnv.txt [disable_uboot_overlay_video=1]...                        
uboot_overlays: loading /lib/firmware/BB-ADC-00A0.dtbo ...                      
711 bytes read in 167 ms (3.9 KiB/s)                                            
uboot_overlays: loading /lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo ...    
3513 bytes read in 148 ms (22.5 KiB/s)                                          
uboot_overlays: [dtb_overlay=/lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo] ...   
uboot_overlays: loading /lib/firmware/BB-HDMI-CEC-TDA998x-00A0.dtbo ...         
5323 bytes read in 77 ms (67.4 KiB/s)                                           
loading /boot/initrd.img-5.1.3-bone3 ...                                        
4895831 bytes read in 330 ms (14.1 MiB/s)                                       
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mm
cblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0] ...         
debug: [bootz 0x82000000 0x88080000:4ab457 88000000] ...                        
## Flattened Device Tree blob at 88000000                                       
   Booting using the fdt blob at 0x88000000                                     
   Loading Ramdisk to 8fb54000, end 8ffff457 ... OK                             
   reserving fdt memory region: addr=88000000 size=94000                        
   Loading Device Tree to 8fabd000, end 8fb53fff ... OK                         
                                                                                
Starting kernel ...                                                             
                                                                                
[    0.000000] Booting Linux on physical CPU 0x0                                
[    0.000000] Linux version 5.1.3-bone3 (voodoo@w7-imx6q-wandboard-2gb) (gcc ve
rsion 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1stretch PREEMPT Thu May 16 23:2
7:18 UTC 2019                                                                   
[    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d  
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio
n cache                                                                         
[    0.000000] OF: fdt: Machine model: TI AM335x BeagleBone Black               
[    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 0x9d000000                               
[    0.000000] CPU: All CPU(s) started in SVC mode.                             
[    0.000000] AM335X ES2.1 (sgx neon)                                          
[    0.000000] random: get_random_bytes called from _etext+0x400935/0x448a52 wit
h crng_init=0                                                                   
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920    
[    0.000000] Kernel command line: console=ttyO0,115200n8 bone_capemgr.uboot_ca
pemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M
 net.ifnames=0                                                                  
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)  
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)   
[    0.000000] Memory: 449356K/524288K available (8192K kernel code, 984K rwdata
, 3036K rodata, 1024K init, 322K bss, 25780K reserved, 49152K cma-reserved, 0K h
ighmem)                                                                         
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1       
[    0.000000] ftrace: allocating 38908 entries in 76 pages                     
[    0.000000] rcu: Preemptible hierarchical RCU implementation.                
[    0.000000]  Tasks RCU enabled.                                              
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jif
fies.                                                                           
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16                  
[    0.000000] IRQ: Found an INTC at 0x(ptrval) (revision 5.0) with 128 interrup
ts                                                                              
[    0.000000] OMAP clockevent source: timer2 at 24000000 Hz                    
[    0.000017] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478
484971ns                                                                        
[    0.000042] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max
_idle_ns: 79635851949 ns                                                        
[    0.000053] OMAP clocksource: timer1 at 24000000 Hz                          
[    0.001596] timer_probe: no matching timers found                            
[    0.001864] Console: colour dummy device 80x30                               
[    0.001893] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'       
[    0.001900] This ensures that you still see kernel messages. Please          
[    0.001906] update your kernel commandline.                                  
[    0.001953] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)          
[    0.021415] pid_max: default: 32768 minimum: 301                             
[    0.021703] LSM: Security Framework initializing                             
[    0.021792] Yama: becoming mindful.                                          
[    0.021847] SELinux:  Initializing.                                          
[    0.021982] *** VALIDATE SELinux ***                                         
[    0.021997] TOMOYO Linux initialized                                         
[    0.022070] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)      
[    0.022084] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) 
[    0.022783] *** VALIDATE proc ***                                            
[    0.023063] *** VALIDATE cgroup1 ***                                         
[    0.023076] *** VALIDATE cgroup2 ***                                         
[    0.023134] CPU: Testing write buffer coherency: ok                          
[    0.023180] CPU0: Spectre v2: using BPIALL workaround                        
[    0.024071] Setting up static identity map for 0x80100000 - 0x80100054       
[    0.024219] rcu: Hierarchical SRCU implementation.                           
[    0.026825] EFI services will not be available.                              
[    0.028362] devtmpfs: initialized                                            
[    0.057507] VFP support v0.3: implementor 41 architecture 3 part 30 variant c
 rev 3                                                                          
[    0.057959] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, ma
x_idle_ns: 7645041785100000 ns                                                  
[    0.057980] futex hash table entries: 256 (order: -1, 3072 bytes)            
[    0.061679] xor: measuring software checksum speed                           
[    0.101395]    arm4regs  :  1213.000 MB/sec                                  
[    0.141392]    8regs     :  1095.000 MB/sec                                  
[    0.181394]    32regs    :  1093.000 MB/sec                                  
[    0.221392]    neon      :  1680.000 MB/sec                                  
[    0.221400] xor: using function: neon (1680.000 MB/sec)                      
[    0.221417] pinctrl core: initialized pinctrl subsystem                      
[    0.222145] DMI not present or invalid.                                      
[    0.222577] NET: Registered protocol family 16                               
[    0.226100] DMA: preallocated 1024 KiB pool for atomic coherent allocations  
[    0.301900] l3-aon-clkctrl:0000:0: failed to disable                         
[    0.342188] audit: initializing netlink subsys (disabled)                    
[    0.343208] cpuidle: using governor menu                                     
[    0.349463] audit: type=2000 audit(0.340:1): state=initialized audit_enabled=
0 res=1                                                                         
[    0.363364] No ATAGs?                                                        
[    0.363374] hw-breakpoint: debug architecture 0x4 unsupported.               
[    0.375067] raid6: using algorithm neonx8 gen() 0 MB/s                       
[    0.375084] raid6: .... xor() 0 MB/s, rmw enabled                            
[    0.375092] raid6: using neon recovery algorithm                             
[    0.380782] edma 49000000.edma: TI EDMA DMA engine driver                    
[    0.385171] SCSI subsystem initialized                                       
[    0.385557] usbcore: registered new interface driver usbfs                   
[    0.385604] usbcore: registered new interface driver hub                     
[    0.385744] usbcore: registered new device driver usb                        
[    0.386713] pps_core: LinuxPPS API ver. 1 registered                         
[    0.386725] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giome
tti <giometti@linux.it>                                                         
[    0.386746] PTP clock support registered                                     
[    0.387589] Advanced Linux Sound Architecture Driver Initialized.            
[    0.388187] NetLabel: Initializing                                           
[    0.388199] NetLabel:  domain hash size = 128                                
[    0.388205] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO                 
[    0.388282] NetLabel:  unlabeled traffic allowed by default                  
[    0.389020] clocksource: Switched to clocksource timer1                      
[    1.025026] random: fast init done                                           
[    1.053668] VFS: Disk quotas dquot_6.6.0                                     
[    1.053744] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)  
[    1.064171] NET: Registered protocol family 2                                
[    1.065005] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 
bytes)                                                                          
[    1.065185] TCP established hash table entries: 4096 (order: 2, 16384 bytes) 
[    1.065225] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)        
[    1.065263] TCP: Hash tables configured (established 4096 bind 4096)         
[    1.065384] UDP hash table entries: 256 (order: 0, 4096 bytes)               
[    1.065402] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)          
[    1.065597] NET: Registered protocol family 1                                
[    1.066301] RPC: Registered named UNIX socket transport module.              
[    1.066314] RPC: Registered udp transport module.                            
[    1.066321] RPC: Registered tcp transport module.                            
[    1.066327] RPC: Registered tcp NFSv4.1 backchannel transport module.        
[    1.066637] Unpacking initramfs...                                           
[    1.350126] Freeing initrd memory: 4784K                                     
[    1.350729] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counter
s available                                                                     
[    1.353388] Initialise system trusted keyrings                               
[    1.353678] workingset: timestamp_bits=14 max_order=17 bucket_order=3        
[    1.359743] zbud: loaded                                                     
[    1.362349] NFS: Registering the id_resolver key type                        
[    1.362390] Key type id_resolver registered                                  
[    1.362397] Key type id_legacy registered                                    
[    1.362414] nfs4filelayout_init: NFSv4 File Layout Driver Registering...     
[    1.362712] fuse init (API version 7.29)                                     
[    1.608807] Key type asymmetric registered                                   
[    1.608830] Asymmetric key parser 'x509' registered                          
[    1.608929] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2
46)                                                                             
[    1.609347] io scheduler mq-deadline registered                              
[    1.613422] OMAP GPIO hardware version 0.1                                   
[    1.621538] omap_i2c 4802a000.i2c: bus 1 rev0.11 at 100 kHz                  
[    1.623459] ti-sysc 48042000.target-module: sysc_flags 00000222 != 00000022  
[    1.624057] ti-sysc 48044000.target-module: sysc_flags 00000222 != 00000022  
[    1.624640] ti-sysc 48046000.target-module: sysc_flags 00000222 != 00000022  
[    1.625351] ti-sysc 48048000.target-module: sysc_flags 00000222 != 00000022  
[    1.625950] ti-sysc 4804a000.target-module: sysc_flags 00000222 != 00000022  
[    1.629221] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400            
[    1.631416] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz                  
[    1.639912] ti-sysc 4830e000.target-module: idlemodes 00000087 != 00000007   
[    1.641246] ti-sysc 4a101200.target-module: rev_offs 00001200 != 00000000    
[    1.641262] ti-sysc 4a101200.target-module: sysc_offs 00001208 != 00000008   
[    1.641272] ti-sysc 4a101200.target-module: syss_offs 00001204 != 00000004   
[    1.669524] pinctrl-single 44e10800.pinmux: 142 pins, size 568               
[    1.679404] gpio-of-helper ocp:cape-universal: ready                         
[    1.689332] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle     
[    1.691503] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled         
[    1.694855] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 29, base_baud = 
3000000) is a 8250                                                              
[    2.463026] printk: console [ttyS0] enabled                                  
[    2.468196] 48022000.serial: ttyS1 at MMIO 0x48022000 (irq = 36, base_baud = 
3000000) is a 8250                                                              
[    2.477886] 48024000.serial: ttyS2 at MMIO 0x48024000 (irq = 37, base_baud = 
3000000) is a 8250                                                              
[    2.487577] 481a6000.serial: ttyS3 at MMIO 0x481a6000 (irq = 52, base_baud = 
3000000) is a 8250                                                              
[    2.497207] 481a8000.serial: ttyS4 at MMIO 0x481a8000 (irq = 53, base_baud = 
3000000) is a 8250                                                              
[    2.506756] 481aa000.serial: ttyS5 at MMIO 0x481aa000 (irq = 54, base_baud = 
3000000) is a 8250                                                              
[    2.519017] omap_rng 48310000.rng: Random Number Generator ver. 20           
[    3.537039] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[    4.549028] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[    5.561030] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[    6.573027] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[    7.585029] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[    8.597027] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[    9.609029] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[   10.621027] omap_i2c 4819c000.i2c: timeout waiting for bus ready             
[   10.629219] eqep 48300180.eqep: ver. 1.0                                     
[   10.633348] eqep 48300180.eqep: count_mode:0                                 
[   10.637666] eqep 48300180.eqep: invert_qa:1                                  
[   10.641880] eqep 48300180.eqep: invert_qb:1                                  
[   10.646094] eqep 48300180.eqep: invert_qi:0                                  
[   10.650308] eqep 48300180.eqep: invert_qs:0                                  
[   10.654522] eqep 48300180.eqep: swap_inputs:0                                
[   10.658910] eqep 48300180.eqep: QDECCTL:0x0180                               
[   10.663384] eqep 48300180.eqep: QPOSINIT:0x00000000                          
[   10.668293] eqep 48300180.eqep: QPOSMAX:0xffffffff                           
[   10.673117] eqep 48300180.eqep: QPOSCNT:0x00000000                           
[   10.677941] eqep 48300180.eqep: omit_interrupt:0                             
[   10.682589] eqep 48300180.eqep: QEINT:0x0800                                 
[   10.686888] eqep 48300180.eqep: QUPRD:0x05f5e100                             
[   10.691534] eqep 48300180.eqep: QEPCTL:0x009e write                          
[   10.696445] eqep 48300180.eqep: QEPCTL:0x009e read                           
[   10.701281] eqep 48300180.eqep: irq:136, clk_rate:100000000                  
[   10.707125] eqep 48302180.eqep: ver. 1.0                                     
[   10.711182] eqep 48302180.eqep: count_mode:0                                 
[   10.715494] eqep 48302180.eqep: invert_qa:1                                  
[   10.719711] eqep 48302180.eqep: invert_qb:1                                  
[   10.723925] eqep 48302180.eqep: invert_qi:0                                  
[   10.728138] eqep 48302180.eqep: invert_qs:0                                  
[   10.732350] eqep 48302180.eqep: swap_inputs:0                                
[   10.736736] eqep 48302180.eqep: QDECCTL:0x0180                               
[   10.741211] eqep 48302180.eqep: QPOSINIT:0x00000000                          
[   10.746120] eqep 48302180.eqep: QPOSMAX:0xffffffff                           
[   10.750945] eqep 48302180.eqep: QPOSCNT:0x00000000                           
[   10.755768] eqep 48302180.eqep: omit_interrupt:0                             
[   10.760415] eqep 48302180.eqep: QEINT:0x0800                                 
[   10.764713] eqep 48302180.eqep: QUPRD:0x05f5e100                             
[   10.769362] eqep 48302180.eqep: QEPCTL:0x009e write                          
[   10.774271] eqep 48302180.eqep: QEPCTL:0x009e read                           
[   10.779105] eqep 48302180.eqep: irq:138, clk_rate:100000000                  
[   10.784899] eqep 48304180.eqep: ver. 1.0                                     
[   10.788937] eqep 48304180.eqep: count_mode:0                                 
[   10.793250] eqep 48304180.eqep: invert_qa:1                                  
[   10.797464] eqep 48304180.eqep: invert_qb:1                                  
[   10.801678] eqep 48304180.eqep: invert_qi:0                                  
[   10.805892] eqep 48304180.eqep: invert_qs:0                                  
[   10.810105] eqep 48304180.eqep: swap_inputs:0                                
[   10.814491] eqep 48304180.eqep: QDECCTL:0x0180                               
[   10.818965] eqep 48304180.eqep: QPOSINIT:0x00000000                          
[   10.823874] eqep 48304180.eqep: QPOSMAX:0xffffffff                           
[   10.828696] eqep 48304180.eqep: QPOSCNT:0x00000000                           
[   10.833520] eqep 48304180.eqep: omit_interrupt:0                             
[   10.838167] eqep 48304180.eqep: QEINT:0x0800                                 
[   10.842466] eqep 48304180.eqep: QUPRD:0x05f5e100                             
[   10.847113] eqep 48304180.eqep: QEPCTL:0x009e write                          
[   10.852021] eqep 48304180.eqep: QEPCTL:0x009e read                           
[   10.856854] eqep 48304180.eqep: irq:140, clk_rate:100000000                  
[   10.898340] libphy: Fixed MDIO Bus: probed                                   
[   10.903349] CAN device driver interface                                      
[   10.908805] c_can_platform 481cc000.can: c_can_platform device registered (re
gs=(ptrval), irq=57)                                                            
[   10.918698] c_can_platform 481d0000.can: c_can_platform device registered (re
gs=(ptrval), irq=58)                                                            
[   10.981112] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1
000000                                                                          
[   10.988848] libphy: 4a101000.mdio: probed                                    
[   11.000672] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driv
er SMSC LAN8710/LAN8720                                                         
[   11.010153] cpsw 4a100000.ethernet: Detected MACID = fc:69:47:3a:98:ed       
[   11.016973] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4         
[   11.023413] cpsw 4a100000.ethernet: ALE Table size 1024                      
[   11.028718] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies
)                                                                               
[   11.038275] usbcore: registered new interface driver usb-storage             
[   11.047595] am335x-phy-driver 47401300.usb-phy: 47401300.usb-phy supply vcc n
ot found, using dummy regulator                                                 
[   11.063642] am335x-phy-driver 47401b00.usb-phy: 47401b00.usb-phy supply vcc n
ot found, using dummy regulator                                                 
[   11.088582] omap_rtc 44e3e000.rtc: registered as rtc0                        
[   11.094788] i2c /dev entries driver                                          
[   11.102161] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec   
[   11.109559] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic
=0 (nowayout=0)                                                                 
[   11.122027] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 
microseconds (-22)                                                              
[   11.130834] omap_hsmmc 48060000.mmc: Got CD GPIO                             
[   11.191297] ledtrig-cpu: registered to indicate activity on CPUs             
[   11.197922] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2                
[   11.203992] omap-aes 53500000.aes: will run requests pump with realtime prior
ity                                                                             
[   11.250310] omap-sham 53100000.sham: hw accel on OMAP rev 4.3                
[   11.304887] mmc1: new high speed MMC card at address 0001                    
[   11.315688] mmcblk1: mmc1:0001 DG4008 7.28 GiB                               
[   11.325834] mmcblk1boot0: mmc1:0001 DG4008 partition 1 4.00 MiB              
[   11.336742] hidraw: raw HID events driver (C) Jiri Kosina                    
[   11.342958] mmcblk1boot1: mmc1:0001 DG4008 partition 2 4.00 MiB              
[   11.349362] usbcore: registered new interface driver usbhid                  
[   11.355267] mmcblk1rpmb: mmc1:0001 DG4008 partition 3 4.00 MiB, chardev (244:
0)                                                                              
[   11.362666] usbhid: USB HID core driver                                      
[   11.367666] remoteproc remoteproc0: wkup_m3 is available                     
[   11.380449] gnss: GNSS driver registered with major 242                      
[   11.388952] NET: Registered protocol family 10                               
[   11.437633] Segment Routing with IPv6                                        
[   11.441561] mip6: Mobile IPv6                                                
[   11.444550] NET: Registered protocol family 17                               
[   11.449130] can: controller area network core (rev 20170425 abi 9)           
[   11.455485] NET: Registered protocol family 29                               
[   11.460103] Key type dns_resolver registered                                 
[   11.464417] mpls_gso: MPLS GSO support                                       
[   11.468413] ThumbEE CPU extension supported.                                 
[   11.472730] Registering SWP/SWPB emulation handler                           
[   11.477560] omap_voltage_late_init: Voltage driver support not added         
[   11.485763] registered taskstats version 1                                   
[   11.489929] Loading compiled-in X.509 certificates                           
[   11.494864] zswap: loaded using pool lzo/zbud                                
[   11.502008] Btrfs loaded, crc32c=crc32c-generic                              
[   11.663466] tda998x 0-0070: found TDA19988                                   
[   11.670965] tilcdc 4830e000.lcdc: bound 0-0070 (ops 0xc097cd84)              
[   11.676998] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).      
[   11.683658] [drm] No driver support for vblank timestamp query.              
[   11.690342] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on mino
r 0                                                                             
[   11.698102] [drm] Cannot find any crtc or sizes                              
[   11.703611] [drm] Cannot find any crtc or sizes                              
[   11.718303] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set          
[   11.725282] input: tps65217_pwr_but as /devices/platform/ocp/44c00000.interco
nnect/44c00000.interconnect:segment@200000/44e0b000.target-module/44e0b000.i2c/i
2c-0/0-0024/tps65217-pwrbutton/input/input0                                     
[   11.743687] tps65217 0-0024: TPS65217 ID 0xe version 1.2                     
[   11.749765] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write   
[   11.756787] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz                  
[   11.763593] remoteproc remoteproc0: powering up wkup_m3                      
[   11.768959] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, 
size 217168                                                                     
[   11.781319] remoteproc remoteproc0: remote processor wkup_m3 is now up       
[   11.781337] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193   
[   11.796990] musb-hdrc musb-hdrc.1: MUSB HDRC host driver                     
[   11.802386] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus numbe
r 1                                                                             
[   11.810155] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bc
dDevice= 5.01                                                                   
[   11.818525] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=
1                                                                               
[   11.825819] usb usb1: Product: MUSB HDRC host driver                         
[   11.830867] usb usb1: Manufacturer: Linux 5.1.3-bone3 musb-hcd               
[   11.836757] usb usb1: SerialNumber: musb-hdrc.1                              
[   11.842034] hub 1-0:1.0: USB hub found                                       
[   11.845902] hub 1-0:1.0: 1 port detected                                     
[   11.855625] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T00:00:0
1 UTC (946684801)                                                               
[   11.866262] ALSA device list:                                                
[   11.869381]   No soundcards found.                                           
[   11.878117] Freeing unused kernel memory: 1024K                              
[   11.885492] Run /init as init process                                        
Loading, please wait...                                                         
starting version 232                                                            
[   12.335051] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   12.350138] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[   12.363718] random: udevadm: uninitialized urandom read (16 bytes read)      
[   12.459766] musb-hdrc musb-hdrc.1: VBUS_ERROR in a_wait_vrise (80, <SessEnd),
 retry #3, port1 0008010c                                                       
Begin: Loading essential drivers ... done.                                      
Begin: Running /scripts/init-premount ... done.                                 
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems       
done.                                                                           
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... 
done.                                                                           
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
Begin: Running /scripts/local-block ... done.                                   
done.                                                                           
Gave up waiting for root file system device.  Common problems:                  
 - Boot args (cat /proc/cmdline)                                                
   - Check rootdelay= (did the system wait long enough?)                        
 - Missing modules (cat /proc/modules; ls /dev)                                 
ALERT!  /dev/mmcblk0p1 does not exist.  Dropping to a shell!                    
                                                                                
                                                                                
BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash)                    
Enter 'help' for a list of built-in commands.                                   
                                                                                
(initramfs) 

It seems like after kernel is loaded, it can’t find rootfs partition.
What can cause this?

Thanks

So it detects the microSD… But doesn’t find it over the sdio/mmc bus…

So, either the mmc regulator is broken, or the layout is bad for the microSD…

Regards,

But its only doing this with a kernel 4.20 or above.
It boots fine with 4.19 or any lower kernel. The only reason I need 4.20 is for HDMI CEC. Is there anyway I can port CEC drivers into 4.19 and make it work with that?

Thanks

Sure, you can port CEC to 4.19, the device tree files are already patched based on what we’ve done in this thread.

Regards,

Just adding dto for HDMI CEC into 4.19 kernel does not make it CEC enable. Some changes were done by Hans Verkuil on gpio drivers in the kernel 4.20 which made it work.

@RobertCNelson I figured it out. I found a commit of 4.19 which had the CEC gpio settings.
I just used following kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=171948ea33e14dd1e49ba6439eabe822449ffd21

In the kernel config we have to enable

DRM_I2C_NXP_TDA9950

and then later installed v4l-utils with

sudo apt install v4l-utils

then first added my board as a playback device

sudo cec-ctl -d0 --playback -S

Turn off TV:

sudo cec-ctl -d0 --standby -t0

Turn ON TV:

sudo cec-ctl -d0 -t0 --image-view-on

Thank you for your support!