Skip to contentSkip to conversation

beagle bone black: problem of boot from eMMC

DISCUSSION [email protected] 3 participants 5 messages Dec 31, 2014 – Jan 14, 2015

lore
Share & tools
lore
#0 lore raw

Hi,

From the lasted Barebox version (barebox-2014.12.0):

I generated a MLO and a barebox.bin for the BeagleBone (am335x_defconfig&am335x_mlo_defconfig config file) with the modification of :
[PATCH] net: cpsw: Fix crashes on beaglebone black ledphilippe at
gmail.com
that I copied in a SD card. It work fine.

After, I wanted to boot from the the internal eMMC.
So after boot from sd card, I mounted the eMMC (mount /dev/mmc1.0) and copied the MLO and barebox.bin in the /mnt/mmc1.0 folder.

When I try to boot from the internal eMMC ,I have the following error:
--------->
barebox 2014.12.0 #2 Wed Dec 31 15:29:16 GMT 2014

Board: TI AM335x BeagleBone
detected 'BeagleBone Black'
omap-hsmmc 48060000.mmc: registered as 48060000.mmc booting from MMC
fat fat0: probe failed: error 22
Unable to mount (-22)
booting failed
<---------

I tried myself to find a 'correction' by added the call of am33xx_of_register_bootdevice(void) function at the end of the static int beaglebone_devices_init(void) function. With this modification, sometime (depending of the last boot: from SD Card or from eMMC) I can boot, someting not.
So my correction,although improving the situation, is not exactly the correction to do. Some one can help me ?

Thanks very much !

-----------------------------
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: FR47509653176

-----------------------------

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hello Manuel,

Am Mittwoch, den 31.12.2014, 14:52 +0000 schrieb [email protected]:

Quoted 10 lines

After, I wanted to boot from the the internal eMMC.
So after boot from sd card, I mounted the eMMC (mount /dev/mmc1.0) and copied the MLO and barebox.bin in the /mnt/mmc1.0 folder.

When I try to boot from the internal eMMC ,I have the following error:
--------->
barebox 2014.12.0 #2 Wed Dec 31 15:29:16 GMT 2014

Quoted 8 lines

Board: TI AM335x BeagleBone
detected 'BeagleBone Black'
omap-hsmmc 48060000.mmc: registered as 48060000.mmc booting from MMC
fat fat0: probe failed: error 22
Unable to mount (-22)
booting failed
<---------

This issue comes from commit:

commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85

Author: Sascha Hauer <[email protected]>
Date:   Thu Jun 5 12:09:07 2014 +0200

ARM: AM335x: Beaglebone: Use stripped down devicetree for MLO

For the MLO only the am335x-bone-common.dtsi is used to create the device tree. But this does not have the emmc support included.

Quoted 6 lines

I tried myself to find a 'correction' by added the call of am33xx_of_register_bootdevice(void) function at the end of the static int beaglebone_devices_init(void) function. With this modification, sometime (depending of the last boot: from SD Card or from eMMC) I can boot, someting not.

What you are also missing is a disabled emmc node from the am335x-boneblack.dts in the am335x-bone-common.dtsi.

This may help.

Regards,
Teresa

Quoted 10 lines

So my correction,although improving the situation, is not exactly the correction to do. Some one can help me ?

Thanks very much !

-----------------------------
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: FR47509653176

Quoted 6 lines

-----------------------------

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#4 lore raw
In reply to [email protected]
Quoted 29 lines · On Wed, Dec 31, 2014 at 02:52:39PM +0000, [email protected] wrote:

Hi,

From the lasted Barebox version (barebox-2014.12.0):

I generated a MLO and a barebox.bin for the BeagleBone (am335x_defconfig&am335x_mlo_defconfig config file) with the modification of :
[PATCH] net: cpsw: Fix crashes on beaglebone black ledphilippe at
gmail.com
that I copied in a SD card. It work fine.

After, I wanted to boot from the the internal eMMC.
So after boot from sd card, I mounted the eMMC (mount /dev/mmc1.0) and copied the MLO and barebox.bin in the /mnt/mmc1.0 folder.

When I try to boot from the internal eMMC ,I have the following error:
--------->
barebox 2014.12.0 #2 Wed Dec 31 15:29:16 GMT 2014

Board: TI AM335x BeagleBone
detected 'BeagleBone Black'
omap-hsmmc 48060000.mmc: registered as 48060000.mmc booting from MMC
fat fat0: probe failed: error 22
Unable to mount (-22)
booting failed
<---------

Quoted 7 lines

I tried myself to find a 'correction' by added the call of am33xx_of_register_bootdevice(void) function at the end of the static int beaglebone_devices_init(void) function. With this modification, sometime (depending of the last boot: from SD Card or from eMMC) I can boot, someting not.
So my correction,although improving the situation, is not exactly the correction to do. Some one can help me ?

In your bootlog above mmc@481d8000 (which is the eMMC) is not registered. I had a quick look at the code and didn't find anything obvious. I can have a closer look this evening.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw
In reply to Teresa Gámez
Quoted 24 lines · Teresa Gámez

Hello Manuel,

Am Mittwoch, den 31.12.2014, 14:52 +0000 schrieb [email protected]:

Quoted 10 lines

After, I wanted to boot from the the internal eMMC.
So after boot from sd card, I mounted the eMMC (mount /dev/mmc1.0) and copied the MLO and barebox.bin in the /mnt/mmc1.0 folder.

When I try to boot from the internal eMMC ,I have the following error:
--------->
barebox 2014.12.0 #2 Wed Dec 31 15:29:16 GMT 2014

Quoted 8 lines

Board: TI AM335x BeagleBone
detected 'BeagleBone Black'
omap-hsmmc 48060000.mmc: registered as 48060000.mmc booting from MMC
fat fat0: probe failed: error 22
Unable to mount (-22)
booting failed
<---------

This issue comes from commit:

Quoted 8 lines

commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85

Author: Sascha Hauer <[email protected]>
Date:   Thu Jun 5 12:09:07 2014 +0200

ARM: AM335x: Beaglebone: Use stripped down devicetree for MLO

For the MLO only the am335x-bone-common.dtsi is used to create the device tree. But this does not have the emmc support included.

Damn. Somehow I knew I was guilty :(

Quoted 10 lines
Quoted 7 lines

I tried myself to find a 'correction' by added the call of am33xx_of_register_bootdevice(void) function at the end of the static int beaglebone_devices_init(void) function. With this modification, sometime (depending of the last boot: from SD Card or from eMMC) I can boot, someting not.

What you are also missing is a disabled emmc node from the am335x-boneblack.dts in the am335x-bone-common.dtsi.

I just sent a patch which fixes this.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

Hi,

I just see your emails (some problem with my spam folder configuration ?..). I seen also the patch, it works fine.
Thank you!

-----------------------------
Eaton Industries (France) S.A.S ~ Siège social: 110 Rue Blaise Pascal, Immeuble Le Viséo - Bâtiment A Innovallée, 38330, Montbonnot-St.-Martin, France ~ Lieu d'enregistrement au registre du commerce: Grenoble ~ Numéro d'enregistrement: 509 653 176 ~ Capital social souscrit et liberé:€ 16215441 ~ Numéro de TVA: FR47509653176

-----------------------------

-----Original Message-----
From: Sascha Hauer [mailto:[email protected]]
Sent: mardi 6 janvier 2015 10:06
To: Teresa Gámez
Cc: Curcio, Manuel; [email protected]
Subject: Re: beagle bone black: problem of boot from eMMC

Quoted 22 lines · Teresa Gámez

Hello Manuel,

Am Mittwoch, den 31.12.2014, 14:52 +0000 schrieb [email protected]:

Quoted 10 lines

After, I wanted to boot from the the internal eMMC.
So after boot from sd card, I mounted the eMMC (mount /dev/mmc1.0) and copied the MLO and barebox.bin in the /mnt/mmc1.0 folder.

When I try to boot from the internal eMMC ,I have the following error:
--------->
barebox 2014.12.0 #2 Wed Dec 31 15:29:16 GMT 2014

Quoted 6 lines

Board: TI AM335x BeagleBone
detected 'BeagleBone Black'
omap-hsmmc 48060000.mmc: registered as 48060000.mmc booting from MMC fat fat0: probe failed: error 22 Unable to mount (-22) booting failed
<---------

This issue comes from commit:

Quoted 8 lines

commit 0d6392de4ad824a6553c0e3e3e18edef689a7c85

Author: Sascha Hauer <[email protected]>
Date:   Thu Jun 5 12:09:07 2014 +0200

ARM: AM335x: Beaglebone: Use stripped down devicetree for MLO

For the MLO only the am335x-bone-common.dtsi is used to create the device tree. But this does not have the emmc support included.

Damn. Somehow I knew I was guilty :(

Quoted 10 lines
Quoted 7 lines

I tried myself to find a 'correction' by added the call of am33xx_of_register_bootdevice(void) function at the end of the static int beaglebone_devices_init(void) function. With this modification, sometime (depending of the last boot: from SD Card or from eMMC) I can boot, someting not.

What you are also missing is a disabled emmc node from the am335x-boneblack.dts in the am335x-bone-common.dtsi.

I just sent a patch which fixes this.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox