Hi guys
I am having an issue where I am unable to flash the eMMC of newer Beaglebone black boards that ship with the Kingston EMMC04G-M627 eMMC (and probably a newer kernel version), with our Debian 7.11 image, that uses kernel 3.14.77-ti-r90. In the past, we have had no issue flashing the older Beaglebone black boards that use Kingston EMMC04G-S100 eMMC with this image/kernel combination and it works quite well for our application.
I have been able to flash other images through the usual method of uncommenting the last line of boot/uEnv.txt (#cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh) to use the eMMC flasher, but in this case, it fails since the eMMC can’t be seen.
Putting the image on an SD card and booting off the SD seems to work fine, but unfortunately my bosses will not accept this solution. Additionally, I noticed that when booting this image from the SD card, the eMMC can’t be seen when using the “blkid” command. I am a bit confused since I thought the unrecognized eMMC issue was fixed on June 15, 2016, and kernel 3.14.77 was released after this.
So far, I’ve attempted the following:
-Run the update kernel script found in /opt/scripts/tools/update_kernel.sh, but of course it seems that the release is so old that this no longer works, even with the --no-check-certificate, as detailed in posts made by other members
-Install the kernel 3.8.13-bone84_1wheezy, which can be seen here https://groups.google.com/forum/#!topic/beagleboard/IgnJB-vATTU In this case installing any 3.8.X kernel caused my image to no longer boot, but installing other 3.14.XX kernels listed on http://repos.rcn-ee.net/debian/pool/main/l/linux-upstream/ seemed to boot ok, but this still rendered the eMMC unviewable. I was able to however install kernel 3.8.13-bone84 to a Debian 8.7 image on eMMC (bone-debian-8.7-iot-armhf-2017-03-19-4gb.img.xz), which I got from the official beaglebone download page, which comes with a version 4.X kernel.
https://www.element14.com/community/thread/61956/l/flash-old-debian-79-image-from-usd-to-newer-bbb-debian-83?displayFullThread=true. I do know however that we use a custom cape to run some additional hardware in conjuction with our image, perhaps this is why it doesn't boot after installing the 3.8.13-bone84 kernel?
Apologies is anything I’m asking is silly, I am still an embedded linux newbie. I do think that if I am able to have the eMMC viewable, when booting off the SD, then I can use something like https://github.com/RobertCNelson/tools/blob/master/scripts/beaglebone-black-copy-microSD-to-eMMC.sh or the command "dd if=/path/to/your_image.img of=/dev/mmcblk0 bs=1M" to copy the SD contents to the eMMC. Or initiate the usual eMMC flasher, etc
Let me know if you guys require any further information!
U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)Trying to boot from MMC2Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65
CPU : AM335X-GP rev 2.1I2C: readyDRAM: 512 MiBNo match for driver 'omap_hsmmc'No match for driver 'omap_hsmmc'Some drivers were not foundReset Source: Power-on reset has occurred.RTC 32KCLK Source: External.MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Loading 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 MACBeagleBone 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 MODEcpsw, usb_etherPress SPACE to abort autoboot in 2 secondsboard_name=[A335BNLT] ...board_rev=[00C0] ...switch to partitions #0, OKmmc0 is current deviceSD/MMC found on device 0switch to partitions #0, OKmmc0 is current deviceScanning mmc 0:1...gpio: pin 56 (gpio 56) value is 0gpio: pin 55 (gpio 55) value is 0gpio: pin 54 (gpio 54) value is 0gpio: pin 53 (gpio 53) value is 1switch to partitions #0, OKmmc0 is current devicegpio: pin 54 (gpio 54) value is 1Checking for: /uEnv.txt ...Checking for: /boot.scr ...Checking for: /boot/boot.scr ...Checking for: /boot/uEnv.txt ...gpio: pin 55 (gpio 55) value is 1533 bytes read in 21 ms (24.4 KiB/s)Loaded environment from /boot/uEnv.txtdebug: [dtb=am335x-boneblack-ttyO1.dtb] ...Using: dtb=am335x-boneblack-ttyO1.dtb ...Checking if uname_r is set in /boot/uEnv.txt...gpio: pin 56 (gpio 56) value is 1Running uname_boot ...loading /boot/vmlinuz-3.14.77-ti-r90 ...7283472 bytes read in 501 ms (13.9 MiB/s)debug: [enable_uboot_overlays=] ...loading /boot/dtbs/3.14.77-ti-r90/am335x-boneblack-ttyO1.dtb ...87061 bytes read in 78 ms (1.1 MiB/s)uboot_overlays: add [enable_uboot_overlays=1] to /boot/uEnv.txt to enable...loading /boot/initrd.img-3.14.77-ti-r90 ...3245971 bytes read in 265 ms (11.7 MiB/s)debug: [console=ttyO0,115200n8 root=UUID=d75e0393-0c50-4660-9179-ad56095af7ec ro rootfstype=ext4 rootwait quiet init=/lib/systemd/systemd] ...debug: [bootz 0x82000000 0x88080000:318793 0x88000000] ...## Flattened Device Tree blob at 88000000 Booting using the fdt blob at 0x88000000 Loading Ramdisk to 8fce7000, end 8ffff793 ... OK Loading Device Tree to 8fcce000, end 8fce6414 ... OK
Starting kernel ...
[ 0.000424] WARNING: Your 'console=ttyO0' has been replaced by 'ttyS0'[ 0.000432] This ensures that you still see kernel messages. Please[ 0.000439] update your kernel commandline.[ 2.776040] musb-hdrc musb-hdrc.0.auto: Failed to request rx1.[ 2.782003] musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517[ 2.855839] musb-hdrc musb-hdrc.1.auto: Failed to request rx1.[ 2.861793] musb-hdrc musb-hdrc.1.auto: musb_init_controller failed with status -517[ 2.990197] omap-sham 53100000.sham: initialization failed.[ 3.020045] cpu cpu0: cpu0 clock notifier not ready, retry[ 3.030058] Error: Driver 'tfp410' is already registered, aborting...[ 3.037945] slave hdmi: could not get i2c[ 3.042126] mmc1: unrecognised EXT_CSD revision 8[ 3.048371] mmc1: error -22 whilst initialising MMC card[ 3.383383] musb-hdrc musb-hdrc.1.auto: otg: usb_otg_kick_fsm: invalid host/gadget deviceLoading, please wait...[ 4.215341] usb 1-1.4: device vffff p5678 is not supported[ 4.419728] usb 1-1.3.4: device v0461 p4e04 is not supported[ 5.238724] sd 0:0:0:0: [sda] No Caching mode page found[ 5.263419] sd 0:0:0:0: [sda] Assuming drive cache: write through[ 5.277783] sd 0:0:0:0: [sda] No Caching mode page found[ 5.291565] sd 0:0:0:0: [sda] Assuming drive cache: write through[ 5.310942] sd 0:0:0:0: [sda] No Caching mode page found[ 5.326574] sd 0:0:0:0: [sda] Assuming drive cache: write throughsystemd-fsck[241]: BOOT: clean, 72281/117360 files, 450853/468736 blocks[ 20.944418] libphy: PHY 4a101000.mdio:01 not found[ 20.949245] net eth0: phy 4a101000.mdio:01 not found on slave 1
Debian GNU/Linux 7 SMARCO-0479B7D302B2 ttyS0
rcn-ee.net console Debian Image 2015-02-19
Support/FAQ: http://elinux.org/BeagleBoardDebian
The IP Address for eth0 is: 192.168.94.127The IP Address for usb0 is: 192.168.7.2SMARCO-0479B7D302B2 login: [ 40.602190] musb-hdrc musb-hdrc.0.auto: otg: usb_otg_register_gadget: device not registered to otg core
U-Boot SPL 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500)Trying to boot from MMC2Loading Environment from EXT4... ** File not found /boot/uboot.env **
** Unable to read "/boot/uboot.env" from mmc0:1 **
U-Boot 2018.09-00002-g0b54a51eee (Sep 10 2018 - 19:41:39 -0500), Build: jenkins-github_Bootloader-Builder-65
CPU : AM335X-GP rev 2.1I2C: readyDRAM: 512 MiBNo match for driver 'omap_hsmmc'No match for driver 'omap_hsmmc'Some drivers were not foundReset Source: Power-on reset has occurred.RTC 32KCLK Source: External.MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1Loading 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 MACBeagleBone 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 MODEcpsw, usb_etherPress SPACE to abort autoboot in 2 secondsboard_name=[A335BNLT] ...board_rev=[00C0] ...switch to partitions #0, OKmmc0 is current deviceSD/MMC found on device 0switch to partitions #0, OKmmc0 is current deviceScanning mmc 0:1...gpio: pin 56 (gpio 56) value is 0gpio: pin 55 (gpio 55) value is 0gpio: pin 54 (gpio 54) value is 0gpio: pin 53 (gpio 53) value is 1switch to partitions #0, OKmmc0 is current devicegpio: pin 54 (gpio 54) value is 1Checking for: /uEnv.txt ...Checking for: /boot.scr ...Checking for: /boot/boot.scr ...Checking for: /boot/uEnv.txt ...gpio: pin 55 (gpio 55) value is 1532 bytes read in 23 ms (22.5 KiB/s)Loaded environment from /boot/uEnv.txtdebug: [dtb=am335x-boneblack-ttyO1.dtb] ...Using: dtb=am335x-boneblack-ttyO1.dtb ...Checking if uname_r is set in /boot/uEnv.txt...gpio: pin 56 (gpio 56) value is 1Running uname_boot ...loading /boot/vmlinuz-3.8.13-bone84 ...5231056 bytes read in 385 ms (13 MiB/s)debug: [enable_uboot_overlays=] ...
unable to find [dtb=am335x-boneblack-ttyO1.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...loading /boot/initrd.img-3.8.13-bone84 ...2617501 bytes read in 223 ms (11.2 MiB/s)debug: [console=ttyO0,115200n8 root=UUID=d75e0393-0c50-4660-9179-ad56095af7ec ro rootfstype=ext4 rootwait quiet init=/lib/systemd/systemd] ...debug: [bootz 0x82000000 0x88080000:27f09d 0x88000000] ...ERROR: Did not find a cmdline Flattened Device TreeCould not find a valid device treedebug: [console=ttyO0,115200n8 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait quiet init=/lib/systemd/systemd] ...debug: [bootz 0x82000000 0x88080000:27f09d 0x88000000] ...ERROR: Did not find a cmdline Flattened Device TreeCould not find a valid device tree** Invalid partition 2 **** Invalid partition 3 **** Invalid partition 4 **** Invalid partition 5 **** Invalid partition 6 **** Invalid partition 7 **switch to partitions #0, OKmmc1(part 0) is current deviceScanning mmc 1:1...gpio: pin 56 (gpio 56) value is 0gpio: pin 55 (gpio 55) value is 0gpio: pin 54 (gpio 54) value is 0gpio: pin 53 (gpio 53) value is 1switch to partitions #0, OKmmc1(part 0) is current devicegpio: pin 54 (gpio 54) value is 1Checking for: /uEnv.txt ...Checking for: /boot.scr ...Checking for: /boot/boot.scr ...Checking for: /boot/uEnv.txt ...gpio: pin 55 (gpio 55) value is 12041 bytes read in 7 ms (284.2 KiB/s)Loaded environment from /boot/uEnv.txtdebug: [dtb=am335x-boneblack-ttyO1.dtb] ...Using: dtb=am335x-boneblack-ttyO1.dtb ...Checking if uname_r is set in /boot/uEnv.txt...gpio: pin 56 (gpio 56) value is 1Running uname_boot ...loading /boot/vmlinuz-4.14.71-ti-r80 ...10416640 bytes read in 664 ms (15 MiB/s)debug: [enable_uboot_overlays=1] ...uboot_overlays: dtb=am335x-boneblack-ttyO1.dtb is set in /boot/uEnv.txt, unable to use [am335x-boneblack-uboot-univ.dtb or am335x-boneblack-uboot.dtb] ...uboot_overlays: disabling [enable_uboot_overlays=1] as dtb=am335x-boneblack-ttyO1.dtb is set in /boot/uEnv.txt ...
unable to find [dtb=am335x-boneblack-ttyO1.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...loading /boot/initrd.img-4.14.71-ti-r80 ...4530240 bytes read in 293 ms (14.7 MiB/s)debug: [console=ttyO0,115200n8 root=UUID=d75e0393-0c50-4660-9179-ad56095af7ec ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh] ...debug: [bootz 0x82000000 0x88080000:452040 0x88000000] ...ERROR: Did not find a cmdline Flattened Device TreeCould not find a valid device treedebug: [console=ttyO0,115200n8 root=/dev/mmcblk1p1 ro rootfstype=ext4 rootwait init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh] ...debug: [bootz 0x82000000 0x88080000:452040 0x88000000] ...ERROR: Did not find a cmdline Flattened Device TreeCould 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: scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) foundcpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !using musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC 04:79:b7:d3:02:b2HOST MAC de:ad:be:af:00:00RNDIS readyThe remote end did not respond in time.missing environment variable: pxeuuidRetrieving file: pxelinux.cfg/01-04-79-b7-d3-02-b2cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !using musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC 04:79:b7:d3:02:b2HOST MAC de:ad:be:af:00:00RNDIS readyThe remote end did not respond in time.Retrieving file: pxelinux.cfg/C0A80102cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !using musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC 04:79:b7:d3:02:b2HOST MAC de:ad:be:af:00:00RNDIS readyThe remote end did not respond in time.Retrieving file: pxelinux.cfg/C0A8010cpsw Waiting for PHY auto negotiation to complete......... TIMEOUT !using musb-hdrc, OUT ep1out IN ep1in STATUS ep2inMAC 04:79:b7:d3:02:b2HOST MAC de:ad:be:af:00:00RNDIS ready
If you guys are stuck on v3.14.x, do you need me to write up a
procedure similar to what i did for 3.8.x users stuck on ancient
kernels too:
--
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/763c0000-d3d5-4f25-881f-51b8bb9466dd%40googlegroups.com.
--
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 beagleboard...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/088dad82-942d-4100-85fe-1ec667214222%40googlegroups.com.
dpkg-deb -R package.deb tmp
rm package.deb
fakeroot dpkg-deb -Zgzip -b tmp package.deb
rm -rf tmp##enable BBB: eMMC Flasher:cmdline=init=/opt/scripts/tools/eMMC/init-eMMC-flasher-v3.sh