Where is loader.conf.gz?
hiren panchasara
hiren at FreeBSD.org
Sat Aug 9 00:56:11 UTC 2014
On Fri, Aug 8, 2014 at 3:56 AM, Andrey V. Elsukov <bu7cher at yandex.ru> wrote:
> On 08.08.2014 14:31, Andrey V. Elsukov wrote:
>> On 08.08.2014 01:46, hiren panchasara wrote:
>>> /* pass file name to the different filesystem open routines */
>>> besterror = ENOENT;
>>> for (i = 0; file_system[i] != NULL; i++) {
>>> fs = file_system[i];
>>> error = (fs->fo_open)(file, f); <-----zf_open() is called
>>> which returns ENOENT
>>> if (error == 0)
>>> goto ok;
>>> if (error != EINVAL)
>>> besterror = error;
>>> }
>>> error = besterror;
>>>
>>> So, the error is ENOENT at this point. But it fails in what happens after this:
>>
>> It looks like loader.efi should first open /boot/loader.conf via
>> devopen() a bit earlier in this code. Did you see this attempt in the
>> tcpdump? Can you stop loader and see what value has currdev environment
>> variable?
>
> Sorry, devopen() doesn't open a file, but nfs_fsops should be tried
> first. Maybe this code has been failed in nfs_open?
>
> #ifndef __i386__
> if (strcmp(f->f_dev->dv_name, "net") != 0)
> return(EINVAL);
> #else
I never reach this path actually.
I am not sure if I need to provide any special LOADER_*_SUPPORT while
building the loader.efi.
I need to look closer.
Btw, on loader prompt:
currdev and loaddev is net0. (and not "net")
Complete set:
Type '?' for a list of commands, 'help' for more detailed help.
OK show
LINES=24
beastie_disable=YES
boot.netif.gateway=192.168.2.1
boot.netif.hwaddr=00:13:20:fe:30:af
boot.netif.ip=192.168.2.30
boot.netif.netmask=255.255.255.0
boot.nfsroot.nfshandle=X09e70638de2da5770a000400000000003cb674000000000000000000X
boot.nfsroot.nfshandlelen=28
boot.nfsroot.path=/nfsroot
boot.nfsroot.server=192.168.2.216
bootfile=kernel
console=efi
currdev=net0:
dhcp.dhcp-lease-time=300
dhcp.dhcp-message-type=5
dhcp.dhcp-server-identifier=192.168.2.1
dhcp.root-path=/nfsroot
dhcp.routers=192.168.2.1
dhcp.subnet-mask=255.255.255.0
dhcp.tags=53,54,51,1,3,17
hint.acpi_throttle.0.disabled=1
hint.atkbd.0.at=atkbdc
hint.atkbd.0.irq=1
hint.atkbdc.0.at=isa
hint.atkbdc.0.port=0x060
hint.atrtc.0.at=isa
hint.atrtc.0.irq=8
hint.atrtc.0.port=0x70
hint.attimer.0.at=isa
hint.attimer.0.irq=0
hint.attimer.0.port=0x40
hint.fd.0.at=fdc0
hint.fd.0.drive=0
hint.fd.1.at=fdc0
hint.fd.1.drive=1
hint.fdc.0.at=isa
hint.fdc.0.drq=2
hint.fdc.0.irq=6
hint.fdc.0.port=0x3F0
hint.p4tcc.0.disabled=1
hint.ppc.0.at=isa
hint.ppc.0.irq=7
hint.psm.0.at=atkbdc
hint.psm.0.irq=12
hint.sc.0.at=isa
hint.sc.0.flags=0x100
hint.uart.0.at=isa
hint.uart.0.flags=0x10
hint.uart.0.irq=4
hint.uart.0.port=0x3F8
hint.uart.1.at=isa
hint.uart.1.irq=3
hint.uart.1.port=0x2F8
hint.wbwd.0.at=isa
interpret=OK
kernel=kernel
kernel_options=
kernelname=/boot/kernel/kernel
loaddev=net0:
loader_conf_files=/boot/device.hints /boot/loader.conf /boot/loader.conf.local
module_path=/boot/kernel
prompt=${interpret}
cheers,
Hiren
More information about the freebsd-hackers
mailing list