Source-Changes archive

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

Re: CVS commit: src/sys/arch/i386/stand/pxeboot

Masao Uebayashi wrote:
>> Log Message:
>> Add support to pxeboot to allow the loading of modules.  Changes to main.c
>> are taken from boot/boot2.c.
>> This allows an install to be started by running:
>> load tftp:miniroot.kmod
>> boot tftp:netbsd-GENERIC
>> Note that the change to dev_net.c to comment out the network shutdown,
>> suggests we need to hook the network shutdown in the the common exec code.
>> If the network is shutdown, it fails to reinitialise and so fails to load
>> the module.
> Without looking at code, can we move this code to libsa?  Otherwise
> all the netboot-like loaders have to be modified to support load
> modules...

The actual code to do the work of loading modules is in
So is platform specific.

All I actually did was copy the module and load commands from the other
bootloaders to actually support modules.

There was the tweak to tftp, as loading a module does a stat on the file
so it can allocate the necessary memory, then load the file into that

There wasn't really much that wasn't just reusing what's there already
and tweaking it to work.


Home | Main Index | Thread Index | Old Index