Minimal Debian (u-boot, kernel, and Debian from scratch)
- Alex
- Jun 1, 2020
- 2 min read
This article is at https://forum.clockworkpi.com/t/os-minimal-debian-u-boot-kernel-and-debian-from-scratch/5707
By Joao_Manoel
I created a clean Debian, and u-boot from scratch to be used in our device.
The menu is Retroarch. It boots directly to it in KMS mode (without X11). I have been working on an optimized version of retroarch with brightness control, more OSD options, power off, reboot on the menu, and other small features, but I decided to use the retroarch from the official repository. Maybe someone wants to use my build for other stuff, and it is very easy to uninstall retroarch now (apt uninstall retroarch). I’ll launch my retroarch in a dpkg file in the future to keep compatibility.
The OS only uses ~500MB of disk space, but I couldn’t shrink the partition I used, so you need at least a 2 GB SD card ( You will have 1.5GB of free space).
I documented as much as possible so someone else can recreate what I did. The skeleton (u-boot, kernel, partition procedure) can be the base for a Buildroot or another distribution.
Functionalities
Based on Debian Bullseye for the latest MESA driver with full lima support.
Clean OS with only Debian packages (no handmade compiled binaries) and small tweaks for hardware compatibility with gameshell.
No strange symbolic links nor duplicate files.
Max CPU frequency of 1.4GHz.
I don’t consider it an overclock. It is inside CPU specs, you can always use the governor settings to limit the frequency and increase battery life. The default governor is performance.
Standby mode (freeze) by pressing quickly the power key.
Power off by long-press (~2 seconds) the power key.
500 MB of space occupied in the disk.
The system uses the minimum necessary to have a full Debian distribution with all the functionalities such as:
Package management (apt-get).
Wifi management with wpa-supplicant.
Bluetooth with bluez server.
DHCP server for USB ethernet functionality. I’m using network 192.168.11.x because some routers use the 192.168.10.x and using it will cause network problems.
SSH server.
Retroarch as a menu, and starting at boot. Takes around ~20 seconds from power on to get RetroArch running.
RAM usage of only 29MB, and 51MB with RetroArch running.
Cedrus support enabled in the kernel.
This is for video encoding/decoding in hardware. The libva driver still not complete, but we should have it soon. This will be good if you want to record your game with retroarch and ffmpeg driver.
Charging LED is now in userspace (next release 0.2).
I Patched the kernel. Now you have the charging LED (Orange LED) in the userspace at (/sys/class/leds/axp20x\:chgled/). You can control it manually (to use it for what you want like a normal led), or automatic (controlled by the charger).
Enabled status LED (green LED) to monitor (next release 0.2):
Activity (CPU usage) [default mode], you can change it in the userspace.
Heartbeat. (I will use it later to signalize standby mode)
Known Issues
HDMI doesn’t work.
LED’s doesn’t work. FIXED (next release 0.2).
Last Minute Package Deals to Anywhere
All-in-one savings? Yes! Last minute package deals to anywhere combine flights, stays, and extras for unbeatable prices.
Look for deals to tropical paradises or vibrant cities.
Last minute vacation deals under $300
all-inclusive vacation packages with airfare under $500 2025
Last minute vacation packages to anywhere
last minute travel deals to anywhere
last minute vacation deals to anywhere
last minute trip deals to anywhere
last minute travel packages to anywhere
last minute package deals to anywhere
cheap last minute all inclusive holidays anywhere
travel to anywhere last minute deals
late holiday deals anywhere
cheapest business class holidays
Arihant Gems & Jewels brings you genuine 7 Mukhi Rudraksha, known for blessings of Goddess Lakshmi. It helps attract wealth, prosperity, and peace. Wearing it removes financial obstacles and brings good fortune. This sacred bead is also believed to improve health and happiness. Sourced from Nepal, our Rudraksha is pure, energized, and ready to wear for spiritual growth and overall success in life.
https://thinklog.xyz/coral-ring-for-energy-confidence-and-prosperity/
https://talvixo.com/sphatik-mala-for-peace-focus-and-positive-energy/
https://www.kalamazoorivercag.org/group/public-comment-needed/discussion/a66c8f8a-d3ab-491f-ab9f-03ce1dcee5a1
https://brightfolio.in/8-mukhi-rudraksha-for-removing-obstacles-and-gaining-strength/
https://social.vetmil.com.br/read-blog/50063
https://trackrecord.id/read-blog/22648
NGO Experts made our Society Registration process smooth and stress-free. Their team handled all documentation with accuracy and guided us through every step with professionalism. Their knowledge of legal requirements saved us time and effort. I highly recommend NGO Experts to anyone looking for reliable and efficient society registration services in India.
The Emirates Booking Phone Number Florida Airport is your ultimate go-to guide provided by AskForAirlines. We have gathered everything you should know, from booking an arrival flight and even contact assistance.
𝕂𝕙𝕖𝕝𝕣𝕒𝕛𝕒 𝕚𝕤 𝕒 𝕡𝕣𝕖𝕞𝕚𝕖𝕣 𝕠𝕟𝕝𝕚𝕟𝕖 𝕘𝕒𝕞𝕚𝕟𝕘 𝕡𝕝𝕒𝕥𝕗𝕠𝕣𝕞 𝕠𝕗𝕗𝕖𝕣𝕚𝕟𝕘 𝕒 𝕕𝕪𝕟𝕒𝕞𝕚𝕔 𝕞𝕚𝕩 𝕠𝕗 𝕠𝕟𝕝𝕚𝕟𝕖 𝕔𝕒𝕤𝕚𝕟𝕠, 𝕓𝕖𝕥𝕥𝕚𝕟𝕘, 𝕒𝕟𝕕 𝕝𝕠𝕥𝕥𝕖𝕣𝕪 𝕘𝕒𝕞𝕖𝕤. 𝔻𝕖𝕕𝕚𝕔𝕒𝕥𝕖𝕕 𝕥𝕠 𝕕𝕖𝕝𝕚𝕧𝕖𝕣𝕚𝕟𝕘 𝕥𝕠𝕡-𝕥𝕚𝕖𝕣 𝕖𝕟𝕥𝕖𝕣𝕥𝕒𝕚𝕟𝕞𝕖𝕟𝕥, 𝕂𝕙𝕖𝕝𝕣𝕒𝕛𝕒 𝕚𝕤 𝕒𝕝𝕤𝕠 𝕒 𝕥𝕣𝕦𝕤𝕥𝕖𝕕 𝕟𝕒𝕞𝕖 𝕚𝕟 ℙ𝕠𝕜𝕖𝕣 𝕀𝕟𝕕𝕚𝕒, 𝕡𝕣𝕠𝕧𝕚𝕕𝕚𝕟𝕘 𝕡𝕝𝕒𝕪𝕖𝕣𝕤 𝕨𝕚𝕥𝕙 𝕥𝕙𝕣𝕚𝕝𝕝𝕚𝕟𝕘 𝕥𝕠𝕦𝕣𝕟𝕒𝕞𝕖𝕟𝕥𝕤, 𝕣𝕖𝕒𝕝-𝕥𝕚𝕞𝕖 𝕘𝕒𝕞𝕖𝕡𝕝𝕒𝕪, 𝕒𝕟𝕕 𝕔𝕠𝕞𝕡𝕖𝕥𝕚𝕥𝕚𝕧𝕖 𝕣𝕖𝕨𝕒𝕣𝕕𝕤. 𝕎𝕚𝕥𝕙 𝕒 𝕤𝕖𝕔𝕦𝕣𝕖 𝕒𝕟𝕕 𝕦𝕤𝕖𝕣-𝕗𝕣𝕚𝕖𝕟𝕕𝕝𝕪 𝕚𝕟𝕥𝕖𝕣𝕗𝕒𝕔𝕖, 𝕥𝕙𝕖 𝕡𝕝𝕒𝕥𝕗𝕠𝕣𝕞 𝕖𝕟𝕤𝕦𝕣𝕖𝕤 𝕒 𝕤𝕖𝕒𝕞𝕝𝕖𝕤𝕤 𝕖𝕩𝕡𝕖𝕣𝕚𝕖𝕟𝕔𝕖 𝕗𝕠𝕣 𝕓𝕖𝕘𝕚𝕟𝕟𝕖𝕣𝕤 𝕒𝕟𝕕 𝕡𝕣𝕠𝕤 𝕒𝕝𝕚𝕜𝕖.