Skip to contentSkip to conversation

u-boot-flasher fails with current u-boot

DISCUSSION [email protected] 3 participants 7 messages Jun 6, 2017 – Jun 9, 2017 3 messages not in the archive Tegra architecture support

lore
Share & tools
lore
#0 lore raw

Recent changes to U-Boot have broken u-boot-flasher. I now see,
after
./tegra-uboot-flasher flash jetson-tk1
on the serial port:

Quoted 1 line
Quoted 1 line
Quoted 1 line

Selecting MMC device...

tegra_mmc_send_cmd_bounced: MMC Timeout

    Interrupt status        0x00000001
    Interrupt status enable 0xffff003b
    Interrupt signal enable 0xffff0002
    Present status          0x01fb02f6

mmc_init: -1, time 8042

and nothing is flashed to the MMC.

I can do
./tegra-uboot-flasher exec jetson-tk1
and everything works as expected. The running-from-RAM u-boot can access the MMC.

The patch in U-Boot that causes the problems (found by git-bisect) is 0e513e788f tegra: convert MMC to use driver model for operations

Signature · 2 lines
Dr Peter Chubb         Tel: +61 2 9490 5852      http://ts.data61.csiro.au/
Trustworthy Systems Group                           Data61 (formerly NICTA)
#2 lore raw
In reply to a message not in the archive

Hi Peter,

Quoted 14 lines · On 6 June 2017 at 17:36, <[email protected]>…

Recent changes to U-Boot have broken u-boot-flasher. I now see,
after
./tegra-uboot-flasher flash jetson-tk1
on the serial port:

Quoted 1 line
Quoted 1 line
Quoted 1 line

Selecting MMC device...

tegra_mmc_send_cmd_bounced: MMC Timeout

    Interrupt status        0x00000001
    Interrupt status enable 0xffff003b
    Interrupt signal enable 0xffff0002
    Present status          0x01fb02f6

mmc_init: -1, time 8042

and nothing is flashed to the MMC.

Quoted 7 lines

I can do
./tegra-uboot-flasher exec jetson-tk1
and everything works as expected. The running-from-RAM u-boot can access the MMC.

The patch in U-Boot that causes the problems (found by git-bisect) is 0e513e788f tegra: convert MMC to use driver model for operations

Oh dear. I cannot find my board but will see if I can repeat this on a beaver.

Quoted 4 lines

--
Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/
Trustworthy Systems Group Data61 (formerly NICTA)

Regards,
Simon

#3 lore raw
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Simon" == Simon Glass <[email protected]> writes:

:
Simon> Oh dear. I cannot find my board but will see if I can repeat Simon> this on a beaver.
Thanks.

If there's any additional logging you'd like me to collect on the Jetson, let me know.

Peter C
--
Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/
Trustworthy Systems Group Data61 (formerly NICTA)
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot

#4 lore raw
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Peter" == Peter Chubb <[email protected]> writes:
"Simon" == Simon Glass <[email protected]> writes:

Simon> Oh dear. I cannot find my board but will see if I can repeat Simon> this on a beaver.

Peter> If there's any additional logging you'd like me to collect on Peter> the Jetson, let me know.

I tried to reproduce this this morning. Today, even trying to exec the U-Boot without flashing fails.

So,
./tegra-uboot-flasher exec jetson-tk1
with a current u-boot gives an inoperative eMMC.

In the boot header I see:

U-Boot 2017.05-00769-g0e513e788f (Jun 08 2017 - 09:26:27 +1000)

TEGRA124

Model: NVIDIA Jetson TK1
Board: NVIDIA Jetson TK1
DRAM:  2 GiB
MMC:   sdhci@700b0400: 1, sdhci@700b0600: 0

Then:

Tegra124 (Jetson TK1) # mmc rescan
tegra_mmc_send_cmd_bounced: MMC Timeout

    Interrupt status        0x00000001                                          
    Interrupt status enable 0xffff003b                                          
    Interrupt signal enable 0xffff0002                                          
    Present status          0x01fb02f6                                          

mmc_init: -1, time 8042

Peter C

Signature · 6 lines
Dr Peter Chubb         Tel: +61 2 9490 5852      http://ts.data61.csiro.au/
Trustworthy Systems Group                           Data61 (formerly NICTA)
_______________________________________________
U-Boot mailing list
[email protected]
https://lists.denx.de/listinfo/u-boot
#6 lore raw
In reply to a message not in the archive

Hi Peter,

Quoted 11 lines · On 7 June 2017 at 19:12, <[email protected]>…
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Peter" == Peter Chubb <[email protected]> writes:
"Simon" == Simon Glass <[email protected]> writes:

Simon> Oh dear. I cannot find my board but will see if I can repeat Simon> this on a beaver.

Peter> If there's any additional logging you'd like me to collect on Peter> the Jetson, let me know.

I tried to reproduce this this morning. Today, even trying to exec the U-Boot without flashing fails.

The good news is I found my Jetson-TK1 and I can repeat your problem.

Quoted 10 lines

So,
./tegra-uboot-flasher exec jetson-tk1
with a current u-boot gives an inoperative eMMC.

In the boot header I see:

U-Boot 2017.05-00769-g0e513e788f (Jun 08 2017 - 09:26:27 +1000)

TEGRA124

Quoted 8 lines
Model: NVIDIA Jetson TK1
Board: NVIDIA Jetson TK1
DRAM:  2 GiB
MMC:   sdhci@700b0400: 1, sdhci@700b0600: 0

Then:

Tegra124 (Jetson TK1) # mmc rescan

Why are you running 'mmc rescan'? Is this because the MMC has changed?

This command does not seem to work since it does not re-probe the driver. It looks like the driver assumes that the controller is reset each time. I'll send a patch which seems to fix it for me.

Quoted 11 lines

tegra_mmc_send_cmd_bounced: MMC Timeout

    Interrupt status        0x00000001
    Interrupt status enable 0xffff003b
    Interrupt signal enable 0xffff0002
    Present status          0x01fb02f6

mmc_init: -1, time 8042

Peter C
--
Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/
Trustworthy Systems Group Data61 (formerly NICTA)

Regards,
Simon

#8 lore raw
In reply to a message not in the archive
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Simon" == Simon Glass <[email protected]> writes:

Simon> The good news is I found my Jetson-TK1 and I can repeat your Simon> problem.

Cool. So it's not just me (phew)

Quoted 2 lines
Quoted 2 lines

Tegra124 (Jetson TK1) # mmc rescan

Simon> Why are you running 'mmc rescan'? Is this because the MMC has Simon> changed?

Any mmc command fails except 'mmc part' and 'mmc list'. 'mmc rescan' was just one example that should work.

Tegra124 (Jetson TK1) # mmc dev
tegra_mmc_send_cmd_bounced: MMC Timeout

    Interrupt status        0x00000001
    Interrupt status enable 0xffff003b
    Interrupt signal enable 0xffff0002
    Present status          0x01fb02f6

mmc_init: -1, time 8042

Tegra124 (Jetson TK1) # mmc info
mmc_init: -1, time 4

--
Dr Peter Chubb Tel: +61 2 9490 5852 http://ts.data61.csiro.au/
Trustworthy Systems Group Data61 (formerly NICTA)

#9 lore raw
In reply to a message not in the archive

Hi Peter,

Quoted 34 lines · Simon Glass

Hi Peter,

Quoted 11 lines · On 7 June 2017 at 19:12, <[email protected]>…
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

"Peter" == Peter Chubb <[email protected]> writes:
"Simon" == Simon Glass <[email protected]> writes:

Simon> Oh dear. I cannot find my board but will see if I can repeat Simon> this on a beaver.

Peter> If there's any additional logging you'd like me to collect on Peter> the Jetson, let me know.

I tried to reproduce this this morning. Today, even trying to exec the U-Boot without flashing fails.

The good news is I found my Jetson-TK1 and I can repeat your problem.

Quoted 17 lines

So,
./tegra-uboot-flasher exec jetson-tk1
with a current u-boot gives an inoperative eMMC.

In the boot header I see:

U-Boot 2017.05-00769-g0e513e788f (Jun 08 2017 - 09:26:27 +1000)

TEGRA124

Model: NVIDIA Jetson TK1
Board: NVIDIA Jetson TK1
DRAM:  2 GiB
MMC:   sdhci@700b0400: 1, sdhci@700b0600: 0

Then:

Quoted 14 lines
Quoted 1 line

Tegra124 (Jetson TK1) # mmc rescan

Why are you running 'mmc rescan'? Is this because the MMC has changed?

This command does not seem to work since it does not re-probe the driver. It looks like the driver assumes that the controller is reset each time. I'll send a patch which seems to fix it for me.

Quoted 6 lines

tegra_mmc_send_cmd_bounced: MMC Timeout

    Interrupt status        0x00000001
    Interrupt status enable 0xffff003b
    Interrupt signal enable 0xffff0002
    Present status          0x01fb02f6

mmc_init: -1, time 8042

OK thanks for that. Just to close the loop I sent a patch to fix it:

http://patchwork.ozlabs.org/patch/772771/

Regards,
Simon