Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Miniature userspace?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Carnildo
Guru
Guru


Joined: 17 Jun 2004
Posts: 595

PostPosted: Fri Jun 20, 2014 2:18 am    Post subject: Miniature userspace? Reply with quote

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
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Jun 20, 2014 2:43 am    Post subject: Re: Miniature userspace? Reply with quote

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
View user's profile Send private message
i92guboj
Bodhisattva
Bodhisattva


Joined: 30 Nov 2004
Posts: 10315
Location: Córdoba (Spain)

PostPosted: Fri Jun 20, 2014 7:24 am    Post subject: Reply with quote

I'd say build busybox statically against uclibc instead of glibc, then walk from there ;)
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6227
Location: Room 101

PostPosted: Fri Jun 20, 2014 10:39 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum