[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linux emulation problem



Hi,

I've opened the linux_lib-2.6.1.tar.gz tarball under /emul/linux on an
OpenBSD 2.5 with GENERIC kernel,
and even on another one with a custom kernel that only differs with
GENERIC in that it emulates **only**
Linux. After having run /emul/linux/sbin/ldconfig, I tried
/emul/linux/usr/bin/ldd:

openbsd#/emul/linux/usr/bin/ldd /emul/linux/usr/bin/ldd
/emul/linux/usr/bin/ldd[139]: /lib/ld-linux.so.2: not found
        not a dynamic executable

Then changed RTLD=/lib/ld-linux.so.2 to
RTLD=/emul/linux/lib/ld-linux.so.2 inside /emul/linux/usr/bin/ldd:

openbsd#/emul/linux/usr/bin/ldd /emul/linux/usr/bin/ldd
/emul/linux/lib/ld-linux.so.2[1]: syntax error: `(' unexpected
        not a dynamic executable

ldd attempts to execute /emul/linux/lib/ld-linux.so.2. Trying it
manually I get:

openbsd#/emul/linux/lib/ld-linux.so.2
/emul/linux/lib/ld-linux.so.2: Exec format error. Wrong Architecture.

>From all these I conclude that the Linux emulation is not working
properly, can anybody say if I'm
doing anything wrong or there's just a bug somewhere ?


Here's my dmesg:
OpenBSD 2.5 (GENERIC) #243: Fri Apr 16 09:16:34 MDT 1999
    deraadt@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC
cpu0: Intel Pentium II ("GenuineIntel" 686-class, 512KB L2 cache) 333
MHz
cpu0:
FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,SYS,MTRR,PGE,MCA,CMOV,PAT,PSE36,MMX,FXSR

BIOS mem  = 654336 conventional, 133169152 extended
real mem  = 133824512
avail mem = 121389056
using 1659 buffers containing 6795264 bytes of memory
mainbus0 (root)
bios0 at mainbus0: AT/286+(d1) BIOS, date 07/17/98
bios0: pciinfo 0xf049d00c diskinfo 0xf049d028 cksumlen 64 memmap
0xf049d0e4
pci0 at mainbus0 bus 0: configuration mode 1 (bios)
pchb0 at pci0 dev 0 function 0 "Intel 82441FX PCI/Memory (PMC)" rev 0x02

pcib0 at pci0 dev 4 function 0 "Intel 82371SB (Triton II) PCI-ISA" rev
0x01
"Intel 82371SB (Triton II) IDE" rev 0x00 at pci0 dev 4 function 1 not
configured
fxp0 at pci0 dev 6 function 0 "Intel 82557" rev 0x05: irq 9, address
00:90:27:61:50:02
inphy0 at fxp0 phy 1: i82555 10/100 media interface, rev. 0
inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
ahc1 at pci0 dev 7 function 0 "Adaptec AIC-7880" rev 0x01: irq 11
ahc1: aic7880 Wide Channel, SCSI Id=7, 16 SCBs
scsibus0 at ahc1: 16 targets
ahc1: target 1 using 16Bit transfers
ahc1: target 1 synchronous at 20.0MHz, offset = 0x8
sd0 at scsibus0 targ 1 lun 0: <HP, 4.26GB B 68-5520, 5520> SCSI2
0/direct fixed
sd0: 4067MB, 8338 cyl, 5 head, 199 sec, 512 bytes/sec, 8330543 sec total

ahc1: target 2 using 16Bit transfers
ahc1: target 2 synchronous at 20.0MHz, offset = 0x8
sd1 at scsibus0 targ 2 lun 0: <HP, 4.26GB B 68-5520, 5520> SCSI2
0/direct fixed
sd1: 4067MB, 8338 cyl, 5 head, 199 sec, 512 bytes/sec, 8330543 sec total

ahc1: target 3 using 16Bit transfers
ahc1: target 3 synchronous at 20.0MHz, offset = 0x8
sd2 at scsibus0 targ 3 lun 0: <HP, 4.26GB B 68-5520, 5520> SCSI2
0/direct fixed
sd2: 4067MB, 8338 cyl, 5 head, 199 sec, 512 bytes/sec, 8330543 sec total

ahc2 at pci0 dev 12 function 0 "Adaptec AIC-7850" rev 0x03: irq 10
ahc2: Using left over BIOS settings
ahc2: aic7850 Single Channel, SCSI Id=7, 3 SCBs
scsibus1 at ahc2: 8 targets
ahc2: target 6 synchronous at 10.0MHz, offset = 0xf
st0 at scsibus1 targ 6 lun 0: <WangDAT, Model 3400DX, 04j0> SCSI2
1/sequential removable
st0: drive empty
"Cirrus Logic CL-GD5446" rev 0x45 at pci0 dev 13 function 0 not
configured
isa0 at mainbus0
isadma0 at isa0
wdc1 at isa0 port 0x170-0x177 irq 15
atapibus0 at wdc1
acd0 at atapibus0 drive 0: <CD-532E-A, 2.0C> ATAPI 5/cdrom removable
acd0: 5512Kb/sec, 128Kb cache, audio play, 16 volume levels
pcppi0 at isa0 port 0x61
midi0 at pcppi0: <PC speaker>
sysbeep0 at pcppi0
lpt0 at isa0 port 0x378-0x37b irq 7
npx0 at isa0 port 0xf0-0xff: using exception 16
pccom0 at isa0 port 0x3f8-0x3ff irq 4: ns16550a, 16 byte fifo
pccom1 at isa0 port 0x2f8-0x2ff irq 3: ns16550a, 16 byte fifo
vt0 at isa0 port 0x60-0x6f irq 1: unknown Cirrus, 80 col, color, 8 scr,
mf2-kbd
pms0 at vt0 irq 12
fdc0 at isa0 port 0x3f0-0x3f5 irq 6 drq 2
fd0 at fdc0 drive 0: 1.44MB 80 cyl, 2 head, 18 sec
biomask 8c40 netmask 8e40 ttymask 9ec2
root on sd0a
pctr: 686-class user-level performance counters enabled
dkcsum: sd0 matched BIOS disk 80
dkcsum: sd1 matched BIOS disk 81
dkcsum: sd2 matched BIOS disk 82
rootdev=0x400 rrootdev=0xd00 rawdev=0xd02


carlos