thirtythreeforty / businesscard-linux

A Buildroot distribution small enough to run on my business card
https://www.thirtythreeforty.net/posts/2019/12/my-business-card-runs-linux/
1.81k stars 186 forks source link

Boot from SDCard #16

Open SantX27 opened 4 years ago

SantX27 commented 4 years ago

Hi, I was interested on your project but I saw that it can be run only from a flash chip. Is it possible to compile it for booting from an SDCard? I have a portable emulation device that uses the F1C100S and boots from there. I tried restoring the genimage and adding back the ext4 rootfs generation, but I have no idea how to get UBoot working.

thirtythreeforty commented 4 years ago

Hi, sorry for the slow reply. In theory this is possible. It seems mainline U-Boot has a bug related to booting from the SD card; in my experience I could get the SPL to load, but it couldn't load the remainder of U-Boot from the card. Possibly this bug is related to the problem I fixed for the SPI controller, which was getting reset after every transaction.

What device are you using?

SantX27 commented 4 years ago

Oh, I see. The device I'm using is a Miyoo/Bittboy Pocket Go. It's a small emulation "console" that uses the sdcard to boot off and to store the roms of the games, Most of the consoles built from that company uses the F1C100s like this one. There's updates made by the community, but I wanted to try and base a custom firmware off your work, since it has some very appealing features, like the USB Gadget support and a rather clean and simple buildroot environment. Also, thank you for taking your time to respond to this non-technical issue

thirtythreeforty commented 4 years ago

It's definitely possible. I believe the U-Boot from Lichee can boot from SD. It's getting kind of old, but it might work if you don't care about fancy features. (I needed the fancy features :)