Modules dont load.

Need support for GhostBSD. Ask here if your question does not fit elsewhere.
Post Reply
jackz
Posts: 12
Joined: Tue Nov 25, 2014 9:50 pm

Modules dont load.

Post by jackz »

Hi ghost users! :twisted:

Sorry for my poor english. :|

I have a little issue with ghost, in my pc installed ghostbsd 4.0 (freebsd 10.0) and worked very well! (thanks to developers!!!), I have upgraded to freebsd 10.1, I followed this guide https://www.freebsd.org/releases/10.1R/ ... ation.html and worked it! but now in the boot to show me: new kernel (10.1) and old kernel (10.0).

In the new kernel, the mouse doesn't work, only show me it, I believe that I found the issue(s): the modules don't load in the boot time's neither manually. And ipfw and others.

these are the logs..

Code: Select all

Nov 25 19:26:44 Haskell kernel: KLD uhid.ko: depends on kernel - not available or version mismatch
Nov 25 19:26:44 Haskell kernel: KLD ums.ko: depends on kernel - not available or version mismatch
Nov 25 19:26:44 Haskell kernel: KLD netgraph.ko: depends on kernel - not available or version mismatch
Nov 25 19:26:44 Haskell kernel: KLD vboxnetflt.ko: depends on netgraph - not available or version mismatch
Nov 25 19:26:44 Haskell kernel: KLD ipfw.ko: depends on kernel - not available or version mismatch
Nov 25 19:26:44 Haskell root: /etc/rc: WARNING: Unable to load kernel module linux
Nov 25 19:26:44 Haskell kernel: KLD linux.ko: depends on kernel - not available or version mismatch

uname -a
FreeBSD Haskell 10.0-RELEASE FreeBSD 10.0-RELEASE #0: Sun Aug 31 01:32:11 ADT 2014     root@ericbsd:/usr/obj/i386.i386/usr/src/sys/GHOSTBSD  i386

freebsd-version
10.1-RELEASE

sysctl kern.osreldate 
kern.osreldate: 1000510

sysctl kern.osrelease
kern.osrelease: 10.0-RELEASE

sysctl kern.bootfile
kern.bootfile: /boot/kernel/kernel

kldstat
Id Refs Address    Size     Name
 1   56 0xc0400000 17572dc  kernel
 2    1 0xc651a000 29000    vboxguest.ko
 3    1 0xc6552000 2000     vboxvideo.ko
 4    1 0xc6554000 15000    drm.ko

kldload /boot/kernel/ums.ko    No such file or directory

 ls -l /boot/kernel/um
/boot/kernel/umass.ko   /boot/kernel/umcs.ko    /boot/kernel/umct.ko   
/boot/kernel/umodem.ko  /boot/kernel/umoscom.ko /boot/kernel/ums.ko   

I add these lines (usb_load="YES" ums_load="YES") to /boot/loader.conf && /boot/defaults/loader.conf .
But it still doesn't work.

And the old kernel works very well!

Code: Select all

 kldstat
Id Refs Address    Size     Name
 1   56 0xc0400000 17572dc  kernel
 2    1 0xc1b58000 4ae8     udbp.ko
 3    4 0xc1b5d000 ec74     netgraph.ko
 4    1 0xc1b6c000 59e0     ums.ko
 5    1 0xc651a000 29000    vboxguest.ko
 6    1 0xc6552000 2000     vboxvideo.ko
 7    1 0xc6554000 15000    drm.ko
 8    1 0xc6698000 4000     uhid.ko
 9    2 0xc6886000 5000     vboxnetflt.ko
10    2 0xc688b000 37000    vboxdrv.ko
11    1 0xc68de000 4000     ng_ether.ko
12    1 0xc68e2000 6000     vboxnetadp.ko
13    1 0xc691e000 12000    ipfw.ko
14    1 0xc6951000 4a000    linux.ko
15    1 0xc6ad9000 66000    i915kms.ko
16    1 0xc6b3f000 3d000    drm2.ko
17    4 0xc6b7c000 4000     iicbus.ko
18    1 0xc6bac000 3000     iic.ko
19    1 0xc6baf000 4000     iicbb.ko

And it has same configurations

Code: Select all

uname -a
FreeBSD Haskell 10.0-RELEASE FreeBSD 10.0-RELEASE #0: Sun Aug 31 01:32:11 ADT 2014     root@ericbsd:/usr/obj/i386.i386/usr/src/sys/GHOSTBSD  i386

freebsd-version
10.1-RELEASE

sysctl kern.osreldate 
kern.osreldate: 1000510

sysctl kern.osrelease
kern.osrelease: 10.0-RELEASE
How to fix it???
I probably broke the system with the upgrade of freebsd. :(
Unix Jr.
Spanish && English language.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Modules dont load.

Post by ericbsd »

do you have the source code of FreeBSD install(/usr/src/)?
jackz
Posts: 12
Joined: Tue Nov 25, 2014 9:50 pm

Re: Modules dont load.

Post by jackz »

Thanks for answer.

ericbsd I don't have source code of freebsd, my directory is:

Code: Select all

ls -al /usr/src/
total 24
drwxr-xr-x   3 root  wheel  512 Sep 24 17:52 .
drwxr-xr-x  17 root  wheel  512 Nov 19 20:58 ..
drwxr-xr-x   2 root  wheel  512 Sep 24 17:52 sys

ls -al /usr/src/sys/
total 16
drwxr-xr-x  2 root  wheel  512 Sep 24 17:52 .
drwxr-xr-x  3 root  wheel  512 Sep 24 17:52 ..

I only upgrade to fellow this steps of FreeBSD's release 10.1 installation...
https://www.freebsd.org/releases/10.1R/ ... ation.html

# freebsd-update fetch
# freebsd-update install
# freebsd-update upgrade -r 10.1-RELEASE
# freebsd-update install
# shutdown -r now
# freebsd-update install
# freebsd-update install
# shutdown -r now

So Do I need the source code of freebsd? and what should I do? :?:
Unix Jr.
Spanish && English language.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Modules dont load.

Post by ericbsd »

you might need to recompile the kernel and you need ftp://ftp.freebsd.org/pub/FreeBSD/relea ... SE/src.txz or ftp://ftp.freebsd.org/pub/FreeBSD/relea ... SE/src.txz.

Extract in / and after

Code: Select all

cd /usr/src
make buildkernel
make installkernel
and restart this will be your first compile of a FreeBSD kernel.
jackz
Posts: 12
Joined: Tue Nov 25, 2014 9:50 pm

Re: Modules dont load.

Post by jackz »

Hi my friend.
I just do than you say me, and works! And boot a new kernel with mouse support.
Thank you.
Unix Jr.
Spanish && English language.
User avatar
ericbsd
Developer
Posts: 2052
Joined: Mon Nov 19, 2012 7:54 pm

Re: Modules dont load.

Post by ericbsd »

Happy that help.
juttt45
Posts: 1
Joined: Tue Mar 31, 2015 9:04 am

Re: Modules dont load.

Post by juttt45 »

Do you have the source code of FreeBSD install(/usr/src/)????
Post Reply