Rockpro64 not stable... crashes now and then.
#12
These "SError Interrupt" problems seem to be caused by the rockchip binary firmware. There is some discussion here: https://www.spinics.net/lists/arm-kernel/msg759563.html
It seems to use some memory that linux is unaware of. In that thread it says it's in the range 0x8400000-0x9600000. I tried reserving that range in the dtb, but that made me get a guaranteed "SError Interrupt" during boot. I tried reserving twice as much, and that seemed to fix it.
FWIW, here's the device tree node I used:
Code:
       reserved-memory {
               #address-cells = <2>;
               #size-cells = <2>;
               ranges;

               tee@0x8400000 {
                       reg = <0x0 0x8400000 0x0 0x2400000>;
                       no-map;
               };
       };

However, I'm not sure that's actually enough, nor if that's the only RAM the firmware needs to be reserved.
A better solution, which I'm now using, is to use the latest u-boot which can boot the rockpro64 without any blobs from rockchip. You need to have an arm-none-eabi-gcc and aarch64-linux-gnu-gcc compiler installed, then run the following commands:
Code:
git clone https://github.com/ARM-software/arm-trusted-firmware.git atf
make -C atf CROSS_COMPILE=aarch64-linux-gnu- PLAT=rk3399 bl31
git clone https://gitlab.denx.de/u-boot/u-boot.git u-boot
cd u-boot/
git checkout v2020.01-rc5
make rockpro64-rk3399_defconfig
BL31=../atf/build/rk3399/release/bl31/bl31.elf make ARCH=arm CROSS_COMPILE=aarch64-linux-gnu-

Which gives you idbloader.img and u-boot.itb. Copy them to the rockpro64, and run the following: (Or put your SD card into your PC)
Code:
sudo dd if=idbloader.img of=/dev/mmcblk0 seek=64
sudo dd if=u-boot.itb of=/dev/mmcblk0 seek=16384
sync
Hopefully your rockpro64 still boots at this point. If so, the SError panics should be gone.
  Reply


Messages In This Thread
RE: Rockpro64 not stable... crashes now and then. - by patstew - 01-04-2020, 08:37 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  irradium (based on crux linux) RockPro64 riscv64, aarch64 mara 7 1,877 11-20-2024, 03:53 PM
Last Post: mara
  New OS for RockPro64 is here, TwisterOS Armbian jtremblant 92 106,002 08-17-2024, 02:32 PM
Last Post: taltamir
  OpenEuler OS on RockPro64 Yuriy Gavrilov 0 289 06-15-2024, 09:38 AM
Last Post: Yuriy Gavrilov
  yocto for RockPro64 Fide 1 1,114 01-16-2024, 10:01 AM
Last Post: Fide
  Installing Ubuntu Server on RockPro64 deutschlmao 2 3,475 10-29-2023, 04:43 PM
Last Post: brotherj4mes
  Vanilla mainline Debian 11 (Bullseye) on the RockPro64 Pete Tandy 22 21,326 08-16-2023, 01:34 AM
Last Post: varac
  slarm64 (unofficial slackware) ROCKPro64 RK3399 (aarch64) mara 54 92,894 08-11-2023, 11:13 AM
Last Post: mara
  How to enable CoreSight ETM trace on RockPro64 shpark 0 864 05-21-2023, 11:34 PM
Last Post: shpark
  Rockpro64 Dead on arrival? quixoticgeek 1 1,370 03-12-2023, 06:55 PM
Last Post: quixoticgeek
  RockPro64 boot questions misterc 3 2,329 01-13-2023, 06:21 PM
Last Post: misterc

Forum Jump:


Users browsing this thread: 1 Guest(s)