On 10/2/20 9:16 AM, Robert Nelson wrote:
On Fri, Oct 2, 2020 at 5:10 AM [email protected]
<[email protected]> 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.
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]
...
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,
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
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/beagleboard/8fa6490d-344c-875d-d933-d932793dfd2f%40gmail.com.