Date: Sun, 14 Apr 1996 11:52:44 -0500 (CDT) From: danb@airmail.net (Dan Baritchi) To: questions@freebsd.org Subject: linux emulation problems in -stable Message-ID: <m0u8V2b-000EtoC@airmail.net>
next in thread | raw e-mail | index | archive | help
Hi,
I am having some trouble getting the linux emulation working
properly on my FreeBSD 2.1 system.
1.) got linux_lib-2.0 from /ports-current on 4/8/96
works fine with my original 2.1 kernel
2.) got -stable kernel source on 4/12/96
I needed some drivers anyway, and I wanted to get the most
recent bug fixes.
3.) rebuilt kernel with COMPAT_LINUX and LINUX_COMPAT options
(kernel config file included below)
4.) I load the Linux emulator module:
> modload -e linux_init /lkm/linux_mod.o
moLinux emulator installed
>modstat
TYPE Id Off Loadaddr Size Info Rev Module Name
EXEC 0 3 f171c000 0018 f1721000 1 linux_emulator
5.) got a good Linux binary (gzip) - (file is ZMAGIC, not QMAGIC)
The first few times I tried running this binary, it crashed my system.
There was no record of anything in /var/log/messages or on the system
console.
Then, today, I reinstalled linux_lib-2.0 and now it doesn't crash,
but instead I get this error message:
> ./gzip: can't load library '/libc.so.4'
ldconfig -r doesn't show it, so my ldconfig path could be wrong. It
is the default set in the rc files, since I didn't change it.
The strange thing is that after I learned how to use modload and
what module to load, I tried booting with my old 2.1 kernel
which I had also configured with COMPAT_LINUX and LINUX_COMPAT.
I tried running the same binary (gzip - QMAGIC) and it worked. In
fact doom even worked for a couple of seconds until it stopped and
told me "..unable to allocate shared memory.." - although I have
plenty of RAM (over 32M).
However, I do like the new kernel, and I would really like to get
it working with the linux emulator.
Any help would be greatly appreciated. Please email me at the
address below.
Thanks in advance,
Dan Baritchi
dan@airmail.net
Here is my latest kernel config file for -stable
---------------------------------------------------------------------------
# 4/14/1996
#
# DAN6
#
machine "i386"
#cpu "I386_CPU"
#cpu "I486_CPU"
cpu "I586_CPU"
ident "DAN6"
maxusers 30
# set buffer cache size to 3M
options BUFPAGES="3000"
options "CHILD_MAX=512"
options "OPEN_MAX=512"
options "NMBCLUSTERS=4096" #fix for "mb_map full" syslog message
config kernel root on wd0 swap on wd0
#options MATH_EMULATE #Support for x87 emulation
options "COMPAT_43" #Compatible with BSD 4.3
# for WINE
options USER_LDT #allow user-level control of i386
options "SCSI_DELAY=10" #Be pessimistic about Joe SCSI device
options BOUNCE_BUFFERS #include support for DMA bounce buffers
options SYSVSHM #System V Support
options SYSVSEM
options SYSVMSG
# Debugging Options
options DDB
options KTRACE #Kernel tracing
options UCONSOLE #Allow users to grab the console
options XSERVER #Include code for XFree86
options "MAXCONS=16"
options LINUX_COMPAT #Linux compatibility
options COMPAT_LINUX
# misc options:
#options LINUX
############################################################################
#Networking Options
options INET #InterNETworking
#Network Interfaces:
pseudo-device ether # Generic Ethernet
# pseudo-device fddi # Generic FDDI
pseudo-device loop # Network Loopback Device
pseudo-device log
pseudo-device sl 1 # Serial Line IP
# ppp uses tun instead of ppp device
#pseudo-device ppp 1 # Point-to-point protocol
pseudo-device tun 1 # Tunnerl driver (user process ppp)
pseudo-device pty 40
pseudo-device bpfilter 5 # Berkeley packer filter
pseudo-device speaker
pseudo-device gzip # Exec gzipped a.out's
pseudo-device snp 5 # Snoop device - to look at pty/vty/etc..
# These are non-optional for ISDN
pseudo-device isdn
pseudo-device ii 4
pseudo-device ity 4
pseudo-device itel 2
pseudo-device ispy 1
############################################################################
#Filesystem options
# One of these is mandatory:
options FFS #Berkeley Fast Filesystem
options NFS #Network Filesystem
# The rest are optional:
options "CD9660" #ISO 9660 Filesystem
options MFS #Memory filesystem
options MSDOSFS #MSDOS filesystem
options NULLFS #Null filesystem
options PROCFS #Process filesystem
options UMAPFS #UID map filesystem
# Make space in the kernel for a MFS rootfilesystem. Define the number
# of kilobytes to reserve for the filesystem
options "MFS_ROOT=10"
# Allow this many swap-devices
#options "NSWAPDEV=20"
############################################################################
#System Device Configuration
controller isa0
controller pci0
controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk fd0 at fdc0 drive 0
disk fd1 at fdc0 drive 1
tape ft0 at fdc0 drive 2
controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr
disk wd0 at wdc0 drive 0
disk wd1 at wdc0 drive 1
#controller wdc1 at isa? port "IO_WD2" bio irq 15 vector wdintr
#disk wd2 at wdc1 drive 0
#disk wd3 at wdc1 drive 1
#options ATAPI #Enable ATAPI support for IDE bus
#device wcd0 #IDE CD-ROM
controller ncr0
controller ahc0
#controller bt0 at isa? port "IO_BT0" bio irq ? vector btintr
#controller uha0 at isa? port "IO_UHA0" bio irq ? drq 5 vector uhaintr
#controller ahc1 at isa? bio irq ? vector ahcintr
#controller ahb0 at isa? bio irq ? vector ahbintr
#controller aha0 at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
# Adaptec 152x and sound cards using the Adaptec AIC-6360 (slow)
# ... need to uncomment this for my adaptec to work again
controller aic0 at isa? port 0x340 bio irq 11 vector aicintr
#controller nca0 at isa? port 0x1f88 bio irq 10 vector ncaintr
#controller nca1 at isa? port 0x350 bio irq 5 vector ncaintr
#controller sea0 at isa? bio irq 5 iomem 0xc8000 iosiz 0x2000 vector seaintr
# wds: Westerm Digital WD7000 controller (no scatter/gather).
#controller wds0 at isa? port 0x350 bio irq 15 drq 6 vector wdsintr
controller wds0
controller scbus0 #base SCSI code
controller scbus1 #base SCSI code
device sd0 #SCSI disk1
device sd1 #SCSI disk2
device st0 #SCSI tapes
device cd0 #Only need one of these, the code dynamically grows
# hp scanner driver
#device pt0 at scbus?
#device wt0 at isa? port 0x300 bio irq 5 drq 1 vector wtintr
#device mcd0 at isa? port 0x300 bio irq 10 vector mcdintr
#device mcd1 at isa? port 0x340 bio irq 11 vector mcdintr
#controller matcd0 at isa? port 0x230 bio
#device scd0 at isa? port 0x230 bio
# syscons is the default console driver, resembling an SCO console
device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr
options HARDFONTS
# Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
#device vt0 at isa? port "IO_KBD" tty irq 1 vector pcrint
#options "PCVT_FREEBSD=210" # pcvt running on FreeBSD 2.1
device npx0 at isa? port "IO_NPX" irq 13 vector npxintr
device sio0 at isa? port "IO_COM1" tty irq 4 vector siointr
device sio1 at isa? port "IO_COM2" tty irq 3 vector siointr
#device sio2 at isa? port "IO_COM3" tty irq 5 vector siointr
#device sio3 at isa? port "IO_COM4" tty irq 9 vector siointr
device lpt0 at isa? port? tty irq 7 vector lptintr
#device lpt1 at isa? port? tty
#device lpt2 at isa? port? tty
#device mse0 at isa? port 0x23c tty irq 5 vector mseintr
# Order is important here due to intrusive probes, do *not* alphabetize
# this list of network interfaces until the probes have been fixed.
# Right now it appears that the ie0 must be probed before ep0. See
# revision 1.20 of this file.
device de0
# device ed0 at isa? port 0x280 net irq 5 iomem 0xd8000 vector edintr
# device ed1 at isa? port 0x300 net irq 5 iomem 0xd8000 vector edintr
#
#device ie0 at isa? port 0x360 net irq 7 iomem 0xd0000 vector ieintr
#device ep0 at isa? port 0x300 net irq 10 vector epintr
#device ix0 at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector ixintr
# Inter Ether Express Pro/100B Adapter
device fxp0
#at isa? port 0x300 net irq 10 iomem 0xd0000 iosiz 32768 vector fxpintr
#device le0 at isa? port 0x300 net irq 5 iomem 0xd0000 vector le_intr
#device lnc0 at isa? port 0x280 net irq 10 drq 0 vector lncintr
#device lnc1 at isa? port 0x300 net irq 10 drq 0 vector lncintr
#device ze0 at isa? port 0x300 net irq 5 iomem 0xd8000 vector zeintr
#device zp0 at isa? port 0x300 net irq 10 iomem 0xd8000 vector zpintr
# Sound Cards
#
# snd: Voxware sound support code
# sb: SoundBlaster PCM SoundBlaster, SB Pro, SB16, ProAudioSpectrum
# sbxvi: SoundBlaster 16
# sbmidi: SoundBlaster 16 MIDI interface
# gux: Gravis Ultrasound - Ultrasound, Ultrasound 16, Ultrasound MAX
# ... the GUS-MAX card has some extra options in the LINT kernel
# pca: PCM audio through PC speaker
#controller snd0
#device sb0 at isa? port 0x220 irq 7 conflicts drq 1 vector sbintr
#device sbxvi0 at isa? drq5
#device sbmidi0 at isa? port 0x330
#device gus0 at isa? port 0x220 irq 12 drq 1 vector gusint
# Not controlled by 'snd'
# device pca0 at isa? port IO_TIMER1 tty
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?m0u8V2b-000EtoC>
