I want to edit initrd.img in my fedora 6 dvd-iso
Hi,
I want to edit /sbin/init and /sbin/loader files located on initrd.img of my fedora 6 dvd-iso. Thanx in advance |
Quote:
|
This time i am giving the details what i exactly want to do
Quote:
I tell you the thing here... I have compiled the new kernel with built-in support for isa-pcmcia using 3c574_cs(my pcmcia card uses this module). The newly created kernel just works fine as i have got 2 more distributions already running on my laptop but when i use the newly built kernel for installation of fedora 6, it's /sbin/loader scripts overrides dat built-in support for my card in my kernel and tries to load modules for it. (i know cause during installation i switch to other terminals as well so that i can know what modules are loading).. I have tried to make it work by removing the modules(pcmcia_core.o, 3c574_cs.o) from the /modules/modules.cgz but still it ain't working. One more thing i want to know where is that information which tells the installation process(initrd.img of isolinux folder) if we are showing it the path to correct distribution's iso's. I mean can i edit redhat's /isolinux/initrd.img (cause it is properly inserting modules for my pcmcia card, i have installed redhat from that..) so that it sees fedora6 iso's as the iso's from which linux should be installed.. I have tried it by changing a few file like .buildstamp .profile but i am not able to find a cure for this. The thing that is killing me is how to open /sbin/init and /sbin/loader. I have read those using readelf but it only gives some sort of information. I want to edit that loader so that it doesn't tries to load modules for my pcmcia card as i have compiled the support in the kernel.. Thank you I know it's boring to read all of the above stuff but i hope u'll find some way for doing this |
Quote:
Quote:
I am sorry, I cannot make head nor tail of this. It looks like you want to remaster the fedora install disk so it will install a custom kernel you have created. Is this correct? There are tools for remastering install DVDs from minor changes all the way up to creating your own distribution. Google for them. |
Thank you
Quote:
|
Requesting for a little help
With due respect i must say that you seem to be a senior member and i have already said that i am sorry for my language as i am having english as my second language. You have suggested a very nice thing to google for tools but i must say that i don't have that much time. I would have been greatful if you would have given me url's of some basic tools for doing this.
The whole thing is if you have ever tried to modify initrd.img that you must have encountered /sbin/init and /sbin/loader. These are ELF 32-bit LSB so, 386, v1 (SYSV), stripped. I am able to read the information using readelf(i am using redhat 9 for this). Now i just want to edit the loader script so that i can tell the script to try to load which module. If you can get me some info on how to modify this, i shall be thankful. Sorry for the rude behaviour. |
I still don't understand what you want to do.
If you want to install a driver for fedora core to use, you can create a driver disk and use that. You don't need to add this to the initrd in the fedora install media. If automatically loaded drivers are consistently wrong, you can override hardware detection for that kind of device. See: http://fedora.redhat.com/docs/fedora...-hardware.html The device is an "isa-pcmcia" card - I can only guess you mean an "ISA-PCMCIA Bridge" ... allowing a pcmcia card to be plugged into an ISA port?? There are drivers for these cards already Quote:
The only reason for remastering the install CD (i.e. editing its initrd.img) is to create your own distribution. This is usually done to add functionality to a live CD. Hence I am confused. |
Thank you
Hi,
Thank you. I will try to dive into the stuff. |
All times are GMT -5. The time now is 08:01 PM. |