From owner-freebsd-hackers@FreeBSD.ORG Fri Sep 16 14:46:57 2005 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9B59116A421 for ; Fri, 16 Sep 2005 14:46:57 +0000 (GMT) (envelope-from roam@ringlet.net) Received: from gandalf.online.bg (gandalf.online.bg [217.75.128.9]) by mx1.FreeBSD.org (Postfix) with SMTP id 3279043D46 for ; Fri, 16 Sep 2005 14:46:55 +0000 (GMT) (envelope-from roam@ringlet.net) Received: (qmail 707 invoked from network); 16 Sep 2005 14:46:50 -0000 Received: from unknown (HELO straylight.ringlet.net) (85.95.80.104) by gandalf.online.bg with SMTP; 16 Sep 2005 14:46:50 -0000 Received: (qmail 34401 invoked by uid 1000); 16 Sep 2005 17:46:53 +0300 Date: Fri, 16 Sep 2005 17:46:53 +0300 From: Peter Pentchev To: Daniel O'Connor Message-ID: <20050916144653.GG2813@straylight.m.ringlet.net> Mail-Followup-To: Daniel O'Connor , Daniel Eischen , freebsd-hackers@freebsd.org, Wouter van Rooij References: <200509162357.22204.doconnor@gsoft.com.au> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+sHJum3is6Tsg7/J" Content-Disposition: inline In-Reply-To: <200509162357.22204.doconnor@gsoft.com.au> User-Agent: Mutt/1.5.10i Cc: Daniel Eischen , freebsd-hackers@freebsd.org, Wouter van Rooij Subject: Re: ELF binary type "0" not known. X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 14:46:57 -0000 --+sHJum3is6Tsg7/J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 16, 2005 at 11:57:21PM +0930, Daniel O'Connor wrote: > On Friday 16 September 2005 23:42, Daniel Eischen wrote: > > > I'd be *very* suprised.. > > > I expect he just downloaded an RPM from somewhere.. > > > > It's probably just not having linux.ko/linprocfs.ko loaded. > > > > $ kldstat > > Id Refs Address Size Name > > 1 1 0xc0400000 498518 kernel > > $ /usr/compat/linux/bin/ls > > ELF binary type "0" not known. > > > > $ sudo kldload linux.ko > > $ kldstat > > Id Refs Address Size Name > > 1 5 0xc0400000 498518 kernel > > 2 1 0xc2a1a000 16000 linux.ko > > $ /usr/compat/linux/bin/ls /bin > > basename chgrp cp echo fgrep ls mv rm setserial s= tty=20 > > true bash chmod date egrep grep mkdir nice rmdir sh = =20 > > sync uname bash2 chown dd false ln mknod pwd rpm s= leep > > touch >=20 > Wow that's weird.. > I wonder why that happens? What is weird? The fact that if linux.ko is not loaded, the kernel does not know what to do with an unknown ELF binary type? :) What I find weird is the fact that as soon as linux.ko is loaded, the kernel "learns" to treat type 0 binaries as type 3; but this is probably because Daniel Eischen has at some earlier time set the kern.fallback_elf_brand sysctl to 3. G'luck, Peter --=20 Peter Pentchev roam@ringlet.net roam@cnsys.bg roam@FreeBSD.org PGP key: http://people.FreeBSD.org/~roam/roam.key.asc Key fingerprint FDBA FD79 C26F 3C51 C95E DF9E ED18 B68D 1619 4553 This sentence is false. --+sHJum3is6Tsg7/J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFDKtrd7Ri2jRYZRVMRAsQrAJ9jtEEiPG7MwKGEyCkgQnP0JyPWFACeNsiC ajxDf1NeSTlMapnV5Wf76HM= =v7jD -----END PGP SIGNATURE----- --+sHJum3is6Tsg7/J--