Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NGlK7-0002UY-9K for mharc-grub-devel@gnu.org; Fri, 04 Dec 2009 22:28:43 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NGlK5-0002Tl-Ey for grub-devel@gnu.org; Fri, 04 Dec 2009 22:28:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NGlK1-0002SK-W9 for grub-devel@gnu.org; Fri, 04 Dec 2009 22:28:41 -0500 Received: from [199.232.76.173] (port=48481 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NGlK1-0002SH-Q5 for grub-devel@gnu.org; Fri, 04 Dec 2009 22:28:37 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:62803) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NGlK0-0000Ub-O0 for grub-devel@gnu.org; Fri, 04 Dec 2009 22:28:37 -0500 Received: by fxm5 with SMTP id 5so3136596fxm.8 for ; Fri, 04 Dec 2009 19:28:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=DgPrhgx8KJi8wn6AhFPHMdPMRB//lOerGWTkZp4MYEQ=; b=jQhLPojxcq9cVE5Fx3eCAT1hOhek6uLtbwLs/F0H3B2tiBh8buONdBrtTcYBNpwRHH zUh7MNo4HIcnVziDyrBYDTpLCQ95LjhysrmzZAwz5Wwq1XMdG78xzye8rIpOknIyD1b9 MyNDIZTiAjaT3LOvsgiDLKflUHB72PG54fXXA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=N5HQsyr92Nix9x2fYCbVgzYNq4CAPZ4NBVAu7JxulWh+c7w0Sxei1sdDp1XsIKUYcb XwGddPIGw8bgGKJ0jA2sEuClhh2lR8CSjCsva+/+CT3uazOuGeucbISmgE7ipi9eRBoO vetYhJE8uImNqWGgJKxUGftpehyT94hPOy09k= MIME-Version: 1.0 Received: by 10.239.144.129 with SMTP id o1mr442424hba.62.1259983712612; Fri, 04 Dec 2009 19:28:32 -0800 (PST) In-Reply-To: <4B198A82.7060505@gmail.com> References: <20091202202646.GD23641@turki.gavron.org> <4B17D641.4070000@gmail.com> <2e59e6970912031627h5c9839b7wcf01171ee7574c8c@mail.gmail.com> <20091204213649.GP1528@thorin> <4B198A82.7060505@gmail.com> Date: Fri, 4 Dec 2009 21:28:32 -0600 Message-ID: <2e59e6970912041928q57083b58yb5ed7aae8e6cd01f@mail.gmail.com> From: "richardvoigt@gmail.com" To: The development of GNU GRUB Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: USB device not seen by grub X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 05 Dec 2009 03:28:41 -0000 2009/12/4 Vladimir '=CF=86-coder/phcoder' Serbinenko : > Robert Millan wrote: >> On Thu, Dec 03, 2009 at 06:27:07PM -0600, richardvoigt@gmail.com wrote: >> >>> 2009/12/3 Vladimir '=CF=86-coder/phcoder' Serbinenko : >>> >>>> Chris Jones wrote: >>>> >>>>> I am trying to have grub boot off a partition on a USB stick. >>>>> >>>>> >>>>> >>>> You can't chainload to disk invisible by BIOS. But you can load >>>> supported OSes from it. >>>> >>> What would be necessary to enable chainload to such devices? =C2=A0Inst= all >>> an IRQ 19 handler? >>> >> >> Yeah, something like that. =C2=A0In essence, GRUB acting as a BIOS. =C2= =A0Sounds awful, >> but hey we already have "efiemu". >> >> > It's by far not the same thing. EfiEmu emulates only RuntimeServices. > EFI has two types of functions: BootServices and RuntimeServices. > BootServices are only available when boot loader is running and are > terminated on kernel launch. RuntimeServices are always available but > have very small number of functions. And actually GRUB acts only as a > loader to efiemu??.o and real functions are contained in efiemu??.o > which is quite small > For BIOS disks emulations we would need much more functions but we could > adopt a similar approach. E.g: > bioshook usbbios.o > chainloader (usb0,1)+1 > usbbiso.o may of course be compiled from GRUB files but has to be > standalone. There are few tricky parts associated with this process but > basically it would be an overblown drivemap. > > But I don't see any real reason to make even small fraction of required > effort since GRUB2 is able to load many free OS directly and so can load > them of an BIOS-invisible disks without any problems. Some free OS are > still out of GRUB family like Minix is but I would gladly accept a port > of it (which is orders of magnitude easier to do) > As of proprietary OS I think we need to support them only to the etent > of what they are able to do themselves. Documentation on such OS are > often scarce and anything we do may completely break with new version. SCSI adapter vendors manage to implement IRQ 19 in a way that provides universal OS support, I don't see how this would be different. > And all of this only to make good to someone who would like to see every > free software die? Not all supporters of free software share that philosophy, quite a few of us like to be able to tell people "that proprietary software you use, well, it works better with free software". And sometimes free software is enriched by playing well with closed-source. For example, more people would dual-boot if there was a grub-tools package for Windows and Mac OS that added "Reboot to linux" to the start menu (by changing the default boot selection in the grub config). If grub-win existed which could install grub from inside Windows, we'd have even more users of both grub and free OSes to dual-boot with. And a Windows driver that jumped directly to grub code at an appropriate point during shutdown (i.e. after flushing disk write caches, which is probably when anti-virus drivers unload) thereby avoiding the BIOS POST delays and making dual-booting even faster and less painless would equate to even more users. I happen to have a licence for VMWare workstation 6.x which emulates a USB host controller (IIRC devices include emulated mouse as well as real devices attached to the host, including mass storage), but doesn't support booting from it. This annoyed me at one point when I was trying to prepare a bootable USB stick and couldn't test it. So I'm willing to give this a shot. Which Linux distribution do most of you use for grub development (I value the fact that commands to install the correct version of bzr, which I've not used before, were recently posted to the list). That was for Debian Lenny, but would I get started faster with another version? NB: I'm most experienced with gentoo, which is definitely NOT a quick start. Ben Voigt