LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-03-2023, 08:25 AM   #1
The486Nerd
LQ Newbie
 
Registered: Jul 2023
Distribution: Linux Mint
Posts: 11

Rep: Reputation: 0
How to compile Linux Kernel and write it to a 1.44M floppy disk?


Hi guys! I'm a retro computing nerd and I want to make a Linux Distro for very old computers (486 and up). To start off I just want to compile the kernel and put it on a 1.44M floppy disk. What would be the most recent version of the kernel could I do this with, and how would I go about compiling it to a .img file or whatever?

Thanks!
 
Old 07-03-2023, 08:38 AM   #2
Projectile
Member
 
Registered: Jun 2023
Posts: 72
Blog Entries: 1

Rep: Reputation: 13
Hello, I'm curious about this too but I fear only the old versions 2.4.x still fit on a floppy.

Might also want to look into DamnSmallLinux, you could probably extract the small kernel and root from it.
 
Old 07-03-2023, 08:39 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
You should be asking what is the most recent version of the kernel that would actually run on a machine like that! Probably something in the 2.0 series.

To compile a kernel, you download the source and use a command sequence like make menuconfig->make bzImage->make modules. But again I don't know if a very old kernel would compile at all with modern compilation tools.
 
1 members found this post helpful.
Old 07-03-2023, 08:41 AM   #4
The486Nerd
LQ Newbie
 
Registered: Jul 2023
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by hazel View Post
You should be asking what is the most recent version of the kernel that would actually run on a machine like that! Probably something in the 2.0 series.

To compile a kernel, you download the source and use a command sequence like make menuconfig->make bzImage->make modules. But again I don't know if a very old kernel would compile at all with modern compilation tools.
Hmm... Alright, I'll see if I can 2.0 compiled.
 
Old 07-03-2023, 08:41 AM   #5
fatmac
LQ Guru
 
Registered: Sep 2011
Location: Upper Hale, Surrey/Hants Border, UK
Distribution: Mainly Devuan, antiX, & Void, with Tiny Core, Fatdog, & BSD thrown in.
Posts: 5,498

Rep: Reputation: Disabled
I don't know about compiling a kernel, but maybe take a look at these.....

https://lunduke.substack.com/p/3-lin...ns-that-fit-on

https://hackaday.com/2021/05/24/runn...e-floppy-disk/
 
Old 07-03-2023, 08:52 AM   #6
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,583
Blog Entries: 19

Rep: Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454Reputation: 4454
You would be short of both disc space and memory so you would not want to build any drivers for hardware that was not present on the machine. If it was me, I'd put drivers for the disk controller, partition and filesystem into the kernel (so no need for an initrd) and compile the few other drivers you would need as modules.
 
1 members found this post helpful.
Old 07-03-2023, 09:04 AM   #7
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,604

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547

Not quite what you're asking for, but these projects might still be useful...

No idea if it'll run on a 486, but Tiny Core Linux gets a modern kernel down to 17MB without a GUI, 23MB with GUI. (Maybe check if there are download archives of early versions that go smaller?)

The typical "old computer" distro is AntiX Linux, but it requires at least a Pentium 1 (i.e. 586), and would require a CD.

More importantly, both of them have forums where you might be able to ask advice on going smaller/older... Tiny Core Linux Forum and AntiX Forum.

 
Old 07-03-2023, 12:54 PM   #8
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
1.44MB? Forget it.

Until recently, you could get tomsrtbt at www.toms.net/rb. That reformatted the floppy to 1.82MB, and wrote a 2.0 kernel and ancient busybox to it. It was libc5 based, and enshrined everything that was bad about early pcs. But you want that, by the sound of it.

You may find tomsrtbt mirrored somewhere. Otherwise, pick up a kernel from the 1990s and get a second floppy for the initrd & busybox. Slackware was originally distributed on floppy disks. Slackware goes back to version 1.x on ftp.slackware.uk, which has decent bandwidth.

EDIT: Slackware was compiled i486 for most of it's 32bit life. I'm sure it was i386 back then.

Last edited by business_kid; 07-03-2023 at 12:58 PM.
 
Old 07-03-2023, 01:32 PM   #9
wpeckham
LQ Guru
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 5,640

Rep: Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697Reputation: 2697
Have you considered looking into FreeDOS instead?
 
Old 07-04-2023, 05:54 AM   #10
The486Nerd
LQ Newbie
 
Registered: Jul 2023
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
2.0 won't compile on modern Ubuntu Linux. Should I try setting up a older linux disro in a VM and compile it on there?

Last edited by The486Nerd; 07-04-2023 at 07:57 AM.
 
Old 07-04-2023, 07:17 AM   #11
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326Reputation: 2326
Quote:
Originally Posted by The486Nerd View Post
2.0 won't compile on modern Ubuntu Linux. Should I try setting up a older linux disro in a VM or something?
I would grab an old distro kernel which is precompiled. That stuff links against libc.so.5. Everything since about kernel 3.0 links against libc.so.6 and the two are teetotally different.

Early slackware was distributed on floppies in the mid 1990s, when 486s were current.

Last edited by business_kid; 07-04-2023 at 08:11 AM.
 
Old 07-04-2023, 07:35 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,129

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
floppinux seems to be pretty current - gotta be worth a try.

Last edited by syg00; 07-04-2023 at 07:41 AM. Reason: changed link to github
 
1 members found this post helpful.
Old 07-04-2023, 07:59 AM   #13
The486Nerd
LQ Newbie
 
Registered: Jul 2023
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
Well, let's say I drop the 1.44MB limit. Would the newest linux kernel run on a 486? (I remember hearing somewhere they were thinking about dropping support for it, not sure if that happened.)
 
Old 07-04-2023, 09:08 AM   #14
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,604

Rep: Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547Reputation: 2547

Try it and find out!

If you're serious about making your own distro, you need a mindset of exploring and figuring things out.

Hint: The Tiny Core Linux website I linked in post #7 contains a FAQ, and the FAQ lists minimum requirements...

 
1 members found this post helpful.
Old 07-04-2023, 10:03 AM   #15
The486Nerd
LQ Newbie
 
Registered: Jul 2023
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by boughtonp View Post
Try it and find out!

If you're serious about making your own distro, you need a mindset of exploring and figuring things out.

Hint: The Tiny Core Linux website I linked in post #7 contains a FAQ, and the FAQ lists minimum requirements...

Ah, thanks!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to enable a Hard Disk to read/write to a USB device but disable the USB device to read/write to the hard disk without user permission? ce309 Linux - General 33 05-22-2019 04:30 PM
LXer: Palm Pays $44M For Perpetual OS License LXer Syndicated Linux News 1 10-13-2007 03:15 PM
LXer: Palm pays $44m for Palm OS source code licence LXer Syndicated Linux News 0 12-07-2006 04:54 PM
floppy only reads first disk, if new disk is inserted data from first disk is shown. lakosked Debian 3 02-18-2006 08:44 PM
Redhat 9 Boot Stalls after line "Floppy drive(s): fd0 is 1.44M" nevyn738 Linux - Laptop and Netbook 0 04-02-2004 05:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 06:33 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration