starfive-tech / linux

Other
148 stars 112 forks source link

rvspace: tracking document: add nvme to linux+u-boot sections #112

Open colemickens opened 1 year ago

colemickens commented 1 year ago

Hi,

I am using the downstream forks of u-boot and linux that have NVME support. I am particularly interested in when those features will land in their upstreams.

Is it possible to add entries for nvme under linux and u-boot on the rvspace tracking page?

Thanks!

misuzu commented 1 year ago

Relevant links:

https://patchwork.kernel.org/project/linux-pci/cover/20230719102057.22329-1-minda.chen@starfivetech.com/

https://patchwork.ozlabs.org/project/uboot/cover/20230720112333.9255-1-minda.chen@starfivetech.com/

misuzu commented 1 year ago

NVMe support in u-boot has been merged https://github.com/u-boot/u-boot/commit/8db2224ffca24aab3f933618bf27d747a1a4c161

u-boot doesn't build for me though:

   rm -f net/built-in.o; riscv64-linux-ar cDPrsT net/built-in.o net/arp.o net/bootp.o net/eth-uclass.o net/eth_bootdev.o net/mdio-uclass.o net/eth_common.o net/net.o net/ping.o net/tftp.o
make -f ./scripts/Makefile.build obj=examples
  riscv64-linux-gcc -E -Wp,-MD,./.u-boot.lds.d -D__KERNEL__ -D__UBOOT__ -ffixed-gp -fpic -fno-common -ffunction-sections -fdata-sections -pipe -march=rv64imafdc_zicsr_zifencei -mabi=lp64d -mcmodel=medany -Iinclude   -I./arch/riscv/include -include ./include/linux/kconfig.h -nostdinc -isystem /nix/store/35dk6lkiakjb8a2>
  riscv64-linux-ld.bfd -m elf64lriscv -z noexecstack --no-warn-rwx-segments --gc-sections -static -pie -Bstatic  --no-dynamic-linker -z notext  --build-id=none -Ttext 0x40200000 -o u-boot -T u-boot.lds arch/riscv/cpu/start.o --whole-archive  arch/riscv/cpu/built-in.o  arch/riscv/cpu/jh7110/built-in.o  arch/riscv/lib/b>
  riscv64-linux-objcopy --gap-fill=0xff  -O srec u-boot u-boot.srec
  riscv64-linux-objcopy --gap-fill=0xff  -O binary   u-boot u-boot-nodtb.bin
make -f ./scripts/Makefile.build obj=dts dtbs
make -f ./scripts/Makefile.build obj=arch/riscv/dts dtbs
make[2]: *** No rule to make target 'arch/riscv/dts/jh7110-starfive-visionfive-2.dtb', needed by 'dtbs'.  Stop.
make[1]: *** [dts/Makefile:44: arch-dtbs] Error 2
make: *** [Makefile:1156: dts/dt.dtb] Error 2

Same issue when using v2023.10-rc1, v2023.07.02 builds just fine. Something got broken between these two tags.

colemickens commented 1 year ago

I seem to get the same behavior, unfortunately.

kasperk81 commented 1 year ago

usb changes were merged last week, try master branch https://github.com/u-boot/u-boot/commits/master

kasperk81 commented 1 year ago

https://github.com/u-boot/u-boot/releases/tag/v2023.10-rc3 has all the upstreamed patches

malteneuss commented 3 months ago

Nice. I think all patches to use the Visionfive 2 as a homelab server have merged by now. See https://rvspace.org/en/project/JH7110_Upstream_Plan

I'm about to setup my board to boot from an NVMe SSD. How would we boot from NVMe without an SD card? Which boot mode pins should a user choose?