disk/ata.c changes, repost

2008-02-01 Thread Maciej 'Agaran' Pijanka
--- Begin Message --- Hello, this patch just changes output of debug printing ata devices found in machine. i hope now coding style is acceptable -- agaran at pld dash linux dot org :: PLD Linux Developer [#133161] I do not fear computers. I fear the lack of them. [Isaac Asimov] --- End Message

disk/ata.c patch

2008-02-01 Thread Maciej 'Agaran' Pijanka
Hello am trying to get working grub2 as payload for coreboot2 without much success but thats another story but i created that patch maybe anyone finds it usefull or interesting. Index: disk/ata.c === RCS file: /sources/grub/grub2/di

Re: [PATCH] read command

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 11:45:50PM +0100, Robert Millan wrote: > +static void * > +grub_xrealloc (void *ptr, grub_size_t size) > +{ > + void *value = grub_realloc (ptr, size); > + if (value == 0) > +grub_fatal ("Virtual memory exhausted"); > + return value; > +} > + > +static char * > +grub_

[PATCH] read command

2008-02-01 Thread Robert Millan
Implements a BASH-like read command. -- 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 /.) * commands/read.c: New file. * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'. (read_mod_SOURCES): New variable. (r

Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 03:45:40PM -0600, Paul Elliott wrote: > > When grub2 is finished, I will look in the manual and see what > syntax I need to use to solve problems like this. Finished or not, we won't have a manual untill someone volunteers to work on it. -- Robert Millan I know my righ

Re: grub_cmdline_get() i18n problem

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 09:19:57PM +, Oleg Strikov wrote: > There are two ways: > * encode smth like grub_utf8_strlen () > * modify grub_strlen () func and add this feature > > I do my best to solve this problem, but what way do you recommend? The convention is to match the posix equivalents,

Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.

2008-02-01 Thread Paul Elliott
On Fri, Feb 01, 2008 at 03:14:51PM -0500, Pavel Roskin wrote: > On Fri, 2008-02-01 at 12:44 -0600, Paul Elliott wrote: > > > One possible approach would be to use LVM (Logical Volume Manager) - > > > it's supported by grub2. You could install grub on a small boot > > > partition and allocate the r

Re: Compiling grub2 on OpenBSD

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 12:49:11PM -0800, walt wrote: > I got grub2 compiled on NetBSD, so now on to OpenBSD: > > In file included from ../util/i386/pc/grub-mkimage.c:29: > ../include/grub/misc.h:43: warning: conflicting types for built-in function > `memcpy' > In file included from ../util/i386/

Re: Compiling grub2 on *BSD?

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 01:11:06PM -0800, walt wrote: > > ... if we remove -lgcc, what happens if it becomes necessary for other > > versions > > of GCC? Or does gcc already add libgcc per demand? > > I got grub2 compiled on NetBSD using the fake in those pkgsrc patches. > I regenerated the patc

grub_cmdline_get() i18n problem

2008-02-01 Thread Oleg Strikov
Good day! Let's look at grub_cmdline_get() func code: /* normal/cmdline.c - line 300 */ plen = grub_utf8_strlen (prompt); lpos = llen = 0; buf[0] = '\0'; if ((grub_getxy () >> 8) != 0) grub_putchar ('\n'); grub_printf (prompt); xpos = plen; Idea is very simple - we move cursor

Re: Compiling grub2 on *BSD?

2008-02-01 Thread walt
On Thu, 2008-01-31 at 12:03 +0100, Robert Millan wrote: > On Wed, Jan 30, 2008 at 03:55:59PM -0600, [EMAIL PROTECTED] wrote: > > 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 sym

Compiling grub2 on OpenBSD

2008-02-01 Thread walt
I got grub2 compiled on NetBSD, so now on to OpenBSD: In file included from ../util/i386/pc/grub-mkimage.c:29: ../include/grub/misc.h:43: warning: conflicting types for built-in function `memcpy' In file included from ../util/i386/pc/grub-mkimage.c:33: /usr/include/string.h:60: error: conflictin

Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.

2008-02-01 Thread Pavel Roskin
On Fri, 2008-02-01 at 12:44 -0600, Paul Elliott wrote: > > One possible approach would be to use LVM (Logical Volume Manager) - > > it's supported by grub2. You could install grub on a small boot > > partition and allocate the rest to as an LVM partition, that would be > > split into volumes. The

[PATCH] don't display menu when there's nothing in it

2008-02-01 Thread Robert Millan
normal.mod seems to insist in displaying a menu even if grub.cfg didn't define any menu entries. This seems to be due to a bogus check (for menu instead of menu->size). -- 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

read_config_file() is missleading

2008-02-01 Thread Robert Millan
The following function name: normal/main.c:read_config_file (const char *config, int nested) is missleading. It does actually execute the config file, not just read it. Does it seem fine to rename it? How about `process_config_file' ? Or maybe I am missing something. -- Robert Millan I

hello command

2008-02-01 Thread Robert Millan
How useful is the `hello' command? Is it more useful than `echo' ? How about getting rid of it? -- 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 /.) ___ Grub-devel mailing

Re: Gilberto GRUB2

2008-02-01 Thread gilberto
I will try make this, the problem is where??? Gilberto > [EMAIL PROTECTED] writes: > >> HI I can compiled without problem the was my system is resolved now. >> My grub.cfg is ok the boot is ok. But the menu didn't change. Maybe >> could >> be two things: or your rotine is wrong or the bios don't

Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.

2008-02-01 Thread Paul Elliott
On Fri, Feb 01, 2008 at 12:25:30PM -0500, Pavel Roskin wrote: > On Fri, 2008-02-01 at 06:59 -0600, Paul Elliott wrote: > > > As usb devices become more used this will be an important problem. > > Are you sure that it will be seen as a separate device? > > > For example, I want to create a usb fl

Re: Gilberto GRUB2

2008-02-01 Thread Marco Gerards
[EMAIL PROTECTED] writes: > HI I can compiled without problem the was my system is resolved now. > My grub.cfg is ok the boot is ok. But the menu didn't change. Maybe could > be two things: or your rotine is wrong or the bios don't have the correcr > value in adress of the memory. > What do you th

Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.

2008-02-01 Thread Pavel Roskin
On Fri, 2008-02-01 at 06:59 -0600, Paul Elliott wrote: > As usb devices become more used this will be an important problem. Are you sure that it will be seen as a separate device? > For example, I want to create a usb flash drive for use in an > installfest, for people with no CD or floppy. Tha

Re: [PATCH] btree support in xfs driver

2008-02-01 Thread Marco Gerards
Bean <[EMAIL PROTECTED]> writes: Hi! > change in this new patch: > > Fix small bug in xfs > Fix a bug in fshelp > Define NESTED_FUNC_ATTR as regparm(1) and us it for call_hook. > > With this patch, i'm able to load a highly sparse file about 200M. > > > 2008-02-01 Bean <[EMAIL PROTECTED]> >

Re: install grub problem with scsi usb

2008-02-01 Thread tsah marco
do you link to this site, what is CVS ? tsah On Jan 31, 2008 12:03 AM, Robert Millan <[EMAIL PROTECTED]> wrote: > 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 instal

Gilberto GRUB2

2008-02-01 Thread gilberto
HI I can compiled without problem the was my system is resolved now. My grub.cfg is ok the boot is ok. But the menu didn't change. Maybe could be two things: or your rotine is wrong or the bios don't have the correcr value in adress of the memory. What do you think? It's possible the rotine show t

Re: powerpc fixes

2008-02-01 Thread Robert Millan
On Thu, Jan 31, 2008 at 10:05:39PM +0100, Robert Millan wrote: > On Thu, Jan 31, 2008 at 08:12:15PM +0100, Robert Millan wrote: > > On Thu, Jan 31, 2008 at 11:55:22AM +0100, Robert Millan wrote: > > > > diff -Nuar grub2-1.95+20080128/conf/powerpc-ieee1275.mk > > > > buildd/grub2-1.95+20080128/conf

Re: [PATCH] btree support in xfs driver

2008-02-01 Thread Bean
Hi, change in this new patch: Fix small bug in xfs Fix a bug in fshelp Define NESTED_FUNC_ATTR as regparm(1) and us it for call_hook. With this patch, i'm able to load a highly sparse file about 200M. 2008-02-01 Bean <[EMAIL PROTECTED]> * fs/xfs.c (grub_xfs_sblock): New memb

Re: Does grub2 solve this problem I am having with grub1? RE: usbsticks.

2008-02-01 Thread Paul Elliott
On Thu, Jan 31, 2008 at 11:50:37PM -0500, Pavel Roskin wrote: > On Thu, 2008-01-31 at 22:34 -0600, Paul Elliott wrote: > > > Ok, but how do I say the same device as I am in now, but the > > 3rd partiton, rather than the first. > > > > How do I say (hdX,3) where X in the device I am in now? And >

Re: grub2 resets machine when reading from an xfs filesystem

2008-02-01 Thread Marco Gerards
Robert Millan <[EMAIL PROTECTED]> writes: > On Fri, Feb 01, 2008 at 12:36:36PM +0100, Yoshinori K. Okuji wrote: >> On Wednesday 30 January 2008 13:36, Bean wrote: >> > > Do you have a more generic solution to this? Something that can be >> > > compared with NESTED_FUNC_ATTR? This is an i386 only

Re: Gilberto -Problem Grub2 compilation

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 01:23:52AM -0200, [EMAIL PROTECTED] wrote: > make: *** No rule to make target `/usr/include/asm-i486/errno.h', needed > by `grub_setup-util_i386_pc_biosdisk.o'. Stop. Are the Linux headers installed? In Debian, you can make sure all standard build components are installed

Re: Gilberto -Problem Grub2 compilation

2008-02-01 Thread Robert Millan
On Thu, Jan 31, 2008 at 11:20:57PM -0200, [EMAIL PROTECTED] wrote: > [EMAIL PROTECTED]:/etc/apt# grub-install /dev/hda > cannot find a GRUB drive for /dev/ide/host0/bus0/target0/lun0/part4. What's in your /boot/grub/device.map ? -- Robert Millan I know my rights; I want my phone call! What us

Re: grub2 resets machine when reading from an xfs filesystem

2008-02-01 Thread Robert Millan
On Fri, Feb 01, 2008 at 12:36:36PM +0100, Yoshinori K. Okuji wrote: > On Wednesday 30 January 2008 13:36, Bean wrote: > > > Do you have a more generic solution to this? Something that can be > > > compared with NESTED_FUNC_ATTR? This is an i386 only bug... > > > > perhaps define NESTED_FUNC_ADDR2

Re: who want money????

2008-02-01 Thread Yoshinori K. Okuji
On Thursday 31 January 2008 23:35, Pavel Roskin wrote: > > I think I told you. What's the problem? > > You may want to copy the message to the personal address. > > I guess the mailing list needs to be reconfigured to stop rewriting > Reply-to, as recommended here: > http://www.unicom.com/pw/reply

Re: grub2 resets machine when reading from an xfs filesystem

2008-02-01 Thread Yoshinori K. Okuji
On Wednesday 30 January 2008 13:36, Bean wrote: > > Do you have a more generic solution to this? Something that can be > > compared with NESTED_FUNC_ATTR? This is an i386 only bug... > > perhaps define NESTED_FUNC_ADDR2 as __attribute__ ((regparm(1))) ? Is it bad to just change the definition o