From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 24 11:03:14 2006 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C4F8F16A514 for ; Mon, 24 Jul 2006 11:03:14 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A10D43DA8 for ; Mon, 24 Jul 2006 11:02:40 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (peter@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k6OB2YaK013581 for ; Mon, 24 Jul 2006 11:02:34 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from peter@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k6OB2XrC013577 for freebsd-embedded@freebsd.org; Mon, 24 Jul 2006 11:02:33 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 24 Jul 2006 11:02:33 GMT Message-Id: <200607241102.k6OB2XrC013577@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: peter set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-embedded@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2006 11:03:14 -0000 Current FreeBSD problem reports Critical problems Serious problems Non-critical problems S Submitted Tracker Resp. Description ------------------------------------------------------------------------------- o [2000/01/04] misc/15876 embedded [picobsd] PicoBSD message of the day prob o [2001/06/18] misc/28255 embedded [picobsd] picobsd documentation still ref o [2002/09/13] kern/42728 embedded [picobsd] many problems in src/usr.sbin/p o [2003/05/14] misc/52255 embedded [picobsd] picobsd build script fails unde o [2003/05/14] misc/52256 embedded [picobsd] picobsd build script does not r 5 problems total. From owner-freebsd-embedded@FreeBSD.ORG Mon Jul 24 17:56:22 2006 Return-Path: X-Original-To: embedded@freebsd.org Delivered-To: freebsd-embedded@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F38E916A500 for ; Mon, 24 Jul 2006 17:56:21 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7CAA043D76 for ; Mon, 24 Jul 2006 17:56:18 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k6OHtc5u099305 for ; Mon, 24 Jul 2006 11:55:38 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 24 Jul 2006 11:55:54 -0600 (MDT) Message-Id: <20060724.115554.-957769887.imp@bsdimp.com> To: embedded@freebsd.org From: "M. Warner Losh" X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Mon, 24 Jul 2006 11:55:39 -0600 (MDT) Cc: Subject: Compile time options vs size X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jul 2006 17:56:22 -0000 Thought everyone would like to see the differences that compile time options make: text data bss dec hex filename 2,291,548 90,028 82,388 2,463,964 2598dc kernel.0 1,844,380 90,028 82,388 2,016,796 1ec61c kernel.1 1,813,953 89,896 82,376 1,986,225 1e4eb1 kernel.2 1,795,753 89,896 82,376 1,968,025 1e0799 kernel.3 1,735,352 87,208 82,280 1,904,840 1d10c8 kernel.4 kernel.0: No attempt to reduce size. kernel.1: Added MUTEX_NOINLINE (net savings is 447,168 bytes) kernel.2: Added NO_FFS_SNAPSHOT (net savings is 30,571 bytes) kernel.3: Added NO_SYSCTL_DESCR (net savings is 18,200 bytes) kernel.4: Used only the phy that we have on the board (net savings is 63,185 bytes) This was on a custom version of the KB920X config file for the at91rm9200 based board of the same name. I'm thinking of adding a NO_NFS4 config variable. This would save another 50-60k in size, I think. Of course, eliminating nfs altogheter would save another 100k, but I need it to boot at the moment :-) Anyway, I've just started looking at ways of making the kernel smaller. I thought I'd share them here. Warner From owner-freebsd-embedded@FreeBSD.ORG Tue Jul 25 09:41:39 2006 Return-Path: X-Original-To: embedded@FreeBSD.org Delivered-To: freebsd-embedded@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D3A1316A4DE for ; Tue, 25 Jul 2006 09:41:39 +0000 (UTC) (envelope-from gnn@neville-neil.com) Received: from mrout1-b.corp.dcn.yahoo.com (mrout1-b.corp.dcn.yahoo.com [216.109.112.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D3F143D46 for ; Tue, 25 Jul 2006 09:41:39 +0000 (GMT) (envelope-from gnn@neville-neil.com) Received: from minion.local.neville-neil.com (proxy7.corp.yahoo.com [216.145.48.98]) by mrout1-b.corp.dcn.yahoo.com (8.13.6/8.13.6/y.out) with ESMTP id k6P9fRo1063030; Tue, 25 Jul 2006 02:41:28 -0700 (PDT) Date: Tue, 25 Jul 2006 18:41:15 +0900 Message-ID: From: gnn@FreeBSD.org To: "M. Warner Losh" In-Reply-To: <20060724.115554.-957769887.imp@bsdimp.com> References: <20060724.115554.-957769887.imp@bsdimp.com> User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (=?ISO-8859-4?Q?Shij=F2?=) APEL/10.6 Emacs/22.0.50 (i386-apple-darwin8.6.1) MULE/5.0 (SAKAKI) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: embedded@FreeBSD.org Subject: Re: Compile time options vs size X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Jul 2006 09:41:39 -0000 At Mon, 24 Jul 2006 11:55:54 -0600 (MDT), M. Warner Losh wrote: > This was on a custom version of the KB920X config file for the > at91rm9200 based board of the same name. I'm thinking of adding a > NO_NFS4 config variable. This would save another 50-60k in size, I > think. Of course, eliminating nfs altogheter would save another 100k, > but I need it to boot at the moment :-) > > Anyway, I've just started looking at ways of making the kernel > smaller. I thought I'd share them here. Excellent. We should probably document these up on embeddedfreebsd.org. Later, George From owner-freebsd-embedded@FreeBSD.ORG Thu Jul 27 12:34:38 2006 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B25A816A4E0 for ; Thu, 27 Jul 2006 12:34:38 +0000 (UTC) (envelope-from fnjordy@gmail.com) Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 048BB43D5A for ; Thu, 27 Jul 2006 12:34:37 +0000 (GMT) (envelope-from fnjordy@gmail.com) Received: by py-out-1112.google.com with SMTP id b36so195250pyb for ; Thu, 27 Jul 2006 05:34:37 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=exM6+0riRZE3pdZi0G2nQQutwlGf+ioYzgltx3UJZxuDIFzoWqBp93xQwr8yJXhW4M9lhBrxdS+DVhkPZ00ubx5hmnrQO9Hk7+CcdnKNrPsW1Ye9n9Qt/48AYsuBrSc9T+Qo2gwJxl7HasBaTFx3pEWEMGJOaTl3JTppPzsO8/A= Received: by 10.35.18.18 with SMTP id v18mr13103664pyi; Thu, 27 Jul 2006 05:34:36 -0700 (PDT) Received: by 10.35.82.8 with HTTP; Thu, 27 Jul 2006 05:34:36 -0700 (PDT) Message-ID: <856cdecb0607270534m34d9b4e3g4ee2714e18fcaeb7@mail.gmail.com> Date: Thu, 27 Jul 2006 20:34:36 +0800 From: "Steven McCoy" To: freebsd-embedded@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: re: pxeboot PC Engines WRAP X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 27 Jul 2006 12:34:38 -0000 Hello, I'm currently trying to setup NFS root WRAP in order to aid development of embedded specific features. I already have a VMware image PXE booting fine. The problem is that no configuration appears to work well with WRAP hardware. This is FreeBSD 6-1 STABLE. I have enabled etherboot in the firmware, the WRAP is 1.11 and etherboot 5.4.1. Using tftp-hpa and isc-dhcp3. 1) Etherboot to Etherboot to pxeboot pxeboot hangs after loading: Searching for server (DHCP)...\ Me: 10.0.0.160, DHCP: 10.0.0.183, TFTP: 10.0.0.183 Trimming .zpxe extension Loading 10.0.0.183:eb-5.4.2-natsemi (PXE)done PXE Loader 1.00 Building the boot loader arguments Relocating the loader and the BTX Starting the BTX loader 2) Etherboot to Etherboot to uncompressed kernel Control mysteriously returns to the PXE firmware after loading the kernel: Searching for server (DHCP)...- Me: 10.0.0.160, DHCP: 10.0.0.183, TFTP: 10.0.0.183 Trimming .zpxe extension Loading 10.0.0.183:eb-5.4.2-natsemi (ELF/FreeBSD)... done dp83815: Setting full-duplex based on negotiated link capability. I have tried various etherboot options and kernels but to not much avail. I have tried m0n0wall's & pfsense's WRAP kernels to rule out my own being borked. Etherboot is built with these settings: natsemi:dp83815 -- [0x100b,0x0020] PXE bootstrap loader format ROM Image (.zpxe) ASK_BOOT: -1 BOOT_FIRST: BOOT_NIC BOOT_SECOND: BOOT_NOTHING BOOT_THIRD: BOOT_NOTHING BOOT_INDEX: 0 ELF_IMAGE PXE_IMAGE IMAGE_FREEBSD FREEBSD_KERNEL_ENV DOWNLOAD_PROTO_TFTP PXE_EXPORT CONFIG_PCI PCBIOS I tried using the Undi driver as Ask had detailed but I get a "No PnP adapters found" message and the boot process just scrolls repeating itself. -- Steve-o From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 28 15:24:50 2006 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 722D416A4FE for ; Fri, 28 Jul 2006 15:24:50 +0000 (UTC) (envelope-from ast@marabu.ch) Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBC8B43DA0 for ; Fri, 28 Jul 2006 15:24:06 +0000 (GMT) (envelope-from ast@marabu.ch) Received: from oneplusone.ch (localhost [127.0.0.1]) by oneplusone.ch (8.13.6/8.13.6) with ESMTP id k6SFO3Uv041535 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 28 Jul 2006 17:24:03 +0200 (CEST) (envelope-from ast@marabu.ch) Received: (from uucp@localhost) by oneplusone.ch (8.13.6/8.13.6/Submit) with UUCP id k6SFO31c041534; Fri, 28 Jul 2006 17:24:03 +0200 (CEST) (envelope-from ast@marabu.ch) Received: from pano.marabu.ch (localhost [127.0.0.1]) by pano.marabu.ch (8.13.6/8.13.6) with ESMTP id k6SFMFml029936; Fri, 28 Jul 2006 17:22:15 +0200 (CEST) (envelope-from ast@pano.marabu.ch) Received: (from ast@localhost) by pano.marabu.ch (8.13.6/8.13.6/Submit) id k6SFM672029935; Fri, 28 Jul 2006 17:22:06 +0200 (CEST) (envelope-from ast) Date: Fri, 28 Jul 2006 17:22:06 +0200 From: Adrian Steinmann To: Steven McCoy Message-ID: <20060728152206.GA29095@webgroup.ch> References: <856cdecb0607270534m34d9b4e3g4ee2714e18fcaeb7@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <856cdecb0607270534m34d9b4e3g4ee2714e18fcaeb7@mail.gmail.com> X-Organization: Webgroup Consulting AG X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (oneplusone.ch [127.0.0.1]); Fri, 28 Jul 2006 17:24:04 +0200 (CEST) X-Mailfilter: egfilter version 1.14; Archiver [msg.OujTy53p] (oneplusone.ch [127.0.0.1]); Fri, 28 Jul 2006 17:24:04 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter (version: 1.1.2-1; AVE: 7.1.1.0; VDF: 6.35.1.18; host: oneplusone.ch) Cc: freebsd-embedded@freebsd.org Subject: Re: pxeboot PC Engines WRAP X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 15:24:50 -0000 On Thu, Jul 27, 2006 at 08:34:36PM +0800, Steven McCoy wrote: I (and others) have tried a lot, it just doesn't work because FreeBSD BTX does strange things. > 1) Etherboot to Etherboot to pxeboot > > pxeboot hangs after loading: > > Searching for server (DHCP)...\ > Me: 10.0.0.160, DHCP: 10.0.0.183, TFTP: 10.0.0.183 > Trimming .zpxe extension > Loading 10.0.0.183:eb-5.4.2-natsemi (PXE)done > PXE Loader 1.00 > > Building the boot loader arguments > Relocating the loader and the BTX > Starting the BTX loader You have to make sure you choose an etherboot which has a bug fixed for FreeBSD tftp: if the pxeboot file is a multiple of 512 it will hang otherwise (instead of changing etherboot, you can just add a random byte to the pxeboot file). > 2) Etherboot to Etherboot to uncompressed kernel > > Control mysteriously returns to the PXE firmware after loading the kernel: This may be (silent) general protection fault which occurs once you get that far in pxeboot: this is for dbsd and BTX_VERBOSE, BTXLDR_VERBOSE, PXE_DEBUG and other options: PXE version 2.1, real mode entry point @9f40:0680 int=0000000d err=00000000 efl=00030002 eip=00000916 eax=0009cfb0 ebx=000008eb ecx=00000000 edx=00003c58 esi=00000000 edi=00000000 ebp=0009d37a esp=000003ca cs=9f40 ds=9f40 es=0000 fs=0000 gs=0000 ss=9cfb cs:eip=66 0f 01 97 52 00 0f 20-c0 0c 01 0f 22 c0 66 ff af 6a 00 66 b8 10 00 8e-d0 89 ec 8e d8 8e c0 8e ss:esp=00 00 00 00 71 00 00 00-00 00 00 00 e2 fa 09 00 40 9f fb 9c 00 00 00 00-00 00 00 00 00 00 02 02 BTX halted which is identical, byte for byte, to the fbsd error, except for esp which has 40 9f f9 9c instead of 40 9f fb 9c. something is going wrong in the VM86 of the bangpxe calls. These rom-o-matic options look ok: > ASK_BOOT: -1 > BOOT_FIRST: BOOT_NIC > BOOT_SECOND: BOOT_NOTHING > BOOT_THIRD: BOOT_NOTHING > BOOT_INDEX: 0 > ELF_IMAGE > PXE_IMAGE > IMAGE_FREEBSD > FREEBSD_KERNEL_ENV > DOWNLOAD_PROTO_TFTP > PXE_EXPORT > CONFIG_PCI > PCBIOS *Except* you also need LM40 because there is no keyboard controller on WRAP. Otherwise it'll ahng like your case 1). I've come to the conclusion FreeBSD needs a better VM86. OpenBSD manages to pxe boot on wrap because they don't have the (useful) loader. If you do find a way to make it work, please post your result here. Adrian From owner-freebsd-embedded@FreeBSD.ORG Fri Jul 28 16:36:59 2006 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D694816A504 for ; Fri, 28 Jul 2006 16:36:59 +0000 (UTC) (envelope-from john@baldwin.cx) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C2AB43D49 for ; Fri, 28 Jul 2006 16:36:58 +0000 (GMT) (envelope-from john@baldwin.cx) Received: from localhost.corp.yahoo.com (john@localhost [127.0.0.1]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k6SGasQn087324; Fri, 28 Jul 2006 12:36:54 -0400 (EDT) (envelope-from john@baldwin.cx) From: John Baldwin To: freebsd-embedded@freebsd.org Date: Fri, 28 Jul 2006 12:36:54 -0400 User-Agent: KMail/1.9.1 References: <856cdecb0607270534m34d9b4e3g4ee2714e18fcaeb7@mail.gmail.com> <20060728152206.GA29095@webgroup.ch> In-Reply-To: <20060728152206.GA29095@webgroup.ch> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200607281236.54468.john@baldwin.cx> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [127.0.0.1]); Fri, 28 Jul 2006 12:36:55 -0400 (EDT) X-Virus-Scanned: ClamAV 0.87.1/1624/Thu Jul 27 13:11:25 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Adrian Steinmann , Steven McCoy Subject: Re: pxeboot PC Engines WRAP X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Jul 2006 16:37:00 -0000 On Friday 28 July 2006 11:22, Adrian Steinmann wrote: > On Thu, Jul 27, 2006 at 08:34:36PM +0800, Steven McCoy wrote: > > I (and others) have tried a lot, it just doesn't work because FreeBSD > BTX does strange things. > > > 1) Etherboot to Etherboot to pxeboot > > > > pxeboot hangs after loading: > > > > Searching for server (DHCP)...\ > > Me: 10.0.0.160, DHCP: 10.0.0.183, TFTP: 10.0.0.183 > > Trimming .zpxe extension > > Loading 10.0.0.183:eb-5.4.2-natsemi (PXE)done > > PXE Loader 1.00 > > > > Building the boot loader arguments > > Relocating the loader and the BTX > > Starting the BTX loader > You have to make sure you choose an etherboot which has a bug fixed for > FreeBSD tftp: if the pxeboot file is a multiple of 512 it will hang > otherwise (instead of changing etherboot, you can just add a random > byte to the pxeboot file). > > > 2) Etherboot to Etherboot to uncompressed kernel > > > > Control mysteriously returns to the PXE firmware after loading the kernel: > This may be (silent) general protection fault which occurs once you get > that far in pxeboot: > > this is for dbsd and BTX_VERBOSE, BTXLDR_VERBOSE, PXE_DEBUG and other options: > > PXE version 2.1, real mode entry point @9f40:0680 > > int=0000000d err=00000000 efl=00030002 eip=00000916 > eax=0009cfb0 ebx=000008eb ecx=00000000 edx=00003c58 > esi=00000000 edi=00000000 ebp=0009d37a esp=000003ca > cs=9f40 ds=9f40 es=0000 fs=0000 gs=0000 ss=9cfb > cs:eip=66 0f 01 97 52 00 0f 20-c0 0c 01 0f 22 c0 66 ff > af 6a 00 66 b8 10 00 8e-d0 89 ec 8e d8 8e c0 8e > ss:esp=00 00 00 00 71 00 00 00-00 00 00 00 e2 fa 09 00 > 40 9f fb 9c 00 00 00 00-00 00 00 00 00 00 02 02 > BTX halted > > which is identical, byte for byte, to the fbsd error, except > for esp which has 40 9f f9 9c instead of 40 9f fb 9c. > > something is going wrong in the VM86 of the bangpxe calls. This is because the BIOS you are talking to here is trying to enter protected mode on its own, which simply does not play well with VM86 at all. It's not something you are going to "fix" in VM86 unless you change BTX drastically to pop back into real mode to call the BIOS and handle IRQs rather than using vm86 mode. 00000000 660F01975200 o32 lgdt [bx+0x52] 00000006 0F20C0 mov eax,cr0 00000009 0C01 or al,0x1 0000000B 0F22C0 mov cr0,eax 0000000E 66FFAF6A00 jmp dword far [bx+0x6a] 00000013 66B810008ED0 mov eax,0xd08e0010 00000019 89EC mov sp,bp 0000001B 8ED8 mov ds,ax 0000001D 8EC0 mov es,ax 0000001F 8E db 0x8E -- John Baldwin From owner-freebsd-embedded@FreeBSD.ORG Sat Jul 29 17:33:34 2006 Return-Path: X-Original-To: freebsd-embedded@freebsd.org Delivered-To: freebsd-embedded@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 681DF16A4DD for ; Sat, 29 Jul 2006 17:33:34 +0000 (UTC) (envelope-from ast@marabu.ch) Received: from oneplusone.ch (oneplusone.ch [212.55.208.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80A5443D70 for ; Sat, 29 Jul 2006 17:33:33 +0000 (GMT) (envelope-from ast@marabu.ch) Received: from oneplusone.ch (localhost [127.0.0.1]) by oneplusone.ch (8.13.6/8.13.6) with ESMTP id k6THW1FW093255 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 29 Jul 2006 19:32:01 +0200 (CEST) (envelope-from ast@marabu.ch) Received: (from uucp@localhost) by oneplusone.ch (8.13.6/8.13.6/Submit) with UUCP id k6THW1MR093254; Sat, 29 Jul 2006 19:32:01 +0200 (CEST) (envelope-from ast@marabu.ch) Received: from pano.marabu.ch (localhost [127.0.0.1]) by pano.marabu.ch (8.13.6/8.13.6) with ESMTP id k6THVpD7089670; Sat, 29 Jul 2006 19:31:51 +0200 (CEST) (envelope-from ast@pano.marabu.ch) Received: (from ast@localhost) by pano.marabu.ch (8.13.6/8.13.6/Submit) id k6THVcJY089669; Sat, 29 Jul 2006 19:31:38 +0200 (CEST) (envelope-from ast) Date: Sat, 29 Jul 2006 19:31:38 +0200 From: Adrian Steinmann To: John Baldwin Message-ID: <20060729173137.GA89529@webgroup.ch> References: <856cdecb0607270534m34d9b4e3g4ee2714e18fcaeb7@mail.gmail.com> <20060728152206.GA29095@webgroup.ch> <200607281236.54468.john@baldwin.cx> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200607281236.54468.john@baldwin.cx> X-Organization: Webgroup Consulting AG X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (oneplusone.ch [127.0.0.1]); Sat, 29 Jul 2006 19:32:02 +0200 (CEST) X-Mailfilter: egfilter version 1.14; Archiver [msg.GHlth7XR] (oneplusone.ch [127.0.0.1]); Sat, 29 Jul 2006 19:32:02 +0200 (CEST) X-AntiVirus: checked by AntiVir Milter (version: 1.1.2-1; AVE: 7.1.1.0; VDF: 6.35.1.20; host: oneplusone.ch) Cc: Danny Braniss , freebsd-embedded@freebsd.org, Steven McCoy Subject: Re: pxeboot PC Engines WRAP X-BeenThere: freebsd-embedded@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Dedicated and Embedded Systems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 29 Jul 2006 17:33:34 -0000 On Fri, Jul 28, 2006 at 12:36:54PM -0400, John Baldwin wrote: > This is because the BIOS you are talking to here is trying to enter > protected mode on its own, which simply does not play well with VM86 at all. > It's not something you are going to "fix" in VM86 unless you change BTX > drastically to pop back into real mode to call the BIOS and handle IRQs > rather than using vm86 mode. PC-Engines says that only the int 15, function 87 goes back into protected mode, and that seems to be trapped in boot/i386/btx/btx/btx.S line 609 so the FreeBSD BTX should cover that case. Or am I misunderstanding something here? The disassembled code you mention: > 00000000 660F01975200 o32 lgdt [bx+0x52] > 00000006 0F20C0 mov eax,cr0 > 00000009 0C01 or al,0x1 > 0000000B 0F22C0 mov cr0,eax > 0000000E 66FFAF6A00 jmp dword far [bx+0x6a] > 00000013 66B810008ED0 mov eax,0xd08e0010 > 00000019 89EC mov sp,bp > 0000001B 8ED8 mov ds,ax > 0000001D 8EC0 mov es,ax > 0000001F 8E db 0x8E seems to indeed stem from http://www.pcengines.ch/tb13.zip INT1X.8 where the "Int 15, AH=87: block move" is handled in "unreal mode", as described in http://www.pcengines.ch/tb13.pdf. So would that mean that BTX didn't trap that or something else was amiss before? Adrian