I have a project that I have been working on for some several years. It started out on a BeagleBone White, but recently it was moved to the BeagleBone Green so it run off eMMC instead of an SD card. I have been using embedded Ubuntu 14.04 (trusty) with the 3.8.13-bone79 bb-kernel following the instructions at https://eewiki.net/display/linuxonarm/BeagleBone.
I just received a newer BBG last week and I was unable to flash my image to the eMMC. Monitoring the debug output, I noticed that the eMMC failed to initialize when the SD card was used so the flashing could not be done. After some research, it appears that the eMMC hardware has been changed on the Green. On the BBB Wiki, I also saw that the Black appears to have a similar change in Rev C. Experimenting with several of the flashing images on http://beagleboard.org/latest-images, the one one I can get working is the Debian 8.4 Jessie version.
Is there a way to get the eMMC working with embedded Ubuntu 14.04 (trusty) with the 3.8.13-bone79 bb-kernel?
Thanks William, but I checked those already. Unfortunately I think the issue is deeper than that in the kernel drivers (or a combination of both). It looks like a simple hardware change to a larger 4GB eMMC (same Micron chip series), but the mmc driver fails when reading the chip configuration. Specifically I see the driver emit an error on the EXT_CSD register version. From dmesg:
That’s Odd, I’m running BeagleBoard.org Debian Image 2016-05-01 on a RevC ( 4G emmc ) right now. I’ve also ran many of Roberts images prior to this one as well. Including several Wheezy images with 3.8.x kernels.
I’ve also been following Robert eewiki build guide since 2013, while building many different kernels. But I think most of those were for a 2G A5A.
Yeah, the guy who wrote it and the guy who signed of on it probably know that particular code better than I. But a fixed value in a code bock, buried only god knows how deep in a source file is not good practice. A const would have been better, but I wonder how important that check really is. Is that code even needed ?
Thanks Robert, you’re awesome (as always)! Ironically after spending some time looking at the JEDEC eMMC spec this morning to confirm that it should be forward compatible; I just finished commenting out that section of code and rebuilding to see if it would work… and it did. I am more confident now knowing that the official patches do the same thing.
hah ! I did not even look at the second patch. And it does exactly what I was thinking. Remove that whole check . . .heh
So now I’m curious why that code was there in the first place ? Someone flexing their eWenus, just to break the code when a newer version of hardware is used ?
hah ! I did not even look at the second patch. And it does exactly what I
was thinking. Remove that whole check . . .heh
So now I'm curious why that code was there in the first place ? Someone
flexing their eWenus, just to break the code when a newer version of
hardware is used ?
Looks like it was a spec change:
B.8. Changes from version 4.51 to 5.0
Edit to support Ver.5.0 in EXT_CSD_REV[192]
o Note: A host system should work properly considering future eMMC version. For
example, a host system is expected not to exit only due to the EXT_CSD_REV[192]
value greater than 7 which will be used for next e•MMC revision.”
So my guess, in 4.51 or earlier, something said to exit in that situation.
It is my understanding that Linux has an issue with 5.1. That is why we get these devices in 4.1 mode. I suspect the lack of experience on this issue from the Green Team caused this to happen. It should have triggered a revsion change at the least.
However, some of the new controllers inside the eMMC will not support 4.1 in the future. So sooner of later, something may need to happen. I have no idea what the exact issue is.
At first I was disappointed that the BBG circuit board revision had not changed. However, it was really a software issue and the boards can be differentiated by the eMMC chip marking:
Part Number FBGA Code (Marking)
OLD MTFC4GACAAAM-1M WT JWA57
NEW MTFC4GACAJCN-1M WT JY976
I was able to recompile the kernel (3.8.13-bone70, debian 7)commenting the line in mmc.c.
But the image is running fine on the sd card.
When i try to flash to emmc it says panic occured and it hangs.
What might be the problem. I am stuck for days now.