Unable to boot latest image on BeagleBoard-xM

Hello,

I have been using the BeagleBoard-xM with an image built from debian-stretch-console-armhf-2017-06-12.tar.xz. Currently I’m trying to update it to debian-10.3-console-armhf-2020-03-12.tar.xz. I have done the same procedure of sudo ./setup_sdcard.sh --mmc /dev/mmcblk0 --dtb omap3-beagle-xm. Using the first method evrything runs smoothly, but with the second package it doesn’t complete booting. I spent some time looking over the internet and this groups trying to figure out what is happening but I’m unable to figure it out. Most of the responses keep telling that there is some issue with the microSD card, but it seems very strange to me that using a previous image still works. The microSD is a 2GB SanDisk I don’t have the proofs but it seems to me that there might be some issue related to Linux or the driver that handles the microSD. Nevertheless I don’t have that much of experience in embbeded systems so my conjeture might totally incorrect. The ending code snippet is produced after starting the board and running: cat /proc/cmdline, cat /proc/modules; ls /dev, dmesg```. If more information is needed just tell me.

Thank in advance for all the hard work done for this platform.
Regards,

von Bergen, Federico.

U-Boot SPL 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500)
Trying to boot from MMC1
spl_load_image_fat_os: error reading image args, err - -2

U-Boot 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500), Build: jenkins-github_Bootloader-Builder-49

OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 GHz
Model: TI OMAP3 BeagleBoard
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from NAND... *** Warning - readenv() failed, using default environment

Failed (-5)
Beagle xM Rev C
No EEPROM on expansion board
No EEPROM on expansion board
OMAP die ID: 037600029ff8000001578ca00f01d013
Net: usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
290 bytes read in 23 ms (11.7 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /boot/vmlinuz-5.4.24-armv7-x20 ...
9982464 bytes read in 879 ms (10.8 MiB/s)
loading /boot/dtbs/5.4.24-armv7-x20/omap3-beagle-xm.dtb ...
94890 bytes read in 217 ms (426.8 KiB/s)
loading /boot/initrd.img-5.4.24-armv7-x20 ...
6712473 bytes read in 597 ms (10.7 MiB/s)
debug: [console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...
debug: [bootz 0x82000000 0x88080000:666c99 0x88000000] ...
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 89999000, end 89fffc99 ... OK
Loading Device Tree to 8997e000, end 899982a9 ... OK

Starting kernel ...

[ 2.609558] tfp410-bridge encoder0: failed to parse powerdown gpio
[ 4.097320] mmc0: card never left busy state
[ 4.109374] mmc0: error -110 whilst initialising SD card
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/mmcblk0p2 does not exist. Dropping to a shell!
(initramfs) cat /proc/cmdline
console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet
(initramfs) cat /proc/modules; ls /dev
spidev 20480 0 - Live 0xbf800000
drwxr-xr-x 5 0 0 2480 .
drwxr-xr-x 13 0 0 0 ..
lrwxrwxrwx 1 0 0 5 ttyO3 -> ttyS3
lrwxrwxrwx 1 0 0 5 ttyO2 -> ttyS2
crw------- 1 0 0 153, 2 spidev3.0
crw------- 1 0 0 153, 1 spidev2.1
crw------- 1 0 0 153, 0 spidev2.0
lrwxrwxrwx 1 0 0 4 rtc -> rtc0
lrwxrwxrwx 1 0 0 5 ttyO1 -> ttyS1
lrwxrwxrwx 1 0 0 5 ttyO0 -> ttyS0
drwxr-xr-x 2 0 0 2340 char
lrwxrwxrwx 1 0 0 15 stderr -> /proc/self/fd/2
lrwxrwxrwx 1 0 0 15 stdout -> /proc/self/fd/1
lrwxrwxrwx 1 0 0 15 stdin -> /proc/self/fd/0
lrwxrwxrwx 1 0 0 13 fd -> /proc/self/fd
drwxr-xr-x 2 0 0 0 pts
crw------- 1 0 0 10, 62 ubi_ctrl
crw-rw---- 1 0 0 254, 7 gpiochip7
crw------- 1 0 0 10,234 btrfs-control
crw------- 1 0 0 10, 63 cpu_dma_latency
crw------- 1 0 0 89, 2 i2c-2
crw------- 1 0 0 89, 1 i2c-1
crw------- 1 0 0 89, 0 i2c-0
crw------- 1 0 0 252, 0 rtc0
drwxr-xr-x 3 0 0 60 bus
crw-rw---- 1 0 0 254, 6 gpiochip6
crw------- 1 0 0 10,183 hwrng
crw------- 1 0 0 10,134 apm_bios
crw------- 1 0 0 4, 67 ttyS3
crw------- 1 0 0 4, 66 ttyS2
crw------- 1 0 0 4, 65 ttyS1
crw------- 1 0 0 4, 64 ttyS0
crw------- 1 0 0 4, 69 ttyS5
crw------- 1 0 0 4, 68 ttyS4
crw-rw-rw- 1 0 0 5, 2 ptmx
crw-rw-rw- 1 0 0 10,229 fuse
crw-r--r-- 1 0 0 10,235 autofs
crw------- 1 0 0 10,231 snapshot
crw--w---- 1 0 0 4, 63 tty63
crw--w---- 1 0 0 4, 62 tty62
crw--w---- 1 0 0 4, 61 tty61
crw--w---- 1 0 0 4, 60 tty60
crw--w---- 1 0 0 4, 59 tty59
crw--w---- 1 0 0 4, 58 tty58
crw--w---- 1 0 0 4, 57 tty57
crw--w---- 1 0 0 4, 56 tty56
crw--w---- 1 0 0 4, 55 tty55
crw--w---- 1 0 0 4, 54 tty54
crw--w---- 1 0 0 4, 53 tty53
crw--w---- 1 0 0 4, 52 tty52
crw--w---- 1 0 0 4, 51 tty51
crw--w---- 1 0 0 4, 50 tty50
crw--w---- 1 0 0 4, 49 tty49
crw--w---- 1 0 0 4, 48 tty48
crw--w---- 1 0 0 4, 47 tty47
crw--w---- 1 0 0 4, 46 tty46
crw--w---- 1 0 0 4, 45 tty45
crw--w---- 1 0 0 4, 44 tty44
crw--w---- 1 0 0 4, 43 tty43
crw--w---- 1 0 0 4, 42 tty42
crw--w---- 1 0 0 4, 41 tty41
crw--w---- 1 0 0 4, 40 tty40
crw--w---- 1 0 0 4, 39 tty39
crw--w---- 1 0 0 4, 38 tty38
crw--w---- 1 0 0 4, 37 tty37
crw--w---- 1 0 0 4, 36 tty36
crw--w---- 1 0 0 4, 35 tty35
crw--w---- 1 0 0 4, 34 tty34
crw--w---- 1 0 0 4, 33 tty33
crw--w---- 1 0 0 4, 32 tty32
crw--w---- 1 0 0 4, 31 tty31
crw--w---- 1 0 0 4, 30 tty30
crw--w---- 1 0 0 4, 29 tty29
crw--w---- 1 0 0 4, 28 tty28
crw--w---- 1 0 0 4, 27 tty27
crw--w---- 1 0 0 4, 26 tty26
crw--w---- 1 0 0 4, 25 tty25
crw--w---- 1 0 0 4, 24 tty24
crw--w---- 1 0 0 4, 23 tty23
crw--w---- 1 0 0 4, 22 tty22
crw--w---- 1 0 0 4, 21 tty21
crw--w---- 1 0 0 4, 20 tty20
crw--w---- 1 0 0 4, 19 tty19
crw--w---- 1 0 0 4, 18 tty18
crw--w---- 1 0 0 4, 17 tty17
crw--w---- 1 0 0 4, 16 tty16
crw--w---- 1 0 0 4, 15 tty15
crw--w---- 1 0 0 4, 14 tty14
crw--w---- 1 0 0 4, 13 tty13
crw--w---- 1 0 0 4, 12 tty12
crw--w---- 1 0 0 4, 11 tty11
crw--w---- 1 0 0 4, 10 tty10
crw--w---- 1 0 0 4, 9 tty9
crw--w---- 1 0 0 4, 8 tty8
crw--w---- 1 0 0 4, 7 tty7
crw--w---- 1 0 0 4, 6 tty6
crw--w---- 1 0 0 4, 5 tty5
crw--w---- 1 0 0 4, 4 tty4
crw--w---- 1 0 0 4, 3 tty3
crw--w---- 1 0 0 4, 2 tty2
crw--w---- 1 0 0 4, 1 tty1
crw------- 1 0 0 7,129 vcsa1
crw------- 1 0 0 7, 65 vcsu1
crw------- 1 0 0 7, 1 vcs1
crw------- 1 0 0 7,128 vcsa
crw------- 1 0 0 7, 64 vcsu
crw------- 1 0 0 7, 0 vcs
crw--w---- 1 0 0 4, 0 tty0
crw------- 1 0 0 5, 1 console
crw-rw-rw- 1 0 0 5, 0 tty
crw-r--r-- 1 0 0 1, 11 kmsg
crw-rw-rw- 1 0 0 1, 9 urandom
crw-rw-rw- 1 0 0 1, 8 random
crw-rw-rw- 1 0 0 1, 7 full
crw-rw-rw- 1 0 0 1, 5 zero
crw-rw-rw- 1 0 0 1, 3 null
crw-r----- 1 0 0 1, 1 mem
crw-rw-r-- 1 0 0 10,242 rfkill
crw-rw---- 1 0 0 254, 5 gpiochip5
crw-rw---- 1 0 0 254, 4 gpiochip4
crw-rw---- 1 0 0 254, 3 gpiochip3
crw-rw---- 1 0 0 254, 2 gpiochip2
crw-rw---- 1 0 0 254, 1 gpiochip1
crw-rw---- 1 0 0 254, 0 gpiochip0
(initramfs) dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.24-armv7-x20 (voodoo@x4-am57xx-beagle-x15-2gb) (gcc version 8.3.0 (Debian 8.3.0-6)) #1buster SMP PREEMPT Tue Mar 10 20:58:04 UTC 2020
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI OMAP3 BeagleBoard xM
[ 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 0x9c800000
[ 0.000000] On node 0 totalpages: 130560
[ 0.000000] Normal zone: 1148 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130560 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] OMAP3630/DM3730 ES1.2 (l2cache iva sgx neon isp 192mhz_clk)
[ 0.000000] percpu: Embedded 20 pages/cpu s52940 r8192 d20788 u81920
[ 0.000000] pcpu-alloc: s52940 r8192 d20788 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
[ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 442896K/522240K available (10240K kernel code, 1351K rwdata, 4192K rodata, 1024K init, 366K bss, 30192K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] random: get_random_u32 called from __kmem_cache_create+0x2b/0x3a4 with crng_init=0
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 46447 entries in 91 pages
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 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 4.0) with 96 interrupts
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[ 0.000030] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.002441] Console: colour dummy device 80x30
[ 0.002471] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
[ 0.002471] This ensures that you still see kernel messages. Please
[ 0.002471] update your kernel commandline.
[ 0.002532] Calibrating delay loop... 595.96 BogoMIPS (lpj=1191936)
[ 0.027008] pid_max: default: 32768 minimum: 301
[ 0.027374] LSM: Security Framework initializing
[ 0.027496] Yama: becoming mindful.
[ 0.027679] AppArmor: AppArmor initialized
[ 0.027709] TOMOYO Linux initialized
[ 0.027832] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.027832] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.027954] *** VALIDATE tmpfs ***
[ 0.028930] *** VALIDATE proc ***
[ 0.029418] *** VALIDATE cgroup1 ***
[ 0.029449] *** VALIDATE cgroup2 ***
[ 0.029541] CPU: Testing write buffer coherency: ok
[ 0.029602] CPU0: Spectre v2: using BPIALL workaround
[ 0.030120] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.051086] Setting up static identity map for 0x80100000 - 0x80100054
[ 0.058990] rcu: Hierarchical SRCU implementation.
[ 0.071350] EFI services will not be available.
[ 0.078979] smp: Bringing up secondary CPUs ...
[ 0.079010] smp: Brought up 1 node, 1 CPU
[ 0.079010] SMP: Total of 1 processors activated (595.96 BogoMIPS).
[ 0.079040] CPU: All CPU(s) started in SVC mode.
[ 0.079895] devtmpfs: initialized
[ 0.115356] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.116424] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.116455] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.120666] xor: measuring software checksum speed
[ 0.158905] arm4regs : 723.000 MB/sec
[ 0.198883] 8regs : 648.000 MB/sec
[ 0.238861] 32regs : 618.000 MB/sec
[ 0.278839] neon : 981.000 MB/sec
[ 0.278839] xor: using function: neon (981.000 MB/sec)
[ 0.278869] pinctrl core: initialized pinctrl subsystem
[ 0.279937] DMI not present or invalid.
[ 0.280517] NET: Registered protocol family 16
[ 0.287780] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.326660] omap_hwmod: mcbsp2_sidetone using broken dt data from mcbsp
[ 0.327819] omap_hwmod: mcbsp3_sidetone using broken dt data from mcbsp
[ 0.424713] audit: initializing netlink subsys (disabled)
[ 0.426300] cpuidle: using governor menu
[ 0.427093] Reprogramming SDRC clock to 400000000 Hz
[ 0.430847] audit: type=2000 audit(0.428:1): state=initialized audit_enabled=0 res=1
[ 0.434936] OMAP GPIO hardware version 2.5
[ 0.453399] omap-gpmc 6e000000.gpmc: GPMC revision 5.0
[ 0.453430] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 0.460845] No ATAGs?
[ 0.460845] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.462677] OMAP DMA hardware revision 5.0
[ 0.523010] raid6: using algorithm neonx8 gen() 0 MB/s
[ 0.523010] raid6: .... xor() 0 MB/s, rmw enabled
[ 0.523040] raid6: using neon recovery algorithm
[ 0.539093] omap-dma-engine 48056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[ 0.546752] iommu: Default domain type: Translated
[ 0.548767] omap-iommu 480bd400.mmu: 480bd400.mmu registered
[ 0.549377] platform 480bc000.isp: Adding to iommu group 0
[ 0.552276] SCSI subsystem initialized
[ 0.554870] libata version 3.00 loaded.
[ 0.555297] usbcore: registered new interface driver usbfs
[ 0.555389] usbcore: registered new interface driver hub
[ 0.555541] usbcore: registered new device driver usb
[ 0.558746] omap_i2c 48070000.i2c: bus 0 rev4.4 at 2600 kHz
[ 0.559783] omap_i2c 48072000.i2c: bus 1 rev4.4 at 400 kHz
[ 0.560638] omap_i2c 48060000.i2c: bus 2 rev4.4 at 100 kHz
[ 0.561035] mc: Linux media interface: v0.10
[ 0.561096] videodev: Linux video capture interface: v2.00
[ 0.561279] pps_core: LinuxPPS API ver. 1 registered

Bad microSD card.. (-110)

Try a different one..

Regards,

Hi Robert,

First of all, thank you for your commitment to this project and taking the time to give me a fast response. I couldn’t find the driver where the -110 error is generated, but as you stated it seems that at some point in the code someone is declaring the microSD card as unable to initialize. Nevertheless I want to share the output of the same microSD card with the previous Linux distribution using debian-stretch-console-armhf-2017-06-12.tar.xz. I have run a dmesg on it after it loads without trouble and I’m pasting at the end of the email. Maybe you can give me more information to understand this question: If the microSD card is bad how can it be that it works perfectly with a previous image?

Thank you and regards,
von Bergen, Federico.

U-Boot SPL 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500)
Trying to boot from MMC1
spl_load_image_fat_os: error reading image args, err - -2

U-Boot 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500), Build: jenkins-github_Bootloader-Builder-49

OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 GHz
Model: TI OMAP3 BeagleBoard
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from NAND... *** Warning - readenv() failed, using default environment

Failed (-5)
Beagle xM Rev C
No EEPROM on expansion board
No EEPROM on expansion board
OMAP die ID: 037600029ff8000001578ca00f01d013
Net: usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
289 bytes read in 30 ms (8.8 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /boot/vmlinuz-4.11.4-armv7-x0 ...
6592976 bytes read in 596 ms (10.5 MiB/s)
loading /boot/dtbs/4.11.4-armv7-x0/omap3-beagle-xm.dtb ...
100095 bytes read in 503 ms (193.4 KiB/s)
loading /boot/initrd.img-4.11.4-armv7-x0 ...
6006629 bytes read in 542 ms (10.6 MiB/s)
debug: [console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...
debug: [bootz 0x82000000 0x88080000:5ba765 0x88000000] ...
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Ramdisk to 89a45000, end 89fff765 ... OK
Loading Device Tree to 89a29000, end 89a446fe ... OK

Starting kernel ...

[ 2.732116] tfp410 encoder0: failed to parse PD gpio
[ 2.737731] connector-dvi connector0: failed to find video source
[ 2.745758] Error: Driver 'tfp410' is already registered, aborting...
[ 2.953430] ehci-omap 48064800.ehci: Can't get PHY device for port 1: -517
[ 3.067047] omap2_set_init_voltage: unable to find boot up OPP for vdd_mpu_iva
[ 3.074432] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 3.080810] omap2_set_init_voltage: unable to find boot up OPP for vdd_core
[ 3.087921] omap2_set_init_voltage: unable to set vdd_core
[ 22.360748] omap_ssi_port 4805a000.ssi-port: couldn't get cawake gpio (err=-2)!
[ 22.466674] omap_ssi_port 4805b000.ssi-port: couldn't get cawake gpio (err=-2)!
[ 23.030822] twl4030_keypad 48070000.i2c:twl@48:keypad: missing or malformed property linux,keymap: -22
[ 23.040344] twl4030_keypad 48070000.i2c:twl@48:keypad: Failed to build keymap
[ 25.523498] OF: graph: no port node found in /ocp@68000000/isp@480bc000/ports

Debian GNU/Linux 9 arm ttyS2

[rcn-ee.net](http://rcn-ee.net) console Debian Image 2017-06-12

Support/FAQ: [http://elinux.org/BeagleBoardDebian](http://elinux.org/BeagleBoardDebian)

default username:password is [debian:temppwd]

arm login: debian
Password:
Linux arm 4.11.4-armv7-x0 #1 SMP Wed Jun 7 17:54:39 UTC 2017 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian@arm:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.11.4-armv7-x0 (root@a2-imx6q-wandboard-2gb) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #1 SMP Wed Jun 7 17:54:39 UTC 2017
[ 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 OMAP3 BeagleBoard xM
[ 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 0x9c800000
[ 0.000000] On node 0 totalpages: 130560
[ 0.000000] free_area_init_node: node 0, pgdat c174ab40, node_mem_map df961000
[ 0.000000] Normal zone: 1148 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130560 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] OMAP3630/DM3730 ES1.2 (l2cache iva sgx neon isp 192mhz_clk)
[ 0.000000] percpu: Embedded 17 pages/cpu @df90b000 s39436 r8192 d22004 u69632
[ 0.000000] pcpu-alloc: s39436 r8192 d22004 u69632 alloc=17*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 129412
[ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet
[ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[ 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: 437872K/522240K available (13312K kernel code, 1565K rwdata, 5048K rodata, 2048K init, 689K bss, 35216K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xe0000000 - 0xff800000 ( 504 MB)
lowmem : 0xc0000000 - 0xdfe00000 ( 510 MB)
pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
.text : 0xc0008000 - 0xc0e00000 (14304 kB)
.init : 0xc1400000 - 0xc1600000 (2048 kB)
.data : 0xc1600000 - 0xc1787514 (1566 kB)
.bss : 0xc1789000 - 0xc1835524 ( 690 kB)
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000030] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[ 0.000030] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.004455] Console: colour dummy device 80x30
[ 0.004486] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
[ 0.004486] This ensures that you still see kernel messages. Please
[ 0.004486] update your kernel commandline.
[ 0.004516] Calibrating delay loop... 595.96 BogoMIPS (lpj=1191936)
[ 0.030120] pid_max: default: 32768 minimum: 301
[ 0.030517] Security Framework initialized
[ 0.030548] Yama: becoming mindful.
[ 0.030578] AppArmor: AppArmor disabled by boot time parameter
[ 0.030883] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.030914] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.032226] CPU: Testing write buffer coherency: ok
[ 0.032318] ftrace: allocating 42735 entries in 126 pages
[ 0.223266] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.224029] Setting up static identity map for 0x80100000 - 0x80100098
[ 0.233428] EFI services will not be available.
[ 0.234039] smp: Bringing up secondary CPUs ...
[ 0.234039] smp: Brought up 1 node, 1 CPU
[ 0.234069] SMP: Total of 1 processors activated (595.96 BogoMIPS).
[ 0.234069] CPU: All CPU(s) started in SVC mode.
[ 0.236297] devtmpfs: initialized
[ 0.280914] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.281524] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.281555] futex hash table entries: 256 (order: 2, 16384 bytes)
[ 0.285736] xor: measuring software checksum speed
[ 0.321929] arm4regs : 730.000 MB/sec
[ 0.361907] 8regs : 654.000 MB/sec
[ 0.401885] 32regs : 652.000 MB/sec
[ 0.441864] neon : 1047.000 MB/sec
[ 0.441864] xor: using function: neon (1047.000 MB/sec)
[ 0.441894] pinctrl core: initialized pinctrl subsystem
[ 0.446105] NET: Registered protocol family 16
[ 0.450988] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.483337] omap_hwmod: mcbsp2_sidetone using broken dt data from mcbsp
[ 0.484252] omap_hwmod: mcbsp3_sidetone using broken dt data from mcbsp
[ 0.562774] cpuidle: using governor menu
[ 0.565368] Reprogramming SDRC clock to 400000000 Hz
[ 0.572387] omap_gpio 48310000.gpio: could not find pctldev for node /ocp@68000000/l4@48000000/scm@2000/pinmux@a00/pinmux_gpio1_pins, deferring probe
[ 0.576110] OMAP GPIO hardware version 2.5
[ 0.591735] irq: no irq domain found for /ocp@68000000/l4@48000000/scm@2000/pinmux@30 !
[ 0.605316] omap-gpmc 6e000000.gpmc: GPMC revision 5.0
[ 0.605316] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 0.615020] No ATAGs?
[ 0.615051] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.616363] omap4_sram_init:Unable to allocate sram needed to handle errata I688
[ 0.616394] omap4_sram_init:Unable to get sram pool needed to handle errata I688
[ 0.617034] OMAP DMA hardware revision 5.0
[ 0.619659] Serial: AMBA PL011 UART driver
[ 0.709991] raid6: int32x1 gen() 158 MB/s
[ 0.777832] raid6: int32x1 xor() 133 MB/s
[ 0.845764] raid6: int32x2 gen() 196 MB/s
[ 0.913726] raid6: int32x2 xor() 169 MB/s
[ 0.981750] raid6: int32x4 gen() 195 MB/s
[ 1.049682] raid6: int32x4 xor() 160 MB/s
[ 1.117797] raid6: int32x8 gen() 179 MB/s
[ 1.145477] random: fast init done
[ 1.185577] raid6: int32x8 xor() 138 MB/s
[ 1.253448] raid6: neonx1 gen() 874 MB/s
[ 1.321380] raid6: neonx1 xor() 506 MB/s
[ 1.389373] raid6: neonx2 gen() 1161 MB/s
[ 1.457305] raid6: neonx2 xor() 710 MB/s
[ 1.525268] raid6: neonx4 gen() 617 MB/s
[ 1.593261] raid6: neonx4 xor() 473 MB/s
[ 1.661224] raid6: neonx8 gen() 482 MB/s
[ 1.729217] raid6: neonx8 xor() 380 MB/s
[ 1.729217] raid6: using algorithm neonx2 gen() 1161 MB/s
[ 1.729217] raid6: .... xor() 710 MB/s, rmw enabled
[ 1.729248] raid6: using intx1 recovery algorithm
[ 1.747039] omap-dma-engine 48056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[ 1.755584] omap-iommu 480bd400.mmu: 480bd400.mmu registered
[ 1.759918] SCSI subsystem initialized
[ 1.760406] libata version 3.00 loaded.
[ 1.760833] usbcore: registered new interface driver usbfs
[ 1.760955] usbcore: registered new interface driver hub
[ 1.761077] usbcore: registered new device driver usb
[ 1.764160] omap_i2c 48070000.i2c: bus 0 rev4.4 at 2600 kHz
[ 1.765014] omap_i2c 48072000.i2c: bus 1 rev4.4 at 400 kHz
[ 1.765960] omap_i2c 48060000.i2c: bus 2 rev4.4 at 100 kHz
[ 1.767120] media: Linux media interface: v0.10
[ 1.767181] Linux video capture interface: v2.00
[ 1.767303] pps_core: LinuxPPS API ver. 1 registered
[ 1.767333] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[giometti@linux.it](mailto:giometti@linux.it)>
[ 1.767364] PTP clock support registered
[ 1.768157] omap-mailbox 48094000.mailbox: omap mailbox rev 0x40
[ 1.770263] NetLabel: Initializing
[ 1.770294] NetLabel: domain hash size = 128
[ 1.770294] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 1.770416] NetLabel: unlabeled traffic allowed by default
[ 1.771606] clocksource: Switched to clocksource 32k_counter
[ 1.980133] VFS: Disk quotas dquot_6.6.0
[ 1.980285] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.999450] NET: Registered protocol family 2
[ 2.000762] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[ 2.000823] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[ 2.000915] TCP: Hash tables configured (established 4096 bind 4096)
[ 2.001037] UDP hash table entries: 256 (order: 1, 8192 bytes)
[ 2.001068] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[ 2.001342] NET: Registered protocol family 1
[ 2.002288] RPC: Registered named UNIX socket transport module.
[ 2.002288] RPC: Registered udp transport module.
[ 2.002288] RPC: Registered tcp transport module.
[ 2.002288] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.005340] Unpacking initramfs...
[ 2.670928] Freeing initrd memory: 5868K
[ 2.671691] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 2.677001] audit: initializing netlink subsys (disabled)
[ 2.678558] audit: type=2000 audit(2.551:1): state=initialized audit_enabled=0 res=1
[ 2.678710] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 2.678894] zbud: loaded
[ 2.680725] NFS: Registering the id_resolver key type
[ 2.680786] Key type id_resolver registered
[ 2.680786] Key type id_legacy registered
[ 2.680816] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 2.681243] fuse init (API version 7.26)
[ 2.681793] orangefs_debugfs_init: called with debug mask: :none: :0:
[ 2.682128] orangefs_init: module version upstream loaded
[ 2.682128] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[ 2.689575] jitterentropy: Initialization failed with host not compliant with requirements: 2
[ 2.689605] Key type asymmetric registered
[ 2.689605] Asymmetric key parser 'x509' registered
[ 2.689697] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[ 2.690002] io scheduler noop registered
[ 2.690002] io scheduler deadline registered
[ 2.690155] io scheduler cfq registered (default)
[ 2.690185] io scheduler mq-deadline registered
[ 2.696075] pinctrl-single 48002030.pinmux: 284 pins at pa fa002030 size 568
[ 2.696624] pinctrl-single 48002a00.pinmux: 46 pins at pa fa002a00 size 92
[ 2.697326] pinctrl-single 480025a0.pinmux: 46 pins at pa fa0025a0 size 92
[ 2.714996] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 2.719085] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 88, base_baud = 3000000) is a 8250
[ 2.720245] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 89, base_baud = 3000000) is a 8250
[ 2.721466] 49020000.serial: ttyS2 at MMIO 0x49020000 (irq = 90, base_baud = 3000000) is a 8250
[ 2.721618] console [ttyS2] enabled
[ 2.722900] 49042000.serial: ttyS3 at MMIO 0x49042000 (irq = 96, base_baud = 3000000) is a 8250
[ 2.724487] Serial: AMBA driver
[ 2.730224] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator
[ 2.730468] OMAP DSS rev 2.0
[ 2.730651] omapdss_dss 48050000.dss: bound 48050400.dispc (ops dispc_component_ops)
[ 2.730773] omapdss_dss 48050000.dss: bound 48050c00.encoder (ops venc_component_ops)
[ 2.732116] tfp410 encoder0: failed to parse PD gpio
[ 2.737731] connector-dvi connector0: failed to find video source
[ 2.745758] Error: Driver 'tfp410' is already registered, aborting...
[ 2.792327] twl 0-0048: PIH (irq 23) chaining IRQs 305..313
[ 2.792449] twl 0-0048: power (irq 310) chaining IRQs 313..320
[ 2.831817] twl4030_gpio twl4030-gpio: gpio (irq 305) chaining IRQs 321..338
[ 2.904602] twl4030_usb 48070000.i2c:twl@48:twl4030-usb: Initialized TWL4030 USB module
[ 2.940490] usbcore: registered new interface driver dln2
[ 2.944366] libphy: Fixed MDIO Bus: probed
[ 2.952453] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.952484] ehci-platform: EHCI generic platform driver
[ 2.952941] ehci-omap: OMAP-EHCI Host Controller driver
[ 2.953430] ehci-omap 48064800.ehci: Can't get PHY device for port 1: -517
[ 2.960754] ehci-exynos: EHCI EXYNOS driver
[ 2.961181] tegra-ehci: Tegra EHCI driver
[ 2.962707] usbcore: registered new interface driver usb-storage
[ 2.964111] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 2.964172] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 2.964569] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 2.964599] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.964599] usb usb1: Product: MUSB HDRC host driver
[ 2.964599] usb usb1: Manufacturer: Linux 4.11.4-armv7-x0 musb-hcd
[ 2.964630] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 2.965759] hub 1-0:1.0: USB hub found
[ 2.965820] hub 1-0:1.0: 1 port detected
[ 2.972412] mousedev: PS/2 mouse device common for all mice
[ 2.974792] input: twl4030_pwrbutton as /devices/platform/68000000.ocp/48070000.i2c/i2c-0/0-0048/48070000.i2c:twl@48:pwrbutton/input/input0
[ 2.981445] twl_rtc 48070000.i2c:twl@48:rtc: Power up reset detected.
[ 2.981781] twl_rtc 48070000.i2c:twl@48:rtc: Enabling TWL-RTC
[ 2.985351] twl_rtc 48070000.i2c:twl@48:rtc: rtc core: registered 48070000.i2c:twl@48 as rtc0
[ 2.986267] i2c /dev entries driver
[ 2.996154] ti-soc-thermal 48002524.bandgap: This OMAP thermal sensor is unreliable. You've been warned
[ 2.996215] ti-soc-thermal 48002524.bandgap: Non-trimmed BGAP, Temp not accurate
[ 2.996734] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[ 3.000030] sdhci: Secure Digital Host Controller Interface driver
[ 3.000030] sdhci: Copyright(c) Pierre Ossman
[ 3.044464] Synopsys Designware Multimedia Card Interface Driver
[ 3.049224] sdhci-pltfm: SDHCI platform and OF driver helper
[ 3.052429] ledtrig-cpu: registered to indicate activity on CPUs
[ 3.052612] hidraw: raw HID events driver (C) Jiri Kosina
[ 3.053558] usbcore: registered new interface driver usbhid
[ 3.053588] usbhid: USB HID core driver
[ 3.053955] ashmem: initialized
[ 3.064788] NET: Registered protocol family 10
[ 3.066345] Segment Routing with IPv6
[ 3.066436] mip6: Mobile IPv6
[ 3.066467] NET: Registered protocol family 17
[ 3.066589] Key type dns_resolver registered
[ 3.066619] mpls_gso: MPLS GSO support
[ 3.067047] omap2_set_init_voltage: unable to find boot up OPP for vdd_mpu_iva
[ 3.074432] omap2_set_init_voltage: unable to set vdd_mpu_iva
[ 3.080810] omap2_set_init_voltage: unable to find boot up OPP for vdd_core
[ 3.087921] omap2_set_init_voltage: unable to set vdd_core
[ 3.096099] ThumbEE CPU extension supported.
[ 3.096130] Registering SWP/SWPB emulation handler
[ 3.096130] SmartReflex Class3 initialized
[ 3.097442] registered taskstats version 1
[ 3.097564] zswap: loaded using pool lzo/zbud
[ 3.099822] Btrfs loaded, crc32c=crc32c-generic
[ 3.228271] ehci-omap 48064800.ehci: EHCI Host Controller
[ 3.228363] ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 2
[ 3.229125] ehci-omap 48064800.ehci: irq 93, io mem 0x48064800
[ 3.243927] ehci-omap 48064800.ehci: USB 2.0 started, EHCI 1.00
[ 3.244415] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[ 3.244445] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 3.244445] usb usb2: Product: EHCI Host Controller
[ 3.244445] usb usb2: Manufacturer: Linux 4.11.4-armv7-x0 ehci_hcd
[ 3.244476] usb usb2: SerialNumber: 48064800.ehci
[ 3.245697] hub 2-0:1.0: USB hub found
[ 3.245788] hub 2-0:1.0: 3 ports detected
[ 3.247375] omapdss_dss 48050000.dss: 48050000.dss supply vdds_dsi not found, using dummy regulator
[ 3.247924] omapdrm omapdrm.0: DMM not available, disable DMM support
[ 3.248382] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[ 3.248382] [drm] No driver support for vblank timestamp query.
[ 3.272338] [drm] Cannot find any crtc or sizes - going 1024x768
[ 3.295501] Console: switching to colour frame buffer device 128x48
[ 3.310913] omapdrm omapdrm.0: fb0: omapdrm frame buffer device
[ 3.311981] [drm] Initialized omapdrm 1.0.0 20110917 for omapdrm.0 on minor 0
[ 3.314086] input: gpio_keys as /devices/platform/gpio_keys/input/input1
[ 3.315185] twl_rtc 48070000.i2c:twl@48:rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[ 3.315185] sr_init: No PMIC hook to init smartreflex
[ 3.315612] smartreflex smartreflex.0: omap_sr_probe: SmartReflex driver initialized
[ 3.316162] smartreflex smartreflex.1: omap_sr_probe: SmartReflex driver initialized
[ 3.316345] of_cfs_init
[ 3.316467] of_cfs_init: OK
[ 3.317382] PM: Hibernation image not present or could not be loaded.
[ 3.318115] VAUX3: disabling
[ 3.318695] VDAC: disabling
[ 3.319213] VPLL2: disabling
[ 3.324493] Freeing unused kernel memory: 2048K
[ 3.337982] mmc0: host does not support reading read-only switch, assuming write-enable
[ 3.338134] mmc0: new SD card at address aaaa
[ 3.342926] mmcblk0: mmc0:aaaa SU02G 1.84 GiB
[ 3.345916] mmcblk0: p1 p2
[ 3.571868] usb 2-2: new high-speed USB device number 2 using ehci-omap
[ 3.720458] usb 2-2: New USB device found, idVendor=0424, idProduct=9514
[ 3.720489] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.724456] hub 2-2:1.0: USB hub found
[ 3.724731] hub 2-2:1.0: 5 ports detected
[ 4.019958] usb 2-2.1: new high-speed USB device number 3 using ehci-omap
[ 4.128540] usb 2-2.1: New USB device found, idVendor=0424, idProduct=ec00
[ 4.128540] usb 2-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 4.355895] usb 2-2.4: new high-speed USB device number 4 using ehci-omap
[ 4.480957] usb 2-2.4: New USB device found, idVendor=0cf3, idProduct=9271
[ 4.480957] usb 2-2.4: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 4.480987] usb 2-2.4: Product: USB2.0 WLAN
[ 4.480987] usb 2-2.4: Manufacturer: ATHEROS
[ 4.480987] usb 2-2.4: SerialNumber: 12345
[ 6.838775] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 7.779907] systemd[1]: System time before build time, advancing clock.
[ 7.917877] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 7.976837] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 7.977722] systemd[1]: Detected architecture arm.
[ 7.980102] systemd[1]: Set hostname to <arm>.
[ 8.884887] systemd[1]: Reached target Swap.
[ 8.886108] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 8.889129] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 8.890838] systemd[1]: Created slice System Slice.
[ 8.896667] systemd[1]: Mounting /sys/kernel/debug...
[ 8.896972] systemd[1]: Reached target Remote File Systems.
[ 8.898803] systemd[1]: Created slice User and Session Slice.
[ 10.036346] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 10.593078] systemd-journald[280]: Received request to flush runtime journal from PID 1
[ 15.490325] Bluetooth: Core ver 2.22
[ 15.490478] NET: Registered protocol family 31
[ 15.490509] Bluetooth: HCI device and connection manager initialized
[ 15.490539] Bluetooth: HCI socket layer initialized
[ 15.490539] Bluetooth: L2CAP socket layer initialized
[ 15.490600] Bluetooth: SCO socket layer initialized
[ 16.259277] nf_conntrack version 0.5.0 (8192 buckets, 32768 max)
[ 22.347503] omap_ssi 48058000.ssi-controller: ssi controller 0 initialized (2 ports)!
[ 22.360748] omap_ssi_port 4805a000.ssi-port: couldn't get cawake gpio (err=-2)!
[ 22.462493] omap_ssi_port: probe of 4805a000.ssi-port failed with error -2
[ 22.466674] omap_ssi_port 4805b000.ssi-port: couldn't get cawake gpio (err=-2)!
[ 22.556060] omap_ssi_port: probe of 4805b000.ssi-port failed with error -2
[ 23.030822] twl4030_keypad 48070000.i2c:twl@48:keypad: missing or malformed property linux,keymap: -22
[ 23.040344] twl4030_keypad 48070000.i2c:twl@48:keypad: Failed to build keymap
[ 23.355987] twl4030_keypad: probe of 48070000.i2c:twl@48:keypad failed with error -22
[ 23.357879] twl4030_madc 48070000.i2c:twl@48:madc: clk disabled, enabling
[ 23.358428] twl4030_madc 48070000.i2c:twl@48:madc: 48070000.i2c:twl@48:madc supply vusb3v1 not found, using dummy regulator
[ 23.371246] twl4030_bci 48070000.i2c:twl@48:bci: could not request vac iio channel
[ 23.388854] twl4030_bci 48070000.i2c:twl@48:bci: battery temperature out of range
[ 23.977081] smsc95xx v1.0.5
[ 24.144165] smsc95xx 2-2.1:1.0 eth0: register 'smsc95xx' at usb-48064800.ehci-2.1, smsc95xx USB 2.0 Ethernet, 02:02:00:a0:13:d0
[ 24.147613] usbcore: registered new interface driver smsc95xx
[ 24.214080] smsc95xx 2-2.1:1.0 eth0: hardware isn't capable of remote wakeup
[ 24.214447] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 24.846466] Driver for 1-wire Dallas network protocol.
[ 24.986175] omap_hdq 480b2000.1w: OMAP HDQ Hardware Rev 0.5. Driver in Interrupt mode
[ 25.340301] omap-sham 480c3000.sham: hw accel on OMAP rev 0.9
[ 25.398620] omap-aes 480c5000.aes: OMAP AES hw accel rev: 2.6
[ 25.415344] omap-aes 480c5000.aes: will run requests pump with realtime priority
[ 25.523498] OF: graph: no port node found in /ocp@68000000/isp@480bc000/ports
[ 25.756103] omap3isp 480bc000.isp: 480bc000.isp supply vdd-csiphy1 not found, using dummy regulator
[ 25.756286] omap3isp 480bc000.isp: 480bc000.isp supply vdd-csiphy2 not found, using dummy regulator
[ 25.756591] omap3isp 480bc000.isp: Revision 15.0 found
[ 25.757232] iommu: Adding device 480bc000.isp to group 0
[ 25.757354] omap-iommu 480bd400.mmu: 480bd400.mmu: version 1.1
[ 25.757629] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CCP2 was not initialized!
[ 25.816131] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CSI2a was not initialized!
[ 25.840148] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP CCDC was not initialized!
[ 25.852081] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP preview was not initialized!
[ 25.872070] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP resizer was not initialized!
[ 25.879425] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP AEWB was not initialized!
[ 25.879455] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP AF was not initialized!
[ 25.879455] omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP histogram was not initialized!
[ 25.962982] iommu: Removing device 480bc000.isp from group 0
[ 25.963165] clk_unregister: unregistering prepared clock: cam_xclka
[ 25.963287] clk_unregister: unregistering prepared clock: cam_xclkb
[ 25.963531] omap3isp: probe of 480bc000.isp failed with error -22
[ 25.989318] usb 2-2.4: ath9k_htc: Firmware ath9k_htc/htc_9271-1.4.0.fw requested
[ 26.020385] usbcore: registered new interface driver ath9k_htc
[ 26.025512] omap_wdt: OMAP Watchdog Timer Rev 0x31: initial timeout 60 sec
[ 26.302368] usb 2-2.4: ath9k_htc: Transferred FW: ath9k_htc/htc_9271-1.4.0.fw, size: 51008
[ 26.553619] ath9k_htc 2-2.4:1.0: ath9k_htc: HTC initialized with 33 credits
[ 26.795837] ath9k_htc 2-2.4:1.0: ath9k_htc: FW Version: 1.4
[ 26.795837] ath9k_htc 2-2.4:1.0: FW RMW support: On
[ 26.795867] ath: EEPROM regdomain: 0x809c
[ 26.795867] ath: EEPROM indicates we should expect a country code
[ 26.795867] ath: doing EEPROM country->regdmn map search
[ 26.795898] ath: country maps to regdmn code: 0x52
[ 26.795898] ath: Country alpha2 being used: CN
[ 26.795898] ath: Regpair used: 0x52
[ 26.881103] ieee80211 phy0: Atheros AR9271 Rev:1
[ 27.048828] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 30.906555] omap-twl4030 sound: twl4030-hifi <-> 49022000.mcbsp mapping ok
[ 45.653350] using random self ethernet address
[ 45.653381] using random host ethernet address
[ 45.812591] usb0: HOST MAC 02:1c:99:03:be:5e
[ 45.814453] usb0: MAC 02:f5:ca:f7:58:17
[ 46.072937] IPv6: ADDRCONF(NETDEV_UP): usb0: link is not ready
[ 46.293090] configfs-gadget gadget: high-speed config #1: c
[ 46.293304] IPv6: ADDRCONF(NETDEV_CHANGE): usb0: link becomes ready
[ 67.037231] random: crng init done
debian@arm:~$

it's pretty much luck.. the bug actually goes back into the v3.x era
of kernel's (-110 ).. i remember trying to bisect it years ago, but
it's just too random, either related to timing and voltages..

Regards,

Robert,

That’s a shame. I have a consisting ETIMEDOUT every time. I have found in the sd driver the lines related to the error. I have spent some time reading the commits, but I think that in order to trace the error a debugging environment is the best choice. As I said previously I don’t have that much experience with embedded but I do know quite a bit of C programming. I can spend some time debugging the driver to understand what led to this situation. Can you lead me in building the environment for it. I understand if you find this proposal too time consuming and prefer not spend time on it.

Thank you again,
von Bergen, Federico.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/mmc/core/sd_ops.c#n153

The build environment can be setup as shown on an x86 desktop:

git clone -b v5.4.x https://github.com/RobertCNelson/armv7-multiplatform
cd ./armv7-multiplatform/
./build_kernel.sh

Plug in your microSD and run:

./tools/install_kernel.sh

to update the microSD card.

Regards,

Hi Robert,

After some “research” of the bug I came across this bug post in one of your github repositories: https://github.com/RobertCNelson/armv7-multiplatform/issues/25 . As you stated you worked some time trying to figure out the error and there you have the proof ;). After reading all the messages I encountered with the last one, which suggest applying this patch https://github.com/balena-os/balena-beaglebone/blob/master/layers/meta-balena-beaglebone/recipes-kernel/linux/linux-beagleboard-4.14/0001-card-power-cycle.patch . I tried it and … it worked perfectly! Of course I’m unable to explain why it fixes it, but I thought that maybe we can show this to someone you might know or maybe get in touch with the guys from Balena, in order to have a proper fix mainline. I feel that this is a big issue for those using the BeagleBoard-xM and trying to use the latest releases. I tried 3 different microSD cards and neither of them worked with the latest releases.
I will attach two dmesg: the first one corresponds to the kernel without the patch and second one with it.
If you think that more information is needed or want me to perform some type of debugging, just tell me! I’m willing to help to solve this issue in the best possible way.

Again, and knowing that I’m repeating myself, thank you for taking the time with this topic,
von Bergen, Federico

Without patch:

U-Boot SPL 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500)
Trying to boot from MMC1
spl_load_image_fat_os: error reading image args, err - -2

U-Boot 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500), Build: jenkins-github_Bootloader-Builder-49

OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 GHz
Model: TI OMAP3 BeagleBoard
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from NAND... *** Warning - readenv() failed, using default environment

Failed (-5)
Beagle xM Rev C
No EEPROM on expansion board
No EEPROM on expansion board
OMAP die ID: 037600029ff8000001578ca00f01d013
Net: usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
290 bytes read in 32 ms (8.8 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /boot/vmlinuz-5.4.47-armv7-x30 ...
10052096 bytes read in 907 ms (10.6 MiB/s)
loading /boot/dtbs/5.4.47-armv7-x30/omap3-beagle-xm.dtb ...
94890 bytes read in 899 ms (102.5 KiB/s)
debug: [console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...
debug: [bootz 0x82000000 - 0x88000000] ...
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 89fe5000, end 89fff2a9 ... OK

Starting kernel ...

[ 2.022827] tfp410-bridge encoder0: failed to parse powerdown gpio
gpio
022827] tfp410-bridge encoder0: failed to parse powerdown[ 3.629943] mmc0: card never left busy state

Applying patch https://github.com/balena-os/balena-beaglebone/blob/master/layers/meta-balena-beaglebone/recipes-kernel/linux/linux-beagleboard-4.14/0001-card-power-cycle.patch:

U-Boot SPL 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500)
Trying to boot from MMC1
spl_load_image_fat_os: error reading image args, err - -2

U-Boot 2018.03-00001-g21a26066ea (May 21 2018 - 15:23:05 -0500), Build: jenkins-github_Bootloader-Builder-49

OMAP3630/3730-GP ES1.2, CPU-OPP2, L3-200MHz, Max CPU Clock 1 GHz
Model: TI OMAP3 BeagleBoard
OMAP3 Beagle board + LPDDR/NAND
I2C: ready
DRAM: 512 MiB
NAND: 0 MiB
MMC: OMAP SD/MMC: 0
Loading Environment from NAND... *** Warning - readenv() failed, using default environment

Failed (-5)
Beagle xM Rev C
No EEPROM on expansion board
No EEPROM on expansion board
OMAP die ID: 037600029ff8000001578ca00f01d013
Net: usb_ether
Hit any key to stop autoboot: 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Checking for: /uEnv.txt ...
Checking for: /boot/uEnv.txt ...
290 bytes read in 33 ms (7.8 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
Running uname_boot ...
loading /boot/vmlinuz-5.4.47-armv7-x30 ...
10052096 bytes read in 906 ms (10.6 MiB/s)
loading /boot/dtbs/5.4.47-armv7-x30/omap3-beagle-xm.dtb ...
94890 bytes read in 361 ms (255.9 KiB/s)
debug: [console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet] ...
debug: [bootz 0x82000000 - 0x88000000] ...
## Flattened Device Tree blob at 88000000
Booting using the fdt blob at 0x88000000
Loading Device Tree to 89fe5000, end 89fff2a9 ... OK

Starting kernel ...

[ 2.016662] tfp410-bridge encoder0: failed to parse powerdown gpio

Debian GNU/Linux 9 arm ttyS2

[rcn-ee.net](http://rcn-ee.net) console Debian Image 2017-06-12

Support/FAQ: [http://elinux.org/BeagleBoardDebian](http://elinux.org/BeagleBoardDebian)

default username:password is [debian:temppwd]

arm login: debian
Password:
Last login: Mon Jun 12 19:48:07 UTC 2017 on ttyS2
Linux arm 5.4.47-armv7-x30 #2 SMP PREEMPT Tue Jul 21 17:43:24 -03 2020 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
debian@arm:~$ dmesg
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 5.4.47-armv7-x30 (fvonbergen@fvonbergen) (gcc version 8.3.0 (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36))) #2 SMP PREEMPT Tue Jul 21 17:43:24 -03 2020
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: TI OMAP3 BeagleBoard xM
[ 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 0x9c800000
[ 0.000000] On node 0 totalpages: 130560
[ 0.000000] Normal zone: 1148 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 130560 pages, LIFO batch:31
[ 0.000000] CPU: All CPU(s) started in SVC mode.
[ 0.000000] OMAP3630/DM3730 ES1.2 (l2cache iva sgx neon isp 192mhz_clk)
[ 0.000000] percpu: Embedded 20 pages/cpu s52940 r8192 d20788 u81920
[ 0.000000] pcpu-alloc: s52940 r8192 d20788 u81920 alloc=20*4096
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 129412
[ 0.000000] Kernel command line: console=ttyO2,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 quiet
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 449456K/522240K available (10240K kernel code, 1351K rwdata, 4184K rodata, 1024K init, 366K bss, 23632K reserved, 49152K cma-reserved, 0K highmem)
[ 0.000000] random: get_random_u32 called from __kmem_cache_create+0x2d/0x3d8 with crng_init=0
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] ftrace: allocating 46506 entries in 91 pages
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] rcu: RCU restricting CPUs from NR_CPUS=8 to nr_cpu_ids=1.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 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 4.0) with 96 interrupts
[ 0.000000] Clocking rate (Crystal/Core/MPU): 26.0/400/600 MHz
[ 0.000000] OMAP clockevent source: timer1 at 32768 Hz
[ 0.000000] clocksource: 32k_counter: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 58327039986419 ns
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 65535999984741ns
[ 0.000030] OMAP clocksource: 32k_counter at 32768 Hz
[ 0.002288] Console: colour dummy device 80x30
[ 0.002319] WARNING: Your 'console=ttyO2' has been replaced by 'ttyS2'
[ 0.002319] This ensures that you still see kernel messages. Please
[ 0.002349] update your kernel commandline.
[ 0.002380] Calibrating delay loop... 595.96 BogoMIPS (lpj=1191936)
[ 0.027465] pid_max: default: 32768 minimum: 301
[ 0.027832] LSM: Security Framework initializing
[ 0.027954] Yama: becoming mindful.
[ 0.028137] AppArmor: AppArmor initialized
[ 0.028137] TOMOYO Linux initialized
[ 0.028259] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.028289] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.028411] *** VALIDATE tmpfs ***
[ 0.029357] *** VALIDATE proc ***
[ 0.029815] *** VALIDATE cgroup1 ***
[ 0.029846] *** VALIDATE cgroup2 ***
[ 0.029937] CPU: Testing write buffer coherency: ok
[ 0.029998] CPU0: Spectre v2: using BPIALL workaround
[ 0.030517] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[ 0.051544] Setting up static identity map for 0x80100000 - 0x80100054
[ 0.059448] rcu: Hierarchical SRCU implementation.
[ 0.071716] EFI services will not be available.
[ 0.079437] smp: Bringing up secondary CPUs ...
[ 0.079467] smp: Brought up 1 node, 1 CPU
[ 0.079467] SMP: Total of 1 processors activated (595.96 BogoMIPS).
[ 0.079498] CPU: All CPU(s) started in SVC mode.
[ 0.080352] devtmpfs: initialized
[ 0.115814] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[ 0.116851] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 0.116882] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[ 0.121124] xor: measuring software checksum speed
[ 0.159362] arm4regs : 722.000 MB/sec
[ 0.199340] 8regs : 647.000 MB/sec
[ 0.239318] 32regs : 624.000 MB/sec
[ 0.279296] neon : 1008.000 MB/sec
[ 0.279296] xor: using function: neon (1008.000 MB/sec)
[ 0.279327] pinctrl core: initialized pinctrl subsystem
[ 0.280944] NET: Registered protocol family 16
[ 0.288360] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[ 0.326202] omap_hwmod: mcbsp2_sidetone using broken dt data from mcbsp
[ 0.327362] omap_hwmod: mcbsp3_sidetone using broken dt data from mcbsp
[ 0.409393] audit: initializing netlink subsys (disabled)
[ 0.411010] cpuidle: using governor menu
[ 0.411804] Reprogramming SDRC clock to 400000000 Hz
[ 0.415313] audit: type=2000 audit(0.412:1): state=initialized audit_enabled=0 res=1
[ 0.419708] OMAP GPIO hardware version 2.5
[ 0.438476] omap-gpmc 6e000000.gpmc: GPMC revision 5.0
[ 0.438476] gpmc_mem_init: disabling cs 0 mapped at 0x0-0x1000000
[ 0.445892] hw-breakpoint: debug architecture 0x4 unsupported.
[ 0.448242] OMAP DMA hardware revision 5.0
[ 0.495483] raid6: using algorithm neonx8 gen() 0 MB/s
[ 0.495483] raid6: .... xor() 0 MB/s, rmw enabled
[ 0.495483] raid6: using neon recovery algorithm
[ 0.511474] omap-dma-engine 48056000.dma-controller: OMAP DMA engine driver (LinkedList1/2/3 supported)
[ 0.519226] iommu: Default domain type: Translated
[ 0.521179] omap-iommu 480bd400.mmu: 480bd400.mmu registered
[ 0.521820] platform 480bc000.isp: Adding to iommu group 0
[ 0.524658] SCSI subsystem initialized
[ 0.527313] libata version 3.00 loaded.
[ 0.527770] usbcore: registered new interface driver usbfs
[ 0.527832] usbcore: registered new interface driver hub
[ 0.528015] usbcore: registered new device driver usb
[ 0.531249] omap_i2c 48070000.i2c: bus 0 rev4.4 at 2600 kHz
[ 0.532287] omap_i2c 48072000.i2c: bus 1 rev4.4 at 400 kHz
[ 0.533172] omap_i2c 48060000.i2c: bus 2 rev4.4 at 100 kHz
[ 0.533538] mc: Linux media interface: v0.10
[ 0.533599] videodev: Linux video capture interface: v2.00
[ 0.533782] pps_core: LinuxPPS API ver. 1 registered
[ 0.533813] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <[giometti@linux.it](mailto:giometti@linux.it)>
[ 0.533843] PTP clock support registered
[ 0.534545] omap-mailbox 48094000.mailbox: omap mailbox rev 0x40
[ 0.540252] NetLabel: Initializing
[ 0.540283] NetLabel: domain hash size = 128
[ 0.540283] NetLabel: protocols = UNLABELED CIPSOv4 CALIPSO
[ 0.540405] NetLabel: unlabeled traffic allowed by default
[ 0.541595] clocksource: Switched to clocksource 32k_counter
[ 1.017669] random: fast init done
[ 1.887207] *** VALIDATE bpf ***
[ 1.887664] VFS: Disk quotas dquot_6.6.0
[ 1.887817] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 1.888000] *** VALIDATE ramfs ***
[ 1.889282] AppArmor: AppArmor Filesystem Enabled
[ 1.906585] thermal_sys: Registered thermal governor 'fair_share'
[ 1.906585] thermal_sys: Registered thermal governor 'bang_bang'
[ 1.906585] thermal_sys: Registered thermal governor 'step_wise'
[ 1.907562] NET: Registered protocol family 2
[ 1.908905] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[ 1.908935] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[ 1.908996] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 1.909088] TCP: Hash tables configured (established 4096 bind 4096)
[ 1.909240] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 1.909271] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 1.909545] NET: Registered protocol family 1
[ 1.923706] RPC: Registered named UNIX socket transport module.
[ 1.923706] RPC: Registered udp transport module.
[ 1.923736] RPC: Registered tcp transport module.
[ 1.923736] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 1.923736] NET: Registered protocol family 44
[ 1.928192] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[ 1.931671] Initialise system trusted keyrings
[ 1.932067] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[ 1.944091] zbud: loaded
[ 1.952514] NFS: Registering the id_resolver key type
[ 1.952575] Key type id_resolver registered
[ 1.952575] Key type id_legacy registered
[ 1.952606] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 1.952972] fuse: init (API version 7.31)
[ 1.953186] *** VALIDATE fuse ***
[ 1.953186] *** VALIDATE fuse ***
[ 1.961120] jitterentropy: Initialization failed with host not compliant with requirements: 2
[ 1.961120] Key type asymmetric registered
[ 1.961151] Asymmetric key parser 'x509' registered
[ 1.961212] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[ 1.965850] io scheduler mq-deadline registered
[ 1.975891] pinctrl-single 48002030.pinmux: 284 pins, size 568
[ 1.976562] pinctrl-single 48002a00.pinmux: 46 pins, size 92
[ 1.977355] pinctrl-single 480025a0.pinmux: 46 pins, size 92
[ 1.988708] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[ 1.992858] 4806a000.serial: ttyS0 at MMIO 0x4806a000 (irq = 88, base_baud = 3000000) is a 8250
[ 1.994232] 4806c000.serial: ttyS1 at MMIO 0x4806c000 (irq = 89, base_baud = 3000000) is a 8250
[ 1.995697] 49020000.serial: ttyS2 at MMIO 0x49020000 (irq = 90, base_baud = 3000000) is a 8250
[ 1.995880] printk: console [ttyS2] enabled
[ 1.997344] 49042000.serial: ttyS3 at MMIO 0x49042000 (irq = 96, base_baud = 3000000) is a 8250
[ 2.002258] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator
[ 2.002471] omapdss_dss 48050000.dss: 48050000.dss supply vdds_dsi not found, using dummy regulator
[ 2.016601] tfp410-bridge encoder0: Connector's ddc i2c bus found
[ 2.016662] tfp410-bridge encoder0: failed to parse powerdown gpio
[ 2.054199] twl 0-0048: PIH (irq 23) chaining IRQs 145..153
[ 2.054382] twl 0-0048: power (irq 150) chaining IRQs 153..160
[ 2.088531] twl4030_gpio twl4030-gpio: gpio (irq 145) chaining IRQs 161..178
[ 2.158264] twl4030_usb 48070000.i2c:twl@48:twl4030-usb: Initialized TWL4030 USB module
[ 2.188079] libphy: Fixed MDIO Bus: probed
[ 2.195770] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 2.195831] ehci-platform: EHCI generic platform driver
[ 2.196319] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 2.196502] ehci-omap: OMAP-EHCI Host Controller driver
[ 2.203033] usbcore: registered new interface driver uas
[ 2.203124] usbcore: registered new interface driver usb-storage
[ 2.203186] usbcore: registered new interface driver ums-alauda
[ 2.203247] usbcore: registered new interface driver ums-cypress
[ 2.203277] usbcore: registered new interface driver ums-datafab
[ 2.203338] usbcore: registered new interface driver ums_eneub6250
[ 2.203399] usbcore: registered new interface driver ums-freecom
[ 2.203430] usbcore: registered new interface driver ums-isd200
[ 2.203491] usbcore: registered new interface driver ums-jumpshot
[ 2.203552] usbcore: registered new interface driver ums-karma
[ 2.203582] usbcore: registered new interface driver ums-onetouch
[ 2.203674] usbcore: registered new interface driver ums-realtek
[ 2.203735] usbcore: registered new interface driver ums-sddr09
[ 2.203765] usbcore: registered new interface driver ums-sddr55
[ 2.203826] usbcore: registered new interface driver ums-usbat
[ 2.205322] musb-hdrc musb-hdrc.0.auto: MUSB HDRC host driver
[ 2.205383] musb-hdrc musb-hdrc.0.auto: new USB bus registered, assigned bus number 1
[ 2.205932] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 2.205963] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.205963] usb usb1: Product: MUSB HDRC host driver
[ 2.205963] usb usb1: Manufacturer: Linux 5.4.47-armv7-x30 musb-hcd
[ 2.205993] usb usb1: SerialNumber: musb-hdrc.0.auto
[ 2.206970] hub 1-0:1.0: USB hub found
[ 2.207061] hub 1-0:1.0: 1 port detected
[ 2.228302] twl_rtc 48070000.i2c:twl@48:rtc: Power up reset detected.
[ 2.228454] twl_rtc 48070000.i2c:twl@48:rtc: Enabling TWL-RTC
[ 2.232025] twl_rtc 48070000.i2c:twl@48:rtc: registered as rtc0
[ 2.233062] i2c /dev entries driver
[ 2.238098] ti-soc-thermal 48002524.bandgap: This OMAP thermal sensor is unreliable. You've been warned
[ 2.238128] ti-soc-thermal 48002524.bandgap: Non-trimmed BGAP, Temp not accurate
[ 2.244720] sdhci: Secure Digital Host Controller Interface driver
[ 2.244720] sdhci: Copyright(c) Pierre Ossman
[ 2.296905] sdhci-pltfm: SDHCI platform and OF driver helper
[ 2.299774] ledtrig-cpu: registered to indicate activity on CPUs
[ 2.301361] omap-aes 480c5000.aes: OMAP AES hw accel rev: 2.6
[ 2.301849] omap-aes 480c5000.aes: will run requests pump with realtime priority
[ 2.304809] omap-sham 480c3000.sham: hw accel on OMAP rev 0.9
[ 2.311676] hidraw: raw HID events driver (C) Jiri Kosina
[ 2.312072] usbcore: registered new interface driver usbhid
[ 2.312072] usbhid: USB HID core driver
[ 2.314514] drop_monitor: Initializing network drop monitor service
[ 2.314636] wireguard: WireGuard 0.0.20191219 loaded. See [www.wireguard.com](http://www.wireguard.com) for information.
[ 2.314636] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <[Jason@zx2c4.com](mailto:Jason@zx2c4.com)>. All Rights Reserved.
[ 2.315643] NET: Registered protocol family 10
[ 2.328704] Segment Routing with IPv6
[ 2.328857] mip6: Mobile IPv6
[ 2.328857] NET: Registered protocol family 17
[ 2.333587] Key type dns_resolver registered
[ 2.333587] mpls_gso: MPLS GSO support
[ 2.334045] ThumbEE CPU extension supported.
[ 2.334075] Registering SWP/SWPB emulation handler
[ 2.334960] SmartReflex Class3 initialized
[ 2.335693] registered taskstats version 1
[ 2.335693] Loading compiled-in X.509 certificates
[ 2.335845] zswap: loaded using pool lzo/zbud
[ 2.336425] Key type ._fscrypt registered
[ 2.336425] Key type .fscrypt registered
[ 2.342193] Btrfs loaded, crc32c=crc32c-generic
[ 2.342346] AppArmor: AppArmor sha1 policy hashing enabled
[ 2.384368] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator
[ 2.384552] omapdss_dss 48050000.dss: 48050000.dss supply vdds_dsi not found, using dummy regulator
[ 2.386657] tfp410-bridge encoder0: Connector's ddc i2c bus found
[ 2.479888] ehci-omap 48064800.ehci: EHCI Host Controller
[ 2.480010] ehci-omap 48064800.ehci: new USB bus registered, assigned bus number 2
[ 2.481903] ehci-omap 48064800.ehci: irq 93, io mem 0x48064800
[ 2.497894] ehci-omap 48064800.ehci: USB 2.0 started, EHCI 1.00
[ 2.498840] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.04
[ 2.498870] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 2.498901] usb usb2: Product: EHCI Host Controller
[ 2.498931] usb usb2: Manufacturer: Linux 5.4.47-armv7-x30 ehci_hcd
[ 2.498931] usb usb2: SerialNumber: 48064800.ehci
[ 2.500793] hub 2-0:1.0: USB hub found
[ 2.500976] hub 2-0:1.0: 3 ports detected
[ 2.505065] omapdss_dss 48050000.dss: 48050000.dss supply vdda_video not found, using dummy regulator
[ 2.505493] omapdss_dss 48050000.dss: 48050000.dss supply vdds_dsi not found, using dummy regulator
[ 2.506469] DSS: OMAP DSS rev 2.0
[ 2.522125] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ 2.523162] twl_rtc 48070000.i2c:twl@48:rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[ 2.523834] smartreflex 480cb000.smartreflex: omap_sr_probe: SmartReflex driver initialized
[ 2.524200] smartreflex 480c9000.smartreflex: omap_sr_probe: SmartReflex driver initialized
[ 2.528259] Waiting for root device /dev/mmcblk0p2...
[ 2.569274] mmc0: host does not support reading read-only switch, assuming write-enable
[ 2.569580] mmc0: new SD card at address aaaa
[ 2.576202] mmcblk0: mmc0:aaaa SU02G 1.84 GiB
[ 2.586212] mmcblk0: p1 p2
[ 2.637481] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
[ 2.637817] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[ 2.656097] devtmpfs: mounted
[ 2.672912] Freeing unused kernel memory: 1024K
[ 2.678802] Checked W+X mappings: passed, no W+X pages found
[ 2.678802] Run /sbin/init as init process
[ 2.731811] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[ 2.838562] usb 2-2: new high-speed USB device number 2 using ehci-omap
[ 2.995208] usb 2-2: New USB device found, idVendor=0424, idProduct=9514, bcdDevice= 2.00
[ 2.995239] usb 2-2: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 2.997039] hub 2-2:1.0: USB hub found
[ 2.997283] hub 2-2:1.0: 5 ports detected
[ 3.290191] usb 2-2.1: new high-speed USB device number 3 using ehci-omap
[ 3.399383] usb 2-2.1: New USB device found, idVendor=0424, idProduct=ec00, bcdDevice= 2.00
[ 3.399414] usb 2-2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[ 3.519836] systemd[1]: System time before build time, advancing clock.
[ 3.653381] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.663208] random: systemd: uninitialized urandom read (16 bytes read)
[ 3.711975] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[ 3.712951] systemd[1]: Detected architecture arm.
[ 3.729400] systemd[1]: Set hostname to <arm>.
[ 3.731170] usb 2-2.4: new high-speed USB device number 4 using ehci-omap
[ 3.859252] usb 2-2.4: New USB device found, idVendor=0cf3, idProduct=9271, bcdDevice= 1.08
[ 3.859252] usb 2-2.4: New USB device strings: Mfr=16, Product=32, SerialNumber=48
[ 3.859283] usb 2-2.4: Product: USB2.0 WLAN
[ 3.859283] usb 2-2.4: Manufacturer: ATHEROS
[ 3.859283] usb 2-2.4: SerialNumber: 12345
[ 3.916870] random: systemd-cryptse: uninitialized urandom read (16 bytes read)
[ 4.627655] systemd[1]: Listening on Journal Audit Socket.
[ 4.628814] systemd[1]: Listening on Journal Socket.
[ 4.631408] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 4.632049] systemd[1]: Listening on Syslog Socket.
[ 4.632598] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 4.633178] systemd[1]: Listening on udev Control Socket.
[ 4.635009] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 5.654357] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
[ 6.039154] systemd-journald[118]: Received request to flush runtime journal from PID 1
[ 33.758972] VAUX3: disabling
[ 33.759979] VDAC: disabling
[ 33.760925] VPLL2: disabling
debian@arm:~$

Awesome, i'll add it!

Regards,

Good stuff.
Looks timing related or maybe silicon erata if latter it’s probably fixed on later chips.Can you share differences of patch

Hi Mark!

Sure the patch is this one: https://github.com/balena-os/balena-beaglebone/blob/master/layers/meta-balena-beaglebone/recipes-kernel/linux/linux-beagleboard-4.14/0001-card-power-cycle.patch
I think that only the msleep(10) should be necessary. Nevertheless I added both lines stated in the patch. I repeat myself, I don’t have the knowledge to explain why it works. This might not be a proper solution, but for me it worked flawlessly. It started without troubles all the times. I think that this might not be the optimal solution, but it can lead the path to it. If more information, testing or logs are needed. Keep writing to me and I will do them.

Regards to all for the hard work,
von Bergen, Federico

... which results in a 404 Page Not Found error when I click on it; no
idea if others can reach it (perhaps one needs an account with github?)

Hi Dennis,

Well it seems that my timing was perfect… A commit was made in which the kernel version was bumped https://github.com/balena-os/balena-beaglebone/commit/29a9134e1ef339a1d095bac29845926ab24d4082#diff-4470acaf0380a22333703788f18deb01.
The new location of the patch is here: https://github.com/balena-os/balena-beaglebone/blob/29a9134e1ef339a1d095bac29845926ab24d4082/layers/meta-balena-beaglebone/recipes-kernel/linux/linux-beagleboard-5.4/0001-card-power-cycle.patch

Regards,
von Bergen, Federico.

Hello Fredrick
Good job in my mind this explains everything

to put it in a reset state. Otherwise, we will encounter this error
that prevents boot:

to put it in a reset state. Otherwise, we will encounter this error
that prevents boot:

For me there is nothing to debug its obvious

The Patch is Balena so no need to contact and XM is old

My interest was purely from a driver stand point.

you were studious, did your homework and tested it. Isn’t that what good engineer’s do😀

I’d hire you For a job

some others recently posting in here asking very obvious questions never googling asking very needy questions about serial terminal have zero future in embedded.

We had Engineer’s like that in the mid 80s all questions no research.
My boss used to tell them to get a refund For their education.
Unfortunately these recent posers get a free education haha

I hate to be negative but it’s very pathetic some question asked in here

Good work

Take care

Mark

Mark!

Thank you very much for your warning words. I suppose that many of the people in this group mantain this project ad-honorem, so I tried to solve and test the stuff for myself before asking unthoughtful questions.

I used this software for my grade thesis, so when I encountered with this error I felt that at least I could spend some time trying to solve it. Furthermore, during this research I took the opportunity to learn a little bit about bootloaders, device trees and drivers in the Linux Kernel.

Actually all this stuff started after trying to make use of the MPU9150 with the Linux driver. I modified the dts of the Beagleboard-xM to attach the sensor to it. Previously I did all the communication with i2c, but now with these modifications I’m able to use the iio. I still need to make it as an overlay but I’m not sure if it is currently supported for the Beagleboard-xM.

Since you mentioned here is my LinkedIn profile in case you’d like to check it at a glance: https://www.linkedin.com/in/federico-von-bergen-55477248

Thank you to all the people who keep on working in this project.
Regards,
von Bergen, Federico