Any Support for booting from Spi Flash?

i do have slim spi chips. Downloading those files from that site triggers boths chromes and windows security

1 Like

Alright, I could try and upload them somewhere else.

Yeh. Medafire, google drive and mega might be alright to host files there

1 Like

MediaFire link.

Are you using the arduino branch rather than the develop branch?

The footprint matches (8x6 WSON) but you can only use SD flash under the SD card slot. On the IOB you can use SPI NOR such as W25Q256. For development I’ve a bunch of custom PCBs I use attached to one row of Duo pins with SPI Flash ready to go.

1 Like

nah i was telling hannahKobain what stuff i wanted.

I have tried to build it myself but i always get the same error. which is

make: *** [Makefile:597: br-rootfs-pack] Error 2

I tried googling but theres no definite answer. Some say its because of the new build some says its something else

The message is probably the symptom and not the cause. Let me know the commit number and the full error log from the first error to the end.

Wow, I forgot about the expansion boards, thanks for the reminder. Makes sense.

i tried putting the files on blank sd then left it for a while in the milk v but nothing.
the flash chip is W25Q256JV

How many partitions, which type, which filesystem?

formatted 32 GB sd card as Fat32. Then placed the files on it. It only has 1 partition

Hmm. I only have chips of 16MB and less than that, IIRC, so I can’t currently test that.

Although, there is some documentation here and a discussion here — you can try the USB upgrade tool mentioned there.

Also, have you read what the board says over the UART interface when booting?

doesnt show anything. Im using Uart on gpio 4 and gpio 5. I’ll see if it shows anything on the other uarts

Follow the guide, pins 16 & 17 (GP12, GP13).

Mine says this:

U-Boot 2021.10 (Jul 30 2024 - 08:45:13 +0300)cvitek_cv180x

DRAM:  63.3 MiB
gd->relocaddr=0x823f3000. offset=0x21f3000
MMC:   cv-sd@4310000: 0
Loading Environment from SPIFlash... spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   
Warning: ethernet@4070000 (eth0) using random MAC address - 86:ab:b6:5c:da:fa
eth0: ethernet@4070000
Hit any key to stop autoboot:  0 
## Resetting to default environment
Start SD downloading...
switch to partitions #0, OK
mmc0 is current device
433664 bytes read in 22 ms (18.8 MiB/s)
spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)
No SPI flash selected. Please run `sf probe'
spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)
No SPI flash selected. Please run `sf probe'
Wrong Image Format for bootm command
ERROR: can't get kernel image!
## Error: "nandboot" not defined
## Error: "emmcboot" not defined
cv180x_c906#       

It unambiguously tells me it can’t initialize the SPI flash chip (because there’s no SPI chip connected). I’m sure yours can explain itself.

its basically the same Error. I tried other spis chips to make sure its not a fault chip but still says it didnt find any spi chip.

on the milk v duo. The sd card slot and Flash share the same pins

So have you tried the USB tool? Does `sf probe’ tell you anything over UART in U-Boot?

gd->relocaddr=0x823f3000. offset=0x21f3000
MMC: cv-sd@4310000: 0
Loading Environment from SPIFlash… spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
*** Warning - spi_flash_probe_bus_cs() failed, using default environment
In: serial
Out: serial
Err: serial
Net:
Warning: ethernet@4070000 (eth0) using random MAC address - fe:3f:d9:ce:0c:e7
eth0: ethernet@4070000
Hit any key to stop autoboot: 1  0

Resetting to default environment

Start SD downloading…
switch to partitions #0, OK
mmc0 is current device
433664 bytes read in 22 ms (18.8 MiB/s)
spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)
No SPI flash selected. Please run sf probe' spinor id = FF FF FF jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff Failed to initialize SPI flash at 0:0 (error -2) No SPI flash selected. Please run sf probe’
Wrong Image Format for bootm command
ERROR: can’t get kernel image!

Error: “nandboot” not defined

Error: “emmcboot” not defined

cv180x_c906#
Ln 20, Col 14
Duo Dev Module
on COM23

and for spf probe i get

spinor id = FF FF FF
jedec_spi_nor spi_flash@0:0: unrecognized JEDEC id bytes: ff, ff, ff
Failed to initialize SPI flash at 0:0 (error -2)

That’s very annoying.
And the USB tool?

Forgot to ask where to get that USB tool