Author Topic: Linux in 32MB Flash  (Read 10105 times)

0 Members and 1 Guest are viewing this topic.

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: Linux in 32MB Flash
« Reply #25 on: March 26, 2017, 01:43:01 pm »
You don't need accellerated graphics to run X-Windows as long as the skin you are using isn't heavy on graphic effects. GTK is pretty versatile when it comes to skins.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Linux in 32MB Flash
« Reply #26 on: March 26, 2017, 03:56:19 pm »
X11 on 32MB ? Simply ridiculous  :-DD :-DD :-DD
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: Linux in 32MB Flash
« Reply #27 on: March 26, 2017, 05:50:58 pm »
Why? X-Windows has the option to compile a cut down version which is really really small. Less than a decade ago I have used X-Windows on an embedded Linux platform but I can't remember whether the flash was 16MB or 64MB. I think 16MB.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline alan242

  • Newbie
  • Posts: 4
  • Country: us
Re: Linux in 32MB Flash
« Reply #28 on: March 26, 2017, 09:08:45 pm »
Alpine Linux (https://alpinelinux.org) has an ARM distribution and a minirootfs tar. It is built on busybox, the musl C library and uses openrc for init. The current kernel is 4.9.17 so that will need to be replaced with a the custom 4.11-rc kernel. I am not entirely sure the distribution will strip down to for the size limitation. However, the minirootfs tar expands to about 3.5MB. Maybe start with that and add the packages that are needed to see if it will fit?
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Linux in 32MB Flash
« Reply #29 on: March 27, 2017, 01:38:03 am »
I actually needs udev, dbus and maybe systemd. NetworkManager too. Those packages can be huge...
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Linux in 32MB Flash
« Reply #30 on: March 27, 2017, 03:39:25 pm »
Why? X-Windows has the option to compile a cut down version which is really really small

it's nanoX

Less than a decade ago

When Kernel 2.2 were much more smaller, and nanoX was not a part of integration (aka #ifdef ) into X11.
Nowadays, dead elephants, especially if compiled with uclibc.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Linux in 32MB Flash
« Reply #31 on: March 27, 2017, 03:41:50 pm »
X-Windows on an embedded Linux platform

are you sure it was not directfb? or QTopia (used by SHARP in 2004)?
 

Online nctnico

  • Super Contributor
  • ***
  • Posts: 26891
  • Country: nl
    • NCT Developments
Re: Linux in 32MB Flash
« Reply #32 on: March 27, 2017, 03:47:39 pm »
X-Windows on an embedded Linux platform
are you sure it was not directfb? or QTopia (used by SHARP in 2004)?
No, definitely X-Windows. It is a bit like the adagio not to use printf if you are space constrained. The funny thing about that is that by the time you are done creating an alternative it will be more bloated than printf. It is quicker and easier to create a mini-printf. It will save space while keeping a very standard API. The same goes for X-Windows. If the regular version is too bloated then compile the minimalistic version. You'll have the same API so most software will work with it.
There are small lies, big lies and then there is what is on the screen of your oscilloscope.
 

Offline legacy

  • Super Contributor
  • ***
  • !
  • Posts: 4415
  • Country: ch
Re: Linux in 32MB Flash
« Reply #33 on: March 27, 2017, 03:58:10 pm »
directfb can be compiled with uclibc without problems, and it's small footprint, you can neither say nor do the same with xorg. nanoX was excellent for the same reason.

dude, if you need glibc then binaries and libraries will be 220% bigger at least.
 

Offline technixTopic starter

  • Super Contributor
  • ***
  • Posts: 3507
  • Country: cn
  • From Shanghai With Love
    • My Untitled Blog
Re: Linux in 32MB Flash
« Reply #34 on: March 27, 2017, 06:27:50 pm »
directfb can be compiled with uclibc without problems, and it's small footprint, you can neither say nor do the same with xorg. nanoX was excellent for the same reason.

dude, if you need glibc then binaries and libraries will be 220% bigger at least.
This is interesting... directfb seemed to be a good option for the graphics layer for me.

And no I don't need glibc. I know that I will definitely need dbus (NetworkManager as I have Wi-Fi and Bluetooth) and udev (kernel depends on this now) but systemd is still undecided. I don't know if any of those will put a hard requirement on glibc though. If udev and dbus can work with some lightweight libc but systemd depends on glibc, I am going to try use Apple's launchd as the init system as it depends only on POSIX API (I am a full Apple Developer Program enrollee) and start udev and dbus from there.

As of the GUI layer, I am investigating creating a display server based on directfb that implements the Cocoa Touch API. The semantics of this device is similar to that of iOS devices, hence this API.
 

Offline calin

  • Regular Contributor
  • *
  • Posts: 239
  • Country: us
Re: Linux in 32MB Flash
« Reply #35 on: April 03, 2017, 06:54:57 am »
 

Offline cezar

  • Contributor
  • Posts: 39
  • Country: gb
Re: Linux in 32MB Flash
« Reply #36 on: April 04, 2017, 04:24:45 pm »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf