Out of plain curiosity

A forum for general AmigaOS 4.x support questions that are not platform-specific
Post Reply
User avatar
OldFart
Posts: 100
Joined: Tue Jul 12, 2011 2:56 pm
Location: Groningen, Netherlands

Out of plain curiosity

Post by OldFart »

Hi,

When I was fiddling around with my X5000's KickStart drawer, a couple of weeks ago, I came to wonder what does a piece of software, as located in KickStart and suffixed by '.KMOD' have what it would not have when NOT located in said drawer.
In other words: What makes a KMOD a KMOD?

Just curious.

OldFart
X5000, appears to be sick. Dismantled jan 1, 2024.
Dead MicroA1
A1200 in ElBox, c/w Blizzard '040 @ 50MHz + SCSI module, ZIV-board c/w (o.a.) cv64/3d + flickerdoubler + FastATA-ZIV + Lots of SCSI gear, sitting idle.
RaspBerry Pi 2B, 3B, 4B/4Gb, 4B/8Gb
OrangePi 5+ 8Gb
ACER Windows 10
User avatar
nbache
Beta Tester
Beta Tester
Posts: 1714
Joined: Mon Dec 20, 2010 7:25 pm
Location: Copenhagen, Denmark
Contact:

Re: Out of plain curiosity

Post by nbache »

It's not the fact that the filename is ending in .kmod which does anything (that wouldn't have been very Amiga-like, would it?).

But if you put a module in the "Kickstart" dir and list it in your Kicklayout file (located in the same dir), then it will be loaded during the first part of the boot as part of the Kickstart.

I suppose the .kmod ending would stand for "kickstart module" or similar and has just become a practical convention to use, so even if you encounter the file out of context, you know it's one of the modules meant as part of the Kickstart.

There are probably also some requirements for an executable which makes it able to be used as a part of the Kickstart; I'm not sure about those. But there are several different types of modules in Kickstart, like drivers, handlers, filesystems, libraries etc., so it probably depends on the type.

There can even be plain text files in there (they wouldn't normally have the .kmod ending, though).

Best regards,

Niels
User avatar
tonyw
AmigaOS Core Developer
AmigaOS Core Developer
Posts: 1479
Joined: Wed Mar 09, 2011 1:36 pm
Location: Sydney, Australia

Re: Out of plain curiosity

Post by tonyw »

The ".kmod" files are usually drivers and libraries, as Niels said. They are all loaded by the Loader, when it finds their name in the Kicklayout configuration. They don't *have* to be in the Kickstart/ drawer (since they are listed in the Kicklayout file with their path), but it is convenient to keep them all together.

Kickstart modules can be run when loaded, or after DOS starts, or when called: it's all spelled out in the "struct Resident" that is present in every such program and scanned by the Loader.
cheers
tony
Post Reply