Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 19 Sep 2019, 00:06
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
depmod & initrd.gz
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [1 Post]  
Author Message
Sunny

Joined: 20 Oct 2009
Posts: 35

PostPosted: Sat 07 Oct 2017, 14:14    Post subject:  depmod & initrd.gz
Subject description: How to run depmod with compressed modules
 

I am trying to make some minor modifications to initrd.gz (PuppyPrecise and Fatdog64-521). I want to run depmod on the initrd directory, but it complains: "WARNING: Can't read module ... Exec format error" for all the modules when I run the following command from the extracted initrd directory:

depmod -b $(pwd) -a

All the kernel modules in initrd are compressed in the gz format (for example, "cryptoloop.ko.gz"), Note that the original "modules.dep" file that is included in initrd.gz lists all files with a .gz suffix, so it must be possible to run depmod on gzipped modules.

So the question is, how do I run depmod when the kernel modules are compressed with gzip?

EDIT1: The depmod command supplied with these older distributions don't (but probably should) handle compressed modules. I found that the later Fatdog64 releases (which used a humongous initrd) did not use compressed modules in initrd. I was able to use the fatdog-split-initrd.sh command to access the initrd kernel modules, make my modifications, and rebuild initrd successfully. The newer Fatdog64-710 boot parameters simplified my project. (I wanted to boot from a Firewire Drive on a system whose bios does not recognize this as a boot drive)

EDIT2: For the PuppyPrecise release, it looks like there is depmod command supplied in initrd (in the bin subdirectory) which links to busybox. This depmod handles the gzipped modules properly. So for my original question, it looks like I should have run the command from the extracted initrd directory as:
bin/depmod -b $(pwd) -a
Also, since all the other modules were in the gz format, I gzipped the firewire modules that I added before running depmod.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [1 Post]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0316s ][ Queries: 11 (0.0105s) ][ GZIP on ]