hi *,
i have extended my little image builder framework which i use to build images for quite a few arm chromebooks, sbcs and other systems to also support simple alpine images and the milk-v duo 64m and created a first experimental image with it.
in case you want to have a look at it, it can be found here: Release 240526-01 - experimental tiny alpine image for the milk v duo 64mb riscv64 sbc · hexdump0815/imagebuilder · GitHub
it is based on the risc64 port of alpine edge and is rather simple … as it is that simple, it can be easily and normally updated to the lastest state via apk like any alpine system, only the kernel is hand compiled and will not be updated that way.
some notes/features:
- based on alpine edge riscv64 port
- the v5.10.4 kernel used is based on the legacy milk-v kernel tree plus some more drivers enabled and was compiled outside of the buildroot env (with some notes about that linked in the repo)
- the bootloader (fsbl, opensbi and u-boot) is still taken from the other alpine image as is, but i plan to replace those with self compiled versions as well in the future (plus adding notes about compiling them outside of the buildroot sdk)
- by default rndis networking and ssh are enabled to have some simple networking over the usb-c port if used without the io-board or some connected eth port
- if used with the io-board ethernet works on that to connect
- username/password is as usual linux/changeme
- some build tools are installed by default as on this small system its much faster to delete them if not needed than to install them - for such tasks there are a few scripts in the /scripts dir
- see the readme files in the repo for more details
i plan to improve it slowly over time - this is just a spare time project, so i’ll work on it whenever i have some time and feel like it - maybe it fits the use case of someone here … it is most probably not perfect, but it might be a good starting point for own experiments and moving on from there, playing around with it or building own software on it etc. …
in theory it would even be technically possible to compile a kernel on it, but it is not recommended due to the limited memory - i tried it as an experiment and it took over 24 hours (it ran into some preprocessor error short before the end, so did not finish completely) using a a1 sd card and due to swapping (around 30mb on average over the time with 20mb always in and out) it wrote over 200gb in total to the sd card during that time - so doing anything oversized memorywise on those little systems is the best way to kill an sd card i guess. compiling small stuff should be no problem though.
maybe i’ll do such alpine images for the other duo versions as well one day, but for those i would rather recommend the debian images from fishwaldo instead. debian on the duo 64m is possible, but does not make much sense due to the limited memory.
in case you have other riscv64 devices around as well: if you look next to that image you’ll also find debian sid images for the starfive visionfive v2 and the bananapi f3 as well as another experimental alpine image for the sipeed m1s dock (which should work on the pine64 ox64 as well if the proper entry is choosen on boot) in other releases of that repo.
best wishes and good luck - hexdump