Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MVvI6-0004Wz-DQ for mharc-grub-devel@gnu.org; Tue, 28 Jul 2009 18:37:02 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVvI4-0004Vr-Fg for grub-devel@gnu.org; Tue, 28 Jul 2009 18:37:00 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVvHz-0004Ta-Tv for grub-devel@gnu.org; Tue, 28 Jul 2009 18:36:59 -0400 Received: from [199.232.76.173] (port=46173 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVvHz-0004TP-MB for grub-devel@gnu.org; Tue, 28 Jul 2009 18:36:55 -0400 Received: from mx20.gnu.org ([199.232.41.8]:9450) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MVvHz-0002rJ-88 for grub-devel@gnu.org; Tue, 28 Jul 2009 18:36:55 -0400 Received: from mail-fx0-f217.google.com ([209.85.220.217]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVvHu-0006xd-LC for grub-devel@gnu.org; Tue, 28 Jul 2009 18:36:51 -0400 Received: by fxm17 with SMTP id 17so469743fxm.42 for ; Tue, 28 Jul 2009 15:36:49 -0700 (PDT) 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=YRAZizL/AihTIuWdckpin2uY4Mc1SxdJq8UfWQYqacg=; b=IyYN0td+g6VwBUTuYHHKB5hN8vt81DjTShSiuxgoGfVpMK8g75BZcla3GZkYwMo3eP EWRSlU+ym5/AFPSCs14szpnIxrNQUcQnJkdlBT3EWxGEPpa0k2ID7odCznQSCEgbJGKN AZVFB6Cbhp419gt10vTaO9YSnrxQVifSjxX/Q= 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=VTlNS09f17zKr/byzqOi/jU2ctAMXne4ObmuhpQyqOGiU/dkprNcAT+JqbkBn7yUkK 1gcYiW4/62qaQvxAIf8vC5wU0CaZQCTB1ssDWCHZoNwAiPN4KjQwBZw/GxRcq1+9J6JL Gk4mbaByg9McbjXZE4ycLQL5qU+ftoI38AoG0= MIME-Version: 1.0 Received: by 10.204.62.135 with SMTP id x7mr4808339bkh.95.1248820609167; Tue, 28 Jul 2009 15:36:49 -0700 (PDT) In-Reply-To: <49E0E7CF.3000002@gmail.com> References: <49AD5B12.8090904@gmail.com> <200904070924.44083.okuji@enbug.org> <49DAA9E6.2020909@gmail.com> <200904100825.23968.okuji@enbug.org> <49E0E7CF.3000002@gmail.com> Date: Wed, 29 Jul 2009 00:36:49 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: multiboot2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jul 2009 22:37:01 -0000 On Sat, Apr 11, 2009 at 8:56 PM, phcoder wrote: > Yoshinori K. Okuji wrote: >> >> On Tuesday 07 April 2009 10:18:30 phcoder wrote: >>> >>> Yoshinori K. Okuji wrote: >>>>>> >>>>>> 1) double the size of flags. 8 features per category seems to be few= . >>>> >>>> I do not agree on this. As you can see, most bits are still undefined >>>> after over 10-year usage of the Multiboot Specification. I do not want >>>> to >>>> change it without any real issue. >>> >>> The difference is that multiboot2 is meant to be portable >> >> Yes, but so? > > On some platforms the number of features may be bigger Additionally this format is hard to extend in cross-platform way. Let's say we define new header on powerpc which takes bytes x to x+10 and a tag for i386 which takes bytes x to x+12 then we want to define a new crossplatform tag. Where to we put it? Why not just use the same format for multiboot header and multiboot info? It will make the job of bootloader easier (handling one format instead of 2). >> >> Not really. Even with the most strict spec possible, it is always possib= le >> to depend on implementation details which are not part of the spec. So, = if >> an OS image does boot only with some implementations, it is a fault in t= he >> OS image, and the OS image should be fixed. >> > I agree but specification should make such things less likely Recently we experienced the problem with OSes assuming different details about specification. Of course it's bugs but bugs which are difficult to find. Standard is here to decrease developpement time, not increase it. >>>>>> >>>>>> 6) memory map. " Tags of this type should be omitted on >>>>>> architectures where the OS is able to retrieve this information from >>>>>> firmware. (Doing do will encourage OS portability across bootloaders= , >>>>>> and simplify GRUB development and maintenance.) " >>>>>> This contradicts the goal of easier OS developement and may result i= n >>>>>> semi-compatible OS and bootloaders. Additionally I think that >>>>>> eliminating the necessity of use of firmware from OS is a good thing >>>>>> and allows easier porting between architectures differing only by >>>>>> firmware >>>> >>>> It is hard for me to say which is better. >>>> >>>> In reality, every OS needs to interact with underlying firmware more o= r >>>> less to be functional (power control, interrupt handling, etc.). So >>>> giving a memory map does not eliminate the necessity of interactions >>>> with >>>> firmware anyway. >>> >>> This isn't entirely true. Most of OS use their own firmware-independent >>> drivers for most devices. >> >> For device drivers, yes. For other things, not always. For instance, on >> Alpha, you need to use the firmware to enter the privileged mode. AFAIK,= no >> other choice. > > I don't know about alpha but on i386 cpu kernel needs only 4 things from > =A0the bootloader to be totally firmware-independent: memory map, framebu= ffer > info, rsdp and smbios address. So I propose to add tags for 3 last things > and make memory map required. This would encourage creation of OS working= on > all branches of i386 including coreboot What about reserving a tag which will contain a copy of smbios anchor and another for containing a copy of rsdp? > I think on many platforms it's possible to pass some number of parameters= to > make it firmware-independent too >> >> From my point of view, the conclusion should be based on whether a boot >> loader may want to provide a memory map different from what firmware thi= nks. > > Badram? Creepy firmwares? Implementing memory map passing from bootloader side is cheap - bootloader needs to know it anyway. >> >> Regards, >> Okuji >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> http://lists.gnu.org/mailman/listinfo/grub-devel > > > -- > > Regards > Vladimir 'phcoder' Serbinenko > --=20 Regards Vladimir 'phcoder' Serbinenko Personal git repository: http://repo.or.cz/w/grub2/phcoder.git