Uboot-next lasst sich direkt auf SPI Flash zu installieren und funktioniert ohne SD Karte, es fehlt leide sunxi-spi Treiber. Starten von USB/TFTP/etc. funktioniert. Bei weiteren Forschungen bin ich auf Link 1 und Link 2 gestoßen. Es sieht so aus, dass SPL-SPI ist nun implementiert.
Uboot direkt auf SPI Flash installieren und testen
u.g. Repos testet und uboot mit spi Befehl bauen
Partitionen für Gerät sollten in DTS Datei eingebaut werden Beispiel
Uboot-sunxi mit SPI in FF-Firmware implementieren und Dokumentation für schreiben (z.B. sunxi-fel Befehl)
Optional: Patch für Openwrt vorbereiten oder den Prozess wieder anstoßen.
cat package/boot/uboot-sunxi/patches/300-add-orangepir1-spi.diff--- a/configs/orangepi_r1_defconfig+++ b/configs/orangepi_r1_defconfig@@ -10,3 +10,10 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h2-plus-orangepi-r1" CONFIG_SUN8I_EMAC=y CONFIG_USB_EHCI_HCD=y CONFIG_USB_OHCI_HCD=y+CONFIG_CMD_SF=y+CONFIG_CMD_SPI=y+CONFIG_DM_SPI_FLASH=y+CONFIG_SPI_FLASH_MACRONIX=y+CONFIG_DM_SPI=y+CONFIG_SPI=y+CONFIG_SPL_SPI_SUNXI=y\ No newline at end of file--------------------------------------------------------------------------------------------------------cat package/boot/uboot-sunxi/patches/301-sunxi-spiflash.diff--- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts+++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts@@ -65,6 +65,7 @@ aliases { ethernet1 = &rtl8189etv;+ spi0 = &spi0; }; };@@ -72,6 +73,7 @@ status = "okay"; flash@0 {+ u-boot,dm-pre-reloc; compatible = "mxicy,mx25l12805d", "jedec,spi-nor"; }; };
U-Boot log:
U-Boot SPL 2020.04 (Jul 05 2020 - 22:07:38 +0000)DRAM: 256 MiBTrying to boot from sunxi SPIU-Boot 2020.04 (Jul 05 2020 - 22:07:38 +0000) Allwinner TechnologyCPU: Allwinner H3 (SUN8I 1680)Model: Xunlong Orange Pi R1DRAM: 256 MiBMMC: mmc@1c0f000: 0, mmc@1c10000: 1Loading Environment from FAT... MMC: no card presentIn: serialOut: serialErr: serialNet: phy interface0eth0: ethernet@1c30000starting USB...Bus usb@1c1a000: USB EHCI 1.00Bus usb@1c1a400: USB OHCI 1.0Bus usb@1c1b000: USB EHCI 1.00scanning bus usb@1c1a000 for devices... 1 USB Device(s) foundscanning bus usb@1c1a400 for devices... 1 USB Device(s) foundscanning bus usb@1c1b000 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) foundHit any key to stop autoboot: 0 => => => sf probeSF: Detected mx25l12805d with page size 256 Bytes, erase size 64 KiB, total 16 MiB=>
Yaroslav Petrovmarked the checklist item u.g. Repos testet und uboot mit spi Befehl bauen as completed
marked the checklist item u.g. Repos testet und uboot mit spi Befehl bauen as completed
Yaroslav Petrovmarked the checklist item Optional: Patch für Openwrt vorbereiten oder den Prozess wieder anstoßen. as completed
marked the checklist item Optional: Patch für Openwrt vorbereiten oder den Prozess wieder anstoßen. as completed