All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
       [not found] ` <87in7suzho.fsf@aikidev.net>
@ 2018-05-21 22:00   ` Vagrant Cascadian
  2018-06-05 18:57     ` Vagrant Cascadian
  0 siblings, 1 reply; 9+ messages in thread
From: Vagrant Cascadian @ 2018-05-21 22:00 UTC (permalink / raw)
  To: u-boot

On 2018-05-12, Vagrant Cascadian wrote:
> On 2018-05-12, Vagrant Cascadian wrote:
>> 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 <jjhiblot@ti.com>
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>

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-05-21 22:00   ` [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC Vagrant Cascadian
@ 2018-06-05 18:57     ` Vagrant Cascadian
  2018-08-14 21:00       ` Vagrant Cascadian
  0 siblings, 1 reply; 9+ messages in thread
From: Vagrant Cascadian @ 2018-06-05 18:57 UTC (permalink / raw)
  To: u-boot

On 2018-05-21, Vagrant Cascadian wrote:
> On 2018-05-12, Vagrant Cascadian wrote:
>> On 2018-05-12, Vagrant Cascadian wrote:
>>> 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.

Still happening with v2018.07-rc1, too.


live well,
  vagrant

> I tried to bisect this, and got:
>
> commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355
> Author: Jean-Jacques Hiblot <jjhiblot@ti.com>
> 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.
-------------- 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>

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-06-05 18:57     ` Vagrant Cascadian
@ 2018-08-14 21:00       ` Vagrant Cascadian
  2018-08-14 21:12         ` Vagrant Cascadian
  0 siblings, 1 reply; 9+ messages in thread
From: Vagrant Cascadian @ 2018-08-14 21:00 UTC (permalink / raw)
  To: u-boot

On 2018-06-05, Vagrant Cascadian wrote:
> On 2018-05-21, Vagrant Cascadian wrote:
>> On 2018-05-12, Vagrant Cascadian wrote:
>>> On 2018-05-12, Vagrant Cascadian wrote:
>>>> 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.
>
> Still happening with v2018.07-rc1, too.

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

live well,
  vagrant

>> I tried to bisect this, and got:
>>
>> commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355
>> Author: Jean-Jacques Hiblot <jjhiblot@ti.com>
>> 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.
-------------- 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>

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-08-14 21:00       ` Vagrant Cascadian
@ 2018-08-14 21:12         ` Vagrant Cascadian
  2018-08-14 22:12           ` Vagrant Cascadian
  0 siblings, 1 reply; 9+ messages in thread
From: Vagrant Cascadian @ 2018-08-14 21:12 UTC (permalink / raw)
  To: u-boot

On 2018-08-14, Vagrant Cascadian wrote:
> On 2018-06-05, Vagrant Cascadian wrote:
>> On 2018-05-21, Vagrant Cascadian wrote:
>>> On 2018-05-12, Vagrant Cascadian wrote:
>>>> On 2018-05-12, Vagrant Cascadian wrote:
>>>>> 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.
>>
>> 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:

>>> I tried to bisect this, and got:
>>>
>>> commit 04a2ea248f58b3b6216d0cd0a6b8698df8b14355
>>> Author: Jean-Jacques Hiblot <jjhiblot@ti.com>
>>> 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.

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>

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-08-14 21:12         ` Vagrant Cascadian
@ 2018-08-14 22:12           ` Vagrant Cascadian
  2018-12-19  3:05             ` Simon Glass
  0 siblings, 1 reply; 9+ messages in thread
From: Vagrant Cascadian @ 2018-08-14 22:12 UTC (permalink / raw)
  To: u-boot

On 2018-08-14, Vagrant Cascadian wrote:
>> 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>

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-08-14 22:12           ` Vagrant Cascadian
@ 2018-12-19  3:05             ` Simon Glass
  2018-12-24 16:14               ` Vagrant Cascadian
  0 siblings, 1 reply; 9+ messages in thread
From: Simon Glass @ 2018-12-19  3:05 UTC (permalink / raw)
  To: u-boot

Hi,

On Tue, 14 Aug 2018 at 16:12, Vagrant Cascadian <vagrant@debian.org> wrote:
>
> On 2018-08-14, Vagrant Cascadian wrote:
> >> 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

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

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-12-19  3:05             ` Simon Glass
@ 2018-12-24 16:14               ` Vagrant Cascadian
  2018-12-27  1:00                 ` Kever Yang
  0 siblings, 1 reply; 9+ messages in thread
From: Vagrant Cascadian @ 2018-12-24 16:14 UTC (permalink / raw)
  To: u-boot

On 2018-12-18, Simon Glass wrote:
> 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
> =>

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>

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-12-24 16:14               ` Vagrant Cascadian
@ 2018-12-27  1:00                 ` Kever Yang
  2018-12-27 14:36                   ` Philipp Tomsich
  0 siblings, 1 reply; 9+ messages in thread
From: Kever Yang @ 2018-12-27  1:00 UTC (permalink / raw)
  To: u-boot

Hi Vagrant,

On 12/25/2018 12:14 AM, Vagrant Cascadian wrote:
> 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

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

* [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC
  2018-12-27  1:00                 ` Kever Yang
@ 2018-12-27 14:36                   ` Philipp Tomsich
  0 siblings, 0 replies; 9+ messages in thread
From: Philipp Tomsich @ 2018-12-27 14:36 UTC (permalink / raw)
  To: u-boot



> On 27.12.2018, at 02:00, Kever Yang <kever.yang@rock-chips.com> wrote:
> 
> Hi Vagrant,
> 
> On 12/25/2018 12:14 AM, Vagrant Cascadian wrote:
>> 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.

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

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

Thanks for taking that on…

Philipp.

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

end of thread, other threads:[~2018-12-27 14:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <87lgcov1qq.fsf@aikidev.net>
     [not found] ` <87in7suzho.fsf@aikidev.net>
2018-05-21 22:00   ` [U-Boot] u-boot-rockchip: firefly-rk3288 hangs on: Loading Environment from MMC Vagrant Cascadian
2018-06-05 18:57     ` Vagrant Cascadian
2018-08-14 21:00       ` Vagrant Cascadian
2018-08-14 21:12         ` Vagrant Cascadian
2018-08-14 22:12           ` Vagrant Cascadian
2018-12-19  3:05             ` Simon Glass
2018-12-24 16:14               ` Vagrant Cascadian
2018-12-27  1:00                 ` Kever Yang
2018-12-27 14:36                   ` Philipp Tomsich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.