Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Jul 2020 00:07:56 +0200
From:      =?utf-8?Q?S=C3=B8ren_Schmidt?= <soren.schmidt@gmail.com>
To:        William Carson <freebsd@dsllsn.net>
Cc:        freebsd-arm@freebsd.org
Subject:   Re: U-boot 2020.07 for rockpro64 broken ?
Message-ID:  <4628070F-CA76-40D6-ABF4-EFCBD396F7DE@gmail.com>
In-Reply-To: <1D4EC3CF-BFCC-436E-9EC3-A7758DA9E0DA@dsllsn.net>
References:  <8CB8BBEE-333C-457E-A214-455EA989A4F7@gmail.com> <1D4EC3CF-BFCC-436E-9EC3-A7758DA9E0DA@dsllsn.net>

next in thread | previous in thread | raw e-mail | index | archive | help

> On 30 Jul 2020, at 21.07, William Carson <freebsd@dsllsn.net> wrote:
>=20
>> On Jul 30, 2020, at 7:48 AM, S=C3=B8ren Schmidt =
<soren.schmidt@gmail.com> wrote:
>>=20
>> Hi
>>=20
>> I just tried upgrading to the latest u-boot 2020.07 and that makes my =
rockpro64 stop in its tracks:
>>=20
>> U-Boot TPL 2020.07 (Jul 30 2020 - 15:42:36)
>> Channel 0: LPDDR4, 50MHz
>> BW=3D32 Col=3D10 Bk=3D8 CS0 Row=3D16/15 CS=3D1 Die BW=3D16 =
Size=3D2048MB
>> Channel 1: LPDDR4, 50MHz
>> BW=3D32 Col=3D10 Bk=3D8 CS0 Row=3D16/15 CS=3D1 Die BW=3D16 =
Size=3D2048MB
>> 256B stride
>> 256B stride
>> lpddr4_set_rate: change freq to 400000000 mhz 0, 1
>> lpddr4_set_rate: change freq to 800000000 mhz 1, 0
>> Trying to boot from BOOTROM
>> Returning to boot ROM...
>>=20
>> U-Boot SPL 2020.07 (Jul 30 2020 - 15:42:36 +0200)
>> Trying to boot from MMC1
>>=20
>> Then nothing happens. The 2020.04 version work flawlessly, any ideas =
?
>=20
> Is it possible your RX line is connected? I run into this on my =
RockPro64
> all the time if I leave the serial connected.

Hi

Hmm, that=E2=80=99s not a problem for me, however recompiling u-boot =
locally seems to have solved that problem=E2=80=A6

But that just make it fail later during boot unfortunately:

Booting [/boot/kernel/kernel]...              =20
Using DTB provided by EFI at 0x80ea000.
EFI framebuffer information:
addr, size     0xf6000000, 0x7e9000
dimensions     1920 x 1080
stride         1920
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
---<<BOOT>>---
KDB: debugger backends: ddb
KDB: current backend: ddb
Copyright (c) 1992-2020 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	The Regents of the University of California. All rights =
reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 13.0-CURRENT #0 r279M: Thu Jul 30 20:03:01 CEST 2020
    =
sos@current.deepcore.dk:/home/sos/FreeBSD/embedded/aarch64-obj/home/sos/Fr=
eeBSD/current/arm64.aarch64/sys/GENERIC arm64
FreeBSD clang version 10.0.1 (git@github.com:llvm/llvm-project.git =
llvmorg-10.0.1-rc2-0-g77d76b71d7d)
WARNING: WITNESS option enabled, expect reduced performance.
VT(efifb): resolution 1920x1080
module firmware already present!
real memory  =3D 4158357504 (3965 MB)
avail memory =3D 4023341056 (3836 MB)
Starting CPU 1 (1)
Starting CPU 2 (2)
Starting CPU 3 (3)
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
arc4random: WARNING: initial seeding bypassed the cryptographic random =
device because it was not yet seeded and the knob =
'bypass_before_seeding' was enabled.
random: entropy device external interface
MAP f0f0e000 mode 2 pages 1
MAP f0f14000 mode 2 pages 2
MAP f3f30000 mode 2 pages 16
WARNING: Device "kbd" is Giant locked and may be deleted before FreeBSD =
13.0.
kbd0 at kbdmux0
WARNING: Device "openfirm" is Giant locked and may be deleted before =
FreeBSD 13.0.
ofwbus0: <Open Firmware Device Tree>
clk_fixed0: <Fixed clock> on ofwbus0
simplebus0: <Flattened device tree simple bus> on ofwbus0
rk_grf0: <RockChip General Register Files> mem 0xff320000-0xff320fff on =
ofwbus0
rk3399_pmucru0: <Rockchip RK3399 PMU Clock and Reset Unit> mem =
0xff750000-0xff750fff on ofwbus0
rk3399_cru0: <Rockchip RK3399 Clock and Reset Unit> mem =
0xff760000-0xff760fff on ofwbus0
rk_grf1: <RockChip General Register Files> mem 0xff770000-0xff77ffff on =
ofwbus0
Fatal data abort:
  x0:             2001
  x1: ffff00004038a000
  x2:         ff780000
  x3:                0
  x4:                0
  x5:                1
  x6:         ff7f8ffc
  x7: ffff000000010618
  x8: fffffd0000b73900
  x9:    ffff00004039a
 x10: ffff000000e45000
 x11: ffff000000e47000
 x12: ffff000000e47000
 x13: fffffd0000000000
 x14:   60000000000703
 x15:                0
 x16: ffff000000ac5000
 x17:   600000ff77f703
 x18: ffff0000000106b0
 x19: fffffd0000a25c00
 x20:                3
 x21: ffff00000001074c
 x22: fffffd0000a25c00
 x23:             2001
 x24: fffffd0000b73900
 x25:            10000
 x26: fffffd0000d1ac40
 x27:                2
 x28:         ff770000
 x29: ffff0000000106b0
  sp: ffff0000000106b0
  lr: ffff00000021007c
 elr: ffff00000046f188
spsr:         600001c5
 far:             2001
 esr:         96000005
panic: vm_fault failed: ffff00000046f188
cpuid =3D 0
time =3D 1
KDB: stack backtrace:
db_trace_self() at db_trace_self_wrapper+0x28
	 pc =3D 0xffff0000006f9628  lr =3D 0xffff00000010a4a0
	 sp =3D 0xffff0000000100e0  fp =3D 0xffff0000000102e0

db_trace_self_wrapper() at vpanic+0x194
	 pc =3D 0xffff00000010a4a0  lr =3D 0xffff00000041cd60
	 sp =3D 0xffff0000000102f0  fp =3D 0xffff000000010340

vpanic() at panic+0x44
	 pc =3D 0xffff00000041cd60  lr =3D 0xffff00000041cb08
	 sp =3D 0xffff000000010350  fp =3D 0xffff000000010400

panic() at data_abort+0x200
	 pc =3D 0xffff00000041cb08  lr =3D 0xffff000000719cb0
	 sp =3D 0xffff000000010410  fp =3D 0xffff000000010480

data_abort() at do_el1h_sync+0x144
	 pc =3D 0xffff000000719cb0  lr =3D 0xffff000000718ffc
	 sp =3D 0xffff000000010490  fp =3D 0xffff0000000104d0

do_el1h_sync() at handle_el1h_sync+0x78
	 pc =3D 0xffff000000718ffc  lr =3D 0xffff0000006fc078
	 sp =3D 0xffff0000000104e0  fp =3D 0xffff000000010620

handle_el1h_sync() at=20

And there it just stops=E2=80=A6 Stock GENERIC kernel, current as of a =
week ago or so=E2=80=A6

-S=C3=B8ren




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4628070F-CA76-40D6-ABF4-EFCBD396F7DE>