Re: Compiling grub2 on *BSD?

2008-01-30 Thread Marco Gerards
[EMAIL PROTECTED] writes: [...] >> Maybe we need another flag? Could you check the link command in NetBSD's >> kernel ? > > I couldn't find anything that looked like it would fix this. > > I believe the reason that NetBSD's own code isn't affected by this is > because they (apparently) do not us

Re: grub2 resets machine when reading from an xfs filesystem

2008-01-30 Thread Bean
I figure it out, the problem is caused by nested function: int call_hook (grub_uint64_t ino, char *filename) it would take 3 registry to pass the parameter ! (2 for ino), so %ecx will be overwritten agian. NESTED_FUNC_ATTR doesn't help, because there is only 2 parameters here, so you need to use

Re: Bug#461442: detection of other OSes in update-grub

2008-01-30 Thread Fabian Greffrath
This implies that we'll have to support 6 different kinds of conversions between path, drive and device, some of which might even be impossible. Besides, perhaps it'd be cleaner to split this conversion to a separate tool, so that grub-probe only operates on devices, and the other tool converts

Re: Bug#461442: please add support for os-prober to detect other OSes in update-grub

2008-01-30 Thread Fabian Greffrath
Robert Millan schrieb: You could try with qemu. Update: I tried with Knoppix on a computer that has Debian sid and Windows XP installed. The attached script did it's job well - of course except for the part when it has to convert Linux device names to GRUB drives (see #462218). Support for HU

Re: [PATCH] a.out kernel loader

2008-01-30 Thread walt
On Tue, 2008-01-29 at 14:53 +0800, Bean wrote: > On Jan 29, 2008 6:04 AM, walt <[EMAIL PROTECTED]> wrote: > > Bean wrote: > > > On Jan 28, 2008 10:37 PM, walt<[EMAIL PROTECTED]> wrote: > > ... > > >> Good news and bad news. With this patch and your most recent ufs patch > > >> I can aout /boot/l

Re: grub2 resets machine when reading from an xfs filesystem

2008-01-30 Thread Marco Gerards
Bean <[EMAIL PROTECTED]> writes: > I figure it out, the problem is caused by nested function: > > int call_hook (grub_uint64_t ino, char *filename) > > it would take 3 registry to pass the parameter ! (2 for ino), so %ecx > will be overwritten agian. > > NESTED_FUNC_ATTR doesn't help, because ther

Re: grub2 resets machine when reading from an xfs filesystem

2008-01-30 Thread Bean
On Jan 30, 2008 8:08 PM, Marco Gerards <[EMAIL PROTECTED]> wrote: > > Bean <[EMAIL PROTECTED]> writes: > > > I figure it out, the problem is caused by nested function: > > > > int call_hook (grub_uint64_t ino, char *filename) > > > > it would take 3 registry to pass the parameter ! (2 for ino), so

Re: [PATCH] a.out kernel loader

2008-01-30 Thread Bean
On Jan 30, 2008 8:24 PM, walt <[EMAIL PROTECTED]> wrote: > Sorry, I gave you incomplete information. I can use 'multiboot' to load > the netbsd from any kind of fs, but it makes no difference: 'boot' then > causes the machine to reboot instantly. The same applies to aout: I > can aout load from

Re: IA64 port

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 06:23:09AM +0100, Tristan Gingold wrote: > On Tue, Jan 29, 2008 at 07:48:29PM +0100, Robert Millan wrote: > [...] > > AFAIK, there's no standard specifiing FAT, only a few implementations that > > act > > de-facto as a "reference". Because of this, it is up to us to decide

Re: Compiling grub2 on *BSD?

2008-01-30 Thread Robert Millan
On Tue, Jan 29, 2008 at 06:37:50PM -0600, [EMAIL PROTECTED] wrote: > > > > > /usr/lib/libgcc.a(_enable_execute_stack.o): In function > > > > > `__enable_execute_stack': > > > > > _enable_execute_stack.c:(.text+0x40): undefined reference to > > > > > `__sysctl' > > > > > _enable_execute_stack.c:(.t

Re: IA64 port

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 06:57:34AM +0100, Tristan Gingold wrote: > On Tue, Jan 29, 2008 at 03:46:50PM +0100, Marco Gerards wrote: > > Robert suggested some changes. I also noticed in the discussion that > > you didn't follow common practise (like an existing grub-mkimage > > implementation). Pers

Re: Grub Change HELP

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 12:10:44AM -0200, [EMAIL PROTECTED] wrote: > Hi, comunity of GNU Linux, Robert please see my idea about my problem: > This file is builtins.c line 3974 more less. I add more commands. > I set variable localiza to adress 0x000ffa17 , I am not sure but I think > the function

Re: PATCH: silently accept empty lines in rescue mode

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 06:50:02AM +0100, Tristan Gingold wrote: > > This can be applied. > > I don't have commit rights, so I can't apply it. Committed. -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.) _

Re: Compiling grub2 on *BSD?

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 05:51:43AM -0800, walt wrote: > > > > Ok, so we need __enable_execute_stack then, I guess. I find it strange that > > some parts of libgcc can not be used in freestanding code. Does this happen > > with the unpatched version of GCC too? > > > > Maybe we'll have add some

Re: grub2 resets machine when reading from an xfs filesystem

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 06:17:18PM +0800, Bean wrote: > I figure it out, the problem is caused by nested function: > > int call_hook (grub_uint64_t ino, char *filename) > > it would take 3 registry to pass the parameter ! (2 for ino), so %ecx > will be overwritten agian. > > NESTED_FUNC_ATTR doe

Re: Grub Change HELP

2008-01-30 Thread Robert Millan
On Tue, Jan 29, 2008 at 10:33:18PM -0200, [EMAIL PROTECTED] wrote: > Robert thank you, You are great person, because worry with problems of the > others people. The best demonstration of the spirit GNU is this. > > I will try put this code, in source grub, > > > if (*((grub_uint8_t *) 0x000ffa17)

Re: Grub Change HELP

2008-01-30 Thread gilberto
Robert If I change to Grub2 Can you help me?? Where is the source recommended by you??? Gilberto FeniX Linux > On Tue, Jan 29, 2008 at 10:33:18PM -0200, [EMAIL PROTECTED] > wrote: >> Robert thank you, You are great person, because worry with problems of >> the >> others people. The best demonstr

Re: Compiling grub2 on *BSD?

2008-01-30 Thread walt
On Wed, 2008-01-30 at 14:23 +0100, Robert Millan wrote: > On Tue, Jan 29, 2008 at 06:37:50PM -0600, [EMAIL PROTECTED] wrote: > > > > > > /usr/lib/libgcc.a(_enable_execute_stack.o): In function > > > > > > `__enable_execute_stack': > > > > > > _enable_execute_stack.c:(.text+0x40): undefined referen

Re: grub2 resets machine when reading from an xfs filesystem

2008-01-30 Thread Marco Gerards
Bean <[EMAIL PROTECTED]> writes: [...] >> > - int call_hook (grub_uint64_t ino, char *filename) >> > + int __attribute__ ((regparm(1))) call_hook (grub_uint64_t ino, char >> > *filename) >> > { >> >struct grub_fshelp_node *fdiro; >> >> Do you have a more generic solution to this?

Re: IA64 port

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 06:48:11AM +0100, Tristan Gingold wrote: > + > +# For grub-emu. > +grub_emu_SOURCES = commands/boot.c commands/cat.c commands/cmp.c \ > + commands/configfile.c commands/help.c \ > + commands/terminal.c commands/ls.c commands/test.c

Re: [PATCH] eltorito cdrom boot

2008-01-30 Thread Bean
This new patch merge the cdboot function into lnxboot, now you can use g2ldr as eltorito boot file ! mkdir cdroot cat lnxboot.img core.img > cdroot/g2ldr mkisofs -R -no-emul-boot -boot-info-table --boot-load-size 4 -b g2ldr -o aa.iso cdroot diff --git a/boot/i386/pc/lnxboot.S b/boot/i386/pc/lnxb

Re: IA64 port

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 04:07:01PM +0100, Robert Millan wrote: > > grub-probe is missing. Did you check if it works? Although, I think it > should just move to common.rmk. I'll have a look at that. It's in common.rmk now. Please, can you check that update-grub works for ia64-efi ? -- Robert

Re: IA64 port

2008-01-30 Thread tgingold
Quoting Robert Millan <[EMAIL PROTECTED]>: > On Wed, Jan 30, 2008 at 06:57:34AM +0100, Tristan Gingold wrote: > > On Tue, Jan 29, 2008 at 03:46:50PM +0100, Marco Gerards wrote: > > > Robert suggested some changes. I also noticed in the discussion that > > > you didn't follow common practise (like

Re: IA64 port

2008-01-30 Thread tgingold
Quoting Robert Millan <[EMAIL PROTECTED]>: > On Wed, Jan 30, 2008 at 06:48:11AM +0100, Tristan Gingold wrote: > > grub-probe is missing. Did you check if it works? Although, I think it > should just move to common.rmk. I'll have a look at that. Ok. > > diff -ruNp -x '*~' -x CVS -x autom4te.ca

Re: Compiling grub2 on *BSD?

2008-01-30 Thread walt
Robert Millan wrote: Ok, so we need __enable_execute_stack then, I guess. I find it strange that some parts of libgcc can not be used in freestanding code. Does this happen with the unpatched version of GCC too? Maybe we'll have add some dummy symbols to make it happy What happens if you

Re: PCI support

2008-01-30 Thread Marco Gerards
Marco Gerards <[EMAIL PROTECTED]> writes: > 2009-01-28 Marco Gerards <[EMAIL PROTECTED]> > > * bus/pci.c: New file. > > * include/grub/pci.h: Likewise. > > * include/grub/i386/pc/pci.h: Likewise. > > * commands/lspci.c: Likewise. > > * conf/i386-pc.rmk (pkglib_MODUL

Re: IA64 port

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 05:22:00PM +0100, [EMAIL PROTECTED] wrote: > > Is gpt mandatory? > > Almost. > > > We can use gpt without efi; I wonder if we can also use > > efi without gpt. If you can access the raw disk, any partition map (even no > > partition map at all!) could be used, right? >

Re: Compiling grub2 on *BSD?

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 08:38:23AM -0800, walt wrote: > > BTW, I just discovered that this was discussed in a thread beginning > 11-30-2005 but never finished. > > Anyway, your suggestion helps, but not quite enough. The c code now > compiles and links okay into *.mod files, but now __enable_exe

Re: PCI support

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 06:57:38PM +0100, Marco Gerards wrote: > Marco Gerards <[EMAIL PROTECTED]> writes: > > > 2009-01-28 Marco Gerards <[EMAIL PROTECTED]> > > > > * bus/pci.c: New file. > > > > * include/grub/pci.h: Likewise. > > > > * include/grub/i386/pc/pci.h: Likewise. > > > >

Re: Compiling grub2 on *BSD?

2008-01-30 Thread walt
On Wed, 2008-01-30 at 08:38 -0800, walt wrote: > Robert Millan wrote: > ... > > What happens if you define the missing symbols somewhere? Any part of > > the GRUB kernel will do (e.g. kern/main.c). Just add them as empty > > functions: > > > > void > > __sysctl (void) > > { > > } > > > > void >

Re: Compiling grub2 on *BSD?

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 11:06:50AM -0800, walt wrote: > > > Anyway, your suggestion helps, but not quite enough. The c code now > > compiles and links okay into *.mod files, but now __enable_execute_stack > > shows up in several und-*.lst files... > > I've been hacking the various flags for elf.

Re: Bug#461442: detection of other OSes in update-grub

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 11:41:59AM +0100, Fabian Greffrath wrote: > > > >This implies that we'll have to support 6 different kinds of conversions > >between path, drive and device, some of which might even be impossible. > > > >Besides, perhaps it'd be cleaner to split this conversion to a separate

Re: PCI support

2008-01-30 Thread Yoshinori K. Okuji
On Wednesday 30 January 2008 18:57, Marco Gerards wrote: > No objections? Did everyone have a (quick) look at the interfaces? > > If I hear nothing, I will commit this patch Friday. You didn't check the return value from a hook. Besides that, okay for me. Thanks, Okuji

Re: PCI support

2008-01-30 Thread Marco Gerards
"Yoshinori K. Okuji" <[EMAIL PROTECTED]> writes: > On Wednesday 30 January 2008 18:57, Marco Gerards wrote: >> No objections? Did everyone have a (quick) look at the interfaces? >> >> If I hear nothing, I will commit this patch Friday. > > You didn't check the return value from a hook. Besides th

Re: PCI support

2008-01-30 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Wed, Jan 30, 2008 at 06:57:38PM +0100, Marco Gerards wrote: >> Marco Gerards <[EMAIL PROTECTED]> writes: >> >> > 2009-01-28 Marco Gerards <[EMAIL PROTECTED]> >> > >> >* bus/pci.c: New file. >> > >> >* include/grub/pci.h: Likewise. >> > >> >

Re: install grub problem with scsi usb

2008-01-30 Thread tsah marco
i download the grub1.95.tar.gz and tar it . ./configure make install is it the right way to install grub ? Can i download RPM/or any other packsge and from were ? thanks tsah On 1/26/08, Robert Millan <[EMAIL PROTECTED]> wrote: > On Sat, Jan 26, 2008 at 04:58:41PM +0200, tsah marco wrote: > >

Re: CVS (Re: Redefining GRUB_MOD_GAP in init.c)

2008-01-30 Thread Pavel Roskin
On Tue, 2008-01-29 at 12:25 +0100, Marco Gerards wrote: > Robert Millan <[EMAIL PROTECTED]> writes: > > [...] > > > I personaly think we should just ditch CVS, because CVS has these annoying > > limitations, but not try to do something fancy. SVN is the logical > > evolution of CVS, so why not

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-30 Thread Pavel Roskin
On Tue, 2008-01-29 at 09:38 +0100, Marco Gerards wrote: > Robert Millan <[EMAIL PROTECTED]> writes: > > > On Mon, Jan 28, 2008 at 08:44:51AM -0500, Pavel Roskin wrote: > >> > What do you suggest? > >> > >> I would prefer to have GRUB_MOD_GAP is all headers. Once it's not > >> needed, it could b

Re: Compiling grub2 on *BSD?

2008-01-30 Thread jakllsch
On Wed, Jan 30, 2008 at 11:06:50AM -0800, walt wrote: > > You can tell I'm desperate because I'm putting -lgcc everywhere I can > think of. Here is the symbol in libgcc.a: I (like I found in pkgsrc-wip/grub2) am using a fake __enable_execute_stack(), -lgcc isn't necessary. Jonathan Koll

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 04:42:25PM -0500, Pavel Roskin wrote: > > I assume that if the result of grub-mkimage is a valid ELF file, like > kernel.elf, "CLAIM failed" would not happen. But you don't have to assume. Did you try booting kernel.elf directly? -- Robert Millan I know my rights; I w

Re: PCI support

2008-01-30 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Wed, Jan 30, 2008 at 09:08:34PM +0100, Marco Gerards wrote: >> Robert Millan <[EMAIL PROTECTED]> writes: >> >> > On Wed, Jan 30, 2008 at 06:57:38PM +0100, Marco Gerards wrote: >> >> Marco Gerards <[EMAIL PROTECTED]> writes: >> >> >> >> > 2009-01-28

Re: PCI support

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 11:17:49PM +0100, Marco Gerards wrote: > >> IO addresses are Intel only, AFAIK. Almost all architectures have > >> mmapped IO. It's really arch specific. > > > > Are you sure that makes grub_inl / grub_outl arch-specific ? They can't be > > implemented as wrappers for dir

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 05:15:03PM -0500, Pavel Roskin wrote: > > On Wed, 2008-01-30 at 23:03 +0100, Robert Millan wrote: > > On Wed, Jan 30, 2008 at 04:42:25PM -0500, Pavel Roskin wrote: > > > > > > I assume that if the result of grub-mkimage is a valid ELF file, like > > > kernel.elf, "CLAIM fa

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-30 Thread Pavel Roskin
On Wed, 2008-01-30 at 23:03 +0100, Robert Millan wrote: > On Wed, Jan 30, 2008 at 04:42:25PM -0500, Pavel Roskin wrote: > > > > I assume that if the result of grub-mkimage is a valid ELF file, like > > kernel.elf, "CLAIM failed" would not happen. > > But you don't have to assume. Did you try bo

Re: Questions for writing manpages

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 11:13:50PM +0100, Franklin PIAT wrote: > Hello, > > I have some questions for the writing the documentation[1]. > > ** How to use "If [ $x=foo ] Then Else fi" statement ? > > I've successfully used : > if [ A=B ] ; then echo "foo" ; else echo "bar" ; fi" > > But I can

Re: install grub problem with scsi usb

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 11:10:41PM +0200, tsah marco wrote: > i download the grub1.95.tar.gz > and tar it . > ./configure > make install > > is it the right way to install grub ? CVS is preferred. 1.95 is very old now. -- Robert Millan I know my rights; I want my phone call! What use is a

Re: PCI support

2008-01-30 Thread Robert Millan
On Wed, Jan 30, 2008 at 09:08:34PM +0100, Marco Gerards wrote: > Robert Millan <[EMAIL PROTECTED]> writes: > > > On Wed, Jan 30, 2008 at 06:57:38PM +0100, Marco Gerards wrote: > >> Marco Gerards <[EMAIL PROTECTED]> writes: > >> > >> > 2009-01-28 Marco Gerards <[EMAIL PROTECTED]> > >> > > >> >

Questions for writing manpages

2008-01-30 Thread Franklin PIAT
Hello, I have some questions for the writing the documentation[1]. ** How to use "If [ $x=foo ] Then Else fi" statement ? I've successfully used : if [ A=B ] ; then echo "foo" ; else echo "bar" ; fi" But I cannot use variables, with either : if [ $i=B ] ; then echo "foo" ; else echo "bar" ;

Re: Questions for writing manpages

2008-01-30 Thread Pavel Roskin
On Wed, 2008-01-30 at 23:13 +0100, Franklin PIAT wrote: > Hello, > > I have some questions for the writing the documentation[1]. > > ** How to use "If [ $x=foo ] Then Else fi" statement ? > > I've successfully used : > if [ A=B ] ; then echo "foo" ; else echo "bar" ; fi" > > But I cannot us

Re: GRUB_MOD_GAP for non-ieee1275 ELF platforms

2008-01-30 Thread Pavel Roskin
On Wed, 2008-01-30 at 23:26 +0100, Robert Millan wrote: > > I only said "I assume" because there is a subtle difference between a > > "valid ELF file" and "indistinguishable for kernel.elf". It should be > > valid and acceptable to the OpenFirmware, and the later is a black box > > to me. > > Uhm

powerpc fixes

2008-01-30 Thread Jordi Mallach
The following patches fix the powerpc build for the latest Debian package. Sorry for not diffing this against HEAD. However, the resulting binaries don't work as expected: 18111:[EMAIL PROTECTED]:/boot/grub$ sudo grub-install "(hd0)" grub-probe: error: /dev/stdin:1: Bad device name grub-probe: er

Re: Questions for writing manpages

2008-01-30 Thread Franklin PIAT
On Wed, 2008-01-30 at 23:29 +0100, Robert Millan wrote: > On Wed, Jan 30, 2008 at 11:13:50PM +0100, Franklin PIAT wrote: > > Hello, > > > > I have some questions for the writing the documentation[1]. > > > > ** How to use "If [ $x=foo ] Then Else fi" statement ? > > > > I've successfully used

Re: Grub Change HELP***

2008-01-30 Thread gilberto
Robert I tried read the value of the memory in grub, but didn't work very well. How I can get the value of the adress 0x000ffa17 and put its on pointer. I am sorry but I need help. How i make this? I tried this code, but I have some errors, I define the variable but didn't resolve, the people of