From owner-freebsd-hackers Sat Jan 26 23:56: 4 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from tomts15-srv.bellnexxia.net (tomts15.bellnexxia.net [209.226.175.3]) by hub.freebsd.org (Postfix) with ESMTP id 76D6A37B41C; Sat, 26 Jan 2002 23:56:01 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.128.21]) by tomts15-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020127075600.LSGC19101.tomts15-srv.bellnexxia.net@xena.gsicomp.on.ca>; Sun, 27 Jan 2002 02:56:00 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id g0R7jxX38811; Sun, 27 Jan 2002 02:45:59 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <006701c1a708$0f0669a0$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Michael Smith" Cc: References: <200201270744.g0R7i8r02111@mass.dis.org> Subject: Re: Reading BIOS from userland Date: Sun, 27 Jan 2002 02:55:58 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG > > Is there any easy way to read the contents of a system BIOS from userland? > > No. Most modern BIOS code is paged, compressed and in some cases > encrypted. > > > bios(9) seems to have some very specific kernel-related BIOS routines, but > > nothing generic. I'm trying to write a program that will dump the BIOS > > image to stdout so that I can use strings(1) to sniff out version strings > > and other textual data on systems that can't be rebooted and/or easily > > reached. > > If this is all that you want, you can just open /dev/mem and read the > section between 0xe0000 and 0xfffff, much of this information is in there. Duh! I knew there was a simple way! This will suffice for my purposes. Thanks! -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message