Port-RISCV archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: VisionFive 2 USB support
On 04/02/2025 15:43, Florian Kanngießer wrote:
Hi Nick,So I've started off the generic image linked on the qemu page for riscv, it booted on the VisionFive, extended the file system and then I ran a sysinst like I would on any x86 installation (adjusted the rc.conf etc. pp.).
I have not changed anything related to u-boot myself and haven't touched the u-boot installations provided in pkgsrc so far either.
This is still likely the problem. u-boot (or the u-boot) environment
needs to pick up the right DTB and it dosen't appear to be.
My /boot looks like this:
florian@Hildebrand [/boot] ls -la
total 24
drwxr-xr-x 1 root wheel 1024 Jan 1 1980 .
drwxr-xr-x 23 root wheel 512 Feb 2 22:17 ..
drwxr-xr-x 1 root wheel 1024 Jan 29 20:34 EFI
drwxr-xr-x 1 root wheel 1024 Jan 29 20:34 dtb
-rwxr-xr-x 1 root wheel 560 Jan 1 2000 ubootefi.var
florian@Hildebrand [/boot/dtb] ls -la starfive/
total 374
drwxr-xr-x 1 root wheel 1024 Jan 29 20:34 .
drwxr-xr-x 1 root wheel 1024 Jan 29 20:34 .
you can check the dtb on disk by using
dtc -I dtb -O dts /boot/dtb/starfive/jh7110-starfive-visionfive-2-v1.2a.dtb
pcie@940000000 has the xhci attached to it.
Also, I've just added ofctl support and if you have it you can check the
DTB that was used...
Nick
vf2# ofctl /soc/pcie@940000000
[Caching 178 nodes and 1487 properties]
#address-cells 00000003 ........ ........ ........ 3
#interrupt-cells 00000001 ........ ........ ........ 1
#size-cells 00000002 ........ ........ ........ 2
bus-range 00000000 000000ff ........ ........ ........
clock-names 6e6f6300 746c0061 78695f6d 73743000
noc.tl.axi_mst0.
0010: 61706200 ........ ........ ........ apb.
clocks 00000003 00000060 0000001e 0000000a
.......`........
0010: 0000001e 00000008 0000001e 00000009
................
compatible 73746172 66697665 2c6a6837 3131302d
"starfive,jh7110-
0010: 70636965 00...... ........ ........ pcie"
device_type 70636900 ........ ........ ........ "pci"
interrupt-map 00000000 00000000 00000000 00000001
................
0010: 0000003e 00000001 00000000 00000000
...>............
0020: 00000000 00000002 0000003e 00000002
...........>....
0030: 00000000 00000000 00000000 00000003
................
0040: 0000003e 00000003 00000000 00000000
...>............
0050: 00000000 00000004 0000003e 00000004
...........>....
interrupt-map-mask 00000000 00000000 00000000 00000007
................
interrupts 00000038 ........ ........ ........ ...8
linux,pci-domain 00000000 ........ ........ ........ ....
msi-controller
name 70636965 00...... ........ ........ "pcie"
perst-gpios 0000002d 0000001a 00000001 ........ ...-........
phandle 00000072 ........ ........ ........ ...r
phys 0000003f ........ ........ ........ ...?
pinctrl-0 00000040 ........ ........ ........ ...@
pinctrl-names 64656661 756c7400 ........ ........ default.
ranges 82000000 00000000 30000000 00000000
........0.......
0010: 30000000 00000000 08000000 c3000000
0...............
0020: 00000009 00000000 00000009 00000000
................
0030: 00000000 40000000 ........ ........ ....@...
reg 00000009 40000000 00000000 01000000
....@...........
0010: 00000000 2b000000 00000000 00100000
....+...........
reg-names 63666700 61706200 ........ ........ cfg.apb.
reset-names 6d737430 00736c76 3000736c 76006272
mst0.slv0.slv.br
0010: 6700636f 72650061 706200.. ........ g.core.apb.
resets 0000001e 0000000b 0000001e 0000000c
................
0010: 0000001e 0000000d 0000001e 0000000e
................
0020: 0000001e 0000000f 0000001e 00000010
................
starfive,stg-syscon 0000001d ........ ........ ........ ....
status 6f6b6179 00...... ........ ........ okay.
vf2#
Home |
Main Index |
Thread Index |
Old Index