Unrecognised eMMC on BeagleBone Black Board

558 views
Skip to first unread message

Radovan Chovan

unread,
Nov 4, 2019, 8:43:06 AM11/4/19
to BeagleBoard
Hi,
I have SD card with custom image with kernel Linux beaglebone 3.8.13-bone50.
I flash this image to eMMC of Beaglebone Black boards successfully til now.
New beaglebone black boards have higher revision of eMMC module.

My conclusions:
Kingston EMMC04G-M627 - newer type of memory
Kingston EMMC04G-S100 - older type of memory


After boot I 've got this error:

[    0.887052] mmc1: unrecognised EXT_CSD revision 8
[    0.892056] mmc1: error -22 whilst initialising MMC card

I think that problem is in older kernel version of Debian.

So, I 've tried upgrade kernel via:

cd /opt/scripts/tools/
git pull
sudo
./update_kernel.sh
sudo reboot


But I have problem with certificate.
After "git pull" I got error:
error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/RobertCNelson/boot-scripts/info/refs
fatal: HTTP request failed

I run command export GIT_SSL_NO_VERIFY=1 to workaround it.

But after "sudo ./update_kernel.sh" I got error:
GnuTLS: A TLS fatal alert has been received.
Unable to establish SSL connection

I tried to modify script adding "--no-check-certificate" after wget commands, but without success.

Can kernel upgrade solve issue with unrecognising of eMMC? If so, how can I ugprade kernel?


Robert Nelson

unread,
Nov 4, 2019, 9:44:06 AM11/4/19
to Beagle Board, rad...@gmail.com
On Mon, Nov 4, 2019 at 7:43 AM Radovan Chovan <rad...@gmail.com> wrote:
>
> Hi,
> I have SD card with custom image with kernel Linux beaglebone 3.8.13-bone50.
> I flash this image to eMMC of Beaglebone Black boards successfully til now.
> New beaglebone black boards have higher revision of eMMC module.
>
> My conclusions:
> Kingston EMMC04G-M627 - newer type of memory
> Kingston EMMC04G-S100 - older type of memory
>
>
> After boot I 've got this error:
>
> [ 0.887052] mmc1: unrecognised EXT_CSD revision 8
> [ 0.892056] mmc1: error -22 whilst initialising MMC card
>
> I think that problem is in older kernel version of Debian.
>
> So, I 've tried upgrade kernel via:
>
> cd /opt/scripts/tools/
> git pull
> sudo ./update_kernel.sh
> sudo reboot
>
> source: https://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Upgrade
>
> But I have problem with certificate.
> After "git pull" I got error:
> error: server certificate verification failed. CAfile: /etc/ssl/certs/ca-certificates.crt CRLfile: none while accessing https://github.com/RobertCNelson/boot-scripts/info/refs
> fatal: HTTP request failed

Internet security has really changed in the last 3 years.


> I run command export GIT_SSL_NO_VERIFY=1 to workaround it.
>
> But after "sudo ./update_kernel.sh" I got error:
> GnuTLS: A TLS fatal alert has been received.
> Unable to establish SSL connection
>
> I tried to modify script adding "--no-check-certificate" after wget commands, but without success.
>
> Can kernel upgrade solve issue with unrecognising of eMMC? If so, how can I ugprade kernel?

Correct, this was fixed back on Jun 15, 2016...

Are you running Wheezy or Jessie?

Wheezy:
http://repos.rcn-ee.net/debian/pool/main/l/linux-upstream/linux-image-3.8.13-bone84_1wheezy_armhf.deb

Jessie:
http://repos.rcn-ee.net/debian/pool/main/l/linux-upstream/linux-image-3.8.13-bone86_1jessie_armhf.deb

With Jessie you should be able to run:

sudo dpkg -i linux-image-3.8.13-bone86_1jessie_armhf.deb
sudo reboot

For Wheezy you'll have to copy files around as it wasn't that
intergrated.. (under /boot/*)

Best to see your serial boot log to help tell you where to stick it..

Regards,

--
Robert Nelson
https://rcn-ee.com/

Radovan Chovan

unread,
Nov 5, 2019, 1:43:45 AM11/5/19
to BeagleBoard
I am running Wheezie.
 
Debian GNU/Linux 7
BeagleBoard.org BeagleBone Debian Image 2014-05-14

I attached log file.
syslog.1

Radovan Chovan

unread,
Nov 5, 2019, 9:56:37 AM11/5/19
to BeagleBoard
This is result of running command od Wheezie:

root@beaglebone:/home/debian# sudo dpkg -i linux-image-3.8.13-bone84_1wheezy_armhf.deb
Selecting previously unselected package linux-image-3.8.13-bone84.
(Reading database ... 62413 files and directories currently installed.)
Unpacking linux-image-3.8.13-bone84 (from linux-image-3.8.13-bone84_1wheezy_armhf.deb) ...
Setting up linux-image-3.8.13-bone84 (1wheezy) ...
update
-initramfs: Generating /boot/initrd.img-3.8.13-bone84

But after "sudo reboot" nothing changed

root@beaglebone:~# uname -a
Linux beaglebone 3.8.13-bone50 #1 SMP Tue May 13 13:24:52 UTC 2014 armv7l GNU/Linux

So I need to copy some files to /boot/ as you mentioned, right?

Robert Nelson

unread,
Nov 5, 2019, 11:34:34 AM11/5/19
to Beagle Board, rad...@gmail.com
Yeap, so here's the surgery:

take a look at /boot/uboot/

ls -lh /boot/uboot/

#First backup everything:

sudo mv /boot/uboot/zImage /boot/uboot/zImage_bak
sudo mv /boot/uboot/initrd.img /boot/uboot/initrd.bak
sudo mv /boot/uboot/dtbs/ /boot/uboot/dtbs_bak/

#Copy new DTBS:

sudo mkdir -p /boot/uboot/dtbs/
sudo cp -v /boot/dtbs/3.8.13-bone84/*.dtb /boot/uboot/dtbs/

#does /boot/initrd.img-3.8.13-bone84 exist? if not:

sudo update-initramfs -c -k 3.8.13-bone84

#copy kernel files:

sudo cp -v /boot/vmlinuz-3.8.13-bone84 /boot/uboot/zImage
sudo cp -v /boot/initrd.img-3.8.13-bone84 /boot/uboot/initrd.img

and reboot..

Radovan Chovan

unread,
Nov 6, 2019, 2:41:25 AM11/6/19
to BeagleBoard
It works. :) Thanks.

Partition for eMMC is available again.


Reply all
Reply to author
Forward
0 new messages