Re: How to get a patched kernel into anaconda?



On 07/09/08 16:19, Matt Domsch wrote:
On Sun, Sep 07, 2008 at 04:04:28PM +0200, Anders Karlsson wrote:
* Erik P. Olsen <epodata@xxxxxxxxx> [20080907 15:10]:
This is all new land for me, so bear with me if the answer is trivial.

I have patched kernel 2.6.23.1-42.fc8 (actually sata_mv.c) to support my sta
disk controller. It works correctly, I can attach my disks make directories and
store data on them and even retrieve the data. So from that perspective
everything is fine.

The next thing I want to do is to boot from the disks and create my system on
them. That means as far as I can see that anaconda must use the patched kernel.
Is there a way to load this kernel during start of anaconda or can I create a
new install dvd with the kernel added?

Can someone help me with this?
This sounds like you are in the territory of
http://driverupdateprogram.com and using driver update disks. With
that, you could build your patched driver out-of-tree, and supply that
on a driver disk (boot the installer with "linux dd") to use during
installation.

Benefit of doing it this way is that you don't have to recompile the
whole kernel. The problem I can see is that when you after
installation update your system, the new kernel that will get pulled
in may not provide the driver functionality that you need to drive the
disks, so you may end up requiring to build kmod packages for every
new kernel until the driver patch is accepted upstream and/or makes it
in to the Fedora kernel.

DKMS can be used to generate driver disks which you can then load into
anaconda, and can generate RPMs which can be rebuilt as you update
your kernel. Conveniently, DKMS is also included in Fedora. :-)

See http://linux.dell.com/dkms/dkms.html for documentation, and 'yum
install dkms' to begin using it.

Well, this looks complicated for someone like me who has never done that sort of
thing before. I have a patched module named sata_mv.c and all I want is a driver
floppy to be used when booting the install DVD. This sounds awfully simple to me
but I completely bail out when I read the documentation. It would have helped
tremendously if an example were available, sigh.

--
Erik.


--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines



Relevant Pages

  • Re: [RFC] zero downtime upgrades to the kernel.
    ... > We could maybe start with just being able to upgrade kernel modules ... > Could we replace the hard disc driver while it was still being used, ... You can only upgrade a module that isn't in use. ... There are some trick you can use with disks: ...
    (Linux-Kernel)
  • Re: kernel panic, Areca, 6.2-REL with GENERIC [Was: Re: 6.2-st panic w/ ggate [Was: Re: kern
    ... On Feb 15, 2007, at 11:06 AM, Scott Long wrote: ... Aug 29 02:11:40 greengoose syslogd: kernel boot file is /boot/ kernel/kernel ... But if not, it seems whatever bug in this driver existed, did not go away... ... Gotta give a big thanks to the whoever is working on these drivers, once you get working with big disks, it takes A LONG TIME to figure out what's wrong... ...
    (freebsd-stable)
  • Re: Help with hardware please
    ... Anyhow, put the new board in, booted and got a kernel panic/not ... Are your disks plain IDE or are they SATA? ... IDE driver on the old motherboard? ...
    (comp.os.linux.misc)
  • Re: /etc/udev/rules.d and permissions in /dev/usb
    ... The udevsynthesize/uevent approach actually found a bug in the kernel ... >> It was there from the start of udev. ... Well, it's not a problem for you, but I've got SCSI disks... ...
    (uk.comp.os.linux)
  • Re: How to get a patched kernel into anaconda?
    ... The next thing I want to do is to boot from the disks and create my system on ... That means as far as I can see that anaconda must use the patched kernel. ... http://driverupdateprogram.com and using driver update disks. ...
    (Fedora)