EMMC boot though spi flash?

Could we boot from emmc by copying system image data from sdcard to emmc?

2 Likes

I’m also interested about that,
I burned same on sd card and eMMC and expected that it should start from eMMC selecting right jumper positions, but it could not start for both :confused: I’ve got this on UART:

dwmci_s: Response Timeout.
BOOT fail,Error is 0xffffffff

or just silence on other combinations.
Setting two jumpers to right it started successfuly from SD card (but not from eMMC).
I updated uboot and spl but same thing, it could start only from SD

When system is up lsblk shows eMMC as well as nvme drive. I guess that this last one may be able to boot in future, for now I would like to start from eMMC only.

part of uart log:

In:    serial@10000000
Out:   serial@10000000
Err:   serial@10000000
Model: StarFive VisionFive V2
Net:   eth0: ethernet@16030000, eth1: ethernet@16040000
Card did not respond to voltage select! : -110
switch to partitions #0, OK
mmc0(part 0) is current device
bootmode flash device 0
Can't set block device
Failed to load '/boot/uEnv.txt'
Hit any key to stop autoboot:  0
Can't set block device
Importing environment from mmc0 ...
## Warning: Input data exceeds 1048576 bytes - truncated
## Info: input data size = 1048578 = 0x100002
Card did not respond to voltage select! : -110
Couldn't find partition mmc 1:2
Can't set block device
## Warning: defaulting to text format
## Error: "boot2" not defined
switch to partitions #0, OK
mmc0(part 0) is current device
Scanning mmc 0:2...
Found /boot/extlinux/extlinux.conf
Retrieving file: /boot/extlinux/extlinux.conf
823 bytes read in 4 ms (200.2 KiB/s)
U-Boot menu
1:      Debian GNU/Linux bookworm/sid 5.15.0-starfive
2:      Debian GNU/Linux bookworm/sid 5.15.0-starfive (rescue target)
Enter choice: 1:        Debian GNU/Linux bookworm/sid 5.15.0-starfive
Retrieving file: /boot/initrd.img-5.15.0-starfive
9684953 bytes read in 212 ms (43.6 MiB/s)
Retrieving file: /boot/vmlinuz-5.15.0-starfive
8015200 bytes read in 175 ms (43.7 MiB/s)
append: root=/dev/mmcblk1p3 rw console=tty0 console=ttyS0,115200 earlycon rootwait stmmaceth=chain_mode:1 selinux=0
Retrieving file: /boot/dtbs/starfive/starfive_visionfive2.dtb
Failed to load '/boot/dtbs/starfive/starfive_visionfive2.dtb'
kernel_comp_addr_r or kernel_comp_size is not provided!
1 Like