Use SD card as storage

Started by Eric976, July 15, 2021, 11:42:17 AM

Previous topic - Next topic

Eric976

Hello guys
I would like to use the SD card as storage, because I'm booting the OS from the eMMC, but even when the SD card is empty, the board is not booting from the eMMC, it still trying to boot from the card. But if I remove it, the OS boots normally.
I saw some people talking that things related to boot can be in the SD card, in a file called uEnv.txt. But I could not find a specific content for it. And if it's necessary to be in the card root or inside a boot folder.
Have someone already done this? Can someone help me?

mossroy

I had a similar issue, and it came from the fact that my SD-card was previously used to boot the board.
You can try with another SD-card (on which you never copied an image)
It's also possible to workaround by formatting the SD card with this command-line given by Olimex :

sudo dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=16 count=1

(replace /dev/mmcblk0 by the device corresponding to your SD-card)

You might run this command-line on a computer, or on the board (by inserting the SD-card after booting)

JohnS

The BROM (boot ROM) inside the CPU has a fixed order - see https://linux-sunxi.org/BROM#A64

Can't be changed (it's ROM!).  But I suppose the right magic on the SD card will be good enough.

John