Zum Hauptinhalt springen
Intelligence View
⚡ tsecurity.de Intelligence

Android on E-Ink

I've been thinking about porting Android on to the AM300 a while. I was curious exactly how Android's framebuffer architecture worked. I finally made some…

Beitrag
0
Seite
0
↗ Quelle (highlycomposite2.blogspot.com)
Cloud & Tech-Stack · 4 Min. Lesezeit
Quelle: highlycomposite2.blogspot.com
Rubrik: Unix & Linux Server
I've been thinking about porting Android on to the AM300 a while. I was curious exactly how Android's framebuffer architecture worked. I finally made some progress thanks to Thaipusam. I'm considering this my kavadi.

So here's a picture of my current output:


And a video here,


note, there's nothing visually impressive to show yet. It just shows boot and about 1.5mins in, it shows the Android UI, then after that it shows Android disliking something about my input driver although it seems to respond to some extent by drawing the date at the top.

I need to debug what exactly "InputManagerService Starting input on non-focused client android.view.inputmethod.InputMethodManager$1@437b5e90 (uid=1000 pid=1060) WindowManager Pointer down received while already down in: Window{437b6bd0 StatusBar}" and whether "path=/dev/input/event0 name=Wacom W8001 Penabled Serial TouchScreen id=0x10001 (of 0x2) index=2 fd=35 classes=0x4 KeyInputQueue X: unknown values KeyInputQueue Y: unknown values KeyInputQueue Pressure: unknown values KeyInputQueue Size: unknown values KeyInputQueue Device added: id=0x10000, name=null, classes=4 KeyInputQueue X: unknown values KeyInputQueue Y: unknown values" is a catastrophic issue.

As you can tell from the picture and the video, there's also some image corruption. That is basically a grayscale conversion issue on my part. The reason for this is that Android's EGLDisplaySurface component (a C++ library that sits directly on top of fbdev) forces the use of RGB565 and doesn't seem to like being switched into GL L8 which I had hoped it would not mind since I thought the compositor uses OGL-ES. So I decided to just do a byte truncation rather than the full shifts and fixed point 0.3*r + 0.59*g + 0.11*b since I need to do it for every pixel. Anyway, another problem for me is that this stuff uses fb flipping, yes, that's right, it does a big swapbuffers every time. Yeah, that naturally kills defio performance since it's a touch every page every swapbuffers. Even if I implemented panning support, I'm not sure that would help because I think there's a full frame iterator doing stuff in order to composite things as well. I don't understand the big picture yet because this implementation wouldn't protect against tearing since there's no sync to vblank here. There's no real swap barrier or retrace counter that's exposed by fbdev drivers. We just have the wait vblank ioctl supported by 1 or 2 drivers. Anyway, I need time to look at all this and understand why they're doing things this way.

At the userspace system level, android isn't really linux-like at all. Stuff like udev/hotplug/etc which I depend on for loading the waveform for metronomefb isn't there. I'm using the cupcake build of android which has a custom init program that parses its own init.rc config file and does a bunch of device creation, and all kinds of other stuff. I found the following code and articles from Rupesh Gujare, Benno Leslie, Jyunji Kondo, John Lombardo from LinuxDevices, all quite useful. Some are now a bit outdated since it looks like they were written prior to the cupcake source release from Android.
Link
Here's what the process list looks like:
787 root 268 S /android_root/init
1045 1000 812 S /system/bin/servicemanager
1047 root 1852 S /system/bin/mountd
1048 root 71308 S zygote /bin/app_process -Xzygote /system/bin --zygote
1049 1013 17084 S /system/bin/mediaserver
1051 1002 1168 S /system/bin/dbus-daemon --system --nofork
1053 root 1268 S /sbin/adbd
1060 1000 159m S system_server
1095 1001 99.0m S com.android.phone
1103 10002 109m S android.process.acore
1127 10006 93192 S com.example.android.softkeyboard
1135 10005 95960 S com.android.calendar

I find myself increasingly limited, shall we say, gum-ed up by my gumstix as I have a serious shortage of memory to run this kind of stuff. Overall opinion at the moment is that Android is very different from other embedded linux systems. Trying to decide whether that's a good thing or a bad thing depends on many subjective issues so I'll postphone my thoughts on that until I've understood the overall system and its intentions better.
Social ReaktionenReagiere als Erste:r — dein Feedback zählt!
Informations-Bewertung:
✏️ Information ergänzen
🛡️ Versioniert via CMS-Revisions-Engine (Freigabe-Queue für Gäste)

💬 Community-Diskussion & Kommentare

🌐 Zum Hauptchat

Starte die Diskussion im Social-Chat Broadcast Stream oder reiche oben über „Information ergänzen“ einen Fachbeitrag ein.

Security Briefing Kostenlos · 1-Klick-Abmeldung

Intelligence Digest — kostenlos

Täglich die wichtigsten Security-News · jederzeit abbestellbar

Community Rating & Social Proof
⭐ Leser-Wertung
–
Ø / 5.0
Noch keine Leser-Bewertungen
War dieser Artikel hilfreich?
0
Jetzt Bewertung abgeben
Detail-Bewertung (optional)
Inhalt & Qualität
Quelle & Glaubwürdigkeit
Aktualität

Verwandte Story-Cluster & Quellen (Vektor-KI)

6 Cluster
26 Quellen
Black Friday Oura Ring deals: The best of the deals so far, picked by a wearable-tech expert
Latest from TechRadar vor 14 Min.
25 weitere Quellen
CNETvor 6 JahrenOur Favorite Blenders of 2026 Are on Sale Ahead of Black Friday CNETvor 18 Min.Brighten Up Your Day by Saving 20% Off Flashlights With Olight’s Black Friday Sale CNETvor 10 Min.Live: Black Friday Deals Are Here. Shop Expert Picks Across Tech, Everyday Essentials and More at Up to 60% Off Golem.devor 24 Min.Anzeige: Logitech-Tastatur MX Keys S am Black Friday zum Sensationspreis auf Amazon PC-WELTvor 36 Min.Luminar zum Black Friday: KI-Bildbearbeitung für nur 79,20 Euro Latest from TechRadarvor 51 Min.This is the pair of open earbuds to hunt down over Black Friday Latest from TechRadarvor 1 Std.Best AirPods Black Friday deals: all live savings on AirPods Pro 3 and more Computer Bildvor 1 Std.Philips Sonicare DiamondClean 9000 zum Black Friday günstiger netzwelt.devor 2 Std.ESR startet mit Black-Friday-Rabatten: Diese AirPods-Hüllen lohnen sich jetzt netzwelt.devor 2 Std.PlayStation 5 geschenkt: Diese Black-Friday-Aktion legt die Konsole gratis obendrauf netzwelt.devor 1 Std.6 Dyson-Staubsauger im Vergleich: Dieser Sauger wird am Black Friday überraschend zum Preis/Leistungssieger netzwelt.devor 1 Std.Monitore im Angebot zum Black Friday: Gutes Bild für Office, Gaming und mehr Golem.devor 54 Min.Anzeige: Akkuschrauber mit 20 Bits zum Black Friday erstmals unter 50 Euro bei Amazon PC-WELTvor 1 Std.Die günstigsten Handytarife an Black Friday von 10 GB bis Unlimited: Hier lohnt sich ein Wechsel PC-WELTvor 1 Std.Black Friday 2026 bei LiberNovo: Ergonomische Bürostühle mit bis zu 44 Prozent Rabatt Latest from TechRadarvor 1 Std.The best Black Friday robot vacuum deals: Dreame, Shark, Dyson, and Roborock Golem.devor 1 Std.Anzeige: Topdon-Starthilfe-Powerbank für Kfz zum Black-Friday-Bestpreis nur rund 85 Euro heise online Newsvor 1 Std.Black Friday: Die besten Kopfhörer zum Tiefstpreis – Sonos Ace, Nothing & Shokz Latest from Windows Centralvor 1 Std.Dell's Black Friday deals drop major savings on Alienware OLED monitors CNETvor 2 JahrenMake Every Night Game Night and Save $90 on the Nex Playground With This Black Friday Deal DEV Communityvor 1 Std.The app is part of the gadget: 14,000 App Store reviews of 28 device apps before Black Friday Latest from TechRadarvor 2 Std.Black Friday tech deals under $100 / £100: Fire TV Sticks, earbuds, coffee machines and more Caschys Blogvor 3 Std.Google One: Black-Friday-Angebot mit bis zu 50 Prozent Rabatt netzwelt.devor 2 Std.Dem Testsieger ebenbürtig: Zum Black Friday stürzt Xiaomis stärkster E-Scooter im Preis ab Macerkopf.devor 2 Std.Fotos verbessern mit Aiarty: 52 % Rabatt + Gratisgeschenke zum Black Friday
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Android on E-Ink

Thematisch verwandte Begriffe: Android, EInk · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
Widgets & Themen
Widgets werden geladen…
Nächster Beitrag