top of page

Minimal Debian (u-boot, kernel, and Debian from scratch)

  • Writer: Alex
    Alex
  • Jun 1, 2020
  • 2 min read

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).


Download:


Documentation, and patches can be found on:

129 Comments


Jimmy Anderson
Jimmy Anderson
14 hours ago

QuickBooks software is used to manage your financial accounts and your business. But suddenly you are unable to work on QuickBooks and an error C=272 is appearing in front of you, in such situation you do not need to worry because here we tell you the solution to every problem related to QuickBooks software. Unexpected QuickBooks error code C=272 in QuickBooks is a very common error that can be seen when running the QuickBooks validation data tool or rebuilding the data utility within the system. Due to this error, the process of work on the software is completely interrupted, if it is not resolved at the right time, then it can cause many serious problems. If you are also facing this error…

Like

rihaan digi
rihaan digi
17 hours ago

GrowthWonders is a trusted Digital Marketing agency in Sec 15 Noida, delivering innovative solutions to help businesses grow online. With a team of skilled experts, we specialize in SEO, social media marketing, Google Ads, content marketing, and website development. Our goal is to create result-driven strategies tailored to each client’s needs, ensuring better visibility, higher engagement, and increased sales. At GrowthWonders, we believe in blending creativity with data-driven marketing to provide measurable success. Whether you are a startup or an established brand, our customized services are designed to strengthen your digital presence. As a dedicated Digital Marketing agency in Sec 15 Noida, GrowthWonders ensures you achieve sustainable growth in today’s competitive online marketplace.

Like

Akshita Jain
Akshita Jain
18 hours ago

eryeytytr

Like

jack jack
jack jack
18 hours ago

A Singapore Airlines First Class Ticket offers an unparalleled luxury travel experience, whether you're flying in their exclusive Suites on the Airbus A380 or the spacious First Class cabin on the Boeing 777. Passengers enjoy fully-flat beds, gourmet meals curated by world-renowned chefs, and premium wines and champagne. The journey begins with priority check-in and lounge access, followed by personalized service and elegant amenities onboard. With generous space, privacy, and comfort, a Singapore Airlines First Class Ticket transforms air travel into a refined sanctuary in the sky, making it ideal for discerning travelers seeking sophistication and indulgence. Emirates First Class price

Edited
Like

Elish gen
Elish gen
19 hours ago

A heavy‑duty grease hose reel from Micro Lube ensures safe, tidy, and efficient grease delivery in workshops or plants. Designed for flexibility and long service life, it simplifies maintenance operations. Check the grease hose reel collection for dependable equipment built to handle demanding lubrication tasks.

Like
bottom of page