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