elf binary type "0" not known.

elf binary type "0" not known.

Post by Joseph Holland Ki » Fri, 21 Jun 2002 07:53:53



i recently upgrade from 4.4 to 4.6 and the upgrade seemed to
go fine and rebooted fine. the only thing i have a problem with
is when i try to run opera i get:
ELF binary type "0" not known.
Abort trap

what did i miss? i used sysinstall to upgrade. thank you

--
Holland King        

 
 
 

elf binary type "0" not known.

Post by Steven G. Kar » Fri, 21 Jun 2002 08:29:22




Quote:> i recently upgrade from 4.4 to 4.6 and the upgrade seemed to
> go fine and rebooted fine. the only thing i have a problem with
> is when i try to run opera i get:
> ELF binary type "0" not known.
> Abort trap

> what did i miss? i used sysinstall to upgrade. thank you

Do you have the linux compatibility module loaded?
Set linux_load="YES" in /boot/loader.conf

--
Steve

 
 
 

elf binary type "0" not known.

Post by Joseph Holland Ki » Fri, 21 Jun 2002 08:55:48



: Do you have the linux compatibility module loaded?
: Set linux_load="YES" in /boot/loader.conf

this was not set, but i changed it rebooted and still it didn't work
with the same error message.

--
Holland King        

 
 
 

elf binary type "0" not known.

Post by Steven G. Kar » Fri, 21 Jun 2002 09:32:24





>: Do you have the linux compatibility module loaded?
>: Set linux_load="YES" in /boot/loader.conf

> this was not set, but i changed it rebooted and still it didn't work
> with the same error message.

What does kldstat report and what does
"brandelf -v /path/to/opera" report?

You might need to brand opera.

--
Steve

 
 
 

elf binary type "0" not known.

Post by Joseph Holland Ki » Fri, 21 Jun 2002 10:10:54



: What does kldstat report and what does
: "brandelf -v /path/to/opera" report?


Id Refs Address    Size     Name
 1    3 0xc0100000 219ce8   kernel.old
 2    1 0xc0e2f000 1b000    usb.ko
 3    1 0xc0e65000 3000     daemon_saver.ko


brandelf: file '/usr/local/bin/opera' is not ELF format

: You might need to brand opera.

hum ok this in the handbook?

--
Holland King        

 
 
 

elf binary type "0" not known.

Post by Joseph Holland Ki » Fri, 21 Jun 2002 10:24:32




: : What does kldstat report and what does
: : "brandelf -v /path/to/opera" report?


: Id Refs Address    Size     Name
:  1    3 0xc0100000 219ce8   kernel.old
:  2    1 0xc0e2f000 1b000    usb.ko
:  3    1 0xc0e65000 3000     daemon_saver.ko


: brandelf: file '/usr/local/bin/opera' is not ELF format

ok maybe i shouldn't post so soon.
after looking at the opera file i found it was a shell scrip that calls
/usr/local/bin/opera-bin


File '/usr/local/bin/opera-bin' is of brand 'SVR4' (0).



ELF binary type "3" not known.
Abort trap

so even when i try to brand it to linux (which im assuming is the right
thing to do) it still fails.

--
Holland King        

 
 
 

elf binary type "0" not known.

Post by Steven G. Kar » Sat, 22 Jun 2002 00:59:45






>: : What does kldstat report and what does
>: : "brandelf -v /path/to/opera" report?


>: Id Refs Address    Size     Name
>:  1    3 0xc0100000 219ce8   kernel.old
>:  2    1 0xc0e2f000 1b000    usb.ko
>:  3    1 0xc0e65000 3000     daemon_saver.ko

So, do you compile your kernel with "options COMPAT_LINUX"
and "options LINPROCFS" in the kernel config file?   If not,
you need to load the kernel modules linux.ko and linprocfs.ko.
You cani automatically load these modules at boot up by adding
linux_load="YES"
linprofs_load="YES"
to /boot/loader.conf

You can also do

kldload /boot/kernel/linux.ko
kldload /boot/kernel/linproc.ko

after you boot.


> File '/usr/local/bin/opera-bin' is of brand 'SVR4' (0).

This should be fine.

--
Steve
http://troutmask.apl.washington.edu/~kargl/

 
 
 

elf binary type "0" not known.

Post by Joseph Holland Ki » Sat, 22 Jun 2002 05:32:15



: So, do you compile your kernel with "options COMPAT_LINUX"

when i include this the make fails

: and "options LINPROCFS" in the kernel config file?   If not,

when i include this /usr/sbin/config fails complaining that is not
a valid option. i looked through lint and didn't see that option
but the first one is in there and exactly how i included it.

: you need to load the kernel modules linux.ko and linprocfs.ko.
: You cani automatically load these modules at boot up by adding
: linux_load="YES"
: linprofs_load="YES"
: to /boot/loader.conf

: You can also do

: kldload /boot/kernel/linux.ko
: kldload /boot/kernel/linproc.ko


kldload: can't load /boot/kernel/linux.ko: No such file or directory

a search reveals a copy of it under /modules, /modules.old, and few other
places, when i try those


kldload: can't load /modules/linux.ko: Exec format error

and this is the same for both files at all locations

thank you for all of your help i really appreciate.

--
Holland King        

 
 
 

elf binary type "0" not known.

Post by Lee Har » Sat, 22 Jun 2002 08:31:05



> kldload: can't load /boot/kernel/linux.ko: No such file or directory

> a search reveals a copy of it under /modules, /modules.old, and few other
> places, when i try those


> kldload: can't load /modules/linux.ko: Exec format error

> and this is the same for both files at all locations

How did you upgrade exactly?
Maybe your userland & kernel are out of sync?
Did you run mergemaster?
 
 
 

elf binary type "0" not known.

Post by Joseph Holland Ki » Sat, 22 Jun 2002 09:24:59


: How did you upgrade exactly?
: Maybe your userland & kernel are out of sync?
: Did you run mergemaster?

i used sysinstall->upgrade via ftp
then rebooted.
i did not use mergemaster wasn't really aware that i needed to
for the sysinstall way. im close to just wiping and doing a
fresh install.

--
Holland King        

 
 
 

elf binary type "0" not known.

Post by Steven G. Kar » Sat, 22 Jun 2002 09:35:25





>: So, do you compile your kernel with "options COMPAT_LINUX"

> when i include this the make fails

Ah, you did omit the " marks, right? :-)

It seems your sources might be a bit screwed up.  Do you
use cvsup to upgrade?  I suspect your kernel and world
are out of sync.

Quote:

>: and "options LINPROCFS" in the kernel config file?   If not,

> when i include this /usr/sbin/config fails complaining that is not
> a valid option. i looked through lint and didn't see that option
> but the first one is in there and exactly how i included it.

It could be a 5.0 options.   It should be near COMPAT_LINUX
in LINT.

>: you need to load the kernel modules linux.ko and linprocfs.ko.
>: You cani automatically load these modules at boot up by adding
>: linux_load="YES"
>: linprofs_load="YES"
>: to /boot/loader.conf

>: You can also do

>: kldload /boot/kernel/linux.ko
>: kldload /boot/kernel/linproc.ko


> kldload: can't load /boot/kernel/linux.ko: No such file or directory

How do you build your kernel?  I recommend the 7 step process

cvsup
make buildworld
make buildkernel
make installkernel
reboot into single user mode
make installworld
mergemaster

This keeps everything in-sync.

Quote:> a search reveals a copy of it under /modules, /modules.old, and few other
> places, when i try those

These are probably 4.4 modules and will cause problems if you get
them loaded.

--
Steve

 
 
 

elf binary type "0" not known.

Post by Michael Schmiedge » Sat, 22 Jun 2002 19:09:54




>: How did you upgrade exactly?
>: Maybe your userland & kernel are out of sync?
>: Did you run mergemaster?

> i used sysinstall->upgrade via ftp
> then rebooted.
> i did not use mergemaster wasn't really aware that i needed to
> for the sysinstall way. im close to just wiping and doing a
> fresh install.

Also have a look at /usr/src/UPDATING. There is a point
about Linux compat kernel(module) sources.

--


     http://www.takwa.de/~schmiedgen/

 
 
 

elf binary type "0" not known.

Post by Bill Vermilli » Fri, 05 Jul 2002 22:57:12





>: What does kldstat report and what does
>: "brandelf -v /path/to/opera" report?

>Id Refs Address    Size     Name
> 1    3 0xc0100000 219ce8   kernel.old
> 2    1 0xc0e2f000 1b000    usb.ko
> 3    1 0xc0e65000 3000     daemon_saver.ko


>brandelf: file '/usr/local/bin/opera' is not ELF format
>: You might need to brand opera.
>hum ok this in the handbook?

On another Linux application I had where all other apps for Linux
showed up as SysV types, I had to brand one as a type linux to make
it work.

Never figured out why and it was only one program.

--

 
 
 

elf binary type "0" not known.

Post by Donn Mille » Fri, 05 Jul 2002 22:45:00






>>: What does kldstat report and what does
>>: "brandelf -v /path/to/opera" report?


>>Id Refs Address    Size     Name
>> 1    3 0xc0100000 219ce8   kernel.old
>> 2    1 0xc0e2f000 1b000    usb.ko
>> 3    1 0xc0e65000 3000     daemon_saver.ko

Looks like the Linux module isn't loaded.  I'd advise trying

kldload linux

as root.

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
-----==  Over 80,000 Newsgroups - 16 Different Servers! =-----

 
 
 

elf binary type "0" not known.

Post by Troy Oxb » Fri, 19 Jul 2002 12:03:16


On my Alpha DPW 500 I had a similar problem because the linux module
wouldn't load.  I tried

kldload linux

but it would fail saying the linux.ko file did not exists even though it was
in the modules directory.  For some reason, if was trying to make an OSF/1
call.  I installed the port from /emulators/osf1 and only then could I get
the linux module to load.






> >>: What does kldstat report and what does
> >>: "brandelf -v /path/to/opera" report?


> >>Id Refs Address    Size     Name
> >> 1    3 0xc0100000 219ce8   kernel.old
> >> 2    1 0xc0e2f000 1b000    usb.ko
> >> 3    1 0xc0e65000 3000     daemon_saver.ko

> Looks like the Linux module isn't loaded.  I'd advise trying

> kldload linux

> as root.

> -----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
> http://www.newsfeeds.com - The #1 Newsgroup Service in the World!
> -----==  Over 80,000 Newsgroups - 16 Different Servers! =-----