BeagleBone Black - microSD issues

Hello RobertCNelson, I have tried to build the image for bbb following your model, but after I run ./build_kernel.sh then the deploy folder doesn’t contain the image, it’s empty. So can you tell me the problem?

The script ./build_kernel.sh will dump a lot of debug information… It’s best to see what error you get/etc…

Regards,

U-Boot 2022.04-00038-gbaca7b46 (Feb 19 2024 - 23:17:53 -0800)

CPU  : AM335X-GP rev 2.1
Model: TI AM335x BeagleBone Black
DRAM:  512 MiB
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
Core:  150 devices, 14 uclasses, devicetree: separate
WDT:   Started wdt@44e35000 with servicing (60s timeout)
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: no EEPROM at address: 0x54
BeagleBone Cape EEPROM: no EEPROM at address: 0x55
BeagleBone Cape EEPROM: no EEPROM at address: 0x56
BeagleBone Cape EEPROM: no EEPROM at address: 0x57
Net:   eth2: ethernet@4a100000, eth3: usb_ether
Press SPACE to abort autoboot in 0 seconds
board_name=[A335BNLT] ...
board_rev=[00C0] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
Couldn't find partition 0:2 0x82000000
Can't set block device
Couldn't find partition 0:2 0x82000000
Can't set block device
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
Scanning disk mmc@48060000.blk...
Scanning disk mmc@481d8000.blk...
Found 4 disks
No EFI system partition
BootOrder not defined
EFI boot manager: Cannot load any image
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/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
22 bytes read in 8 ms (2 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-6.2.16-bone20 ...
11063808 bytes read in 1871 ms (5.6 MiB/s)
debug: [enable_uboot_overlays=] ...
loading /boot/dtbs/6.2.16-bone20/am335x-boneblack.dtb ...
98831 bytes read in 30 ms (3.1 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
debug: [console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait] ...
debug: [bootz 0x82000000 - 0x88000000] ...
Kernel image @ 0x82000000 [ 0x000000 - 0xa8d200 ]
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe4000, end 8ffff20e ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.2.16-bone20 (root@ubuntu) (arm-linux-gnueabi-gcc (GCC) 12.3.0, GNU ld (GNU Binutils) 2.40) #1 PREEMPT Thu Feb 22 05:50:28 PST 2024
[    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 AM335x BeagleBone Black
[    0.000000] Memory policy: Data cache writeback
[    0.000000] efi: UEFI not found.
[    0.000000] cma: Reserved 48 MiB at 0x9c800000
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000009fefffff]
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] AM335X ES2.1 (sgx neon)
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129666
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait
[    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:all(zero), heap alloc:on, heap free:off
[    0.000000] Memory: 448936K/523264K available (11264K kernel code, 1779K rwdata, 4124K rodata, 1024K init, 508K bss, 25176K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 47950 entries in 141 pages
[    0.000000] ftrace: allocated 141 pages with 4 groups
[    0.000000] trace event string verifier disabled
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Trampoline variant of Tasks RCU enabled.
[    0.000000]  Rude variant of Tasks RCU enabled.
[    0.000000]  Tracing variant of Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[    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 interrupts
[    0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000002] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000022] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000344] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.001685] Console: colour dummy device 80x30
[    0.001760] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.048396] pid_max: default: 32768 minimum: 301
[    0.048878] LSM: initializing lsm=capability,landlock,yama,integrity,apparmor,tomoyo,bpf
[    0.049006] landlock: Up and running.
[    0.049011] Yama: becoming mindful.
[    0.049303] AppArmor: AppArmor initialized
[    0.049318] TOMOYO Linux initialized
[    0.049360] LSM support for eBPF active
[    0.049534] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.049553] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051016] CPU: Testing write buffer coherency: ok
[    0.051081] CPU0: Spectre v2: using BPIALL workaround
[    0.052528] cblist_init_generic: Setting adjustable number of callback queues.
[    0.052547] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.052701] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.052814] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.053004] Setting up static identity map for 0x80100000 - 0x80100054
[    0.053230] rcu: Hierarchical SRCU implementation.
[    0.053239] rcu:     Max phase no-delay instances is 1000.
[    0.054408] EFI services will not be available.
[    0.055279] devtmpfs: initialized
[    0.075124] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.075551] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.075581] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.080864] pinctrl core: initialized pinctrl subsystem
[    0.081936] DMI not present or invalid.
[    0.082784] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.091221] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.091729] audit: initializing netlink subsys (disabled)
[    0.092872] thermal_sys: Registered thermal governor 'fair_share'
[    0.092888] thermal_sys: Registered thermal governor 'bang_bang'
[    0.092894] thermal_sys: Registered thermal governor 'step_wise'
[    0.092899] thermal_sys: Registered thermal governor 'user_space'
[    0.092991] cpuidle: using governor ladder
[    0.093022] cpuidle: using governor menu
[    0.096464] audit: type=2000 audit(0.088:1): state=initialized audit_enabled=0 res=1
[    0.114270] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.128792] cryptd: max_cpu_qlen set to 1000
[    0.133401] raid6: skipped pq benchmark and selected neonx8
[    0.133418] raid6: using neon recovery algorithm
[    0.140438] iommu: Default domain type: Translated
[    0.140454] iommu: DMA domain TLB invalidation policy: strict mode
[    0.142085] SCSI subsystem initialized
[    0.142395] usbcore: registered new interface driver usbfs
[    0.142433] usbcore: registered new interface driver hub
[    0.142506] usbcore: registered new device driver usb
[    0.142968] pps_core: LinuxPPS API ver. 1 registered
[    0.142977] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.142999] PTP clock support registered
[    0.145083] NetLabel: Initializing
[    0.145098] NetLabel:  domain hash size = 128
[    0.145106] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    0.145200] NetLabel:  unlabeled traffic allowed by default
[    0.146104] clocksource: Switched to clocksource dmtimer
[    0.147209] VFS: Disk quotas dquot_6.6.0
[    0.147291] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.147488] FS-Cache: Loaded
[    0.147778] CacheFiles: Loaded
[    0.154451] AppArmor: AppArmor Filesystem Enabled
[    0.170363] NET: Registered PF_INET protocol family
[    0.170678] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.178856] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.179075] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.179106] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.179169] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    0.179225] TCP: Hash tables configured (established 4096 bind 4096)
[    0.179555] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    0.179642] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.179667] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.179917] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    0.180729] RPC: Registered named UNIX socket transport module.
[    0.180745] RPC: Registered udp transport module.
[    0.180750] RPC: Registered tcp transport module.
[    0.180755] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.180770] NET: Registered PF_XDP protocol family
[    1.471116] Initialise system trusted keyrings
[    1.472783] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    1.472968] zbud: loaded
[    1.475385] NFS: Registering the id_resolver key type
[    1.475478] Key type id_resolver registered
[    1.475486] Key type id_legacy registered
[    1.475568] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.475578] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    1.475615] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.476307] fuse: init (API version 7.38)
[    1.566597] NET: Registered PF_ALG protocol family
[    1.566639] xor: measuring software checksum speed
[    1.574439]    arm4regs        :  1265 MB/sec
[    1.584715]    8regs           :   962 MB/sec
[    1.594971]    32regs          :   960 MB/sec
[    1.600518]    neon            :  1780 MB/sec
[    1.600524] xor: using function: neon (1780 MB/sec)
[    1.600542] Key type asymmetric registered
[    1.600550] Asymmetric key parser 'x509' registered
[    1.600757] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    1.601126] io scheduler mq-deadline registered
[    1.604957] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    1.613477] usbcore: registered new interface driver smsc95xx
[    1.615721] i2c_dev: i2c /dev entries driver
[    1.615871] Driver for 1-wire Dallas network protocol.
[    1.616830] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    1.616845] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[    1.617762] cpuidle: enable-method property 'ti,am3352' found operations
[    1.618462] sdhci: Secure Digital Host Controller Interface driver
[    1.618473] sdhci: Copyright(c) Pierre Ossman
[    1.618611] sdhci-pltfm: SDHCI platform and OF driver helper
[    1.618855] ledtrig-cpu: registered to indicate activity on CPUs
[    1.619405] hid: raw HID events driver (C) Jiri Kosina
[    1.619589] usbcore: registered new interface driver usbhid
[    1.619597] usbhid: USB HID core driver
[    1.620272] drop_monitor: Initializing network drop monitor service
[    1.620936] NET: Registered PF_INET6 protocol family
[    1.625187] Segment Routing with IPv6
[    1.625285] In-situ OAM (IOAM) with IPv6
[    1.625406] mip6: Mobile IPv6
[    1.625436] NET: Registered PF_PACKET protocol family
[    1.625755] Key type dns_resolver registered
[    1.625769] mpls_gso: MPLS GSO support
[    1.625946] ThumbEE CPU extension supported.
[    1.625961] Registering SWP/SWPB emulation handler
[    1.625969] omap_voltage_late_init: Voltage driver support not added
[    1.626322] PM: Cannot get wkup_m3_ipc handle
[    1.635820] registered taskstats version 1
[    1.635958] Loading compiled-in X.509 certificates
[    1.636363] zswap: loaded using pool lzo/zbud
[    1.648727] Key type .fscrypt registered
[    1.648750] Key type fscrypt-provisioning registered
[    1.656190] Btrfs loaded, crc32c=crc32c-generic, zoned=yes, fsverity=yes
[    1.657782] Key type encrypted registered
[    1.657811] AppArmor: AppArmor sha1 policy hashing enabled
[    1.657868] ima: No TPM chip found, activating TPM-bypass!
[    1.657910] ima: Allocated hash algorithm: sha256
[    1.657980] ima: No architecture policies found
[    1.658085] evm: Initialising EVM extended attributes:
[    1.658092] evm: security.selinux
[    1.658189] evm: security.SMACK64 (disabled)
[    1.658197] evm: security.SMACK64EXEC (disabled)
[    1.658201] evm: security.SMACK64TRANSMUTE (disabled)
[    1.658206] evm: security.SMACK64MMAP (disabled)
[    1.658210] evm: security.apparmor
[    1.658215] evm: security.ima
[    1.658219] evm: security.capability
[    1.658224] evm: HMAC attrs: 0x1
[    1.681253] remoteproc remoteproc0: wkup_m3 is available
[    1.685269] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.691687] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    1.695369] ti-sysc: probe of 44e31000.target-module failed with error -16
[    1.698254] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    1.701317] omap_rtc 44e3e000.rtc: registered as rtc0
[    1.701372] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    1.709429] ti-sysc: probe of 48040000.target-module failed with error -16
[    1.719501] gpio gpiochip0: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.719608] gpio gpiochip0: (gpio-0-31): not an immutable chip, please consider fixing it!
[    1.720099] OMAP GPIO hardware version 0.1
[    1.724849] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    1.729894] at24 2-0054: supply vcc not found, using dummy regulator
[    1.761642] at24 2-0055: supply vcc not found, using dummy regulator
[    1.788582] at24 2-0056: supply vcc not found, using dummy regulator
[    1.817489] at24 2-0057: supply vcc not found, using dummy regulator
[    1.844241] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    1.848333] gpio gpiochip1: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.848432] gpio gpiochip1: (gpio-32-63): not an immutable chip, please consider fixing it!
[    1.850552] gpio gpiochip2: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    1.850644] gpio gpiochip2: (gpio-64-95): not an immutable chip, please consider fixing it!
[    1.855008] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
[    1.855482] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    1.864273] platform 4830e000.lcdc: Fixed dependency cycle(s) with /ocp/interconnect@44c00000/segment@200000/target-module@b000/i2c@0/tda19988@70
[    1.866588] omap_rng 48310000.rng: Random Number Generator ver. 20
[    1.867060] random: crng init done
[    1.910200] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    1.934510] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    1.935093] cpsw-switch 4a100000.switch: initialized cpsw ale version 1.4
[    1.935112] cpsw-switch 4a100000.switch: ALE Table size 1024
[    1.935204] cpsw-switch 4a100000.switch: cpts: overflow check period 1250 (jiffies)
[    1.935218] cpsw-switch 4a100000.switch: CPTS: ref_clk_freq:250000000 calc_mult:2147483648 calc_shift:29 error:0 nsec/sec
[    1.935280] cpsw-switch 4a100000.switch: Detected MACID = 34:03:de:9b:14:35
[    1.936543] cpsw-switch 4a100000.switch: initialized (regs 0x4a100000, pool size 256) hw_ver:0019010C 1.12 (0)
[    1.950565] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    1.950601] edma 49000000.dma: TI EDMA DMA engine driver
[    1.955694] am335x-phy-driver 47401300.usb-phy: dummy supplies not allowed for exclusive requests
[    1.968418] am335x-phy-driver 47401b00.usb-phy: dummy supplies not allowed for exclusive requests
[    1.971559] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    1.971602] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    1.971856] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.02
[    1.971871] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.971881] usb usb1: Product: MUSB HDRC host driver
[    1.971889] usb usb1: Manufacturer: Linux 6.2.16-bone20 musb-hcd
[    1.971897] usb usb1: SerialNumber: musb-hdrc.1
[    1.972646] hub 1-0:1.0: USB hub found
[    1.972698] hub 1-0:1.0: 1 port detected
[    1.990084] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    1.990420] omap-sham 53100000.sham: will run requests pump with realtime priority
[    1.991951] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    1.992245] omap-aes 53500000.aes: will run requests pump with realtime priority
[    1.996152] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    2.001290] l3-aon-clkctrl:0000:0: failed to disable
[    2.003868] PM: Cannot get wkup_m3_ipc handle
[    2.004256] gpio gpiochip3: Static allocation of GPIO base is deprecated, use dynamic allocation.
[    2.004403] gpio gpiochip3: (gpio-96-127): not an immutable chip, please consider fixing it!
[    2.006250] printk: console [ttyS0] disabled
[    2.006343] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 49, base_baud = 3000000) is a 8250
[    2.006455] printk: console [ttyS0] enabled
[    3.458719] tps65217-pmic: Failed to locate of_node [id: -1]
[    3.473469] tps65217-bl: Failed to locate of_node [id: -1]
[    3.481942] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    3.488753] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    3.616520] tda998x 0-0070: found TDA19988
[    3.623855] tilcdc 4830e000.lcdc: bound 0-0070 (ops 0xc0cb2754)
[    3.631081] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[    3.638944] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes
[    3.645886] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    3.654218] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    3.664343] sdhci-omap 481d8000.mmc: supply pbias not found, using dummy regulator
[    3.674179] remoteproc remoteproc0: powering up wkup_m3
[    3.680198] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217148
[    3.690332] PM: Cannot get wkup_m3_ipc handle
[    3.695203] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    3.702932] sdhci-omap 48060000.mmc: Got CD GPIO
[    3.708141] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
[    3.714751] sdhci-omap 48060000.mmc: supply pbias not found, using dummy regulator
[    3.722631] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    3.729202] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x192
[    3.738698] input: tps65217_pwrbutton as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0b000.target-module/44e0b000.i2c/i2c-0/0-0024/tps65217-pwrbutton/input/input0
[    3.757470] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    3.767764] PM: bootloader does not support rtc-only!
[    3.773011] mmc1: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    3.794401] mmc0: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    3.802789] Waiting for root device /dev/mmcblk0p1...
[    3.840036] mmc1: new high speed MMC card at address 0001
[    3.847003] mmcblk1: mmc1:0001 M62704 3.56 GiB
[    3.853804] mmc0: new high speed SDHC card at address 0001
[    3.860368]  mmcblk1: p1
[    3.863980] mmcblk1boot0: mmc1:0001 M62704 2.00 MiB
[    3.869603] mmcblk0: mmc0:0001 SD 14.8 GiB
[    3.978205] mmcblk1boot1: mmc1:0001 M62704 2.00 MiB
[    3.985335] mmcblk1rpmb: mmc1:0001 M62704 512 KiB, chardev (242:0)
[    4.035482] mmc0: Problem switching card into high-speed mode!
[    4.092368] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.151697] I/O error, dev mmcblk0, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.211025] I/O error, dev mmcblk0, sector 2 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.270348] I/O error, dev mmcblk0, sector 3 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.329706] I/O error, dev mmcblk0, sector 4 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.389032] I/O error, dev mmcblk0, sector 5 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.448435] I/O error, dev mmcblk0, sector 6 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.507805] I/O error, dev mmcblk0, sector 7 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.516376] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[    4.726865] I/O error, dev mmcblk0, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    4.786240] I/O error, dev mmcblk0, sector 1 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 2
[    5.099542] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[    5.411238] mmc0: Got data interrupt 0x00000002 even though no data operation was in progress.
[    5.419930] mmc0: sdhci: ============ SDHCI REGISTER DUMP ===========
[    5.426399] mmc0: sdhci: Sys addr:  0x00000000 | Version:  0x00003101
[    5.432868] mmc0: sdhci: Blk size:  0x00000200 | Blk cnt:  0x00000000
[    5.439336] mmc0: sdhci: Argument:  0x00000002 | Trn mode: 0x00000013
[    5.445804] mmc0: sdhci: Present:   0x01f70000 | Host ctl: 0x00000002
[    5.452272] mmc0: sdhci: Power:     0x0000000f | Blk gap:  0x00000000
[    5.458740] mmc0: sdhci: Wake-up:   0x00000000 | Clock:    0x00000107
[    5.465208] mmc0: sdhci: Timeout:   0x00000009 | Int stat: 0x00000000
[    5.471676] mmc0: sdhci: Int enab:  0x027f000b | Sig enab: 0x027f000b
[    5.478145] mmc0: sdhci: ACmd stat: 0x00000000 | Slot int: 0x00000000
[    5.484614] mmc0: sdhci: Caps:      0x07e10080 | Caps_1:   0x00000000
[    5.491081] mmc0: sdhci: Cmd:       0x0000113a | Max curr: 0x00000000
[    5.497550] mmc0: sdhci: Resp[0]:   0x00000000 | Resp[1]:  0x00000000
[    5.504018] mmc0: sdhci: Resp[2]:   0x00000000 | Resp[3]:  0x00000000
[    5.510486] mmc0: sdhci: Host ctl2: 0x00000000
[    5.514947] mmc0: sdhci: ============================================
[    5.775513] Buffer I/O error on dev mmcblk0, logical block 0, async page read
[    5.782818]  mmcblk0: unable to read partition table
[    5.791204] /dev/root: Can't open blockdev
[    5.795448] VFS: Cannot open root device "mmcblk0p1" or unknown-block(179,513): error -6
[    5.803629] Please append a correct "root=" boot option; here are the available partitions:
[    5.812075] b300         3735552 mmcblk1
[    5.812087]  driver: mmcblk
[    5.818979]   b301         3734528 mmcblk1p1 00000000-01
[    5.818989]
[    5.825854] 0b3:00200   15482880 mmcblk0
[    5.825863]  driver: mmcblk
[    5.832720] 0b3:00100       2048 mmcblk1boot0
[    5.832729]  (driver?)
[    5.839574] 0b3:00300       2048 mmcblk1boot1
[    5.839583]  (driver?)
[    5.846516] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,513)
[    5.855170] CPU: 0 PID: 1 Comm: swapper Not tainted 6.2.16-bone20 #1
[    5.861556] Hardware name: Generic AM33XX (Flattened Device Tree)
[    5.867687]  unwind_backtrace from show_stack+0x11/0x14
[    5.872966]  show_stack from dump_stack_lvl+0x19/0x1e
[    5.878057]  dump_stack_lvl from panic+0xc5/0x23c
[    5.882790]  panic from mount_block_root+0xf9/0x172
[    5.887705]  mount_block_root from prepare_namespace+0xe5/0x11a
[    5.893662]  prepare_namespace from kernel_init_freeable+0x17b/0x18e
[    5.900056]  kernel_init_freeable from kernel_init+0x1b/0xfc
[    5.905752]  kernel_init from ret_from_fork+0x11/0x20
[    5.910836] Exception stack(0xe0009fb0 to 0xe0009ff8)
[    5.915912] 9fa0:                                     00000000 00000000 00000000 00000000
[    5.924128] 9fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    5.932343] 9fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    5.939001] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(179,513) ]---
[   39.756727] sysrq: HELP : loglevel(0-9) reboot(b) crash(c) terminate-all-tasks(e) memory-full-oom-kill(f) kill-all-tasks(i) thaw-filesystems(j) sak(k) show-memory-usage(m) nice-all-RT-tasks(n) poweroff(o) show-registers(p) show-all-timers(q) unraw(r) sync(s) show-task-states(t) unmount(u) show-blocked-tasks(w) dump-ftrace-buffer(z)

i have error above and this log. Please tell me where i’m doing wrong

What brand & model of microSD?

Regards,

i use TI AM335x BeagleBone Black, and MicroSD HC class 16GB

What brand and model?

from your kernel boot log, the AM335x is not able to properly init it, so it’s either a bad microSD or just incompatible, (or dead…) … (or hardware damage to the microSD slot cage… (wouldn’t be the first or last time))…

Regards,

but i can load the kernel image from sd card to board because i see this log loading /boot/vmlinuz-6.2.16-bone20

i have tried another SDcard, but the same problem. I think the problem in here mmcblk0: unable to read partition table

mmcblk0 is your microSD… Was the different microSD the same brand and model? Please share your microSD’s brand and model for record keeping.

Regards,

1 Like