BBB boots kernel from SD card but uses distro from EMMC after kernel upgrade

400 views
Skip to first unread message

brooke...@gmail.com

unread,
Oct 2, 2020, 6:10:32 AM10/2/20
to BeagleBoard
Hi,

I have Gentoo installed on an SD card for my BBB.  After a kernel upgrade, for some reason it seems like the board is loading the kernel from the SD card, but booting into Debian on the EMMC. 

Here's the log, I cut off where userspace begins for brevity, but please let me know if it would be helpful and I can reply back with it.

U-Boot SPL 2019.04-dirty (Aug 16 2020 - 22:13:13 -0400)
Trying to boot from MMC1
Loading Environment from EXT4... ** File not found /boot/uboot.env **

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


U-Boot 2019.04-dirty (Aug 16 2020 - 22:13:13 -0400)

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

** Unable to read "/boot/uboot.env" from mmc0:1 **
Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net:   eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[000C] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
55 bytes read in 35 ms (1000 Bytes/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-5.9.0-rc7-bone4.1 ...
8991232 bytes read in 604 ms (14.2 MiB/s)
debug: [enable_uboot_overlays=] ...
loading /boot/dtbs/5.9.0-rc7-bone4.1/am335x-boneblack.dtb ...
87799 bytes read in 53 ms (1.6 MiB/s)
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
debug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait] ...
debug: [bootz 0x82000000 - 0x88000000] ...
## Flattened Device Tree blob at 88000000
   Booting using the fdt blob at 0x88000000
   Loading Device Tree to 8ffe7000, end 8ffff6f6 ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.9.0-rc7-bone4.1 (sleepy@seraph) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 2019100
[    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=ttyO0,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:off, heap alloc:off, heap free:off
[    0.000000] Memory: 450244K/523264K available (9216K kernel code, 1200K rwdata, 3592K rodata, 1024K init, 2896K bss, 23868K reserved, 49152K cma-reserved, 0K highmem)
[    0.000000] random: get_random_u32 called from __kmem_cache_create+0x1d/0x230 with crng_init=0
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 42810 entries in 84 pages
[    0.000000] ftrace: allocated 84 pages with 3 groups
[    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] 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] TI gptimer clocksource: always-on /ocp/interconnect@44c00000/segment@200000/target-module@31000
[    0.000009] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.000026] clocksource: dmtimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000514] TI gptimer clockevent: 24000000 Hz at /ocp/interconnect@48000000/segment@0/target-module@40000
[    0.001784] Console: colour dummy device 80x30
[    0.001819] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'
[    0.001825] This ensures that you still see kernel messages. Please
[    0.001831] update your kernel commandline.
[    0.001899] Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
[    0.048549] pid_max: default: 32768 minimum: 301
[    0.049380] LSM: Security Framework initializing
[    0.049604] Yama: becoming mindful.
[    0.050285] AppArmor: AppArmor initialized
[    0.050317] TOMOYO Linux initialized
[    0.050596] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.050620] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.054380] CPU: Testing write buffer coherency: ok
[    0.054541] CPU0: Spectre v2: using BPIALL workaround
[    0.056619] Setting up static identity map for 0x80100000 - 0x80100054
[    0.056947] rcu: Hierarchical SRCU implementation.
[    0.060873] EFI services will not be available.
[    0.062002] devtmpfs: initialized
[    0.201100] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
[    0.203277] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.203319] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.207677] xor: automatically using best checksumming function   neon      
[    0.207704] pinctrl core: initialized pinctrl subsystem
[    0.212946] NET: Registered protocol family 16
[    0.216235] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.237165] l3-aon-clkctrl:0000:0: failed to disable
[    0.240530] audit: initializing netlink subsys (disabled)
[    0.244171] thermal_sys: Registered thermal governor 'fair_share'
[    0.244178] thermal_sys: Registered thermal governor 'bang_bang'
[    0.244195] thermal_sys: Registered thermal governor 'step_wise'
[    0.244704] audit: type=2000 audit(0.232:1): state=initialized audit_enabled=0 res=1
[    0.244813] cpuidle: using governor menu
[    1.032582] random: fast init done
[    1.541322] hw-breakpoint: debug architecture 0x4 unsupported.
[    1.615692] raid6: skip pq benchmark and using algorithm neonx8
[    1.615713] raid6: using neon recovery algorithm
[    1.622614] iommu: Default domain type: Translated 
[    1.627361] SCSI subsystem initialized
[    1.628905] usbcore: registered new interface driver usbfs
[    1.629180] usbcore: registered new interface driver hub
[    1.629425] usbcore: registered new device driver usb
[    1.631174] pps_core: LinuxPPS API ver. 1 registered
[    1.631186] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giom...@linux.it>
[    1.631280] PTP clock support registered
[    1.633821] Advanced Linux Sound Architecture Driver Initialized.
[    1.637345] NetLabel: Initializing
[    1.637360] NetLabel:  domain hash size = 128
[    1.637367] NetLabel:  protocols = UNLABELED CIPSOv4 CALIPSO
[    1.637670] NetLabel:  unlabeled traffic allowed by default
[    1.639119] clocksource: Switched to clocksource dmtimer
[    3.220973] VFS: Disk quotas dquot_6.6.0
[    3.221147] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.224729] AppArmor: AppArmor Filesystem Enabled
[    3.269516] NET: Registered protocol family 2
[    3.272071] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    3.272198] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    3.272250] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    3.272289] TCP: Hash tables configured (established 4096 bind 4096)
[    3.272583] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.272626] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.273433] NET: Registered protocol family 1
[    3.275979] RPC: Registered named UNIX socket transport module.
[    3.275997] RPC: Registered udp transport module.
[    3.276004] RPC: Registered tcp transport module.
[    3.276011] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.276028] NET: Registered protocol family 44
[    3.277653] hw perfevents: enabled with armv7_cortex_a8 PMU driver, 5 counters available
[    3.284662] Initialise system trusted keyrings
[    3.285257] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    3.326137] zbud: loaded
[    3.340588] NFS: Registering the id_resolver key type
[    3.340702] Key type id_resolver registered
[    3.340710] Key type id_legacy registered
[    3.341452] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.342234] fuse: init (API version 7.31)
[    3.444026] Key type asymmetric registered
[    3.444050] Asymmetric key parser 'x509' registered
[    3.444269] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    3.444712] io scheduler mq-deadline registered
[    3.621853] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    3.621883] omap_gpio 44e07000.gpio: Could not register gpio chip -517
[    3.764638] ti-sysc: probe of 44e31000.target-module failed with error -16
[    3.806534] ti-sysc 4802a000.target-module: OCP softreset timed out
[    3.823773] ti-sysc: probe of 48040000.target-module failed with error -16
[    3.912427] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    3.912458] omap_gpio 4804c000.gpio: Could not register gpio chip -517
[    3.947348] omap-mailbox 480c8000.mailbox: omap mailbox rev 0x400
[    3.992126] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    3.992157] omap_gpio 481ac000.gpio: Could not register gpio chip -517
[    4.006595] gpiochip_add_data_with_key: GPIOs 0..31 (gpio-0-31) failed to register, -517
[    4.006624] omap_gpio 481ae000.gpio: Could not register gpio chip -517
[    4.062465] ti-sysc 4a101200.target-module: OCP softreset timed out
[    4.072600] ti-sysc 4a101200.target-module: OCP softreset timed out
[    4.140438] debugfs: Directory '49000000.dma' with parent 'dmaengine' already present!
[    4.140493] edma 49000000.dma: TI EDMA DMA engine driver
[    4.183083] pinctrl-single 44e10800.pinmux: 142 pins, size 568
[    4.225236] wkup_m3_ipc 44e11324.wkup_m3_ipc: could not get rproc handle
[    4.228595] Serial: 8250/16550 driver, 6 ports, IRQ sharing disabled
[    4.242059] 44e09000.serial: ttyS0 at MMIO 0x44e09000 (irq = 20, base_baud = 3000000) is a 8250
[    5.072967] printk: console [ttyS0] enabled
[    5.084427] omap_rng 48310000.rng: Random Number Generator ver. 20
[    5.091338] random: crng init done
[    5.096975] sdhci: Secure Digital Host Controller Interface driver
[    5.103319] sdhci: Copyright(c) Pierre Ossman
[    5.108496] sdhci-pltfm: SDHCI platform and OF driver helper
[    5.125055] sdhci-omap 481d8000.mmc: supply vqmmc not found, using dummy regulator
[    5.162780] mmc0: SDHCI controller on 481d8000.mmc [481d8000.mmc] using External DMA
[    5.191089] libphy: Fixed MDIO Bus: probed
[    5.199699] CAN device driver interface
[    5.215870] ti-sysc 4a101200.target-module: OCP softreset timed out
[    5.242340] mmc0: new high speed MMC card at address 0001
[    5.251694] mmcblk0: mmc0:0001 M62704 3.56 GiB 
[    5.258406] mmcblk0boot0: mmc0:0001 M62704 partition 1 2.00 MiB
[    5.266465] mmcblk0boot1: mmc0:0001 M62704 partition 2 2.00 MiB
[    5.272505] davinci_mdio 4a101000.mdio: davinci mdio revision 1.6, bus freq 1000000
[    5.281054] mmcblk0rpmb: mmc0:0001 M62704 partition 3 512 KiB, chardev (245:0)
[    5.288415] libphy: 4a101000.mdio: probed
[    5.301605] davinci_mdio 4a101000.mdio: phy[0]: device 4a101000.mdio:00, driver SMSC LAN8710/LAN8720
[    5.311380]  mmcblk0: p1
[    5.324386] cpsw 4a100000.ethernet: initialized cpsw ale version 1.4
[    5.338928] cpsw 4a100000.ethernet: ALE Table size 1024
[    5.347635] cpsw 4a100000.ethernet: cpts: overflow check period 1250 (jiffies)
[    5.356390] cpsw 4a100000.ethernet: Detected MACID = 64:cf:d9:45:3f:41
[    5.369526] usbcore: registered new interface driver smsc95xx
[    5.378185] am335x-phy-driver 47401300.usb-phy: supply vcc not found, using dummy regulator
[    5.396756] am335x-phy-driver 47401b00.usb-phy: supply vcc not found, using dummy regulator
[    5.412728] usbcore: registered new interface driver uas
[    5.418615] usbcore: registered new interface driver usb-storage
[    5.424932] usbcore: registered new interface driver ums-alauda
[    5.431081] usbcore: registered new interface driver ums-cypress
[    5.437295] usbcore: registered new interface driver ums-datafab
[    5.443508] usbcore: registered new interface driver ums_eneub6250
[    5.449885] usbcore: registered new interface driver ums-freecom
[    5.456094] usbcore: registered new interface driver ums-isd200
[    5.462209] usbcore: registered new interface driver ums-jumpshot
[    5.468500] usbcore: registered new interface driver ums-karma
[    5.474524] usbcore: registered new interface driver ums-onetouch
[    5.480908] usbcore: registered new interface driver ums-realtek
[    5.487161] usbcore: registered new interface driver ums-sddr09
[    5.493268] usbcore: registered new interface driver ums-sddr55
[    5.499394] usbcore: registered new interface driver ums-usbat
[    5.516021] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
[    5.521602] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
[    5.530042] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[    5.538425] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.545724] usb usb1: Product: MUSB HDRC host driver
[    5.550774] usb usb1: Manufacturer: Linux 5.9.0-rc7-bone4.1 musb-hcd
[    5.557177] usb usb1: SerialNumber: musb-hdrc.1
[    5.564620] hub 1-0:1.0: USB hub found
[    5.568652] hub 1-0:1.0: 1 port detected
[    5.581989] dummy_hcd dummy_hcd.0: USB Host+Gadget Emulator, driver 02 May 2005
[    5.589633] dummy_hcd dummy_hcd.0: Dummy host controller
[    5.595042] dummy_hcd dummy_hcd.0: new USB bus registered, assigned bus number 2
[    5.603708] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[    5.612077] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.619379] usb usb2: Product: Dummy host controller
[    5.624427] usb usb2: Manufacturer: Linux 5.9.0-rc7-bone4.1 dummy_hcd
[    5.630931] usb usb2: SerialNumber: dummy_hcd.0
[    5.638262] hub 2-0:1.0: USB hub found
[    5.642297] hub 2-0:1.0: 1 port detected
[    5.660029] omap_rtc 44e3e000.rtc: registered as rtc0
[    5.665282] omap_rtc 44e3e000.rtc: setting system clock to 2000-01-01T00:00:00 UTC (946684800)
[    5.677772] i2c /dev entries driver
[    5.687104] omap_wdt: OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
[    5.695656] softdog: initialized. soft_noboot=0 soft_margin=60 sec soft_panic=0 (nowayout=0)
[    5.704215] softdog:              soft_reboot_cmd=<not set> soft_active_on_boot=0
[    5.714748] cpuidle: enable-method property 'ti,am3352' found operations
[    5.724729] ledtrig-cpu: registered to indicate activity on CPUs
[    5.732324] omap-aes 53500000.aes: OMAP AES hw accel rev: 3.2
[    5.738872] omap-aes 53500000.aes: will run requests pump with realtime priority
[    5.750790] omap-sham 53100000.sham: hw accel on OMAP rev 4.3
[    5.764975] hid: raw HID events driver (C) Jiri Kosina
[    5.772041] usbcore: registered new interface driver usbhid
[    5.777779] usbhid: USB HID core driver
[    5.782905] remoteproc remoteproc0: wkup_m3 is available
[    5.796610] drop_monitor: Initializing network drop monitor service
[    5.806982] NET: Registered protocol family 10
[    5.820793] Segment Routing with IPv6
[    5.824992] mip6: Mobile IPv6
[    5.828414] NET: Registered protocol family 17
[    5.833124] can: controller area network core (rev 20170425 abi 9)
[    5.839766] NET: Registered protocol family 29
[    5.845094] Key type dns_resolver registered
[    5.849491] mpls_gso: MPLS GSO support
[    5.853465] ThumbEE CPU extension supported.
[    5.857852] Registering SWP/SWPB emulation handler
[    5.862691] omap_voltage_late_init: Voltage driver support not added
[    5.869836] PM: Cannot get wkup_m3_ipc handle
[    5.875636] registered taskstats version 1
[    5.879912] Loading compiled-in X.509 certificates
[    5.885054] zswap: loaded using pool lzo/zbud
[    5.890647] kmemleak: Kernel memory leak detector initialized (mem pool available: 15836)
[    5.898951] kmemleak: Automatic memory scanning thread started
[    5.905738] Key type ._fscrypt registered
[    5.909884] Key type .fscrypt registered
[    5.913871] Key type fscrypt-provisioning registered
[    5.928657] Btrfs loaded, crc32c=crc32c-generic
[    5.933609] AppArmor: AppArmor sha1 policy hashing enabled
[    6.007537] OMAP GPIO hardware version 0.1
[    6.040147] tps65217-pmic: Failed to locate of_node [id: -1]
[    6.060720] tps65217-bl: Failed to locate of_node [id: -1]
[    6.070926] tps6521x_pwrbutton tps65217-pwrbutton: DMA mask not set
[    6.079912] input: tps65217_pwr_but as /devices/platform/ocp/44c00000.interconnect/44c00000.interconnect:segment@200000/44e0b000.target-module/44e0b000.i2c/i2c-0/0-0024/tps0
[    6.098523] tps65217 0-0024: TPS65217 ID 0xe version 1.2
[    6.105104] at24 0-0050: supply vcc not found, using dummy regulator
[    6.113487] at24 0-0050: 32768 byte 24c256 EEPROM, writable, 1 bytes/write
[    6.123354] omap_i2c 44e0b000.i2c: bus 0 rev0.11 at 400 kHz
[    6.136637] at24 2-0054: supply vcc not found, using dummy regulator
[    6.175689] at24 2-0055: supply vcc not found, using dummy regulator
[    6.214521] at24 2-0056: supply vcc not found, using dummy regulator
[    6.250526] at24 2-0057: supply vcc not found, using dummy regulator
[    6.286453] omap_i2c 4819c000.i2c: bus 2 rev0.11 at 100 kHz
[    6.303725] omap_gpio 44e07000.gpio: Could not set line 6 debounce to 200000 microseconds (-22)
[    6.312645] remoteproc remoteproc0: powering up wkup_m3
[    6.317977] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[    6.326157] sdhci-omap 48060000.mmc: Got CD GPIO
[    6.331160] wkup_m3_ipc 44e11324.wkup_m3_ipc: CM3 Firmware Version = 0x193
[    6.338516] sdhci-omap 48060000.mmc: supply vqmmc not found, using dummy regulator
[    6.346206] remoteproc remoteproc0: remote processor wkup_m3 is now up
[    6.383929] mmc1: SDHCI controller on 48060000.mmc [48060000.mmc] using External DMA
[    6.420410] PM: bootloader does not support rtc-only!
[    6.457532] mmc1: new high speed SDXC card at address aaaa
[    6.466835] mmcblk1: mmc1:aaaa SN64G 59.5 GiB 
[    6.478915]  mmcblk1: p1
[    6.549949] tda998x 0-0070: found TDA19988
[    6.561079] tilcdc 4830e000.lcdc: bound 0-0070 (ops 0xc0a8a5dc)
[    6.570416] [drm] Initialized tilcdc 1.0.0 20121205 for 4830e000.lcdc on minor 0
[    6.578589] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes
[    6.590416] ALSA device list:
[    6.593930]   No soundcards found.
[    6.597629] tilcdc 4830e000.lcdc: [drm] Cannot find any crtc or sizes
[    6.616256] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesystem
[    6.623687] EXT4-fs (mmcblk0p1): write access will be enabled during recovery
[    6.800548] EXT4-fs (mmcblk0p1): recovery complete
[    6.807002] EXT4-fs (mmcblk0p1): mounted filesystem with ordered data mode. Opts: (null)
[    6.815503] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    6.828643] devtmpfs: mounted
[    6.849288] Freeing unused kernel memory: 1024K
[    6.860280] Run /sbin/init as init process
[    6.883685] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
[    7.175450] systemd[1]: System time before build time, advancing clock.
[    7.244222] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOM)
[    7.264002] systemd[1]: Detected architecture arm.

I compiled the kernel (bb-kernel) on my desktop and copied the kernel, dtbs, and modules to /boot on the SD card following this guide: https://www.digikey.com/eewiki/display/linuxonarm/BeagleBone+Black

I've read through the log but I'm not really sure what's going on here.  How can I fix this?

Best,
Brooke Basile

Robert Nelson

unread,
Oct 2, 2020, 9:17:51 AM10/2/20
to Beagle Board
On Fri, Oct 2, 2020 at 5:10 AM brooke...@gmail.com
<brooke...@gmail.com> wrote:
>
> Hi,
>
> I have Gentoo installed on an SD card for my BBB. After a kernel upgrade, for some reason it seems like the board is loading the kernel from the SD card, but booting into Debian on the EMMC.
>
> Here's the log, I cut off where userspace begins for brevity, but please let me know if it would be helpful and I can reply back with it.


Okay, so in u-boot, we are reading from mmc0 (which is microSD) and
telling the kenrel we want to use root=/dev/mmcblk0p1 which is also
the microSD..


> [ 0.000000] Linux version 5.9.0-rc7-bone4.1 (sleepy@seraph) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 2019100

Yay 5.9 boots. ;)

> [ 5.242340] mmc0: new high speed MMC card at address 0001
> [ 5.251694] mmcblk0: mmc0:0001 M62704 3.56 GiB
> [ 5.258406] mmcblk0boot0: mmc0:0001 M62704 partition 1 2.00 MiB
> [ 5.266465] mmcblk0boot1: mmc0:0001 M62704 partition 2 2.00 MiB

Wait a minute.. that's the eMMC...

> [ 6.457532] mmc1: new high speed SDXC card at address aaaa
> [ 6.466835] mmcblk1: mmc1:aaaa SN64G 59.5 GiB
> [ 6.478915] mmcblk1: p1

There's your microSD card..

Uhoh.. They swapped... That's a regression..

In 5.9 we have a brand new mmc driver..

Revert:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/am33xx.dtsi?h=v5.9-rc7&id=0b4edf111870b83ea77b1d7e16b8ceac29f9f388

and it should work again..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Brooke Basile

unread,
Oct 5, 2020, 11:51:18 AM10/5/20
to beagl...@googlegroups.com, Robert Nelson
Hi Robert,

Sorry for the delay in getting back to you!

I am still having the same issue with reverting that commit. This has
happened to me in the past as well, I think my workaround for it at the
time was to completely rewrite the rootfs onto the SD card and copy the
upgraded kernel over as if I were doing a fresh install (not very
efficient or smart, I know :(

I think this might be an issue with my u-boot and not the kernel, I have
the following defined in uEnv.txt:

uname_r=5.9.0-rc7-bone4.1
disable_uboot_overlay_emmc=1

I attempted to boot with uEnv.txt changed to uboot.env and got the
following error:

U-Boot SPL 2019.04-dirty (Aug 16 2020 - 22:13:13 -0400)
Trying to boot from MMC1
Loading Environment from EXT4... *** Warning - bad CRC, using default
environment



U-Boot 2019.04-dirty (Aug 16 2020 - 22:13:13 -0400)

CPU : AM335X-GP rev 2.1
I2C: ready
DRAM: 512 MiB
No match for driver 'omap_hsmmc'
No match for driver 'omap_hsmmc'
Some drivers were not found
Reset Source: Power-on reset has occurred.
RTC 32KCLK Source: External.
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from EXT4... *** Warning - bad CRC, using default
environment

Board: BeagleBone Black
<ethaddr> not set. Validating first E-fuse MAC
BeagleBone Black:
BeagleBone: cape eeprom: i2c_probe: 0x54:
BeagleBone: cape eeprom: i2c_probe: 0x55:
BeagleBone: cape eeprom: i2c_probe: 0x56:
BeagleBone: cape eeprom: i2c_probe: 0x57:
Net: eth0: MII MODE
cpsw, usb_ether
Press SPACE to abort autoboot in 2 seconds
board_name=[A335BNLT] ...
board_rev=[000C] ...
switch to partitions #0, OK
mmc0 is current device
SD/MMC found on device 0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc0 is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
** Invalid partition 2 **
** Invalid partition 3 **
** Invalid partition 4 **
** Invalid partition 5 **
** Invalid partition 6 **
** Invalid partition 7 **
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
gpio: pin 56 (gpio 56) value is 0
gpio: pin 55 (gpio 55) value is 0
gpio: pin 54 (gpio 54) value is 0
gpio: pin 53 (gpio 53) value is 1
switch to partitions #0, OK
mmc1(part 0) is current device
gpio: pin 54 (gpio 54) value is 1
Checking for: /uEnv.txt ...
Checking for: /boot.scr ...
Checking for: /boot/boot.scr ...
Checking for: /boot/uEnv.txt ...
gpio: pin 55 (gpio 55) value is 1
64 bytes read in 17 ms (2.9 KiB/s)
Loaded environment from /boot/uEnv.txt
Checking if uname_r is set in /boot/uEnv.txt...
gpio: pin 56 (gpio 56) value is 1
Running uname_boot ...
loading /boot/vmlinuz-5.8.1-bone12 ...
8884736 bytes read in 578 ms (14.7 MiB/s)
debug: [enable_uboot_overlays=] ...

unable to find [dtb=am335x-boneblack.dtb] did you name it correctly? ...

FAILSAFE: U-Boot UMS (USB Mass Storage) enabled, media now available
over the usb slave port ...
Unknown command 'ums' - try 'help'
uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...
debug: [console=ttyO0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4
rootwait] ...
debug: [bootz 0x82000000 - 0x88000000] ...
ERROR: Did not find a cmdline Flattened Device Tree
Could not find a valid device tree
** Invalid partition 2 **
** Invalid partition 3 **
** Invalid partition 4 **
** Invalid partition 5 **
** Invalid partition 6 **
** Invalid partition 7 **
starting USB...
USB0: Port not available.
link up on port 0, speed 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
*** Unhandled DHCP Option in OFFER/ACK: 125
*** Unhandled DHCP Option in OFFER/ACK: 125
DHCP client bound to address 192.168.1.210 (1134 ms)
Using cpsw device
TFTP from server 192.168.1.1; our IP address is 192.168.1.210
Filename 'vmlinuz-5.8.1-bone12'.
Load address: 0x82000000
Loading: T T

As far as the fix I believe I've found some help from some old
discussions in the google group so I don't want to waste your time to
rewrite all of that out... But if there is something else that looks
wrong here I would appreciate any help :)

Thank you!

Brooke Basile

Nuno Gonçalves

unread,
Mar 8, 2021, 5:40:28 PM3/8/21
to BeagleBoard
On Friday, October 2, 2020 at 3:17:51 PM UTC+2 RobertCNelson wrote:
> [ 0.000000] Linux version 5.9.0-rc7-bone4.1 (sleepy@seraph) (arm-none-linux-gnueabihf-gcc (GNU Toolchain for the A-profile Architecture 9.2-2019.12 (arm-9.10)) 9.2.1 2019100

Yay 5.9 boots. ;)

> [ 5.242340] mmc0: new high speed MMC card at address 0001
> [ 5.251694] mmcblk0: mmc0:0001 M62704 3.56 GiB
> [ 5.258406] mmcblk0boot0: mmc0:0001 M62704 partition 1 2.00 MiB
> [ 5.266465] mmcblk0boot1: mmc0:0001 M62704 partition 2 2.00 MiB

Wait a minute.. that's the eMMC...

> [ 6.457532] mmc1: new high speed SDXC card at address aaaa
> [ 6.466835] mmcblk1: mmc1:aaaa SN64G 59.5 GiB
> [ 6.478915] mmcblk1: p1

There's your microSD card..

Uhoh.. They swapped... That's a regression..


Hi Robert, 

v5.10.21 still have the eMMC as mmc0. Is this really a regression or going forward they are keeping it?

Thanks

Robert Nelson

unread,
Mar 8, 2021, 5:49:35 PM3/8/21
to Beagle Board

Nuno Gonçalves

unread,
Mar 9, 2021, 9:17:29 AM3/9/21
to BeagleBoard
Thank you!
Reply all
Reply to author
Forward
0 new messages