Skip to contentSkip to conversation

u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC

U-Boot Vagrant Cascadian 4 participants 9 messages May 21, 2018 – Dec 27, 2018 2 messages not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw
Quoted 11 lines · Vagrant Cascadian
Quoted 10 lines · Vagrant Cascadian

Booting firefly-rk3288 seems to hang looking for environment:

U-Boot 2018.05+dfsg-1 (May 10 2018 - 20:24:57 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0
Loading Environment from MMC...

And just hangs there.

I tried to bisect this, and got:

commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355

Author: Jean-Jacques Hiblot <[email protected]>
Date:   Thu Sep 21 16:30:08 2017 +0200

mmc: disable UHS modes if Vcc cannot be switched on and off

But it fails in a slightly different way:

U-Boot 2018.01-00026-g04a2ea248f (May 21 2018 - 21:46:18 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

And just hangs without the "Loading Environment from MMC..." part...

It is not a trivial revert on top of 2018.05, so I haven't been able to do that simple test.

CONFIG_ENV_IS_IN_MMC has been enabled since at least:

5dc4dfd2a94 (Tom Rini 2017-08-28 07:16:32 -0400 36) CONFIG_ENV_IS_IN_MMC=y

live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180521/c730a566/attachment.sig>

#3 lore raw
Quoted 4 lines · Vagrant Cascadian
Quoted 3 lines · Vagrant Cascadian
Quoted 2 lines · Vagrant Cascadian

Booting firefly-rk3288 seems to hang looking for environment:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

U-Boot 2018.05+dfsg-1 (May 10 2018 - 20:24:57 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0
Loading Environment from MMC...

And just hangs there.

Still happening with v2018.07-rc1, too.

live well,
vagrant

Quoted 17 lines

I tried to bisect this, and got:

commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355

Author: Jean-Jacques Hiblot <[email protected]>
Date:   Thu Sep 21 16:30:08 2017 +0200

mmc: disable UHS modes if Vcc cannot be switched on and off

But it fails in a slightly different way:

U-Boot 2018.01-00026-g04a2ea248f (May 21 2018 - 21:46:18 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Quoted 6 lines

And just hangs without the "Loading Environment from MMC..." part...

It is not a trivial revert on top of 2018.05, so I haven't been able to do that simple test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180605/8d3c7db1/attachment.sig>

#4 lore raw
Quoted 7 lines · Vagrant Cascadian
Quoted 6 lines · Vagrant Cascadian
Quoted 5 lines · Vagrant Cascadian
Quoted 4 lines · Vagrant Cascadian

Booting firefly-rk3288 seems to hang looking for environment:

U-Boot 2018.05+dfsg-1 (May 10 2018 - 20:24:57 +0000)

Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0
Loading Environment from MMC...

And just hangs there.

Still happening with v2018.07-rc1, too.

Also just tried with v2018.09-rc2, same problem.

live well,
vagrant

Quoted 17 lines
Quoted 17 lines

I tried to bisect this, and got:

commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355

Author: Jean-Jacques Hiblot <[email protected]>
Date:   Thu Sep 21 16:30:08 2017 +0200

mmc: disable UHS modes if Vcc cannot be switched on and off

But it fails in a slightly different way:

U-Boot 2018.01-00026-g04a2ea248f (May 21 2018 - 21:46:18 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Quoted 6 lines
Quoted 6 lines

And just hangs without the "Loading Environment from MMC..." part...

It is not a trivial revert on top of 2018.05, so I haven't been able to do that simple test.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180814/ad17dcf3/attachment.sig>

#5 lore raw
Quoted 13 lines · Vagrant Cascadian
Quoted 12 lines · Vagrant Cascadian
Quoted 11 lines · Vagrant Cascadian
Quoted 10 lines · Vagrant Cascadian
Quoted 9 lines · Vagrant Cascadian

Booting firefly-rk3288 seems to hang looking for environment:

U-Boot 2018.05+dfsg-1 (May 10 2018 - 20:24:57 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0
Loading Environment from MMC...

Quoted 5 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

And just hangs there.

Still happening with v2018.07-rc1, too.

Also just tried with v2018.09-rc2, same problem.

Adding Philipp Tomsich to CC.

The not very detailed log of the Debian bug report is at:

https://bugs.debian.org/898520

v2018.01 works, v2018.03 doesn't, the closest I got to bisecting the issue:

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

I tried to bisect this, and got:

commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355

Author: Jean-Jacques Hiblot <[email protected]>
Date:   Thu Sep 21 16:30:08 2017 +0200

mmc: disable UHS modes if Vcc cannot be switched on and off

But it fails in a slightly different way:

U-Boot 2018.01-00026-g04a2ea248f (May 21 2018 - 21:46:18 +0000)

Model: Firefly-RK3288
DRAM: 2 GiB
MMC: dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

And just hangs without the "Loading Environment from MMC..." part...

It is not a trivial revert on top of 2018.05, so I haven't been able to do that simple test.

Any further suggestions would be appreciated.

Thanks!

live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180814/618eb830/attachment.sig>

#6 lore raw
Quoted 1 line · Vagrant Cascadian
Quoted 1 line

Also just tried with v2018.09-rc2, same problem.

With some debugging in mmc enabled (#define DEBUG at the top of dw_mmc.c mmc-uclass.c mmc.c rockchip_dw_mmc.c) and CONFIG_MMC_TRACE=y, it gives a little more information:

U-Boot SPL 2018.09-rc2+dfsg-1~20180814~6 (Aug 14 2018 - 21:58:09 +0000) Returning to boot ROM...
mmc_bind: alias ret=0, devnum=1

U-Boot 2018.09-rc2+dfsg-1~20180814~6 (Aug 14 2018 - 21:58:09 +0000)

Model: Firefly-RK3288
DRAM:  2 GiB
mmc_bind: alias ret=0, devnum=1
mmc_bind: alias ret=0, devnum=0
MMC:   dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Loading Environment from MMC... clock is disabled (0Hz)

Buswidth = 0, clock: 0

live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20180814/ab8715ab/attachment.sig>

#7 lore raw

Hi,

Quoted 15 lines · Vagrant Cascadian
Quoted 1 line · Vagrant Cascadian
Quoted 1 line

Also just tried with v2018.09-rc2, same problem.

With some debugging in mmc enabled (#define DEBUG at the top of dw_mmc.c mmc-uclass.c mmc.c rockchip_dw_mmc.c) and CONFIG_MMC_TRACE=y, it gives a little more information:

U-Boot SPL 2018.09-rc2+dfsg-1~20180814~6 (Aug 14 2018 - 21:58:09 +0000) Returning to boot ROM...
mmc_bind: alias ret=0, devnum=1

U-Boot 2018.09-rc2+dfsg-1~20180814~6 (Aug 14 2018 - 21:58:09 +0000)

Quoted 8 lines
Model: Firefly-RK3288
DRAM:  2 GiB
mmc_bind: alias ret=0, devnum=1
mmc_bind: alias ret=0, devnum=0
MMC:   dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Loading Environment from MMC... clock is disabled (0Hz)

Buswidth = 0, clock: 0

At little late to the party, but the current 2019.01.rc2 works OK for me:

crosfw -b firefly-rk3288 -i && /tmp/b/firefly-rk3288/tools/mkimage -n rk3288 -T rksd -d /tmp/b/firefly-rk3288/spl/u-boot-spl.bin out && cat /tmp/b/firefly-rk3288/u-boot-dtb.bin >> out && sudo dd if=out of=/dev/sdb seek=64 && sync

U-Boot SPL 2019.01-rc2-00001-g90603d0093-dirty (Dec 18 2018 - 20:03:26 -0700) Returning to boot ROM...

U-Boot 2019.01-rc2-00001-g90603d0093-dirty (Dec 18 2018 - 20:03:26 -0700)

Model: Firefly-RK3288
DRAM:  2 GiB
MMC:   dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Firefly-RK3288

Net:
Warning: ethernet at ff290000 (eth0) using random MAC address - 56:3a:73:55:2e:82
eth0: ethernet at ff290000
Hit any key to stop autoboot: 0
=>

Regards,
Simon

#8 lore raw
Quoted 23 lines · Simon Glass

At little late to the party, but the current 2019.01.rc2 works OK for me:

crosfw -b firefly-rk3288 -i && /tmp/b/firefly-rk3288/tools/mkimage -n rk3288 -T rksd -d /tmp/b/firefly-rk3288/spl/u-boot-spl.bin out && cat /tmp/b/firefly-rk3288/u-boot-dtb.bin >> out && sudo dd if=out of=/dev/sdb seek=64 && sync

U-Boot SPL 2019.01-rc2-00001-g90603d0093-dirty (Dec 18 2018 - 20:03:26 -0700) Returning to boot ROM...

U-Boot 2019.01-rc2-00001-g90603d0093-dirty (Dec 18 2018 - 20:03:26 -0700)

Model: Firefly-RK3288
DRAM:  2 GiB
MMC:   dwmmc at ff0c0000: 1, dwmmc at ff0f0000: 0

Loading Environment from MMC... *** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Model: Firefly-RK3288
Quoted 5 lines

Net:
Warning: ethernet at ff290000 (eth0) using random MAC address - 56:3a:73:55:2e:82
eth0: ethernet at ff290000
Hit any key to stop autoboot: 0
=>

I'm not so lucky. 2019.01-rc2 hangs even earlier without detecting the ram (on a 4GB ram model)::

U-Boot SPL 2019.01-rc2+dfsg-1~20181219~2 (Dec 19 2018 - 23:12:56 +0000) Returning to boot ROM...

U-Boot 2019.01-rc2+dfsg-1~20181219~2 (Dec 19 2018 - 23:12:56 +0000)

Model: Firefly-RK3288
DRAM:  0 Bytes

Haven't tried on a 2GB model yet...

Could I get a copy of your working binaries to test?

What toolchain are you using to build?

I'm using gcc 8.2.0 and binutils 2.31.1 from debian, built natively.

live well,
vagrant
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 227 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20181224/1a6d046d/attachment.sig>

#9 lore raw

Hi Vagrant,

Quoted 11 lines · Vagrant Cascadian

I'm not so lucky. 2019.01-rc2 hangs even earlier without detecting the ram (on a 4GB ram model)::

U-Boot SPL 2019.01-rc2+dfsg-1~20181219~2 (Dec 19 2018 - 23:12:56 +0000) Returning to boot ROM...

U-Boot 2019.01-rc2+dfsg-1~20181219~2 (Dec 19 2018 - 23:12:56 +0000)

Model: Firefly-RK3288
DRAM:  0 Bytes

Seems like the 4GB ram size issue still not fixed on mainline :( 4GB is out of 32bit range, I though it has been fixed because I did see someone send the patch to list very long time ago.

Well, let me send one which works in my local branch.

Thanks,
- Kever

#10 lore raw
Quoted 14 lines · Kever Yang

Hi Vagrant,

Quoted 7 lines · Vagrant Cascadian

I'm not so lucky. 2019.01-rc2 hangs even earlier without detecting the ram (on a 4GB ram model)::

U-Boot SPL 2019.01-rc2+dfsg-1~20181219~2 (Dec 19 2018 - 23:12:56 +0000) Returning to boot ROM...

Quoted 7 lines
Quoted 4 lines

U-Boot 2019.01-rc2+dfsg-1~20181219~2 (Dec 19 2018 - 23:12:56 +0000)

Model: Firefly-RK3288
DRAM:  0 Bytes

Seems like the 4GB ram size issue still not fixed on mainline :( 4GB is out of 32bit range, I though it has been fixed because I did see someone send the patch to list very long time ago.

That change is still waiting for an updated patch after it failed in Travis-CI. Unfortunately, that updated patch still hasn’t been sent...

Quoted 1 line

Well, let me send one which works in my local branch.

Thanks for taking that on…

Philipp.