[BeagleBone Green] About mmcblk1

Hi.

I made a sd card for booting your reference site

https://forum.digikey.com/t/debian-getting-started-with-the-beaglebone-black/12967

When BBB is booted with a newly created sd card, mmcblk1 (emmc) is not recognized.
image

Of course, when I booted from the previously created sd card, BBB recognized mmcblk1 well.

What part do you think I made a mistake?
And how can I get it to recognize mmcblk1?

Please help me
Regards,

Share your full serial boot log, thru j1…

Regards,

Hi.
Here is the full log when booting.

Please. let me know how to fix it.
Regards,
boot_log.txt (4.6 KB)

U-Boot SPL 2019.01-dirty (Apr 14 2019 - 23:23:18 -0700)
Trying to boot from MMC2
Loading Environment from EXT4... ** File not found /boot/uboot.env **

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


U-Boot 2019.01-dirty (Apr 14 2019 - 23:23:18 -0700)

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:
Model: SeeedStudio BeagleBone Green:
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=[BBG1] ...
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
376 bytes read in 8 ms (45.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 ...

That’s pretty old…

loading /boot/vmlinuz-5.15.111-bone36 ...
9867776 bytes read in 630 ms (14.9 MiB/s)
debug: [enable_uboot_overlays=1] ...
debug: [enable_uboot_cape_universal=1] ...
debug: [uboot_base_dtb_univ=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: [uboot_base_dtb=am335x-boneblack-uboot-univ.dtb] ...
uboot_overlays: Switching too: dtb=am335x-boneblack-uboot-univ.dtb ...
loading /boot/dtbs/5.15.111-bone36/am335x-boneblack-uboot-univ.dtb ...
200485 bytes read in 31 ms (6.2 MiB/s)
uboot_overlays: [fdt_buffer=0x60000] ...

Things look good up too there…

uboot_overlays: unable to find [mmc 0:1 /lib/firmware/M-BB-BBG-00A0.dtbo]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/BB-BONE-eMMC1-01-00A0.dtbo]...
uboot_overlays: uboot loading of [/lib/firmware/BB-ADC-00A0.dtbo] disabled by /boot/uEnv.txt [disable_uboot_overlay_adc=1]...
uboot_overlays: unable to find [mmc 0:1 /lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo]...
debug: [console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 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 8ffcc000, end 8fffff24 ... OK

This is where you lost eMMC support…

Here’s what i would do…

First, open /boot/uEnv.txt and temporary disable:

debug: [enable_uboot_overlays=1] ...
debug: [enable_uboot_cape_universal=1] ...

Just stick a # in front of them, and reboot…

Next while booted in a default state, install:

sudo apt update
sudo apt install bb-u-boot-am335x-evm

Then install u-boot your microSD and eMMC via:

sudo /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk0.sh
sudo /opt/u-boot/bb-u-boot-am335x-evm/install-mmcblk1.sh

Now change, /boot/uEnv.txt back and reboot…

Regards,

Hi Nelson

It works.
Thank you so much.