Monday, September 30, 2024

Re: OpenBSD nano r6s

You were totally right about the "seek" and "bs" parameters of the command dd.
I have noticed this problem but only after having written the message.

By the way I have found a much better solution to manipulate the disk image. I have installed
the image as the second disk of the qemu virtual machine running OpenBSD.

Now the result is in some sense better. I have nothing on the nano pi r6s. This is
better since the device does not bot anymore on the EMMC disk and boots probably on the SD card.
The display is certainly on a serial console but there is no serial console
on the nano pi r6s (in fact it seems to be only headers on mainboard and
one has to solder pins).

I have then try to boot OpenBSD on a radxa rock pi 5b. On this machine,
the serial console is available on the GPIO. The device boots but after a while
the connection is broken (even if the serial console and its speed was specified
before booting OpenBSD). After this text, you will see the log of the boot
obtained with the minicom program (the only one which is working).
With kermit or "cu", the boot is similar but it is not possible
to type character on keyboard.

Do you have any idea on how to solve this problem? My tests were
done with OpenBSD 7.5, I should do them again with OpenBSD 7.6.

Thank for your help,

Best regards

-----------------------------------------------------------boot log----------------------------------------
DDR V1.12 52218f4949 cym 23/07/06-19:46:50
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
Manufacturer ID:0xff
CH0 RX Vref:27.1%, TX Vref:21.8%,21.8%
CH1 RX Vref:27.5%, TX Vref:22.8%,22.8%
CH2 RX Vref:26.7%, TX Vref:22.8%,22.8%
CH3 RX Vref:27.5%, TX Vref:22.8%,22.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out

U-Boot SPL 2024.01-rc3 (Mar 16 2024 - 18:54:01 -0600)
Trying to boot from MMC2
## Checking hash(es) for config config-1 ... OK
## Checking hash(es) for Image atf-1 ... sha256+ OK
## Checking hash(es) for Image u-boot ... sha256+ OK
## Checking hash(es) for Image fdt-1 ... sha256+ OK
## Checking hash(es) for Image atf-2 ... sha256+ OK
## Checking hash(es) for Image atf-3 ... sha256+ OK
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-616-gdc1125f48:finley.xiao
NOTICE: BL31: Built : 16:41:17, Jul 13 2023
INFO: spec: 0x1
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9


U-Boot 2024.01-rc3 (Mar 16 2024 - 18:54:01 -0600)

Model: Radxa ROCK 5 Model B
DRAM: 16 GiB (effective 15.7 GiB)
Core: 352 devices, 30 uclasses, devicetree: separate
MMC: mmc@fe2c0000: 1, mmc@fe2d0000: 2, mmc@fe2e0000: 0
Loading Environment from nowhere... OK
In: serial@feb50000
Out: serial@feb50000
Err: serial@feb50000
Model: Radxa ROCK 5 Model B
Net: No ethernet found.
Hit any key to stop autoboot: 2  1  0
** Booting bootflow 'mmc@fe2c0000.bootdev.part_1' with efi
Card did not respond to voltage select! : -110
No EFI system partition
No EFI system partition
Failed to persist EFI variables
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
>> OpenBSD/arm64 BOOTAA64 1.18
|/-\|/boot> z set tty com0
switching console to com0
>> OpenBSD/arm64 BOOTAA64 1.18
boot> sttyþ{oDDR V1.12 52218f4949 cym 23/07/06-19:46:50
LPDDR4X, 2112MHz
channel[0] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[1] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[2] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
channel[3] BW=16 Col=10 Bk=8 CS0 Row=17 CS1 Row=17 CS=2 Die BW=16 Size=4096MB
Manufacturer ID:0xff
CH0 RX Vref:27.1%, TX Vref:22.8%,22.8%
CH1 RX Vref:27.9%, TX Vref:22.8%,22.8%
CH2 RX Vref:26.7%, TX Vref:22.8%,22.8%
CH3 RX Vref:27.1%, TX Vref:22.8%,22.8%
change to F1: 528MHz
change to F2: 1068MHz
change to F3: 1560MHz
change to F0: 2112MHz
out

U-Boot SPL 2024.01-rc3 (Mar 16 2024 - 18:54:01 -0600)
Trying to boot from MMC2
## Checking hash(es) for config config-1 ... OK
## Checking hash(es) for Image atf-1 ... sha256+ OK
## Checking hash(es) for Image u-boot ... sha256+ OK
## Checking hash(es) for Image fdt-1 ... sha256+ OK
## Checking hash(es) for Image atf-2 ... sha256+ OK
## Checking hash(es) for Image atf-3 ... sha256+ OK
INFO: Preloader serial: 2
NOTICE: BL31: v2.3():v2.3-616-gdc1125f48:finley.xiao
NOTICE: BL31: Built : 16:41:17, Jul 13 2023
INFO: spec: 0x1
INFO: ext 32k is not valid
INFO: ddr: stride-en 4CH
INFO: GICv3 without legacy support detected.
INFO: ARM GICv3 driver initialized in EL3
INFO: valid_cpu_msk=0xff bcore0_rst = 0x0, bcore1_rst = 0x0
INFO: system boots from cpu-hwid-0
INFO: idle_st=0x21fff, pd_st=0x11fff9, repair_st=0xfff70001
INFO: dfs DDR fsp_params[0].freq_mhz= 2112MHz
INFO: dfs DDR fsp_params[1].freq_mhz= 528MHz
INFO: dfs DDR fsp_params[2].freq_mhz= 1068MHz
INFO: dfs DDR fsp_params[3].freq_mhz= 1560MHz
INFO: BL31: Initialising Exception Handling Framework
INFO: BL31: Initializing runtime services
WARNING: No OPTEE provided by BL2 boot loader, Booting device without OPTEE initialization. SMC`s destined for OPTEE will return SMC_UNK
ERROR: Error initializing runtime service opteed_fast
INFO: BL31: Preparing for EL3 exit to normal world
INFO: Entry point address = 0xa00000
INFO: SPSR = 0x3c9


U-Boot 2024.01-rc3 (Mar 16 2024 - 18:54:01 -0600)

Model: Radxa ROCK 5 Model B
DRAM: 16 GiB (effective 15.7 GiB)
Core: 352 devices, 30 uclasses, devicetree: separate
MMC: mmc@fe2c0000: 1, mmc@fe2d0000: 2, mmc@fe2e0000: 0
Loading Environment from nowhere... OK
In: serial@feb50000
Out: serial@feb50000
Err: serial@feb50000
Model: Radxa ROCK 5 Model B
Net: No ethernet found.
Hit any key to stop autoboot: 2  1  0
=> j s boot
** Booting bootflow 'mmc@fe2c0000.bootdev.part_1' with efi
Card did not respond to voltage select! : -110
No EFI system partition
No EFI system partition
Failed to persist EFI variables
Booting /efi\boot\bootaa64.efi
disks: sd0* sd1
>> OpenBSD/arm64 BOOTAA64 1.18
|/-\|/boot> aaa   set tty com0
switching console to com0
>> OpenBSD/arm64 BOOTAA64 1.18
boot> stty com0 115200
boot> boot
-\|cannot open sd0a:/etc/random.seed: No such file or directory
booting sd0a:/bsd: /-\|/3023768-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\+1214656|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+12712936\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-+633232\ [269381|/-\|/-\|/-\|/-\|/+91+701664-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|/-\|+287051/-\|/-\|/-\|/-\|/]=0x13edb50
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2024 OpenBSD. All rights reserved. https://www.OpenBSD.org

OpenBSD 7.5 (RAMDISK) #124: Wed Mar 20 20:05:58 MDT 2024
deraadt@arm64.openbsd.org:/usr/src/sys/arch/arm64/compile/RAMDISK
real mem = 16901488640 (16118MB)
avail mem = 16294461440 (15539MB)
random: boothowto does not indicate good seed
mainbus0 at root: Radxa ROCK 5 Model B
psci0 at mainbus0: PSCI 1.1, SMCCC 1.2, SYSTEM_SUSPEND
efi0 at mainbus0: UEFI 2.10
efi0: Das U-Boot rev 0x20240100
smbios0 at efi0: SMBIOS 3.0
smbios0: vendor U-Boot version "2024.01-rc3" date 01/01/2024
smbios0: Unknown Unknown Product
cpu0 at mainbus0 mpidr 0: ARM Cortex-A55 r2p0
cpu0: 32KB 64b/line 4-way L1 VIPT I-cache, 32KB 64b/line 4-way L1 D-cache
cpu0: 128KB 64b/line 4-way L2 cache
cpu0: 4096KB 64b/line 16-way L3 cache
cpu0: DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL,LRCPC,DPB,ASID16,PAN+ATS1E1,LO,HPDS,VH,HAFDBS,SBSS
"optee" at mainbus0 not configured
scmi0 at mainbus0: SCMI 2.0
"gap2" at mainbus0 not configured
"gap1" at mainbus0 not configured
syscon0 at mainbus0: "syscon"
syscon1 at mainbus0: "syscon"
syscon2 at mainbus0: "syscon"
rkclock0 at mainbus0
CRU_GATE_CON20: 0x0000aa05
CRU_GATE_CON21: 0x000000a0
CRU_GATE_CON22: 0x00000263
CRU_GATE_CON23: 0x0000aa05
CRU_GATE_CON24: 0x000000a0
CRU_GATE_CON25: 0x00000263
syscon3 at mainbus0: "power-management"
"power-controller" at syscon3 not configured
syscon4 at mainbus0: "qos"
syscon5 at mainbus0: "qos"
syscon6 at mainbus0: "qos"
syscon7 at mainbus0: "qos"
syscon8 at mainbus0: "qos"
syscon9 at mainbus0: "qos"
syscon10 at mainbus0: "qos"
syscon11 at mainbus0: "qos"
syscon12 at mainbus0: "qos"
syscon13 at mainbus0: "qos"
syscon14 at mainbus0: "qos"
syscon15 at mainbus0: "qos"
syscon16 at mainbus0: "qos"
syscon17 at mainbus0: "qos"
syscon18 at mainbus0: "qos"
syscon19 at mainbus0: "qos"
syscon20 at mainbus0: "qos"
syscon21 at mainbus0: "qos"
syscon22 at mainbus0: "qos"
syscon23 at mainbus0: "qos"
syscon24 at mainbus0: "qos"
syscon25 at mainbus0: "qos"
syscon26 at mainbus0: "qos"
syscon27 at mainbus0: "qos"
syscon28 at mainbus0: "qos"
syscon29 at mainbus0: "qos"
syscon30 at mainbus0: "qos"
syscon31 at mainbus0: "qos"
syscon32 at mainbus0: "qos"
syscon33 at mainbus0: "qos"
syscon34 at mainbus0: "qos"
syscon35 at mainbus0: "qos"
syscon36 at mainbus0: "qos"
syscon37 at mainbus0: "qos"
syscon38 at mainbus0: "qos"
syscon39 at mainbus0: "qos"
syscon40 at mainbus0: "qos"
syscon41 at mainbus0: "qos"
syscon42 at mainbus0: "qos"
syscon43 at mainbus0: "qos"
syscon44 at mainbus0: "qos"
syscon45 at mainbus0: "qos"
syscon46 at mainbus0: "qos"
syscon47 at mainbus0: "qos"
syscon48 at mainbus0: "qos"
syscon49 at mainbus0: "qos"
syscon50 at mainbus0: "qos"
syscon51 at mainbus0: "qos"
agintc0 at mainbus0 mbi shift 4:4 nirq 512 nredist 8: "interrupt-controller"
agintcmsi0 at agintc0
agintcmsi1 at agintc0
rkpinctrl0 at mainbus0: "pinctrl"
rkgpio0 at rkpinctrl0
rkgpio1 at rkpinctrl0
rkgpio2 at rkpinctrl0
rkgpio3 at rkpinctrl0
rkgpio4 at rkpinctrl0
"firmware" at mainbus0 not configured
"pmu-a55" at mainbus0 not configured
"pmu-a76" at mainbus0 not configured
"clock-0" at mainbus0 not configured
agtimer0 at mainbus0: 24000 kHz
"clock-1" at mainbus0 not configured
"clock-2" at mainbus0 not configured
"sram" at mainbus0 not configured
"sram" at mainbus0 not configured
rkiic0 at mainbus0
iic0 at rkiic0
"rockchip,rk8602" at iic0 addr 0x42 not configured
"rockchip,rk8603" at iic0 addr 0x43 not configured
rkpwm0 at mainbus0
dwmmc0 at mainbus0: 49 MHz base clock
sdmmc0 at dwmmc0: 4-bit, sd high-speed, mmc high-speed, dma
"mmc" at mainbus0 not configured
"i2s" at mainbus0 not configured
"dma-controller" at mainbus0 not configured
"dma-controller" at mainbus0 not configured
"timer" at mainbus0 not configured
"watchdog" at mainbus0 not configured
rkspi0 at mainbus0
rkpmic0 at rkspi0: RK806
com0 at mainbus0: dw16550, 64 byte fifo
com0: console
"adc" at mainbus0 not configured
rkiic1 at mainbus0
iic1 at rkiic1
pcxrtc0 at iic1 addr 0x51: battery ok
rkiic2 at mainbus0
iic2 at rkiic2
"everest,es8316" at iic2 addr 0x11 not configured
"efuse" at mainbus0 not configured
"dma-controller" at mainbus0 not configured
"sram" at mainbus0 not configured
pwmfan0 at mainbus0
"sound" at mainbus0 not configured
"vcc5v0-sys-regulator" at mainbus0 not configured
"vcc-1v1-nldo-s3-regulator" at mainbus0 not configured
scsibus0 at sdmmc0: 2 targets, initiator 0
sd0 at scsibus0 targ 1 lun 0: <Sandisk, SL16G, 0030> removable
sd0: 14804MB, 512 bytes/sector, 30318592 sectors
softraid0 at root
scsibus1 at softraid0: 256 targets
root on rd0a swap on rd0b dump on rd0b
WARNING: bad clock chip time
WARNING: CHECK AND RESET THE DATE!
ŠŠ3ÞÿÚKXø\]‚òŠÿáøáøáøáøáøáøáøáøáøáøáøáøáøáøáøá
---------------------------------------------------End of boot log--------------------------------------------------------
On Sat, 28 Sep 2024 09:07:13 -0000 (UTC)
Stuart Henderson <stu.lists@spacehopper.org> wrote:

> On 2024-09-27, Pierre Dupond <76nemo76@gmx.ch> wrote:
> > Thanks for your reply. Unfortunately, this don't seem to work since
> > the nano pi r6s device does not recognise the sd card as
> > a bootable device.
> >
> > I have used the two following commands (on a linux machine,
> > since the openbsd OS is installed in a virtual machine where the access
> > to the sd card are not very convenient).
> >
> > dd if=install75.img of=/dev/sdd bs=8M status=progress oflag=sync
> > dd if=u-boot-rockchip.bin of=/dev/sdd seek=64 bs=4096 status=progress
> >
> > The documentation mentions "seek=64" but only for the soc "rockchip 356x" and not
> > the Rockchip "RK3588" (used in nanopi r6s).
>
> Not sure where you got bs=4096 from. "seek" is specified in blocks.
> Is it any better if you try the default (512)?.
>
>
> --
> Please keep replies on the mailing list.
>

No comments:

Post a Comment