bug-grub
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[RFC] netboot changes


From: Thierry Laronde
Subject: [RFC] netboot changes
Date: Sun, 14 Jan 2001 16:18:52 +0100
User-agent: Mutt/1.0.1i

Hello,

I have the following goal : built a "diagnOS" floppy with the GRUB on it, 
allowing in particular to boot via the network (LAN) from any unknown 
PC with a supported PCI NIC.

At the time, if the PCI Bios is good, the function in pci.c `scan_bus'
perform the task, and indeed print what it has found. But, if one has
compiled many NIC drivers in GRUB, since all the NIC entries are tried
the "driver" called is not mandatorily the good one (for example with a
RTL8029 card (ne2k PCI), scan_bus detected it correctly, but this is the 
first entry (RTL8139) which is tried).

For the moment I have added a builtin called `probenic' which only calls the
`eth_pci_init' and displays the result of the search [before sending the 
patches, do you think this can be useful for others ?]. I want now to modify 
the way the drivers are called, mainly by adding an entry in 
 
struct pci_device {
        unsigned short  vendor, dev_id;
        const char      *name;
        unsigned int    membase;
        unsigned short  ioaddr;
        unsigned short  devfn;
};

adding a component for the name of the corresponding NIC driver to call.

Problem : what can be the policy, knowing that the majority of the code
comes from Etherboot, and that I need to modify not only GRUB specific files,
but some files originating from Etherboot ?

Are the #ifdef GRUB #endif sufficient to try to have only one source for
both Etherboot and the GRUB ?

TIA
-- 
Thierry LARONDE <address@hidden>
10, rue du Bel Air, 74000 ANNECY - FRANCE/ Tel : 33.(0)4.50.67.46.61
/home du SDF (Site Debian Francophone) : http://www.polynum.com/sdf/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]