Page 1 of 1

Boot modes and SPI chip

Posted: Fri Jun 19, 2020 3:36 pm
by delcious
How does the R2S boot when you don't use an SD card? Can it boot from USB drive or over the network?
There is an empty header on the board for a SPI SOIC8 chip. What kind of chips are supported?

Re: Boot modes and SPI chip

Posted: Wed Dec 09, 2020 10:45 pm
by Kyra
According to the schematic the intended part is a Macronix MX25L12835F. I've tried with a Winbond W25Q128FV (which should be compatible) without any success. This includes what should be the correct devtree entry.

Re: Boot modes and SPI chip

Posted: Sun Dec 13, 2020 4:09 pm
by Kyra
Ah, I've SPI flash working just fine now. Apparently DMA support (ARM PL330) is essential for correct (well, any) operation of the Rockchip SPI driver. Whoops! I haven't tried booting off of it yet.

For anyone curious, here's what my devtree entry looks like:

Code: Select all

&spi0 {
    spiflash@0 {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "winbond,w25q128fv", "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <50000000>;
    };
    status = "okay";
};


From there you'll get an mtd0 device which you can use with flashrom (--programmer linux_mtd).

Re: Boot modes and SPI chip

Posted: Wed Feb 24, 2021 8:09 am
by reukiodo
Any progress on flashing custom boot to the SPI which allows network booting?