Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jul 2015 11:15:36 -0700
From:      George Hartzell <hartzell@alerce.com>
To:        FreeBSD Questions <questions@freebsd.org>
Subject:   loader can't load vmm.ko after upgrade of -STABLE
Message-ID:  <21930.38856.925971.642440@alacrity.local>

next in thread | raw e-mail | index | archive | help

I've filed this as [bug
201679](https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201679).

---

I upgraded my 10.2-STABLE system via svn last night, did the build and
install world and kernel dance.  Generally everything is as it should
be.

But, I can no longer load `vmm.ko` via the loader, which used to work.

I have these lines in `/boot/loader.conf`:

```
vmm_load="YES"
pptdevs="0/23/0"
```

and/but at the machine boots, I get this on the console.

```
>> FreeBSD EFI boot block
   Loader path: /boot/loader.efi
Consoles: EFI console  
Image base: 0x78a69000
EFI version: 2.40
EFI Firmware: EDK II (rev 1.00)
 
FreeBSD/amd64 EFI loader, Revision 1.1
(root@fishy.alerce.com, Sat Jul 18 00:42:15 PDT 2015)
Loading /boot/defaults/loader.conf
/boot/kernel/kernel text=0x1396e50 data=0x132738+0x4d7f40 syms=[0x8+0x159d50+0x8
+0x17465c]
/boot/entropy size=0x1000
/boot/kernel/vmm.ko |
elf64_obj_loadimage: read failed
 
 
Hit [Enter] to boot immediately, or any other key for command prompt.
Booting [/boot/kernel/kernel]...               
Start @ 0xffffffff802f9000 ...
```

I am unable to load them by hand via the loader either:

```
OK 
OK load vmm
/boot/kernel/vmm.ko -
elf64_obj_loadimage: read failed
 
can't load file '/boot/kernel/vmm.ko': input/output error
OK 
```

Loading `/boot/kernel.old/vmm.ko` (from the old build) also fails.

I can load the module using `kldload` once the system is up and running.  

I also noticed that the `if_urtwn.ko` module loaded via the loader, so I think that loading kernel modules is not generally broken.

```
root@fishy:~ # kldload vmm
root@fishy:~ # kldstat
Id Refs Address            Size     Name
 1    9 0xffffffff80200000 1e6fa38  kernel
 2    1 0xffffffff82211000 11f42    if_urtwn.ko
 3    1 0xffffffff82223000 338ac2   vmm.ko
root@fishy:~ # 
```

I'd like to get this working.  Suggestions?



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21930.38856.925971.642440>