Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Nov 2020 12:44:26 +0100
From:      Henri Hennebert <hlh@restart.be>
To:        Milan Obuch <freebsd-arm@dino.sk>, freebsd-arm@freebsd.org
Subject:   Re: FreeBSD/RockPro64 experience
Message-ID:  <41a6844e-1da3-c906-3775-045fb93a61bd@restart.be>
In-Reply-To: <20201107115722.38effe4e@zeta.dino.sk>
References:  <20201107115722.38effe4e@zeta.dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 11/7/20 11:57 AM, Milan Obuch wrote:
> Hi,
> 
> today I had an opportunity to check $subject configuration for a while.
> I downloaded from ftp.freebsd.org file I put on uSD card -
> FreeBSD-13.0-CURRENT-arm64-aarch64-ROCKPRO64-20201029-b9403d7aae8.img
> 
> Using serial console, I was able to see the whole boot process, just
> one small observation - at the beginning, there is short notice from
> BL31:
> 
> NOTICE:  BL31: v2.3():
> NOTICE:  BL31: Built : 06:52:32, Oct 29 2020
> 
> which is sent over wire at 115200 bps (or 115.2 kpbs if you prefer),
> then speed is switched to 1500000 bps (or 1.5 Mbps, put the other way).

To solve this I add this file in /usr/ports/sysutils/u-boot-master/files

cat patch-configs_rockpro64-rk3399_defconfig
--- configs/rockpro64-rk3399_defconfig	2020-04-13 17:02:18.000000000 +0200
+++ configs/rockpro64-rk3399_defconfig.orig	2020-04-27 15:39:12.866611000 +0200
@@ -52,7 +52,7 @@
  CONFIG_PWM_ROCKCHIP=y
  CONFIG_RAM_RK3399_LPDDR4=y
  CONFIG_DM_RESET=y
-CONFIG_BAUDRATE=1500000
+CONFIG_BAUDRATE=115200
  CONFIG_DEBUG_UART_SHIFT=2
  CONFIG_ROCKCHIP_SPI=y
  CONFIG_SYSRESET=y

And rebuild /usr/ports/sysutils/u-boot-rockpro64

Henri

> 
> First lines:
> 
> U-Boot TPL 2020.07 (Oct 29 2020 - 06:56:20)
> Channel 0: LPDDR4, 50MHz
> BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
> Channel 1: LPDDR4, 50MHz
> BW=32 Col=10 Bk=8 CS0 Row=16/15 CS=1 Die BW=16 Size=2048MB
> 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...
> 
> It looks to me this BL31 notice is put there only on power up, but I
> still think it would be better if speed is not switched. Other than
> that, this board looks working quite well out of the box, just suitable
> uSD card needs to be put in.
> 
> Regards,
> Milan
> _______________________________________________
> freebsd-arm@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"
> 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41a6844e-1da3-c906-3775-045fb93a61bd>