Bingo ! After flashing the chip with the provided debian.img
using upgrade_tool, I have managed to boot from SD by deleting
/dev/mmclblk1p4 from within the embedded operating system.

I got my hint from the armbian forums :
https://forum.armbian.com/topic/15964-firfly-rk3399-have-not-been-booting-up-reasent-images-from-armbian/#comment-112943

Now the chip will automatically boot from the SD card.
But I won't get past the very early sequence of booting openbsd.

Here is the console output https://pastebin.com/5gsrd5Jz
and after having created the SD card anew https://pastebin.com/awKDqgmc
(seemingly no difference)

I get this error :

WARNING: Invalid device tree, expect boot to fail

(line 150+ or so in the pasted outputs)

Whence may it be coming from ? It's quite surprising given that
the same command sequence (copying the rk3399-firefly.dtb, etc)
allowed me to install openbsd on the very same chip a few years ago.

Le 2024-02-18 13:13, Mark Kettenis a écrit :
Date: Sun, 18 Feb 2024 12:45:21 +0100
From: Sylvain Saboua <sylvain.sab...@free.fr>

Hi Sylvain,

It seems I was right to purchase a shorter micro-USB cable.
Now the output of `cu -s 1500000 -l /dev/cuaU0' displays correctly.

I am still unable to boot from the micro-SD card.
I had succeeded once when the emmc was partially damaged,
even installing openbsd on it alas at the time support was minimal.

I created my micro-SD card in the most canonical way:
https://pastebin.com/9C3cgr6N

These days:

# dd if=miniroot74.img of=/dev/rsd2c bs=1m
...
# dd if=/usr/local/share/u-boot/firefly-rk3399/u-boot-rockchip.bin of=/dev/rsd2c seek=64

should be enough to get a bootable micro-SD card.  Also note that the
U-Boot from OpenBSD ports/packages uses the more standard 115200
baudrate.  However...

And here is the result/output when trying to boot the chip:
With empty SD card slot: https://pastebin.com/kYNusksB
With SD card inserted: https://pastebin.com/cfesASbm

Unfortunately the RK3399 SoC attempts to boot from eMMC before even
looking at the micro-SD card.  And there is no way to disable the eMMC
on the firefly-rk3399 board.  So the only way to install OpenBSD on
these boards is to erase whatever is stored on the eMMC.  This can be
done from Linux, but I can't remember the commands I used for that.

Is there no way to boot from an SD card without using tools
available only on either Windows or Linux ?

Reference links :
ARM SoC official documentation
- https://wiki.t-firefly.com/en/Firefly-RK3399/
OpenBSD official arm64 documentation / installation notes
- https://www.openbsd.org/arm64.html
- https://ftp.openbsd.org/pub/OpenBSD/7.4/arm64/INSTALL.arm64

--
Sylvain Saboua
www.saboua.xyz



--
Sylvain Saboua
www.saboua.xyz

Reply via email to