View previous topic :: View next topic |
Author |
Message |
Carnildo Guru
Joined: 17 Jun 2004 Posts: 595
|
Posted: Fri Jun 20, 2014 2:18 am Post subject: Miniature userspace? |
|
|
Just for the giggle factor, I'm trying to put together a boot floppy that can boot a modern system. I've managed to get the kernel down to 1178 KB, which leaves me about 262 KB for userspace. At a bare minimum, I'd like to be able to boot up to a command prompt, list the contents of the boot floppy, and edit a file. Additional functionality would be a nice bonus. Any ideas on what software I could use for this?
(I don't think Busybox can be stripped down far enough to fit: the version on my desktop is 1.9MB, too big to fit on a floppy even if I didn't need room for the kernel.) |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Jun 20, 2014 2:43 am Post subject: Re: Miniature userspace? |
|
|
Carnildo ... whats a floppy drive? :)
Carnildo wrote: | (I don't think Busybox can be stripped down far enough to fit: the version on my desktop is 1.9MB, too big to fit on a floppy even if I didn't need room for the kernel.) |
The busybox from my initramfs (built with Aboriginal Linux) is 796K.
Code: | # ls -l bin/busybox
-rwxr-xr-x 1 root root 814332 2013-08-13 18:08 bin/busybox
# file bin/busybox
bin/busybox: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically linked, stripped |
best ... khay |
|
Back to top |
|
|
i92guboj Bodhisattva
Joined: 30 Nov 2004 Posts: 10315 Location: Córdoba (Spain)
|
Posted: Fri Jun 20, 2014 7:24 am Post subject: |
|
|
I'd say build busybox statically against uclibc instead of glibc, then walk from there |
|
Back to top |
|
|
khayyam Watchman
Joined: 07 Jun 2012 Posts: 6227 Location: Room 101
|
Posted: Fri Jun 20, 2014 10:39 am Post subject: |
|
|
i92guboj wrote: | I'd say build busybox statically against uclibc instead of glibc, then walk from there ;) |
i92guboj ... yes, I'd ment to mention this above ... Aboriginal builds with uClibc (though its currently migrating to musl) so the above busybox is statically linked against uClibc.
I'd imagine it could be further reduced in size, the config patch used has a lot of the busybox modules enabled.
best ... khay |
|
Back to top |
|
|
|