Re: PPC64

2008-10-20 Thread Hollis Blanchard
TE 0x068e60 0x 0x 0x0002c 0x0 R 0x4 > > > the exit of "readelf -a" is showed in attachment readelf.txt > > If you could help me, I will appreciate it. Thanks in advance! > Best regards. > Abranches, Manoel R. -- Hollis Blanchard IBM Linux Technology Center ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel

Re: PPC64

2008-10-21 Thread Hollis Blanchard
Please CC me, since I'm no longer subscribed to grub-devel. > From: Manoel <[EMAIL PROTECTED]> > To: The development of GRUB 2 > Subject: Re: PPC64 > Date: Tue, 21 Oct 2008 14:43:25 -0200 > > Hi Hollis, > > On Mon, 2008-10-20 at 14:32 -0500, Hollis Blanchar

Re: PPC64

2008-10-21 Thread Hollis Blanchard
ur hard disk to another system where devices have different Open Firmware paths and aliases. Another big pain point is building bootable CDs, since these also unfortunately cannot make assumptions about the Open Firmware devices available. Just put all the files in the same directory on a real

Re: PPC64

2008-10-23 Thread Hollis Blanchard
On Thu, 2008-10-23 at 01:25 -0400, Pavel Roskin wrote: > Quoting Hollis Blanchard <[EMAIL PROTECTED]>: > > On IBM POWER servers, there is no HFS partition at all. Instead, there > > is a "raw" partition onto which you dd an ELF file. Firmware loads the > >

Re: PPC64

2008-10-23 Thread Hollis Blanchard
u can see that load-base is set to 0x4000 in that code. Since your text starts at 0x1, that means your binary can be at most 0xc000 bytes (48KB) large before it overlaps the text area. That isn't necessarily a problem; firmware is probably using memmove() (which handles overlapping areas) to l

Re: PPC64

2008-10-24 Thread Hollis Blanchard
Traditionally, firmware has refused to load an ELF file without a NOTE segment. I feel like I heard that actually changed recently (maybe in the p5 timeframe), but I never investigated further. You could easily test by running grub-mkimage without the -n switch. -- Hollis Blanchard IBM Linux

Re: PPC64

2008-11-04 Thread Hollis Blanchard
at gcc manpages). > > My doubt is where is the best place to put this flag so that it will be > passed to all gcc calls by default? You don't want it on all gcc calls; you only want it when building the modules. -- Hollis Blanchard IBM Linux Technology Center ___

Re: PPC64 mlongcall gcc flag

2008-11-05 Thread Hollis Blanchard
runk/grub2/kern/ieee1275/init.c?revision=1806&root=grub&view=markup the GRUB heap capped at 4MB (I don't mean size, I mean the end of the heap). So how are your modules appearing in memory above 32MB? -- Hollis Blanchard IBM Linux Technology Center ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel

[patch] ls on PPC

2005-02-13 Thread Hollis Blanchard
Turns out the `ls' module was omitted from PPC's module list. Once I added it, I found it needs one more libgcc export. -Hollis 2005-02-13 Hollis Blanchard <[EMAIL PROTECTED]> * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod. * include/grub/powerpc/li

[patch] configfile

2005-02-13 Thread Hollis Blanchard
While working on setting prefix correctly, I found it useful to have the `configfile' command like GRUB Legacy. I haven't tested on i386. I'm not sure about the `nested' parameter to grub_normal_execute, but this code seems to be working fine. 2005-02-13 Hollis Blanchar

[patch] set prefix on PPC

2005-02-13 Thread Hollis Blanchard
is another supported OF platform. I have verified that this works (a config file is loaded) from disk, and netbooting is not broken. The subdirectory stuff works as well. -Hollis 2005-02-13 Hollis Blanchard <[EMAIL PROTECTED]> * include/grub/powerpc/iee

Re: [patch] configfile

2005-02-13 Thread Hollis Blanchard
On Feb 13, 2005, at 11:53 AM, Marco Gerards wrote: When this is called from normal mode, by running a command this means that another normal mode will be started again. If you run this command a few times, you would see a lot normal modes running when examining the stack, right? Hmm, I think you'r

Re: [patch] set prefix on PPC

2005-02-13 Thread Hollis Blanchard
On Feb 13, 2005, at 12:35 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: This code sets the GRUB "prefix" environment variable from the OF /chosen/bootpath property. It must therefore translate between the two syntaxes. Personally I don't like setti

Re: Scripting

2005-02-13 Thread Hollis Blanchard
On Feb 13, 2005, at 12:56 PM, Marco Gerards wrote: Serbinenko Vladimir <[EMAIL PROTECTED]> writes: What kind of parser is it? It's a direct parser with aritmetic subparser. Main parser is grub_bash_execute, arithmetic subparser is grub_bash_eval_arith. grub_bash_execute determinates the special cas

Re: [patch] set prefix on PPC

2005-02-15 Thread Hollis Blanchard
On Feb 14, 2005, at 1:01 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: 2) HFS has a concept called "blessed"; basically the firmware can automatically find and boot blessed executables without needing to specify a file name or even partition. Some ve

Re: some design issues

2005-02-15 Thread Hollis Blanchard
On Feb 14, 2005, at 3:25 PM, Yoshinori K. Okuji wrote: Currently, GRUB 2 uses grub.cfg as the name of a default config file. I chose this, according to a private discussion between me and Jeremy Katz. He pointed out that the user did not find a config file if it was menu.lst, because he/she simply

[patch] PPC build fixes

2005-02-19 Thread Hollis Blanchard
. - since grub_machine_fini isn't called yet, I haven't yet figured out how to release the memory indicated in the comments. OK? -Hollis 2005-02-19 Hollis Blanchard <[EMAIL PROTECTED]> * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt. Move file...

Re: [patch] set prefix on PPC

2005-02-19 Thread Hollis Blanchard
On Feb 15, 2005, at 3:31 PM, Marco Gerards wrote: Ok. But the file does not need to be blessed to boot from it. It's just used so the user can use: boot hd,0 instead of: boot hd,0:grubof To me the second sounds good enough. Or does that cause other problems? Remember that resetting the PRAM (a

Re: [patch] PPC build fixes

2005-02-20 Thread Hollis Blanchard
On Feb 20, 2005, at 7:39 AM, Yoshinori K. Okuji wrote: On Sunday 20 February 2005 00:34, Hollis Blanchard wrote: - grub_reboot and grub_halt in util/i386/pc/misc.c are not architecture-specific, so have been moved to util/grub-emu.c. grub_halt is clearly arch-specific. Look at the definition

Re: build error on ppc

2005-02-21 Thread Hollis Blanchard
On Feb 21, 2005, at 3:58 AM, Nico -telmich- Schottelius wrote: I just wanted to compile grub2/cvs, but configure fails: [10:31] ei:grub2% ./configure --prefix=/usr/packages/grub2 && make [...] checking for objcopy... objcopy checking whether objcopy works for absolute addresses... configure: error

Re: [PATCH] dprintf implementation

2005-02-23 Thread Hollis Blanchard
On Feb 21, 2005, at 3:04 PM, Vincent Pelletier wrote: Here is the dprintf function I worked on 2 weeks ago, which I fixed this evening. Your mailer did some bad stuff to this patch again... Index: kern/misc.c === RCS file: /cvsroot/gr

Re: [patch] set prefix on PPC

2005-02-23 Thread Hollis Blanchard
On Feb 20, 2005, at 11:50 AM, Marco Gerards wrote: If a user installs GRUB now with this bootargs patch, then later if we wish to add a debug option with "fancy parser" they will no longer be able to boot, as the syntax will change. Now: "boot grubof hd0,6" Later: "boot grubof prefix=hd0,6 debug=al

Re: [patch] set prefix on PPC

2005-02-23 Thread Hollis Blanchard
On Feb 21, 2005, at 1:01 PM, Marco Gerards wrote: +static void +grub_set_prefix (void) +{ + char bootpath[64]; /* XXX check length */ You could get the property length and use that. It would be clearer. All these stack-based get_property calls are an accident waiting to happen, but you've advoc

Re: [PATCH] dprintf implementation

2005-02-24 Thread Hollis Blanchard
On Feb 24, 2005, at 1:30 PM, Yoshinori K. Okuji wrote: On Thursday 24 February 2005 09:02, Vincent Pelletier wrote: Iirc there were differences of point of view on that matter. Okuji, what do you think about that idea ? What I said was that you should use strings instead of bit fields. [...] Here y

Re: [PATCHv2] dprintf implementation

2005-02-25 Thread Hollis Blanchard
On Feb 25, 2005, at 5:52 AM, Vincent Pelletier wrote: grub_strword (string, word) : searches for word (a serie of non-word-separators eventualy ended by word-separators) in string (a succession of 0 or more words which can begin by word-separator(s)) grub_strword looks a little overcomplicated; wou

Re: [PATCHv2] dprintf implementation

2005-02-25 Thread Hollis Blanchard
On Feb 25, 2005, at 10:13 AM, Aki Tossavainen wrote: Um, well, it does a lot of unnecessary expensive strcmp's there... But if you add this, you can at least reduce them abit, since you are only interested on the words. Oops, yes, thanks. :) -Hollis ___

Re: [patch] PPC build fixes

2005-03-23 Thread Hollis Blanchard
5 weeks later... Here I did not combine i386 and PPC halt/reboot as I did in my original patch. -Hollis 2005-03-23 Hollis Blanchard <[EMAIL PROTECTED]> * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt instead of grub_ieee1275_interpret. (grub_halt_init

Re: [patch] PPC build fixes

2005-03-25 Thread Hollis Blanchard
On Mar 24, 2005, at 3:41 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: (grub_halt_init): New function. (grub_halt_fini): Likewise. Why do you need this? (grub_reboot_init): New function. (grub_reboot_fini): Likewise. Same here. Because

partition layouts

2005-04-04 Thread Hollis Blanchard
I've been thinking about how to install grub2 on an Open Firmware system. Here's one possibility: /boot -- Linux-native filesystem (e.g. ext3) holds kernels, initrd, etc /boot/grub -- firmware-native filesystem (on Mac HFS+, on others FAT, etc) holds grub executable, grub.cfg, modules The

Re: partition layouts - symlinks

2005-04-05 Thread Hollis Blanchard
On Apr 5, 2005, at 2:00 AM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: The other possibility is to have all of /boot as a firmware-native filesystem. I think that's not ideal though, because those filesystems (HFS+, FAT) might not support features like symlinks or

Re: partition layouts - separate /boot

2005-04-05 Thread Hollis Blanchard
On Apr 4, 2005, at 11:55 PM, Vernon Mauery wrote: Hollis Blanchard wrote: I've been thinking about how to install grub2 on an Open Firmware system. Here's one possibility: /boot -- Linux-native filesystem (e.g. ext3) holds kernels, initrd, etc /boot/grub -- firmw

Re: partition layouts

2005-04-05 Thread Hollis Blanchard
On Apr 5, 2005, at 12:41 AM, Yoshinori K. Okuji wrote: On Tuesday 05 April 2005 02:38 am, Hollis Blanchard wrote: Can we have a shortcut to avoid specifying that "(hd,7)/" part repeatedly? I think that was the "root" command in GRUB Legacy, which was replaced by the "pre

Re: partition layouts

2005-04-05 Thread Hollis Blanchard
On Apr 5, 2005, at 2:02 AM, Marco Gerards wrote: Vernon Mauery <[EMAIL PROTECTED]> writes: Putting a restraint that says /boot/grub must be a separate partition doesn't sound like a good idea. It just clutters the partition table with another small partition. For the apple this was always the case

GRUB2/PPC wiki info

2005-04-05 Thread Hollis Blanchard
I've added a TestingOnPowerPC page to the wiki: http://www.autistici.org/grub/moin.cgi/TestingOnPowerPC . I hope it's enough information (including sample grub.cfg) to get curious hackers to try it out... Maybe we should add the wiki to http://www.gnu.org/software/grub/grub-2-support.en.html ?

Re: partition layouts - "root"

2005-04-05 Thread Hollis Blanchard
On Apr 5, 2005, at 11:45 AM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: root is not a command but a variable in GRUB 2. Actually, I see now that it is a command: grub_rescue_cmd_root() in kern/rescue.c. Is that only a rescue mode thing? That seems to be exactly what

Re: partition layouts - "root"

2005-04-06 Thread Hollis Blanchard
On Apr 6, 2005, at 1:32 AM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: Perhaps using "grubroot", "grubprefix", "grubbase", or similar will be acceptable? For me it is, of course, open or discussion. However, I just like `root'. I do

Re: partition layouts - "root"

2005-04-06 Thread Hollis Blanchard
On Apr 6, 2005, at 10:43 AM, Antoine Terrienne wrote: Selon Hollis Blanchard <[EMAIL PROTECTED]>: Okuji? Hmm, what about "device"? title foo set device=bar multiboot /kernel root=baz I would like to avoid this: title foo

Re: grub_machine_fini

2005-04-07 Thread Hollis Blanchard
On Feb 15, 2005, at 2:41 PM, Marco Gerards wrote: "Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: I added a new function grub_machine_fini which is an arch-specific function. This function is not called automatically, and used only for grub-emu at the moment. I implemented this function for grub-e

PPC stack

2005-04-07 Thread Hollis Blanchard
Marco, can you remind me why we stopped assigning our own stack on PPC? I seem to recall something failing, but I don't remember what. I've found that some things work better when we use our own stack. For example, running "suspend" does not spew a bunch of OF messages to the screen, but rather

Re: [BUG+Experiences] grub2 on ppc

2005-04-07 Thread Hollis Blanchard
Thanks very much for your report, Nico! (Note to others: I have updated the PPC wiki info based on some IRC questions from Nico.) On Apr 7, 2005, at 4:46 PM, Nico -telmich- Schottelius wrote: 2. The second thing which is a bit ugly is that grub2 lists (hd) (hd,...) _AND_ (ultra0) (ultra0,...) whi

Re: PPC stack

2005-04-08 Thread Hollis Blanchard
On Apr 7, 2005, at 3:48 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: Marco, can you remind me why we stopped assigning our own stack on PPC? I seem to recall something failing, but I don't remember what. IIRC it was because OF supplies a stack anyway and becau

Re: [BUG+Experiences] grub2 on ppc

2005-04-08 Thread Hollis Blanchard
On Apr 8, 2005, at 7:20 AM, Marco Gerards wrote: Nico -telmich- Schottelius <[EMAIL PROTECTED]> writes: This is only the case when using rescue mode, right? IIRC normal code clears the screen before showing the welcome message. "I don't know". All what I did was loaded grubof.modules from hd,3. T

Re: Cross-compiling GRUB

2005-04-10 Thread Hollis Blanchard
On Apr 10, 2005, at 12:06 PM, Marco Gerards wrote: Johan, Hollis, this patch touches some of your files. It would be nice if both of you could have a quick look at this patch. :) From a quick skim, it looks fine to me. -Hollis ___ Grub-devel mailing lis

Re: [patch] set prefix on PPC

2005-04-13 Thread Hollis Blanchard
r any complaints. -Hollis 2005-02-13 Hollis Blanchard <[EMAIL PROTECTED]> * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_get_dev_encoding): New prototype. (grub_ieee1275_get_filename): Likewise. * kern/powerpc/ieee1275/init.c (grub_translate_ieee175

Re: [PATCHv2] dprintf implementation

2005-04-13 Thread Hollis Blanchard
On Feb 25, 2005, at 11:12 AM, Yoshinori K. Okuji wrote: grub_strword ("filesystem", "file") returns 0 in your implementation. If I write this function, I use grub_strstr and check if the previous character and the next character are boundaries. This is a very good idea. The standalone testcase belo

Re: partition layouts - "root"

2005-04-13 Thread Hollis Blanchard
On Apr 8, 2005, at 1:39 AM, Marco Gerards wrote: "Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: This should not be the case. Not if both tab, ls, linux, etc work from pwd. In that case you can cd somewhere and everything you use is in the current dir. And there are relative (../foo) and absol

Re: partition numbering (was: set prefix on PPC)

2005-04-17 Thread Hollis Blanchard
On Apr 14, 2005, at 12:05 PM, Marco Gerards wrote: + unsigned int partno = grub_strtoul (partition, 0, 0); + partno--; /* GRUB partition numbering is 0-based. */ Right. But how can you be sure both match? Eh? OF partition numbers are 1-based. To convert to GRUB's 0-based numbering, we s

Re: partition numbering

2005-04-17 Thread Hollis Blanchard
On Apr 17, 2005, at 12:44 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: If GRUB counts partition numbers different than Open Firmware, I consider this a bug that must be fixed. 0-based partition numbers are quite confusing enough. And I do not consider that a bug.

Re: [patch] set prefix on PPC

2005-04-17 Thread Hollis Blanchard
Updated patch which uses devaliases. -Hollis 2005-04-17 Hollis Blanchard <[EMAIL PROTECTED]> * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_encode_devname): New prototype. (grub_ieee1275_get_filename): Likewise. * kern/powerpc/ieee1275/

Re: [patch] set prefix on PPC

2005-04-17 Thread Hollis Blanchard
On Apr 15, 2005, at 3:24 PM, Marco Gerards wrote: When booting on the pegasosII I see the following problem: grub> set prefix=(/[EMAIL PROTECTED]/[EMAIL PROTECTED],1/[EMAIL PROTECTED],0,3) That is when I am booting using `boot hd:4 grub)'. The prefix contains an OF device name which will not work i

Re: [patch] set prefix on PPC

2005-04-17 Thread Hollis Blanchard
On Apr 17, 2005, at 2:38 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: Updated patch which uses devaliases. On my pegasos the devalias is looked up perfectly for both ethernet and the harddisk. :) + if (partition) +{ + unsigned int partno = grub_strtoul (par

Re: [patch] set prefix on PPC - briQ results

2005-04-18 Thread Hollis Blanchard
I've tested the patch on briQ. As far as I can tell, CodeGen's "SmartFirmware" is crap, frequently suffering mysterious failures that require unplugging and waiting (unplugging and replugging rapidly isn't enough). It also suffers frequent ATA failures, where the disk or controller simply stop

Re: [patch] set prefix on PPC - briQ results

2005-04-20 Thread Hollis Blanchard
On Apr 19, 2005, at 12:36 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: I've tested the patch on briQ. As far as I can tell, CodeGen's "SmartFirmware" is crap, frequently suffering mysterious failures that require unplugging and waiting (unplugg

[patch] PPC cleanups

2005-04-21 Thread Hollis Blanchard
sights on include/grub/powerpc/ieee1275/biosdisk.h. Any suggestions on how to handle using util/i386/pc/biosdisk.c on PPC for grub-emu? -Hollis 2005-04-21 Hollis Blanchard <[EMAIL PROTECTED]> * boot/powerpc/ieee1275/cmain.c: Don't include grub/machin

Re: [PATCHv2] dprintf implementation

2005-05-08 Thread Hollis Blanchard
On Apr 14, 2005, at 9:08 AM, Vincent Pelletier wrote: Here is a clean diff with that new grub_strword version. Thanks Vincent! I've just checked this in (with a slight tweak: needed to add ## to the macro to allow passing no arguments). Now what do we think of this patch? It adds output like this

PPC executable name

2005-05-08 Thread Hollis Blanchard
I'd like to rename the PPC executable from "grubof" to "grub". If nothing else, it will avoid the question "is it grubof.cfg or grub.cfg?". Thoughts? -Hollis ___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-dev

[patch] small PPC cleanups

2005-05-08 Thread Hollis Blanchard
If there are no comments I will commit this patch in a couple days. -Hollis 2005-05-08 Hollis Blanchard <[EMAIL PROTECTED]> * boot/powerpc/ieee1275/cmain.c (module_info): Remove struct. * boot/powerpc/ieee1275/crt0.S (_start): Use init_stack. * include/grub/powe

[ppc] [patch] set environment from commandline

2005-05-08 Thread Hollis Blanchard
We're doing a lot of useless work in cmain(). Also, this patch allows you to boot from the OF commandline, overriding the defaults. Example: boot enet:,grubof prefix=foo; debug=bar Comments? -Hollis Index: boot/powerpc/ieee1275/cmain.c ===

[ppc] [patch] more cleanups

2005-05-09 Thread Hollis Blanchard
inconsistent prototypes. - we were initializing initrd_addr to 0xc000 even when we didn't have one loaded. I will resist the urge to keep growing this patch. ;) -Hollis 2005-05-08 Hollis Blanchard <[EMAIL PROTECTED]> * boot/powerpc/ieee1275/cmain.c (modul

Re: [ppc] [patch] more cleanups

2005-05-10 Thread Hollis Blanchard
On May 10, 2005, at 1:01 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: --- include/grub/powerpc/ieee1275/kernel.h 4 Jan 2005 14:01:45 - 1.1 +++ include/grub/powerpc/ieee1275/kernel.h 10 May 2005 01:27:36 - @@ -21,6 +21,6 @@ #define GRUB_KERNEL_MACHINE_HE

Re: non boot-device was Re: [ppc] [patch] set environment from commandline

2005-05-10 Thread Hollis Blanchard
On May 10, 2005, at 2:59 PM, Paul Nasrat wrote: Ignore the Default catch that seems to be resolved for me. Hmm, if you have any ideas, I'd still like to know how you got that error... Experimental toolchain? -Hollis ___ Grub-devel mailing list Grub-dev

Re: console colors

2005-05-10 Thread Hollis Blanchard
On May 10, 2005, at 2:59 PM, Paul Nasrat wrote: Loading ELF method not found; ihandle=ffbc6f80 phandle=ff848300 method not found; ihandle=ffbc6f80 phandle=ff848300 method not found; ihandle=ffbc6f80 phandle=ff848300 method not found; ihandle=ffbc6f80 phandle=ff848300 method not found; ihandle=

Re: [ppc] [patch] set environment from commandline

2005-05-10 Thread Hollis Blanchard
On May 10, 2005, at 1:11 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: Also, this patch allows you to boot from the OF commandline, overriding the defaults. Example: boot enet:,grubof prefix=foo; debug=bar This looks like a nice feature to me, especial

Re: [ppc] [patch] set environment from commandline

2005-05-13 Thread Hollis Blanchard
On May 13, 2005, at 7:43 AM, Olaf Hering wrote: On Mon, May 09, Hollis Blanchard wrote: Also, this patch allows you to boot from the OF commandline, overriding the defaults. Example: boot enet:,grubof prefix=foo; debug=bar Can one override essential parts of grub that way? Like loading a

Re: Debugging

2005-05-17 Thread Hollis Blanchard
On May 13, 2005, at 7:05 PM, Scott Becker wrote: On the two servers I've installed RHEL 4 on, I've had trouble with grub. It's the combination of grub and the new I2O_block driver. I suspect the grub patch to support I2O is lacking. Are you referring to a particular patch? I was wondering if Grub

Re: grub on ppc -- a CHRP script

2005-05-25 Thread Hollis Blanchard
Hi! On May 25, 2005, at 11:49 AM, Maurizio Boriani wrote: I tried grub2 on my ppc (apple iBook g3) but I don't like to change openfw boot-device var every time (I use the same laptop for my daily stuff) as suggested in grub wiki. So written a CHRP script which permit to choose yaboot or GRUB2,

[patch] various PPC cleanups

2005-06-16 Thread Hollis Blanchard
There aren't any functional changes with this patch, just some cleanups and consolidation. Some of this I already posted and was commented on. Some is new (like grub_ieee1275_chosen). 2005-05-08 Hollis Blanchard <[EMAIL PROTECTED]> * boot/powerpc/ieee1275/cmain.c (module_in

Re: PPC multiboot

2005-06-20 Thread Hollis Blanchard
On May 26, 2005, at 2:26 AM, Maurizio Boriani wrote: Also what about multiboot specification support in grub2? Is available (on ppc and ia32)? If not why ? :) Marco> Not yet on the PPC. This is something I'd like to work on Marco> during my summer holidays. ok :) Has anybody look

Apple partition map bug

2005-06-20 Thread Hollis Blanchard
Attached is the first 4 sectors of the Ubuntu PowerPC Hoary CD. It has 2 partition map entries, including the partition map itself. GRUB2 lists 8 partitions. Anybody want to take a look? It could be written to a floppy or zip or CD I guess... If nobody gets to it I will try to debug later. -H

[patch] printf long format

2005-06-20 Thread Hollis Blanchard
___ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel

Re: Apple partition map bug

2005-06-21 Thread Hollis Blanchard
On Jun 21, 2005, at 7:04 AM, Paul Nasrat wrote: file -k ubuntu-powerepc_hoary ubuntu_powerpc_hoary: x86 boot sector\012- Apple Partition data block Ah, right! It also has a DOS map... this explains why the debug prints I had in partmap/apple.c were not displaying. It seems the problem may be

[patch] printf long format

2005-06-21 Thread Hollis Blanchard
Hmm, no idea what happened to the first mail. Debugging a partition map bug, I was adding more grub_dprintf messages... and re-discovered that our printf doesn't handle e.g. "%lx" format strings (yet gcc requires these when printing longs). This patch works for me, though I didn't check that it i

Re: [patch] printf long format

2005-06-22 Thread Hollis Blanchard
On Jun 22, 2005, at 6:05 AM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: Debugging a partition map bug, I was adding more grub_dprintf messages... and re-discovered that our printf doesn't handle e.g. "%lx" format strings (yet gcc requires thes

Re: How to create boot CDROM with GRUB2

2005-06-22 Thread Hollis Blanchard
On Jun 22, 2005, at 8:55 AM, Dennis Clarke wrote: I went through the steps with configure and make and install into a prefix of ~/pkgs/local with the end result being : [EMAIL PROTECTED]:~/pkgs/local$ find . -ls 1959654 drwxr-xr-x 5 dclarke users4096 Jun 21 18:13 . 1959664 d

Re: How to create boot CDROM with GRUB2

2005-06-23 Thread Hollis Blanchard
On Jun 22, 2005, at 10:32 AM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: Do you intend for Open Solaris to use multiboot, or the Linux loader, or write a custom loader for it? Solaris? Multiboot? What did I miss? Blastwave.org is the Open Solaris community s

Re: Apple partition map bug

2005-06-23 Thread Hollis Blanchard
On Jun 21, 2005, at 10:46 AM, Marco Gerards wrote: You can always use the raw disk, in which case it will be detected as iso9660. So in this case: foo (cd)/ instead of: foo (cd,0)/ I assume you're implying tab-completion here. I just want a command to list all partitions on the CD. It seems

[patch] some debug statements

2005-06-23 Thread Hollis Blanchard
pe that as other people successfully debug other areas (like "partition"), they will add more dprintf statements to facilitate future remote debugging, because you know we're going to have a lot of it. :) If this is acceptable I will check it in. -Hollis 2005-06-23 Hollis Bla

PPC multiboot

2005-06-24 Thread Hollis Blanchard
I did some hacking on a multiboot loader for PPC last night. I wasn't trying to properly update the multiboot spec for non-x86 architectures, but rather just use the existing structures and code. I've also attached a "hello world" PPC multiboot client. I noticed the top-level "hello" directory is

Re: Apple partition map bug

2005-06-27 Thread Hollis Blanchard
On Jun 27, 2005, at 3:40 AM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: On Jun 21, 2005, at 10:46 AM, Marco Gerards wrote: You can always use the raw disk, in which case it will be detected as iso9660. So in this case: foo (cd)/ instead of: foo (cd,0)/ I

Re: grub2: commands/cmp.c: grub_cmd_cmp()

2005-06-29 Thread Hollis Blanchard
On Jun 29, 2005, at 6:33 AM, Rodrigo Steinmüller Wanderley wrote: I'm reading grub2 commands in order to understand the syntax to add new builtins into it. When reading the cmp commands I found some points I couldn't understand, think they are bugs, but maybe some of you guys can prove me wro

Re: Broken A20 gate handling (about GPL)

2005-07-01 Thread Hollis Blanchard
On Jul 1, 2005, at 7:43 AM, Ludovic Drolez wrote: Marco Gerards wrote: I think it is not possible for us to use syslinux/isolinux code I think. For GRUB the copyrights need to be assigned to the FSF before a patch can be applied. !?!?!? There's no such requirement in the GNU GPL ! (and sysl

Re: Update Multiboot spec

2005-07-10 Thread Hollis Blanchard
On Jul 9, 2005, at 12:19 AM, Cyril Plisko wrote: Yoshinori K. Okuji wrote: On Friday 08 July 2005 08:57, James Buchanan wrote: I'd be glad to help if I can. I'm working on some GRUB-2 code at the moment, studying it and trying to figure out some video card stuff. I think we need to list up wh

Re: [PATCH] Huge changes in mm.c

2005-07-12 Thread Hollis Blanchard
On Jul 12, 2005, at 8:41 AM, Vincent Pelletier wrote: Marco Gerards wrote: So with this change all problems are fixed? In that case this patch needs to be committed. No I can read files from an ext2 partition on sparc64. What's the next step ? :) Loading modules ? I don't know exactly how to

Re: sparc64 port : diffs to powerpc branches

2005-07-12 Thread Hollis Blanchard
On Jul 12, 2005, at 1:46 PM, Vincent Pelletier wrote: Hi. Here are the diffs powerpc -> usparc, with some comments below. To be used to know which files can be made common. I will see about moving the easily shared files. boot: cmain renamed in _start (no asm). Sparc will need to provide it

Re: [PATCH] sparc64 (common & specific files)

2005-07-13 Thread Hollis Blanchard
On Jul 13, 2005, at 5:15 PM, Vincent Pelletier wrote: Marco Gerards wrote: For which reason? But if it should be more precise, it should be a grub_uint64_t. If the architecture give us a 32 bit number, we won't invent the remaining 32 bits... We don't invent them; they are 0. -Hollis _

Re: common ieee1275 code

2005-07-14 Thread Hollis Blanchard
On Jul 14, 2005, at 4:55 AM, Marco Gerards wrote: I will note that one related file is still left: kern/powerpc/ieee1275/openfw.c. That file contains some PowerPC-specific code, such as grub_map, grub_reboot, and grub_halt. However, it also contains code that I think will be generally useful, suc

Re: common ieee1275 code

2005-07-16 Thread Hollis Blanchard
On Jul 16, 2005, at 2:45 PM, Marco Gerards wrote: Vincent Pelletier <[EMAIL PROTECTED]> writes: Reboot is "reset-all" too, and shutdown is "power-off" (from OB v3 documentation). Tested on U1, U10, Sun blade 150. Maybe could these be set with #define. It should be detected run-time, I think.

Re: Cross-compiling GRUB

2005-07-16 Thread Hollis Blanchard
On Apr 10, 2005, at 1:06 PM, Marco Gerards wrote: At the moment I am compiling GRUB on one PPC system and running it on another. At the moment this is very unproductive for me and making it hard, if not impossible, to do any testing. So I set up a cross-compiler so I can compile GRUB 2 for the

Re: GRUB history

2005-07-18 Thread Hollis Blanchard
On Jul 17, 2005, at 4:23 PM, Marco Gerards wrote: I am looking forwards to the release. It would be nice if we could get a kerneltrap article, it could attract more developers. :) I would be interested in this myself. I do not know the history of GRUB development: How many people were active

Re: release planning

2005-07-18 Thread Hollis Blanchard
On Jul 17, 2005, at 11:39 AM, Yoshinori K. Okuji wrote: If there is no objection, I'd like to release the first version of GRUB 2 for developers at the beginning of August, whatever status it is in. At the moment, I'm devoting myself into bugfixes and incorporation of workarounds from GRUB L

Re: [PATCH] new ELF64 patch

2005-07-18 Thread Hollis Blanchard
On Jul 16, 2005, at 6:54 PM, Ruslan Nikolaev wrote: Ok patch for x86_64 ELF64 support was rewritten. diff -urN old/multiboot.c new/multiboot.c --- old/multiboot.c 2005-07-17 02:50:11.978394408 +0400 +++ new/multiboot.c 2005-07-17 02:49:41.069093336 +0400 @@ -89,7 +89,14 @@ struct gru

Re: common ieee1275 code

2005-07-18 Thread Hollis Blanchard
On Jul 18, 2005, at 1:19 PM, Marco Gerards wrote: Hollis Blanchard <[EMAIL PROTECTED]> writes: I did update the patch slightly (attached). If this is acceptable, please check in the patch for me, as I will be travelling for a couple weeks and it will be difficult to work on GRUB durin

Re: 4Gb memory limit and ELF64

2005-07-24 Thread Hollis Blanchard
On Jul 19, 2005, at 3:29 PM, Yoshinori K. Okuji wrote: ChangeLog: Added support for X86_64 ELF64: 1. Using ELF64 headers when ELF class is 64-bit. 2. Algorigthm is the same as for ELF32 + several validating: - separate code for validating ELF64 header - checking that entry_point is less th

Re: grub-install

2005-07-24 Thread Hollis Blanchard
On Jul 24, 2005, at 2:44 PM, Yoshinori K. Okuji wrote: I have mostly implemented grub-install as a shell script. I just copied it from GRUB Legacy then adapted it to GRUB 2. This script is much simpler in GRUB 2, because grub-setup handles most things. Great! This is something we still need t

Re: grub-install

2005-07-25 Thread Hollis Blanchard
On Jul 25, 2005, at 6:26 AM, [EMAIL PROTECTED] wrote: Yoshinori K. Okuji wrote: On Monday 25 July 2005 04:04, Hollis Blanchard wrote: Is there a reason not to add all modules all the time? I should have written more info in English. This is documented well, but only in Japanese. There are

Re: missing prefix not fatal

2005-07-26 Thread Hollis Blanchard
On Jul 13, 2005, at 4:59 PM, Vincent Pelletier wrote: Index: kern/dl.c === RCS file: /cvsroot/grub/grub2/kern/dl.c,v retrieving revision 1.10 diff -u -p -r1.10 dl.c --- kern/dl.c 14 Feb 2005 18:41:33 - 1.10 +++ kern/dl.c

Re: [PATCHv2] FIXME: These should be dynamically obtained from a terminal.

2005-08-08 Thread Hollis Blanchard
On Aug 4, 2005, at 1:13 PM, Marco Gerards wrote: Marco Gerards <[EMAIL PROTECTED]> writes: Vincent Pelletier <[EMAIL PROTECTED]> writes: Hi Vincent, Finally I had the time and energy to both proofread and test your patch. It did work for me after making some changes. I have committed your

Re: GRUB 1.90 is released

2005-08-08 Thread Hollis Blanchard
On Aug 7, 2005, at 12:39 PM, Yoshinori K. Okuji wrote: I'm happy to announce the release of GRUB 1.90. I'm disappointed that you chose to announce GRUB 1.90 after knowingly breaking the PPC build. I have fixed the build. -Hollis ___ Grub-devel

Re: arch-specific files

2005-08-08 Thread Hollis Blanchard
On Aug 7, 2005, at 9:15 AM, Yoshinori K. Okuji wrote: On Saturday 06 August 2005 17:04, Yoshinori K. Okuji wrote: Hollis put ieee1275.c under the directory kern directly, and I don't feel comfortable with this. Even if that file is shared by multiple cpu types, it is still arch-dependent. I'

Re: GRUB 1.90 is released

2005-08-09 Thread Hollis Blanchard
On Aug 9, 2005, at 1:32 AM, Yoshinori K. Okuji wrote: On Tuesday 09 August 2005 05:21, Hollis Blanchard wrote: On Aug 7, 2005, at 12:39 PM, Yoshinori K. Okuji wrote: I'm happy to announce the release of GRUB 1.90. I'm disappointed that you chose to announce GRUB 1.90 after

  1   2   3   4   >