mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* eMMC probe in imx8mm
@ 2019-07-05 14:04 Yazdani, Reyhaneh
  2019-07-09  9:46 ` Sascha Hauer
  0 siblings, 1 reply; 4+ messages in thread
From: Yazdani, Reyhaneh @ 2019-07-05 14:04 UTC (permalink / raw)
  To: barebox

Hello everyone,

I have brought up Barebox on imx8mm-evk board. Barebox is programmed on SD-card.
In the Barebox console, when I probe eMMC, I will receive I/O error.

Therefore, similar to the imx8mq device tree, I added clk node to assign
clock-parent and clock-rates of the assigned clock of the eMMC (usdhc3):

&clk {
        assigned-clocks =  <&clk IMX8MM_CLK_USDHC3_ROOT>;
        assigned-clock-parents =  <&clk IMX8MM_SYS_PLL1_400M>;
        assigned-clock-rates = <200000000>;
};

Now, eMMC probe works and eMMC is detected. But when I want to boot from eMMC,

Loading ARM aarch64 Linux image '/mnt/mmc2/Image' takes about 13-14 seconds!!


Does anyone have an idea where is the problem? It would related to the clock,
but which part?

Best regards,
Reyhaneh
--
Reyhaneh Yazdani
Data Modul AG                            TEL:    +49-89-56017-154
Embedded development                 FAX:    +49-89-56017-119
Linux - Development                      RG: HR-Muenchen B-85591
Landsberger Str. 322 D-80687 Muenchen - http://www.data-modul.com

Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
Vorstand / CEO: Dr. Florian Pesahl
Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
Sitz der Gesellschaft / Registered Office: München
Registergericht / Registration Court: München Handelsregister B 85 591



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eMMC probe in imx8mm
  2019-07-05 14:04 eMMC probe in imx8mm Yazdani, Reyhaneh
@ 2019-07-09  9:46 ` Sascha Hauer
  2019-07-11 13:30   ` Yazdani, Reyhaneh
  2019-07-12  6:12   ` Yazdani, Reyhaneh
  0 siblings, 2 replies; 4+ messages in thread
From: Sascha Hauer @ 2019-07-09  9:46 UTC (permalink / raw)
  To: Yazdani, Reyhaneh; +Cc: barebox

Hi Reyhaneh,

On Fri, Jul 05, 2019 at 02:04:08PM +0000, Yazdani, Reyhaneh wrote:
> Hello everyone,
> 
> I have brought up Barebox on imx8mm-evk board. Barebox is programmed on SD-card.
> In the Barebox console, when I probe eMMC, I will receive I/O error.
> 
> Therefore, similar to the imx8mq device tree, I added clk node to assign
> clock-parent and clock-rates of the assigned clock of the eMMC (usdhc3):
> 
> &clk {
>         assigned-clocks =  <&clk IMX8MM_CLK_USDHC3_ROOT>;
>         assigned-clock-parents =  <&clk IMX8MM_SYS_PLL1_400M>;
>         assigned-clock-rates = <200000000>;
> };
> 
> Now, eMMC probe works and eMMC is detected. But when I want to boot from eMMC,
> 
> Loading ARM aarch64 Linux image '/mnt/mmc2/Image' takes about 13-14 seconds!!

How big is this image?

Is only the eMMC card so slow or the SD card aswell?

Does clk_dump give you any clue which clock rate the usdhc controller
actually has (and is it the same as the other controller with the SD
card)?

Just some questions, I am not very familiar with the i.MX8 clock tree.

Sascha


-- 
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
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eMMC probe in imx8mm
  2019-07-09  9:46 ` Sascha Hauer
@ 2019-07-11 13:30   ` Yazdani, Reyhaneh
  2019-07-12  6:12   ` Yazdani, Reyhaneh
  1 sibling, 0 replies; 4+ messages in thread
From: Yazdani, Reyhaneh @ 2019-07-11 13:30 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox



On 7/9/19 11:46 AM, Sascha Hauer wrote:
> Hi Reyhaneh,
>
> On Fri, Jul 05, 2019 at 02:04:08PM +0000, Yazdani, Reyhaneh wrote:
>> Hello everyone,
>>
>> I have brought up Barebox on imx8mm-evk board. Barebox is programmed on SD-card.
>> In the Barebox console, when I probe eMMC, I will receive I/O error.
>>
>> Therefore, similar to the imx8mq device tree, I added clk node to assign
>> clock-parent and clock-rates of the assigned clock of the eMMC (usdhc3):
>>
>> &clk {
>>         assigned-clocks =  <&clk IMX8MM_CLK_USDHC3_ROOT>;
>>         assigned-clock-parents =  <&clk IMX8MM_SYS_PLL1_400M>;
>>         assigned-clock-rates = <200000000>;
>> };
>>
>> Now, eMMC probe works and eMMC is detected. But when I want to boot from eMMC,
>>
>> Loading ARM aarch64 Linux image '/mnt/mmc2/Image' takes about 13-14 seconds!!
>
> How big is this image?
>
> Is only the eMMC card so slow or the SD card aswell?
>
> Does clk_dump give you any clue which clock rate the usdhc controller
> actually has (and is it the same as the other controller with the SD
> card)?
>
> Just some questions, I am not very familiar with the i.MX8 clock tree.


Hi Sascha,

It was related to the no initialization of PLL-clock. SYS_PLL1 is used  as clock
parents for eMMC and it was not initialized in clock driver.

Best regards,
Reyhaneh


--
Reyhaneh Yazdani
Data Modul AG                            TEL:    +49-89-56017-154
Embedded development                 FAX:    +49-89-56017-119
Linux - Development                      RG: HR-Muenchen B-85591
Landsberger Str. 322 D-80687 Muenchen - http://www.data-modul.com

Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
Vorstand / CEO: Dr. Florian Pesahl
Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
Sitz der Gesellschaft / Registered Office: München
Registergericht / Registration Court: München Handelsregister B 85 591



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: eMMC probe in imx8mm
  2019-07-09  9:46 ` Sascha Hauer
  2019-07-11 13:30   ` Yazdani, Reyhaneh
@ 2019-07-12  6:12   ` Yazdani, Reyhaneh
  1 sibling, 0 replies; 4+ messages in thread
From: Yazdani, Reyhaneh @ 2019-07-12  6:12 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox



On 7/9/19 11:46 AM, Sascha Hauer wrote:
> Hi Reyhaneh,
>
> On Fri, Jul 05, 2019 at 02:04:08PM +0000, Yazdani, Reyhaneh wrote:
>> Hello everyone,
>>
>> I have brought up Barebox on imx8mm-evk board. Barebox is programmed on SD-card.
>> In the Barebox console, when I probe eMMC, I will receive I/O error.
>>
>> Therefore, similar to the imx8mq device tree, I added clk node to assign
>> clock-parent and clock-rates of the assigned clock of the eMMC (usdhc3):
>>
>> &clk {
>>         assigned-clocks =  <&clk IMX8MM_CLK_USDHC3_ROOT>;
>>         assigned-clock-parents =  <&clk IMX8MM_SYS_PLL1_400M>;
>>         assigned-clock-rates = <200000000>;
>> };
>>
>> Now, eMMC probe works and eMMC is detected. But when I want to boot from eMMC,
>>
>> Loading ARM aarch64 Linux image '/mnt/mmc2/Image' takes about 13-14 seconds!!
>
> How big is this image?
>
> Is only the eMMC card so slow or the SD card aswell?
>
> Does clk_dump give you any clue which clock rate the usdhc controller
> actually has (and is it the same as the other controller with the SD
> card)?
>
> Just some questions, I am not very familiar with the i.MX8 clock tree.
>
> Sascha
>
>

Hi Sascha,

It was related to the no initialization of PLL-clock. SYS_PLL1 is used  as clock
parents for eMMC and it was not initialized in clock driver.

Best regards,
Reyhaneh

--
Reyhaneh Yazdani
Data Modul AG                            TEL:    +49-89-56017-154
Embedded development                 FAX:    +49-89-56017-119
Linux - Development                      RG: HR-Muenchen B-85591
Landsberger Str. 322 D-80687 Muenchen - http://www.data-modul.com

Vertrauliche E-Mail von / Confidential e-mail from: DATA MODUL AG
Vorstand / CEO: Dr. Florian Pesahl
Vorsitzende des Aufsichtsrates / Chairwoman of the Supervisory Board: Kristin D. Russell
Sitz der Gesellschaft / Registered Office: München
Registergericht / Registration Court: München Handelsregister B 85 591



_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2019-07-12  6:12 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-05 14:04 eMMC probe in imx8mm Yazdani, Reyhaneh
2019-07-09  9:46 ` Sascha Hauer
2019-07-11 13:30   ` Yazdani, Reyhaneh
2019-07-12  6:12   ` Yazdani, Reyhaneh

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox