Re: Failed to load linux.ko during boot

2001-04-09 Thread Szilveszter Adam

On Tue, Apr 10, 2001 at 10:05:27AM +0300, Sakari Jalovaara wrote:
> I was wondering about this too.  /etc/rc does this:
> 
>   if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
>   kldload linux > /dev/null 2>&1
>   fi
<...>

I believe this has been fixed yesterday. (The shell that is)
Try to upgrade and see if it goes away:-)

Good luck!
-- 
Regards:

Szilveszter ADAM
Szeged University
Szeged Hungary

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Failed to load linux.ko during boot

2001-04-09 Thread Sakari Jalovaara

I wrote:
> Hmm, "man sh" promises that [ if ! ... ] should work, but ...  Shell bug?!
> 
> (Apr 6 vintage current).

This was already fixed by Brian yesterday.

To make linux.ko loading (and quite likely other stuff as well) work:
re-sup and recompile, /bin/sh in particular.

++sakari

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Failed to load linux.ko during boot

2001-04-09 Thread Sakari Jalovaara

I was wondering about this too.  /etc/rc does this:

if ! kldstat -v | grep -E 'linux(aout|elf)' > /dev/null; then
kldload linux > /dev/null 2>&1
fi

Works better for me if I add parens to the "if ! ..." bit:

if ! ( kldstat -v | grep -E 'linux(aout|elf)' > /dev/null ); then

Hmm, "man sh" promises that the first variant should work, but when
I try this:

if ! pwd | cat /dev/null; then
echo yup
else
echo nope
fi

it prints "yup".  Also prints "yup" if I remove the "!".  Shell bug?!

(Apr 6 vintage current).

++sakari

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Failed to load linux.ko during boot

2001-04-05 Thread Morten Skriver

On Thu, Apr 05, 2001 at 02:41:54PM -0700, David O'Brien wrote:
> On Thu, Apr 05, 2001 at 11:30:21PM +0200, Morten Skriver wrote:
> > [morten@mosk-pc]:/usr/home/morten$ linux   
> > kldload: can't load linux: Operation not permitted
> > ELF binary type "3" not known.
> > Abort trap
> 
> You did not `brandelf' your /compat/linux/sbin/ldconfig.
> Did you install this from /usr/ports/emulators/linux_base?
> 

Yes, I installed it from /usr/ports/emulators/linux_base, but it was a
old installation. All I did was to cvsup my source and do a new make
buildworld

Yours sincerely

Morten Skriver
Email: [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Failed to load linux.ko during boot

2001-04-05 Thread David O'Brien

On Thu, Apr 05, 2001 at 11:30:21PM +0200, Morten Skriver wrote:
> [morten@mosk-pc]:/usr/home/morten$ linux   
> kldload: can't load linux: Operation not permitted
> ELF binary type "3" not known.
> Abort trap

You did not `brandelf' your /compat/linux/sbin/ldconfig.
Did you install this from /usr/ports/emulators/linux_base?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Failed to load linux.ko during boot

2001-04-05 Thread Doug White

On Thu, 5 Apr 2001, Morten Skriver wrote:

> On Thu, Apr 05, 2001 at 11:16:48PM +0200, Morten Skriver wrote:
> >
> > I upgraded my -Current today and after doing this, it has stopped to load
> > linux.ko into the kernel even though I have linux_enable="YES" in my
> > rc.conf
> >
>
> I forgot to tell, that I recive the following error message if I use the
> linux utility to load the module:
>
> [morten@mosk-pc]:/usr/home/morten$ linux
> kldload: can't load linux: Operation not permitted

Helps to do it as root.

Doug White|  FreeBSD: The Power to Serve
[EMAIL PROTECTED] |  www.FreeBSD.org


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: Failed to load linux.ko during boot

2001-04-05 Thread Morten Skriver

On Thu, Apr 05, 2001 at 11:16:48PM +0200, Morten Skriver wrote:
> 
> I upgraded my -Current today and after doing this, it has stopped to load
> linux.ko into the kernel even though I have linux_enable="YES" in my
> rc.conf
> 

I forgot to tell, that I recive the following error message if I use the
linux utility to load the module:

[morten@mosk-pc]:/usr/home/morten$ linux   
kldload: can't load linux: Operation not permitted
ELF binary type "3" not known.
Abort trap

Yours sincerely

Morten Skriver
Email: [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Failed to load linux.ko during boot

2001-04-05 Thread Morten Skriver

Hi,

I upgraded my -Current today and after doing this, it has stopped to load
linux.ko into the kernel even though I have linux_enable="YES" in my
rc.conf

If I manually do a kldload linux.ko it loads the module without any
problems.

Do you have any suggestion why, it doesn't load the module during boot ?

Yours sincerely

Morten Skriver
Email: [EMAIL PROTECTED]

To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message