I succesfully compiled an U-Boot with NVMe Support enabled, but no SD-Card Support. I want to flash it to the SPI NOR but it doesnt work.
I tried sunxi-fel, but that didnt work.
sudo ./sunxi-fel -p spiflash-write 0x00000 boot0_spinor_sun55iw3p1.bin
sudo ./sunxi-fel -p spiflash-write 0x08000 fes1_sun55iw3p1.bin
sudo ./sunxi-fel -p spiflash-write 0x10000 sboot_sun55iw3p1.bin
sudo ./sunxi-fel -p spiflash-write 0x20000 u-boot-sun55iw3p1.bin
[sudo] password for pi:
SPI support not implemented yet for 1890 (A523)!
SPI support not implemented yet for 1890 (A523)!
SPI support not implemented yet for 1890 (A523)!
SPI support not implemented yet for 1890 (A523)!
https://mega.nz/folder/Gv5VjKqL#SLnQdtk8XS8j3twNSFLsVQ It took me 3 months to modernize the drivers and now its finally booting (from the sd card), but the u-boot doesnt recognize my nvme drive.
=> pci enum
=> pci info
uclass_find_device_by_seq: 0 0
-1 0 ‘pcie@4800000’
found
Scanning PCI devices on bus 0
BusDevFun VendorId DeviceId Device Class Sub-Class
The image is still not able to detect the nvme during booting.
Currently struggling with Changing the DTS.
From my understanding:
PL11 needs to be active for 3.3 V
PB6 needs to be active for the GMA340 PCIE/USB Switch to be set to PCIE Mode
PH11 and PH12 are Reset/Wake GPIOS and theres a PIN for PCIE-CLK, but I dont know what to do with that.
https://pastebin.com/iyUrZNiM The NVME now gets detected, but booting from it is not yet working and im unsure how to make it automatically boot from the nvme, without access via uart
Thank you.
My main problem right now is that my U-Boot can read larger files than a few kB from the nvme.
I’m unsure if its the nvme driver or something else.
The nvme driver is now fully working. The problem is, you would have to load grub from the nvme because you cant load a 64 bit kernel from the 32 bit u boot
Do you need help with flashing the image?
I gave up getting the Allwinner image to work from the nvme, the resources are better invested in armbian in my opinion.