LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-31-2023, 02:36 PM   #31
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled

You built the kernel, build all the needed drivers in, then there is no need for modules and/or initramfs.
 
Old 08-31-2023, 10:55 PM   #32
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
Quote:
Originally Posted by Emerson View Post
You built the kernel, build all the needed drivers in, then there is no need for modules and/or initramfs.
I second that. The drivers you really need are those for your drive controller (in my case xhci) and root filesystem. Once the kernel has access to your root partition, it can load drivers for less fundamental things like sound or network. Drivers for hardware you don't even have shouldn't be built at all.
 
Old 09-01-2023, 05:59 AM   #33
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Quote:
Originally Posted by The486Nerd View Post
I wasn't able to get the bzImage down enough with kernel 6.5 so I decided to go with putting it on a CD. One more question, how would I go about putting network card drivers in the CD? Is there a file I need to put in the initramfs or something?
That, IMHO, is crazy to even try. There's been so much added to that kernel since the '486 days with security enhancements, protocols, the conversion to 64-bit, etc. I know from being on the Tomsrtbt forum when it was a thing that Tom had tried and failed to get even a 2.2 kernel into his 1.82MB floppy. Libc6 was out in 2000, but Tom didn't have the space to update. Knock yourself out out if you want to, but it's unfair to waste the time of other folks without being open with them.

What did you get the 6.5 kernel down to? 5MB? Go on - how near are you?

In post #27 I linked the Tomsrtbt-2.0.103 archive which formats a floppy to 1.82MB and will dd a disk to it. Also instructive is to reverse engineer early distros which were put out on floppies.
 
Old 09-01-2023, 12:31 PM   #34
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
For the record, I have a 5.15.63 kernel source here. I ran the following
Code:
cd /usr/src/linux-5.15.63
make distclean
make allnoconfig
make -j12
The resulting bzImage in arch/x86/boot was a bit over 1.3MB (1348880 bytes). That leaves you 100k for everything else on your 1.44MB floppy. It drives nothing. It won't boot. It won't handle the ISA bus, serial/parallel ports, even the floppy drive once you're going. That's booted from the BIOS, but needs a module to run once the kernel is up.

Post #27? Or knock yourself out with a 2.2 kernel.
 
Old 09-07-2023, 03:02 AM   #35
Projectile
Member
 
Registered: Jun 2023
Posts: 72
Blog Entries: 1

Rep: Reputation: 13
Can't unneeded features and drivers be disabled (or stripped out) from the kernel to keep the image small?
 
Old 09-08-2023, 12:10 AM   #36
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
Quote:
Originally Posted by Projectile View Post
Can't unneeded features and drivers be disabled (or stripped out) from the kernel to keep the image small?
Well of course you'd do that. The whole point of compiling your own kernel is not to build the bits you don't want. But with a modern kernel, even the stripped down version won't fit on a floppy
 
Old 09-08-2023, 02:47 AM   #37
rokytnji
LQ Veteran
 
Registered: Mar 2008
Location: Waaaaay out West Texas
Distribution: antiX 23, MX 23
Posts: 7,117
Blog Entries: 21

Rep: Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474Reputation: 3474
Was going to stay out of this

https://www.linuxquestions.org/quest...-1540-dm-1388/

https://www.linuxquestions.org/quest...q-1540dm-1393/

Since OP is trying to re write the wheel on old gear. So not sure if helpful not
8 bit gear is getting harder to deal with as time moves along.
antiX was full install was a no go on that 8 bit machine, Probably a core iso like a Debian net install but I am not sure of OP linux skill set. Talking about a net install and build from scratch from there kind of skills.

From a a guy who runs it

Code:
$ inxi -b 
System:
  Host: antix1 Kernel: 5.10.153-antix.1-amd64-smp arch: x86_64 bits: 64
    Desktop: IceWM v: 3.4.1 Distro: antiX-22_x64-full Grup Yorum 18 October 2022
Machine:
  Type: Laptop System: GOOGLE product: Candy v: 1.0
    serial: <superuser required>
  Mobo: GOOGLE model: Candy v: 1.0 serial: <superuser required>
 
Old 09-08-2023, 04:33 AM   #38
DwyneJohnson
LQ Newbie
 
Registered: Sep 2023
Posts: 1

Rep: Reputation: 0
Well of course you'd do that. The whole point of compiling your own kernel is not to build the bits you don't want. But with a modern kernel, even the stripped down version won't fit on a floppy
 
Old 09-08-2023, 07:20 AM   #39
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
Can I remind you guys that the OP has had the solution since post #27 and isn't currently contributing? Tom Oehser couldn't even squeeze the 2.2 kernel onto his 1.82MB (=1.44MB but more densely formatted) floppy without dropping something he considered more important.
 
Old 09-20-2023, 02:54 PM   #40
The486Nerd
LQ Newbie
 
Registered: Jul 2023
Distribution: Linux Mint
Posts: 11

Original Poster
Rep: Reputation: 0
Marking as solved
 
Old 09-21-2023, 04:32 AM   #41
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,309

Rep: Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325Reputation: 2325
It's useful to others to mention how you fixed it. I guess you used Tomsrtbt?
 
  


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 02:27 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