Re: loader and load: path?

2016-03-08 Thread John

Hi, (reply is at the bottom of quoted text)

On Mon, Mar 07, 2016 at 04:04:46PM +, Anthony Jenkins wrote:

set module_path /boot/kernel # ?

I don't think module_path is set to its default "/boot/kernel;/boot/modules" 
when booting to loader(8) prompt...


Anthony Jenkins

From: Steven Hartland 
To: freebsd-current@freebsd.org
Sent: Monday, March 7, 2016 9:18 AM
Subject: Re: loader and load: path?


So your saying "kldload zfs" fails because it can't find opensolaris or
are you giving it absolute paths?

If so try without absolute paths.

Regards
Steve


On 07/03/2016 14:09, Larry Rosenman wrote:

If I type load /boot/kernel/kernel, and then load /boot/kernel/zfs.ko,
the loader
(loader.efi in this case) says it can't find opensolaris.  Same for
dtraceall, where
it can't find it's dependent modules.  Just hitting enter does the
right thing.

What variable(s) am I missing?


I think you're going to have to load /bootpool/boot/kernel/zfs.ko

I've been bitten by this. Seems there was a recent change, and it
affects -stable as well as -current. The boot path was changed and
it's caused breakage. I dunno what way there is around it.

I downloaded the memstick image 10.3-RC1 on the 5th, booted to it, all
was well. Mouse working (I have a wireless mouse that uses ums0,
standard zfs-on-root install, nothing else added.

Today I ran svnlite and updated the sources, recompiled, ran
mergemaster and at the start of it it says something like (from
memory) that /boot kernel is a link and do I want to remove it? The
directory can be made later - so I agree to this. After the update,
the system is at 10.3-PRERELEASE #0 r296497

The system boots but now my mouse isn't detected as a mouse but as a
keyboard. The radeon drivers the screen needs weren't compiled, so I
go into /usr/src/sys/modules/drm2/ to make the modules, ran make
install but it bails saying that /boot/kernel isn't a directory... so
I checked and indeed it wasn't:

$ ls -lah /boot/kernel
-r-xr-xr-x  1 root  wheel   454K Mar  8 20:57 /boot/kernel
$

modules are now in /bootpool/boot/kernel/

it's a file so I can't fix this by symlinking to the real path.

It seems some modules know about the path and not others. kldload
doesn't know about the path. If I want a module loaded I have to
specify the full path. For example, if I want to load ums.ko manually,
I can:

$ sudo kldload /bootpool/boot/kernel/ums.ko

$ kldstat
Id Refs AddressSize Name
1   26 0x8020 f8f798   kernel
21 0x8119 2e9690   zfs.ko
32 0x8147a000 5640 opensolaris.ko
41 0x8148 1d698geom_eli.ko
53 0x8149e000 322f0crypto.ko
61 0x814d1000 f8c8 aio.ko
71 0x814e1000 3418 amdtemp.ko
81 0x814e6000 4e50 aesni.ko
91 0x814ec000 15080fuse.ko
101 0x81611000 22c8 ums.ko
	 
but if I unload it and then try to load it in the usual way, it can't

be found:

$ sudo kldload ums.ko
kldload: can't load ums.ko: No such file or directory

how can I fix this please? [without having to reinstall]

thanks,
--
John 
___

freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: loader and load: path?

2016-03-07 Thread Anthony Jenkins
set module_path /boot/kernel # ?

I don't think module_path is set to its default "/boot/kernel;/boot/modules" 
when booting to loader(8) prompt...


Anthony Jenkins

From: Steven Hartland 
To: freebsd-current@freebsd.org 
Sent: Monday, March 7, 2016 9:18 AM
Subject: Re: loader and load: path?


So your saying "kldload zfs" fails because it can't find opensolaris or 
are you giving it absolute paths?

If so try without absolute paths.

 Regards
 Steve


On 07/03/2016 14:09, Larry Rosenman wrote:
> If I type load /boot/kernel/kernel, and then load /boot/kernel/zfs.ko, 
> the loader
> (loader.efi in this case) says it can't find opensolaris.  Same for 
> dtraceall, where
> it can't find it's dependent modules.  Just hitting enter does the 
> right thing.
>
> What variable(s) am I missing?
>
>

___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


Re: loader and load: path?

2016-03-07 Thread Steven Hartland
So your saying "kldload zfs" fails because it can't find opensolaris or 
are you giving it absolute paths?


If so try without absolute paths.

Regards
Steve

On 07/03/2016 14:09, Larry Rosenman wrote:
If I type load /boot/kernel/kernel, and then load /boot/kernel/zfs.ko, 
the loader
(loader.efi in this case) says it can't find opensolaris.  Same for 
dtraceall, where
it can't find it's dependent modules.  Just hitting enter does the 
right thing.


What variable(s) am I missing?




___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"


loader and load: path?

2016-03-07 Thread Larry Rosenman
If I type load /boot/kernel/kernel, and then load /boot/kernel/zfs.ko, 
the loader
(loader.efi in this case) says it can't find opensolaris.  Same for 
dtraceall, where
it can't find it's dependent modules.  Just hitting enter does the right 
thing.


What variable(s) am I missing?


--
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 214-642-9640 E-Mail: l...@lerctr.org
US Mail: 7011 W Parmer Ln, Apt 1115, Austin, TX 78729-6961
___
freebsd-current@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org"