me-no-dev / RasPiArduino

Arduino Framework for RaspberryPI
333 stars 75 forks source link

(not an issue) standard prepared (dietpi) image? #112

Open thijses opened 3 years ago

thijses commented 3 years ago

(this is not an issue of bugreport, just a suggestion for user-friendliness) i recently used dietpi to make a minimal (for max speed, (yes i know the gain in small)) linux image for Rpi zero, because as a pi, it's uses are somewhat niche, but as an arduino-like MCU it's pretty fast and has plenty of IO (you already know this, but still). The only really useful thing i added was to use the pi0's USB OTG/gadget/RNDIS-ethernet function to make it even more like a traditional MCU. Would it be sensible to put such an image (so just dietpi with usb OTG fixed and RasPiDuino installed) on github (or another place, as it's a little big) for people like me, who are dumb and consider installing linux to be a day's worth of work? All one would have to do if throw the image on their pi (zero), ssh into it once to set their own password and maybe connect to wifi, and then be ready to go?

i saved a my own standard image and shrunk it as best i could (PiShrink), but it's still 4.5 GB, which is not representative of the actual used space, so i guess i'll google defragmentation soon). However, if i were you i would want to make it yourself, because who known what sort of spyware i put on my image (i didnt, but you know).

P.S. i decided to do this after looking into pi bare metal programming (https://github.com/bztsrc/raspi3-tutorial) and finding it doable, but not practical for real projects right now, due to a lack of IDE, support and libraries. In my (inexperienced) mind, RasPiDuino's arduino 'translation' could be used for bare-metal programming with minor (GCC compiler) tweaks, but seeing as how that's not a thing yet, i must be missing something)