Quoting Miguel Landaeta <miguel@miguel.cc>:
> On 2023-07-27 12:40:26, developer at robert-palm.de wrote:
>>
>> [...]
>>
>> Do I need to map these, too to make it work ?
>>
>> jh7110-visionfive-v2-ac108.dtb
>> jh7110-visionfive-v2-wm8960.dtb
>> vf2-overlay-uart3-i2c.dtbo
>>
>> Which adresses?
>>
>
> Can you try with the attached dtb file and copy it to your
> boot SD card?
>
> Then interrupt u-boot and run the following commands:
>
> load mmc 1:1 ${fdt_addr_r} jh7110-starfive-visionfive-2-v1.3b.dtb
> load mmc 1:1 ${kernel_addr_r} efi/boot/bootriscv64.efi
> bootefi ${kernel_addr_r} ${fdt_addr_r}
>
> With this setup I have been able to boot my board reliably
> from the SD card, install OpenBSD to eMMC and also have
> support for NVMe device, although I had to report a related
> bug recently, see:
>
> https://marc.info/?l=openbsd-bugs&m=168936689026538&w=2
>
> There are so many dtb versions for that board floating around
> but once more device support changes are merged into mainline
> Linux, the dtb package should include a suitable dtb that everyone
> can use.
>
> --
> Miguel Landaeta, miguel at miguel.cc
> secure email with PGP 0x6E608B637D8967E9 available at
> http://keyserver.pgp.com/
> "Faith means not wanting to know what is true." -- Nietzsche
edk2 (https://github.com/starfive-tech/edk2/releases)
seems to work "better".
I can boot directly from nvme, but still some issue. Any idea ?
UEFI Interactive Shell v2.287477C2-69C7-11D2-8E39-00A0C969723B 7E9D73A0
EDK IIlProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA 7E9D2F98
UEFI v2.70 (EDK II, 0x00010000)008-7F9B-4F30-87AC-60C9FEF5DA4E 7E537350
Mapping table
FS0: Alias(s):HD0b:;BLK1:
PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,65-53-58-48-4A-44-1B-00)/HD(1,GPT,26AFAA1B-BF0E-45E5-A5CA-063361127204,0x40,0x8000)
BLK3: Alias(s):
VenHw(B549F005-4BD4-4020-A0CB-06F42BDA68C3)
BLK4: Alias(s):
VenHw(B549F005-4BD4-4020-A0CB-06F5478A68C3)
BLK0: Alias(s):
PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,65-53-58-48-4A-44-1B-00)
BLK2: Alias(s):
PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,65-53-58-48-4A-44-1B-00)/HD(2,GPT,30351F35-13AC-4B66-9B05-75BDA4DF0D75,0x8040,0x3A37DFCF)
Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
FatDiskIo: Cache Page OutBound occurred!
FSOpen: Open '\efi\boot\startup.nsh' Success
FSOpen: Open '\efi\boot\startup.nsh' Success
FSOpen: Open '\efi\boot\startup.nsh' Success
Shell> bootriscv64.efi
FSOpen: Open '\efi\boot\bootriscv64.efi' Success
FSOpen: Open '\efi\boot\bootriscv64.efi' Success
FSOpen: Open '\efi\boot\bootriscv64.efi' Success
FSOpen: Open '\efi\boot\bootriscv64.efi' Success
[Security] 3rd party image[0] can be loaded after EndOfDxe:
PcieRoot(0x0)/Pci(0x0,0x0)/Pci(0x0,0x0)/NVMe(0x1,65-53-58-48-4A-44-1B-00)/HD(1,GPT,26AFAA1B-BF0E-45E5.
InstallProtocolInterface: 5B1B31A1-9562-11D2-8E3F-00A0C969723B 7E973040
InvalidateInstructionCacheRange:RISC-V unsupported function.
Loading driver at 0x0007E63B000 EntryPoint=0x0007E63B148
InstallProtocolInterface: BC62157E-3E33-4FEC-9920-2D3B36D750DF 7E973E98
ProtectUefiImageCommon - 0x7E973040
- 0x000000007E63B000 - 0x000000000002534C
InstallProtocolInterface: 752F3136-4E16-4FDC-A22A-E5F46812F4CA 7FA0A6D8
InvalidateDataCacheRange:RISC-V unsupported function.
WriteBackDataCacheRange:RISC-V unsupported function.
Failed to read data, mDwEmmcCommand:A0002351, mDwEmmcArgument:0,
Status:Device Error
MmcIoBlocks(): Failed to transfer block and Status:Device Error
InvalidateDataCacheRange:RISC-V unsupported function.
WriteBackDataCacheRange:RISC-V unsupported function.
Failed to read data, mDwEmmcCommand:A0002351, mDwEmmcArgument:0,
Status:Device Error
MmcIoBlocks(): Failed to transfer block and Status:Device Error
disks: sd0* sd1 sd2
>> OpenBSD/riscv64 BOOTRISCV64 1.5
boot>
NOTE: random seed is being reused.
booting sd0a:/bsd: 5601376+1362192+210512+711520
[366157+122+508008+363122]=0xa0f720
TimerDriverSetTimerPeriod(0x0)
PROGRESS CODE: V03101019 I0
SetUefiImageMemoryAttributes - 0x000000007F9AC000 - 0x000000000000A000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007F9A3000 - 0x0000000000009000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007F999000 - 0x000000000000A000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007F991000 - 0x0000000000008000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007F98A000 - 0x0000000000007000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007E8B6000 - 0x000000000001A000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007E89E000 - 0x0000000000007000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007E897000 - 0x0000000000007000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007E890000 - 0x0000000000007000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007E88A000 - 0x0000000000006000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
SetUefiImageMemoryAttributes - 0x000000007E882000 - 0x0000000000006000
(0x0000000000000000)
CpuSetMemoryAttributes: Set memory attributes not supported yet
bootargs:
all mapped
type 0x4 pa 0x41000000 va 0x0 pages 0x20 attr 0xf
type 0x7 pa 0x41020000 va 0x0 pages 0x1e0 attr 0xf
type 0x2 pa 0x41200000 va 0x0 pages 0x4000 attr 0xf
type 0x7 pa 0x45200000 va 0x0 pages 0x3917a attr 0xf
type 0x2 pa 0x7e37a000 va 0x0 pages 0x100 attr 0xf
type 0x1 pa 0x7e47a000 va 0x0 pages 0x124 attr 0xf
type 0x7 pa 0x7e59e000 va 0x0 pages 0x8e attr 0xf
type 0x2 pa 0x7e62c000 va 0x0 pages 0xf attr 0xf
type 0x1 pa 0x7e63b000 va 0x0 pages 0x26 attr 0xf
type 0x6 pa 0x7e661000 va 0x0 pages 0x67 attr 0x800000000000000f
type 0x3 pa 0x7e6c8000 va 0x0 pages 0x1b8 attr 0xf
type 0x6 pa 0x7e880000 va 0x0 pages 0x2 attr 0x800000000000000f
type 0x5 pa 0x7e882000 va 0x0 pages 0x6 attr 0x800000000000000f
type 0x6 pa 0x7e888000 va 0x0 pages 0x2 attr 0x800000000000000f
type 0x5 pa 0x7e88a000 va 0x0 pages 0x1b attr 0x800000000000000f
type 0x6 pa 0x7e8a5000 va 0x0 pages 0x11 attr 0x800000000000000f
type 0x5 pa 0x7e8b6000 va 0x0 pages 0x1a attr 0x800000000000000f
type 0x6 pa 0x7e8d0000 va 0x0 pages 0x36 attr 0x800000000000000f
type 0x7 pa 0x7e906000 va 0x0 pages 0x4f attr 0xf
type 0x4 pa 0x7e955000 va 0x0 pages 0xeb1 attr 0xf
type 0x7 pa 0x7f806000 va 0x0 pages 0x3 attr 0xf
type 0x3 pa 0x7f809000 va 0x0 pages 0x17d attr 0xf
type 0x5 pa 0x7f986000 va 0x0 pages 0x30 attr 0x800000000000000f
type 0x6 pa 0x7f9b6000 va 0x0 pages 0x24 attr 0x800000000000000f
type 0x7 pa 0x7f9da000 va 0x0 pages 0x10 attr 0xf
type 0x4 pa 0x7f9ea000 va 0x0 pages 0x21 attr 0xf
type 0x3 pa 0x7fa0b000 va 0x0 pages 0x3e attr 0xf
type 0x4 pa 0x7fa49000 va 0x0 pages 0x571 attr 0xf
type 0x3 pa 0x7ffba000 va 0x0 pages 0xe attr 0xf
type 0x4 pa 0x7ffc8000 va 0x0 pages 0xd attr 0xf
type 0x3 pa 0x7ffd5000 va 0x0 pages 0x2b attr 0xf
[ using 1238384 bytes of bsd ELF symbol table ]
Copyright (c) 1982, 1986, 1989, 1991, 1993
The Regents of the University of California. All rights reserved.
Copyright (c) 1995-2023 OpenBSD. All rights reserved. https://www.OpenBSD.org
OpenBSD 7.3-current (GENERIC.MP) #386: Wed Jul 26 03:45:58 MDT 2023
deraadt@riscv64.openbsd.org:/usr/src/sys/arch/riscv64/compile/GENERIC.MP
real mem = 4294967296 (4096MB)
avail mem = 992550912 (946MB)
SBI: OpenSBI v0.9, SBI Specification Version 0.3
random: boothowto does not indicate good seed
mainbus0 at root: StarFive VisionFive V2
cpu0 at mainbus0: SiFive U7 imp 4210427 rv64imafdc
intc0 at cpu0
cpu0: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu0: 2048KB 64b/line 2048-way L2 cache
cpu1 at mainbus0Edk2OpensbiPlatformEarlyInit: Entry
Edk2OpensbiPlatformIrqchipInit: Entry
Edk2OpensbiPlatformIpiInit: Entry
Edk2OpensbiPlatformTimerInit: Entry
Edk2OpensbiPlatformFinalInit: Entry
: SiFive U7 imp 4210427 rv64imafdc
cpu1: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu1: 2048KB 64b/line 2048-way L2 cache
cpu2 at mainbus0Edk2OpensbiPlatformEarlyInit: Entry
Edk2OpensbiPlatformIrqchipInit: Entry
Edk2OpensbiPlatformIpiInit: Entry
Edk2OpensbiPlatformTimerInit: Entry
Edk2OpensbiPlatformFinalInit: Entry
: SiFive U7 imp 4210427 rv64imafdc
cpu2: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu2: 2048KB 64b/line 2048-way L2 cache
cpu3 at mainbus0Edk2OpensbiPlatformEarlyInit: Entry
Edk2OpensbiPlatformIrqchipInit: Entry
Edk2OpensbiPlatformIpiInit: Entry
Edk2OpensbiPlatformTimerInit: Entry
Edk2OpensbiPlatformFinalInit: Entry
: SiFive U7 imp 4210427 rv64imafdc
cpu3: 32KB 64b/line 64-way L1 I-cache, 32KB 64b/line 64-way L1 D-cache
cpu3: 2048KB 64b/line 2048-way L2 cache
"osc" at mainbus0 not configured
"clk-ext-camera" at mainbus0 not configured
"gmac1_rmii_refin" at mainbus0 not configured
"gmac1_rgmii_rxin" at mainbus0 not configured
"i2stx_bclk_ext" at mainbus0 not configured
"i2stx_lrck_ext" at mainbus0 not configured
"i2srx_bclk_ext" at mainbus0 not configured
"i2srx_lrck_ext" at mainbus0 not configured
"tdm_ext" at mainbus0 not configured
"mclk_ext" at mainbus0 not configured
"jtag_tck_inner" at mainbus0 not configured
"bist_apb" at mainbus0 not configured
"gmac0_rmii_refin" at mainbus0 not configured
"gmac0_rgmii_rxin" at mainbus0 not configured
"clk_rtc" at mainbus0 not configured
"hdmitx0_pixelclk" at mainbus0 not configured
"mipitx_dphy_rxesc" at mainbus0 not configured
"mipitx_dphy_txbytehs" at mainbus0 not configured
"wm8960_mclk" at mainbus0 not configured
"ac108_mclk" at mainbus0 not configured
"opp-table-0" at mainbus0 not configured
simplebus0 at mainbus0: "soc"
syscon0 at simplebus0: "aon_syscon"
syscon1 at simplebus0: "stg_syscon"
syscon2 at simplebus0: "sys_syscon"
plic0 at simplebus0
stfpinctrl0 at simplebus0
syscon3 at simplebus0: "dssctrl"
"cache-controller" at simplebus0 not configured
"multi-phyctrl" at simplebus0 not configured
"pcie1-phyctrl" at simplebus0 not configured
"clint" at simplebus0 not configured
"clock-controller" at simplebus0 not configured
"clock-controller" at simplebus0 not configured
"clock-controller" at simplebus0 not configured
"spi" at simplebus0 not configured
"otp" at simplebus0 not configured
"usbdrd" at simplebus0 not configured
"timer" at simplebus0 not configured
"wdog" at simplebus0 not configured
"rtc" at simplebus0 not configured
"power-controller" at simplebus0 not configured
com0 at simplebus0: dw16550
com0: console
"dma-controller" at simplebus0 not configured
"gpio" at simplebus0 not configured
stftemp0 at simplebus0
"trng" at simplebus0 not configured
"sec_dma" at simplebus0 not configured
"crypto" at simplebus0 not configured
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
"i2c" at simplebus0 not configured
"sdio0" at simplebus0 not configured
"sdio1" at simplebus0 not configured
"vin_sysctl" at simplebus0 not configured
"jpu" at simplebus0 not configured
"vpu_dec" at simplebus0 not configured
"vpu_enc" at simplebus0 not configured
"reset-controller" at simplebus0 not configured
"ethernet" at simplebus0 not configured
"ethernet" at simplebus0 not configured
"gpu" at simplebus0 not configured
"pwmdac" at simplebus0 not configured
"pdm" at simplebus0 not configured
"i2stx_4ch0" at simplebus0 not configured
"pwm" at simplebus0 not configured
"pwmdac-transmitter" at simplebus0 not configured
"spi" at simplebus0 not configured
stfpcie0 at simplebus0
stfpcie1 at simplebus0
"mailbox" at simplebus0 not configured
"mailbox_client" at simplebus0 not configured
"display-subsystem" at simplebus0 not configured
"dc8200" at simplebus0 not configured
"dsi-output" at simplebus0 not configured
"mipi-dphy" at simplebus0 not configured
"mipi" at simplebus0 not configured
"hdmi" at simplebus0 not configured
"snd-card0" at simplebus0 not configured
"snd-card1" at simplebus0 not configured
"snd-card2" at simplebus0 not configured
"snd-card3" at simplebus0 not configured
"snd-card4" at simplebus0 not configured
"snd-card5" at simplebus0 not configured
"snd-card6" at simplebus0 not configured
"e24" at simplebus0 not configured
"xrp" at simplebus0 not configured
"starfive,jh7110-cpufreq" at simplebus0 not configured
"leds" at mainbus0 not configured
gpiorestart0 at mainbus0
vscsi0 at root
scsibus0 at vscsi0: 256 targets
softraid0 at root
scsibus1 at softraid0: 256 targets
root device:
No comments:
Post a Comment