why beaglebone black industrial boot from sd card not from emmc

i have beaglebone black industrial with 4.19 kernel version but it disabled due to some changes occured in the uEnv.txt file.i fixed that issue with sdcard and it has 5.10 kernel version. after fixing this issue it cant boot from emmc even if sd card is present.

In /boot/uEnv.txt:

##enable BBB: eMMC Flasher: 
#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

Change to:

##enable BBB: eMMC Flasher: 
cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh

I found that data on this site: Beagleboard:BeagleBoneBlack Debian - eLinux.org

Seth

P.S. It may be outdated but if you are using an older kernel and image, your guess is as good as mine for now. It may be difficult to find data relevant to your topic but…

  1. Maybe the u-boot version on your eMMC is not the same as the micro SD Card.
  2. If that is the case, update your bootloader and you can find out how from the listed site online at eLinux.org.
  3. If you want to keep data on the eMMC and/or micro SD Card, back it up first before performing any ideas and/or commands.

when i uncommend the line and save .it cannot boot from emmc

what image and what kernel are you using?

uname -a

cat /etc/dogtag

The reason I am asking you questions are these ideas…

If you have an eMMC with an older, outdated bootloader (u-boot type), the board may be functioning with two different bootloaders.

I saw this was a fact a while back, i.e. circa '18 or a little before that time period.

Also, if you get a new image on micro SD Card and reboot into the new micro SD Card image, the updated bootloader will preside and the total size of the micro SD Card will be inflated to full capacity.

Seth

P.S. @Sama , so. If you find time, please try to show the output of the two commands and these two also:

  1. ./opt/scripts/tools/version.sh

and…if that does not exist:

  1. ./beagle-version

when it boot from emmc
1)uname-a
4.19
2)cat /etc/dogtag
BeagleBoard.org Debian Buster IoT Image 2020-04-06

when it boot from sd card
1)uname -a
5.10
2)BeagleBoard.org Debian Bullseye IoT Image 2023-09-02

now it is not boot from emmc. Only boot from sd card