Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NNevh-0001GJ-Ek for mharc-grub-devel@gnu.org; Wed, 23 Dec 2009 23:04:01 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NNevg-0001G4-8D for grub-devel@gnu.org; Wed, 23 Dec 2009 23:04:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NNevb-0001FX-9m for grub-devel@gnu.org; Wed, 23 Dec 2009 23:03:59 -0500 Received: from [199.232.76.173] (port=41813 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NNevb-0001FU-4p for grub-devel@gnu.org; Wed, 23 Dec 2009 23:03:55 -0500 Received: from web94105.mail.in2.yahoo.com ([203.104.16.59]:37299) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NNevZ-0003gT-64 for grub-devel@gnu.org; Wed, 23 Dec 2009 23:03:55 -0500 Received: (qmail 92616 invoked by uid 60001); 24 Dec 2009 04:03:50 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.in; s=s1024; t=1261627430; bh=8b/At3yPaiuZhapOnNHEWcJvCWewzlf+UMZB92DXM5E=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=vZnzKWf2ntivLmAoA6pyXNMpEcwS9DIiNuRb8maHC3MIBAi3Nd+447WyCI5o0R8fUEBGABqZFtCS7eN65d/Tc55BDeqjpUbyg+aI1AeHdWg6Np57rzPr1DPxcYe06coxJKxljiMuarnlT0KgBhsY03sltQI042mvqZaOlZYlbZw= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=XBmW4+y4NowHYkQtxKNKsWRiPYGGYyGjWjCfHvK8S5SxuRc2E4V4vyPuAOAD99uCqzSnfQaqWRu9+9dctdsjnwmrd2/QRfav1KFqOWo1mDXkqeKctNvYlH/9svMPxU4Y7JZ237IZ+DU8n09ORLeFjbtdgPcadedzAeGsqChPX+c=; Message-ID: <552056.91770.qm@web94105.mail.in2.yahoo.com> X-YMail-OSG: StiufxwVM1lTRaT2gjksngqw1.3JVrfTZpYJS0DU4r7dUmjPFW0OxGI_hWVNpTJu5lEgYPaymbLOh9ZAAZrWFnbO5xhm3t4IE0pJNQ24o.rja3DbDGjSKWm_dn1MeoxqeOSj317OEsaVYDL_UUoerre1s4r1njADVWXO.N7NKl9mWiAMQzMAHg0c4MjYnnpGvClmnJwMWUQD0RrLmd1Z8WdNVVMSdscdebg68lRkLo8pV1cpOz5PVvgZh0JIM91IunafHVmtnT5bcSXVJVnScqjcNx.Yp.Utzt4- Received: from [117.195.5.220] by web94105.mail.in2.yahoo.com via HTTP; Thu, 24 Dec 2009 09:33:50 IST X-Mailer: YahooMailRC/240.3 YahooMailWebService/0.8.100.260964 Date: Thu, 24 Dec 2009 09:33:50 +0530 (IST) From: mandar naik To: grub-devel@gnu.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-874722557-1261627430=:91770" X-detected-operating-system: by monty-python.gnu.org: FreeBSD 6.x (1) Subject: Re: help ragarding Multiprocessor(MP) Configuration Table 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: Thu, 24 Dec 2009 04:04:00 -0000 --0-874722557-1261627430=:91770 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Hi Brendan,=0A =0AThanks for your quick reply.The information provided by y= ou will be very useful to me.=0A Best Regards,=0AMandar Naik=0A=0A=0A=0A=0A= ________________________________=0AFrom: "grub-devel-request@gnu.org" =0ATo: grub-devel@gnu.org=0ASent: Thu, 24 December, = 2009 6:27:54 AM=0ASubject: Grub-devel Digest, Vol 70, Issue 67=0A=0ASend Gr= ub-devel mailing list submissions to=0A grub-devel@gnu.org=0A=0ATo subsc= ribe or unsubscribe via the World Wide Web, visit=0A http://lists.gnu.or= g/mailman/listinfo/grub-devel=0Aor, via email, send a message with subject = or body 'help' to=0A grub-devel-request@gnu.org=0A=0AYou can reach the p= erson managing the list at=0A grub-devel-owner@gnu.org=0A=0AWhen replyin= g, please edit your Subject line so it is more specific=0Athan "Re: Content= s of Grub-devel digest..."=0A=0A=0AToday's Topics:=0A=0A 1. Re: help raga= rding Multiprocessor(MP) Configuration Table=0A (Brendan Trotter)=0A = 2. Non-static variables and nested function pointers [bug=0A #28392] = (Gr?goire Sutre)=0A 3. Re: Non-static variables and nested function point= ers [bug=0A #28392] (Seth Goldberg)=0A 4. Re: How to install grub on= fakeraid (raid 0) which spans 2=0A TB? (Andr? Heynatz)=0A 5. Re: Ho= w to install grub on fakeraid (raid 0) which spans 2=0A TB? (Bruce Dub= bs)=0A=0A=0A---------------------------------------------------------------= -------=0A=0AMessage: 1=0ADate: Thu, 24 Dec 2009 06:24:53 +1030=0AFrom: Bre= ndan Trotter =0ASubject: Re: help ragarding Multiproces= sor(MP) Configuration Table=0ATo: The development of GNU GRUB =0AMessage-ID:=0A =0AContent-Type: text/plain; charset=3DISO-8859-1=0A=0AHi,=0A= =0AOn Thu, Dec 24, 2009 at 1:09 AM, mandar naik wro= te:=0A> So we wanted to know how & what MP information is made available to= grub on=0A> Intel core2duo architecture if MP Floating Point structure & M= P=0A> configuration table are not present.=0A> If Intel core2duo architectu= re is one of default configuration type then is=0A> it possible to modify s= mp-imps.c file to use default configuration settings.=0A> Also we would lik= e to know if there is similar SMP support provided in GRUB=0A> 1.97.=0A> Th= anking in anticipation,=0A=0AThe "default configurations" mentioned in Inte= l's Multi-Processor=0ASpecification haven't been used for over 15 years.=0A= =0AAbout a decade ago everything started shifting to ACPI, and in the=0Alas= t few years I've seen a few systems without Intel's (much older) MP=0ASpeci= fication tables or with dummy/incomplete MP specification tables=0A(althoug= h they are still rare - almost all modern computers have both=0AMP and ACPI= ). The ACPI tables include a "Multiple APIC Description=0ATable" which tell= s you everything that the MP Tables did, and modern=0Asoftware should check= for ACPI tables and use them (and should only=0Ause MP Specification table= s if no ACPI tables are found).=0A=0AModifying GRUB to suit your specific h= ardware is a bad idea=0A(especially when the problem is your software and n= ot the hardware,=0Afirmware or GRUB); and learning how to make software tha= t doesn't work=0Aon other computers and stops working when you change some = of the BIOS=0Asettings is also a bad idea.=0A=0AUse the ACPI tables.=0A=0A= =0ACheers,=0A=0ABrendan=0A=0A=0A=0A=0A------------------------------=0A=0AM= essage: 2=0ADate: Wed, 23 Dec 2009 21:48:31 +0100=0AFrom: Gr?goire Sutre =0ASubject: Non-static variables and nested function= pointers [bug=0A #28392]=0ATo: The development of GNU GRUB =0AMessage-ID: <4B32821F.6050607@labri.fr>=0AContent-Type: text/pla= in; charset=3D"iso-8859-1"=0A=0AHi,=0A=0AI am trying to add NetBSD specific= code to util/hostdisk.c in order to =0Amake grub-probe work. This part is= almost finished. However, I had a =0Ahard time dealing with segfaults in = callbacks (hook function pointers) =0Ain a number of places of the vanilla = code. Actually, I get segfaults in =0Agrub-probe with the vanilla trunk co= de (see bug report #28392). This is =0Aon NetBSD 5.0 i386.=0A=0AIn the end= , these segfaults were fixed by making sure that all variables =0Aaccessed = by pointers to nested functions are declared static. I attach =0Aa patch t= hat fixes these segfaults on my NetBSD box (this patch is also =0Aincluded = in the bug report).=0A=0AHowever, I am not a C expert, and I must be missin= g something as the =0Acode (obviously) works well on other systems.=0A=0ATh= anks for your help,=0A=0AGr=E9goire=0A-------------- next part ------------= --=0AA non-text attachment was scrubbed...=0AName: patch-nested-functions.d= iff=0AType: text/x-patch=0ASize: 7659 bytes=0ADesc: not available=0AUrl : h= ttp://lists.gnu.org/pipermail/grub-devel/attachments/20091223/70cf596a/patc= h-nested-functions.bin=0A=0A------------------------------=0A=0AMessage: 3= =0ADate: Wed, 23 Dec 2009 14:17:06 -0800 (PST)=0AFrom: Seth Goldberg =0ASubject: Re: Non-static variables and nested function p= ointers [bug=0A #28392]=0ATo: The development of GNU GRUB =0AMessage-ID:=0A =0AContent-Type: text/plain; charset=3D"iso-8859-1"=0A=0AHi,=0A= =0A Your problem is probably lack of executable stack support, or at leas= t you =0Ahaven't linked your application with a linker mapfile that specifi= es an =0Aexecutable stack -- the callbacks require the use of trampolines t= o access =0Alocal variables, which require an executable stack.=0A=0A --S= =0A=0AQuoting Gr=E9goire Sutre, who wrote the following on Wed, 23 Dec 2009= :=0A=0A> Hi,=0A>=0A> I am trying to add NetBSD specific code to util/hostdi= sk.c in order to make =0A> grub-probe work. This part is almost finished. = However, I had a hard time =0A> dealing with segfaults in callbacks (hook = function pointers) in a number of =0A> places of the vanilla code. Actuall= y, I get segfaults in grub-probe with the =0A> vanilla trunk code (see bug = report #28392). This is on NetBSD 5.0 i386.=0A>=0A> In the end, these segf= aults were fixed by making sure that all variables =0A> accessed by pointer= s to nested functions are declared static. I attach a =0A> patch that fixe= s these segfaults on my NetBSD box (this patch is also =0A> included in the= bug report).=0A>=0A> However, I am not a C expert, and I must be missing s= omething as the code =0A> (obviously) works well on other systems.=0A>=0A> = Thanks for your help,=0A>=0A> Gr=E9goire=0A>=0A=0A-------------------------= -----=0A=0AMessage: 4=0ADate: Thu, 24 Dec 2009 00:05:42 +0100=0AFrom: "Andr= ? Heynatz" =0ASubject: Re: How to install grub on fakerai= d (raid 0) which spans 2=0A TB?=0ATo: The development of GNU GRUB =0AMessage-ID: <20091223230542.287510@gmx.net>=0AContent-Type= : text/plain; charset=3D"iso-8859-1"=0A=0A> Andr=E9 Heynatz wrote:=0A> > I = have bought two 1 TB harddisks and one 2 TB harddisk (backup).=0A> > I want= to use the 1 TB harddisks in a RAID 0 array (Intel ICH8R=0A> Fakeraid).=0A= > > =0A> > OS: Win XP SP3, Win 7, Ubuntu Linux 9.10 32 Bit=0A> > =0A> > My = partition plan 1:=0A> > =0A> > P ntfs 300 GB Windows XP SP3 32 Bit=0A> > P= ntfs 300 GB Windows 7 32 Bit=0A> > E=0A> > L swap 2 GB Linux swap=0A> = > L ext4 250 GB Ubuntu Linux 9.10 (Karmic) 32 Bit=0A> > L ntfs 1100 GB dat= a (for data exchange and storage)=0A> > L ext4 48 GB spare space for test= ing of new OSes=0A> =0A> I'd suggest:=0A> =0A> P ext2 100 MB /boot=0A> P n= tfs 300 GB Windows XP SP3 32 Bit=0A> P ntfs 300 GB Windows 7 32 Bit=0A> E= =0A> L swap 2 GB Linux swap=0A> L ext4 250 GB Ubuntu Linux 9.10 (Karmic= ) 32 Bit=0A> L ntfs 1100 GB data (for data exchange and storage)=0A> L ext4= 48 GB spare space for testing of new OSes=0A> =0A> There is no need for = /boot to be on a raid or other 'special' partition =0A> type.=0A> =0A> -= - Bruce=0A=0AHello Bruce,=0A=0Athanks for the suggestion. But in order to d= o this I would need to remove the perfectly working Windows XP and Windows = 7 systems to do this which would be a pity. I feel that Linux just CAN do i= t with Fakeraid, only a tiny bit of work is needed for support. I managed t= o install Linux on Fakeraid three years ago, with a complicated procedure. = It worked like a charm, until I needed more capacity. This time it is a lit= tle bit more difficult to get to a solution. I do not care if it is GRUB1 o= r GRUB2, it should work with both because we are at a turning point and can= not neglect the fact that we need a transition period. I assume that GRUB i= s to serve users well of course.=0AMy only explanation for the failure of G= RUB1 the second time is that there is some overflow happening because of th= e huge sector counts. If a sector count is stored in a 32 Bit Integer (int)= , there may be a problem if the sector count exceeds 0x7fffffff, which is 1= TB. My first partition plan lets GRUB use a sector count below 0x80000000,= my second partition plan lets the Linux system partition be at a sector ad= dress definitely above 0x7fffffff, which may overflow. In general, signedne= ss should be cared about. But in this case it would be even better to use a= 64 Bit sector address to accomodate for LBA48 (or LBA64?). Hard disk sizes= can only increase, and I read about people using RAID-5 with 6 TB capacity= and needing to go to GUID partition tables (GPT) because one partition is = to be larger than 2 TB. Windows Vista and Windows 7 support this EFI featur= e. I am sure Linux does it too, at least Ubuntu Linux which I use has UIDs = even in the GRUB1 configuration (probably patched).=0AI return to partition plan 1 and creat= e the whole partition table with Windows 7 which should be recent enough to= handle the size of the disks. The newest Intel Matrix driver should work f= lawlessly. Afterwards I install Ubuntu Linux near the other system partitio= ns which was my original plan. Especially Windows XP 32 Bit is unsupported = in this area (by intent) so I should not depend on it to deal with a partit= ion table. Firstable I try Ubuntu 10.04 GRUB2, then if it does not work I t= ry Ubuntu 9.10 GRUB1 (most recent update).=0A=0AMy old computer without RAI= D uses GRUB2, and it works flawlessly. Keep up the good work! There will al= ways be special cases which need some attention. We get closer to a "just w= orks" system which would attract many new users. It is not the design which= sells systems, maybe later it is, but now it still is the lacking function= ality or compatibility which drives users away.=0A=0AI wish you all a Merry= Christmas!=0A=0AGreetings,=0A=0AAndr=E9=0A=0A-- =0AGRATIS f=FCr alle GMX-M= itglieder: Die maxdome Movie-FLAT!=0AJetzt freischalten unter http://portal= .gmx.net/de/go/maxdome01=0A=0A=0A=0A=0A------------------------------=0A=0A= Message: 5=0ADate: Wed, 23 Dec 2009 18:57:45 -0600=0AFrom: Bruce Dubbs =0ASubject: Re: How to install grub on fakeraid (raid 0)= which spans 2=0A TB?=0ATo: The development of GNU GRUB =0AMessage-ID: <4B32BC89.6090501@gmail.com>=0AContent-Type: text/plain;= charset=3DISO-8859-1; format=3Dflowed=0A=0AAndr=E9 Heynatz wrote:=0A>> And= r=E9 Heynatz wrote:=0A>>> I have bought two 1 TB harddisks and one 2 TB har= ddisk (backup). =0A>>> I want to use the 1 TB harddisks in a RAID 0 array (= Intel ICH8R=0A=0A>>> P ntfs 300 GB Windows XP SP3 32 Bit P ntfs 300 GB Wi= ndows 7 32=0A>>> Bit E L swap 2 GB Linux swap L ext4 250 GB Ubuntu Linu= x 9.10=0A>>> (Karmic) 32 Bit L ntfs 1100 GB data (for data exchange and=0A>= >> storage) L ext4 48 GB spare space for testing of new OSes=0A>> I'd sug= gest:=0A>> =0A>> P ext2 100 MB /boot P ntfs 300 GB Windows XP SP3 32 Bit = P ntfs=0A>> 300 GB Windows 7 32 Bit E L swap 2 GB Linux swap L ext4 250= GB=0A>> Ubuntu Linux 9.10 (Karmic) 32 Bit L ntfs 1100 GB data (for data=0A= >> exchange and storage) L ext4 48 GB spare space for testing of new=0A>>= OSes=0A>> =0A>> There is no need for /boot to be on a raid or other 'speci= al'=0A>> partition type.=0A>> =0A>> -- Bruce=0A> =0A> Hello Bruce,=0A> =0A>= thanks for the suggestion. But in order to do this I would need to=0A> rem= ove the perfectly working Windows XP and Windows 7 systems to do=0A> this w= hich would be a pity. =0A=0ANo, not really. From your post I thought you y= ou were working with a =0Ablank HD. Try this:=0A=0AP ntfs 300 GB Windows = XP SP3 32 Bit=0AP ntfs 300 GB Windows 7 32 Bit=0AP ext2 100 MB /boot=0AE= =0AL swap 2 GB Linux swap=0AL ext4 250 GB Ubuntu Linux 9.10 (Karmic) 32= Bit=0AL ntfs 1100 GB data (for data exchange and storage)=0AL ext4 48 GB= spare space for testing of new OSes=0A=0AI like to use the first partition= as /boot, but there is no requirement =0Ato do that. I think you can use = a logical partition too, but I'm not =0A100% sure.=0A=0AGRUB normally uses = a BIOS call as a part of its internal process. The =0Aextended call is def= ined for up to 2^48 sectors. That is far larger =0Athan any disk available= today. Any limitation, if it exists, is in the =0ABIOS.=0A=0A> I feel tha= t Linux just CAN do it with=0A> Fakeraid, only a tiny bit of work is needed= for support. I managed to=0A> install Linux on Fakeraid three years ago, w= ith a complicated=0A> procedure. It worked like a charm, until I needed mor= e capacity. This=0A> time it is a little bit more difficult to get to a sol= ution. I do not=0A> care if it is GRUB1 or GRUB2, it should work with both = because we are=0A> at a turning point and cannot neglect the fact that we n= eed a=0A> transition period. I assume that GRUB is to serve users well of= =0A> course. =0A=0AThat's your choice of course. I haven't worked with any= SW raid. I've =0Aalways thought that HW raid was a better choice. After = all, the value =0Aof your data is far greater than any raid device.=0A=0A = -- Bruce=0A=0A=0A=0A=0A------------------------------=0A=0A_______________= ________________________________=0AGrub-devel mailing list=0AGrub-devel@gnu= .org=0Ahttp://lists.gnu.org/mailman/listinfo/grub-devel=0A=0A=0AEnd of Grub= -devel Digest, Vol 70, Issue 67=0A*****************************************= *=0A=0A=0A=0A The INTERNET now has a personality. YOURS! See your Yaho= o! Homepage. http://in.yahoo.com/ --0-874722557-1261627430=:91770 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable
Hi Brendan,
 
Thanks for your= quick reply.The information provided by you will be very useful to me.
=  
Best Regards,
Mandar Naik



From:<= /b> "grub-devel-request@gnu.org" <grub-devel-request@gnu.org>
<= span style=3D"font-weight: bold;">To: grub-devel@gnu.org
<= span style=3D"font-weight: bold;">Sent: Thu, 24 December, 2009 6= :27:54 AM
Subject: Grub= -devel Digest, Vol 70, Issue 67

Send Grub-devel mailing list = submissions to
    grub-devel@gnu.org

To subscribe or un= subscribe via the World Wide Web, visit
    http://li= sts.gnu.org/mailman/listinfo/grub-devel
or, via email, send a messag= e with subject or body 'help' to
    gru= b-devel-request@gnu.org

You can reach the person managing the li= st at
    grub-devel-owner@gnu.org
When replying, please edit your Subject line so it is more specific
th= an "Re: Contents of Grub-devel digest..."


Today's Topics:
  1. Re: help ragarding Multiprocessor(MP) Configuration Table
&n= bsp;     (Brendan Trotter)
  2. Non-static variables and nes= ted function pointers [bug
      #28392] (Gr?goire Sutre)=
  3. Re: Non-static variables and nested function pointers [bug      #28392] (Seth Goldberg)
  4. Re: How to ins= tall grub on fakeraid (raid 0) which spans 2
      TB? (A= ndr? Heynatz)
  5. Re: How to install grub on fakeraid (raid 0) wh= ich spans 2
      TB? (Bruce Dubbs)


----------= ------------------------------------------------------------

Message= : 1
Date: Thu, 24 Dec 2009 06:24:53 +1030
From: Brendan Trotter <<= a ymailto=3D"mailto:btrotter@gmail.com" href=3D"mailto:btrotter@gmail.com">= btrotter@gmail.com>
Subject: Re: help ragarding Multiprocessor(MP= ) Configuration Table
To: The development of GNU GRUB <grub-devel@gnu.org>
Message-I= D:
    <b1ebdcad0912231154w6b749b2bw2c29270dfd= 310935@mail.gmail.com>
Content-Type: text/plain; charset=3DISO-88= 59-1

Hi,

On Thu, Dec 24, 2009 at 1:09 AM, mandar naik <mandarn25@yahoo.co.in> wrote:
> So we wanted to know how &= amp; what MP information is made available to grub on
> Intel core2du= o architecture if MP Floating Point structure & MP
> configu= ration table are not present.
> If Intel core2duo architecture is one= of default configuration type then is
> it possible to modify smp-im= ps.c file to use default configuration settings.
> Also we would= like to know if there is similar SMP support provided in GRUB
> 1.97.
= > Thanking in anticipation,

The "default configurations" mentione= d in Intel's Multi-Processor
Specification haven't been used for over 15= years.

About a decade ago everything started shifting to ACPI, and = in the
last few years I've seen a few systems without Intel's (much olde= r) MP
Specification tables or with dummy/incomplete MP specification tab= les
(although they are still rare - almost all modern computers have bot= h
MP and ACPI). The ACPI tables include a "Multiple APIC Description
= Table" which tells you everything that the MP Tables did, and modern
sof= tware should check for ACPI tables and use them (and should only
use MP = Specification tables if no ACPI tables are found).

Modifying GRUB to= suit your specific hardware is a bad idea
(especially when the problem = is your software and not the hardware,
firmware or GRUB); and learning how to make software that doesn't work
on other computers and = stops working when you change some of the BIOS
settings is also a bad id= ea.

Use the ACPI tables.


Cheers,

Brendan



------------------------------

Message: 2
Date: Wed, 23= Dec 2009 21:48:31 +0100
From: Gr?goire Sutre <gregoire.su= tre@labri.fr>
Subject: Non-static variables and nested function p= ointers [bug
    #28392]
To: The development of GNU GR= UB <grub-devel@gnu.org>
Message-ID: <4B3282= 1F.6050607@labri.fr>
Content-Type: text/plain; charset=3D"iso-885= 9-1"

Hi,

I am trying to add NetBSD specific code to util/host= disk.c in order to
make grub-probe work.  This part is almost finished.&= nbsp; However, I had a
hard time dealing with segfaults in callbacks (h= ook function pointers)
in a number of places of the vanilla code. = Actually, I get segfaults in
grub-probe with the vanilla trunk code (s= ee bug report #28392).  This is
on NetBSD 5.0 i386.

In the = end, these segfaults were fixed by making sure that all variables
acces= sed by pointers to nested functions are declared static.  I attach a patch that fixes these segfaults on my NetBSD box (this patch is also included in the bug report).

However, I am not a C expert, and I m= ust be missing something as the
code (obviously) works well on other sy= stems.

Thanks for your help,

Gr=E9goire
-------------- nex= t part --------------
A non-text attachment was scrubbed...
Name: pat= ch-nested-functions.diff
Type: text/x-patch
Size: 7659 bytes
Desc: not available
Url : http://lists.gnu.org/pipermail/grub-devel/attachments/200= 91223/70cf596a/patch-nested-functions.bin

----------------------= --------

Message: 3
Date: Wed, 23 Dec 2009 14:17:06 -0800 (PST)From: Seth Goldberg <Seth.Goldberg@Sun.COM>
Subject:= Re: Non-static variables and nested function pointers [bug
  =   #28392]
To: The development of GNU GRUB <grub-devel@gnu.org>
Message-ID:
    <
= alpine.GSO.2.00.0912231416110.12423@oretfbsg.Jrfg.Fha.PBZ>
Conten= t-Type: text/plain; charset=3D"iso-8859-1"

Hi,

  Your p= roblem is probably lack of executable stack support, or at least you
ha= ven't linked your application with a linker mapfile that specifies an
e= xecutable stack -- the callbacks require the use of trampolines to access <= br>local variables, which require an executable stack.

  --S
Quoting Gr=E9goire Sutre, who wrote the following on Wed, 23 Dec 2009:=

> Hi,
>
> I am trying to add NetBSD specific code to= util/hostdisk.c in order to make
> grub-probe work.  This part= is almost finished.  However, I had a hard time
> dealing with= segfaults in callbacks (hook function pointers) in a number of
> pl= aces of the vanilla code.  Actually, I get segfaults in grub-probe with the
> vanilla trunk code (see bug report #28392).  This i= s on NetBSD 5.0 i386.
>
> In the end, these segfaults were fixe= d by making sure that all variables
> accessed by pointers to nested= functions are declared static.  I attach a
> patch that fixes = these segfaults on my NetBSD box (this patch is also
> included in t= he bug report).
>
> However, I am not a C expert, and I must be= missing something as the code
> (obviously) works well on other sys= tems.
>
> Thanks for your help,
>
> Gr=E9goire
&= gt;

------------------------------

Message: 4
Date: Thu, 2= 4 Dec 2009 00:05:42 +0100
From: "Andr? Heynatz" <ahpublic@gmx.net>= ;
Subject: Re: How to install grub on fakeraid (raid 0) which spans 2    TB?
To: The development of GNU GRUB <g= rub-devel@gnu.org>
Message-ID: <2009122= 3230542.287510@gmx.net>
Content-Type: text/plain; charset=3D"iso-= 8859-1"

> Andr=E9 Heynatz wrote:
> > I have bought two 1= TB harddisks and one 2 TB harddisk (backup).
> > I want to use th= e 1 TB harddisks in a RAID 0 array (Intel ICH8R
> Fakeraid).
> = >
> > OS: Win XP SP3, Win 7, Ubuntu Linux 9.10 32 Bit
> = >
> > My partition plan 1:
> >
> > P ntfs&n= bsp; 300 GB Windows XP SP3 32 Bit
> > P ntfs  300 GB Windows = 7 32 Bit
> > E
> > L swap    2 GB Linux swap> > L ext4  250 GB Ubuntu Linux 9.10 (Karmic) 32 Bit
> &g= t; L ntfs 1100 GB data (for data exchange and storage)
> > L ext4  48 GB spare space for testing of new OSes
>
> I'd= suggest:
>
> P ext2  100 MB /boot
> P ntfs  3= 00 GB Windows XP SP3 32 Bit
> P ntfs  300 GB Windows 7 32 Bit> E
> L swap    2 GB Linux swap
> L ext4  25= 0 GB Ubuntu Linux 9.10 (Karmic) 32 Bit
> L ntfs 1100 GB data (for dat= a exchange and storage)
> L ext4  48 GB spare space for testing= of new OSes
>
> There is no need for /boot to be on a raid or= other 'special' partition
> type.
>
>    -- = Bruce

Hello Bruce,

thanks for the suggestion. But in order to= do this I would need to remove the perfectly working Windows XP and Window= s 7 systems to do this which would be a pity. I feel that Linux just CAN do= it with Fakeraid, only a tiny bit of work is needed for support. I managed= to install Linux on Fakeraid three years ago, with a complicated procedure. It worked like a charm, until I needed more capacity. This time= it is a little bit more difficult to get to a solution. I do not care if i= t is GRUB1 or GRUB2, it should work with both because we are at a turning p= oint and cannot neglect the fact that we need a transition period. I assume= that GRUB is to serve users well of course.
My only explanation for the= failure of GRUB1 the second time is that there is some overflow happening = because of the huge sector counts. If a sector count is stored in a 32 Bit = Integer (int), there may be a problem if the sector count exceeds 0x7ffffff= f, which is 1 TB. My first partition plan lets GRUB use a sector count belo= w 0x80000000, my second partition plan lets the Linux system partition be a= t a sector address definitely above 0x7fffffff, which may overflow. In gene= ral, signedness should be cared about. But in this case it would be even be= tter to use a 64 Bit sector address to accomodate for LBA48 (or LBA64?). Hard disk sizes can only increase, and I read about people using = RAID-5 with 6 TB capacity and needing to go to GUID partition tables (GPT) = because one partition is to be larger than 2 TB. Windows Vista and Windows = 7 support this EFI feature. I am sure Linux does it too, at least Ubuntu Li= nux which I use has UIDs even in the GRUB1 configuration (probably patched)= .
I return to partition plan 1 and create the whole partition table with= Windows 7 which should be recent enough to handle the size of the disks. T= he newest Intel Matrix driver should work flawlessly. Afterwards I install = Ubuntu Linux near the other system partitions which was my original plan. E= specially Windows XP 32 Bit is unsupported in this area (by intent) so I sh= ould not depend on it to deal with a partition table. Firstable I try Ubunt= u 10.04 GRUB2, then if it does not work I try Ubuntu 9.10 GRUB1 (most recen= t update).

My old computer without RAID uses GRUB2, and it works flawlessly. Keep up the good work! There will always be special case= s which need some attention. We get closer to a "just works" system which w= ould attract many new users. It is not the design which sells systems, mayb= e later it is, but now it still is the lacking functionality or compatibili= ty which drives users away.

I wish you all a Merry Christmas!
Greetings,

Andr=E9

--
GRATIS f=FCr alle GMX-Mitglieder: = Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/ma= xdome01




------------------------------

Messag= e: 5
Date: Wed, 23 Dec 2009 18:57:45 -0600
From: Bruce Dubbs <bruce.dubbs@gmail.com>
Subject: Re: How to install grub on fak= eraid (raid 0) which spans 2
    TB?
To: The developme= nt of GNU GRUB <grub-devel@gnu.org>
Message-ID: <4B32BC89.6090501@gmail.com>
Content-Type: text/plain; char= set=3DISO-8859-1; format=3Dflowed

Andr=E9 Heynatz wrote:
>>= Andr=E9 Heynatz wrote:
>>> I have bought two 1 TB harddisks an= d one 2 TB harddisk (backup).
>>> I want to use the 1 TB hardd= isks in a RAID 0 array (Intel ICH8R

>>> P ntfs  300 GB= Windows XP SP3 32 Bit P ntfs  300 GB Windows 7 32
>>> Bit= E L swap    2 GB Linux swap L ext4  250 GB Ubuntu Linux 9.1= 0
>>> (Karmic) 32 Bit L ntfs 1100 GB data (for data exchange an= d
>>> storage) L ext4  48 GB spare space for testing of n= ew OSes
>> I'd suggest:
>>
>> P ext2  100 = MB /boot P ntfs  300 GB Windows XP SP3 32 Bit P ntfs
>> 300 GB Window= s 7 32 Bit E L swap    2 GB Linux swap L ext4  250 GB
>= ;> Ubuntu Linux 9.10 (Karmic) 32 Bit L ntfs 1100 GB data (for data
&g= t;> exchange and storage) L ext4  48 GB spare space for testing of= new
>> OSes
>>
>> There is no need for /boot t= o be on a raid or other 'special'
>> partition type.
>> <= br>>> -- Bruce
>
> Hello Bruce,
>
> thanks = for the suggestion. But in order to do this I would need to
> remove = the perfectly working Windows XP and Windows 7 systems to do
> this w= hich would be a pity.

No, not really.  From your post I though= t you you were working with a
blank HD.  Try this:

P ntfs&n= bsp; 300 GB Windows XP SP3 32 Bit
P ntfs  300 GB Windows 7 32 BitP ext2  100 MB /boot
E
L swap    2 GB Linux swap
L ext4  250 GB Ubuntu Linux 9.10 (Karmic) 32 Bit
L ntfs 11= 00 GB data (for data exchange and storage)
L ext4  48 GB spare spa= ce for testing of new OSes

I like to use the first partition as /boo= t, but there is no requirement
to do that.  I think you can use a = logical partition too, but I'm not
100% sure.

GRUB normally uses= a BIOS call as a part of its internal process.  The
extended call= is defined for up to 2^48 sectors.  That is far larger
than any d= isk available today.  Any limitation, if it exists, is in the
BIOS= .

> I feel that Linux just CAN do it with
> Fakeraid, only = a tiny bit of work is needed for support. I managed to
> install Linu= x on Fakeraid three years ago, with a complicated
> procedure. It wor= ked like a charm, until I needed more capacity. This
> time it is a l= ittle bit more difficult to get to a solution. I do not
> care if it is GRUB1 or GRUB2, it should work with both because we are
> a= t a turning point and cannot neglect the fact that we need a
> transi= tion period. I assume that GRUB is to serve users well of
> course. <= br>
That's your choice of course.  I haven't worked with any SW rai= d.  I've
always thought that HW raid was a better choice.  Af= ter all, the value
of your data is far greater than any raid device.
  -- Bruce




------------------------------
=
_______________________________________________
Grub-devel mailing l= ist
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo= /grub-devel


End of Grub-devel Digest, Vol 70, Issue 67
**= ****************************************
=0A=0A=0A=0A

=0A=0A=0A=0A =
=0AThe INTERNET now has a personality. YOUR= S! See your Yahoo! Homepage. --0-874722557-1261627430=:91770--