All of lore.kernel.org
 help / color / mirror / Atom feed
* serial module
@ 2007-06-23 11:58 Robert Millan
  2007-06-23 12:32 ` Marco Gerards
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Millan @ 2007-06-23 11:58 UTC (permalink / raw)
  To: grub-devel

[-- Attachment #1: Type: text/plain, Size: 259 bytes --]


Hi,

Any reason why the serial module is not enabled in i386-pc builds?  (see
diff below)

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.

[-- Attachment #2: serial.diff --]
[-- Type: text/x-diff, Size: 1074 bytes --]

diff -ur grub2-1.95+20070621.old/conf/i386-pc.rmk grub2-1.95+20070621/conf/i386-pc.rmk
--- grub2-1.95+20070621.old/conf/i386-pc.rmk	2007-06-11 08:26:18.000000000 +0200
+++ grub2-1.95+20070621/conf/i386-pc.rmk	2007-06-23 13:56:12.000000000 +0200
@@ -91,7 +91,7 @@
 	commands/terminal.c commands/ls.c commands/test.c 		\
 	commands/search.c commands/blocklist.c				\
 	commands/i386/pc/halt.c commands/i386/pc/reboot.c		\
-	commands/i386/cpuid.c						\
+	commands/i386/cpuid.c term/i386/pc/serial.c			\
 	disk/loopback.c	disk/raid.c disk/lvm.c				\
 	fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c	\
 	fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c	\
@@ -131,7 +131,7 @@
 pkgdata_MODULES = _chain.mod _linux.mod linux.mod normal.mod \
 	_multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod	\
 	vbe.mod vbetest.mod vbeinfo.mod video.mod gfxterm.mod \
-	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod
+	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod serial.mod
 
 # For _chain.mod.
 _chain_mod_SOURCES = loader/i386/pc/chainloader.c

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: serial module
  2007-06-23 11:58 serial module Robert Millan
@ 2007-06-23 12:32 ` Marco Gerards
  2007-06-23 14:46   ` Robert Millan
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Gerards @ 2007-06-23 12:32 UTC (permalink / raw)
  To: The development of GRUB 2

Robert Millan <rmh@aybabtu.com> writes:

Hi,

> Any reason why the serial module is not enabled in i386-pc builds?  (see
> diff below)

You forgot a changelog entry :-/



> diff -ur grub2-1.95+20070621.old/conf/i386-pc.rmk grub2-1.95+20070621/conf/i386-pc.rmk
> --- grub2-1.95+20070621.old/conf/i386-pc.rmk	2007-06-11 08:26:18.000000000 +0200
> +++ grub2-1.95+20070621/conf/i386-pc.rmk	2007-06-23 13:56:12.000000000 +0200
> @@ -91,7 +91,7 @@
>  	commands/terminal.c commands/ls.c commands/test.c 		\
>  	commands/search.c commands/blocklist.c				\
>  	commands/i386/pc/halt.c commands/i386/pc/reboot.c		\
> -	commands/i386/cpuid.c						\
> +	commands/i386/cpuid.c term/i386/pc/serial.c			\

Why do you add it to grub-emu?  This is wrong because you can't access
the hardware from grub-emu.  The same is true for cpuid, I think.  Are
you sure it works in grub-emu?  Please test if it still builds, when
adding stuff.

>  	disk/loopback.c	disk/raid.c disk/lvm.c				\
>  	fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c	\
>  	fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c	\
> @@ -131,7 +131,7 @@
>  pkgdata_MODULES = _chain.mod _linux.mod linux.mod normal.mod \
>  	_multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod	\
>  	vbe.mod vbetest.mod vbeinfo.mod video.mod gfxterm.mod \
> -	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod
> +	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod serial.mod

Good catch, I also wonder why this wasn't added.  Can you please apply
this change?

--
Marco




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: serial module
  2007-06-23 12:32 ` Marco Gerards
@ 2007-06-23 14:46   ` Robert Millan
  2007-06-23 15:13     ` Marco Gerards
  0 siblings, 1 reply; 5+ messages in thread
From: Robert Millan @ 2007-06-23 14:46 UTC (permalink / raw)
  To: The development of GRUB 2

On Sat, Jun 23, 2007 at 02:32:47PM +0200, Marco Gerards wrote:
> 
> You forgot a changelog entry :-/

How about..

	* conf/i386-pc.rmk: (pkgdata_MODULES): Add serial.mod.

> > diff -ur grub2-1.95+20070621.old/conf/i386-pc.rmk grub2-1.95+20070621/conf/i386-pc.rmk
> > --- grub2-1.95+20070621.old/conf/i386-pc.rmk	2007-06-11 08:26:18.000000000 +0200
> > +++ grub2-1.95+20070621/conf/i386-pc.rmk	2007-06-23 13:56:12.000000000 +0200
> > @@ -91,7 +91,7 @@
> >  	commands/terminal.c commands/ls.c commands/test.c 		\
> >  	commands/search.c commands/blocklist.c				\
> >  	commands/i386/pc/halt.c commands/i386/pc/reboot.c		\
> > -	commands/i386/cpuid.c						\
> > +	commands/i386/cpuid.c term/i386/pc/serial.c			\
> 
> Why do you add it to grub-emu?  This is wrong because you can't access
> the hardware from grub-emu.

Oops.

> The same is true for cpuid, I think.  Are
> you sure it works in grub-emu?

Yes, cpuid should work everywhere as long as your cpu supports it.

> Please test if it still builds, when
> adding stuff.

Sure (I even tested that it runs and sets up the serial console correctly).

> >  	disk/loopback.c	disk/raid.c disk/lvm.c				\
> >  	fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c	\
> >  	fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c	\
> > @@ -131,7 +131,7 @@
> >  pkgdata_MODULES = _chain.mod _linux.mod linux.mod normal.mod \
> >  	_multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod	\
> >  	vbe.mod vbetest.mod vbeinfo.mod video.mod gfxterm.mod \
> > -	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod
> > +	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod serial.mod
> 
> Good catch, I also wonder why this wasn't added.  Can you please apply
> this change?

Done.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: serial module
  2007-06-23 14:46   ` Robert Millan
@ 2007-06-23 15:13     ` Marco Gerards
  2007-06-23 17:42       ` Robert Millan
  0 siblings, 1 reply; 5+ messages in thread
From: Marco Gerards @ 2007-06-23 15:13 UTC (permalink / raw)
  To: The development of GRUB 2

Robert Millan <rmh@aybabtu.com> writes:

> On Sat, Jun 23, 2007 at 02:32:47PM +0200, Marco Gerards wrote:
>> 
>> You forgot a changelog entry :-/
>
> How about..
>
> 	* conf/i386-pc.rmk: (pkgdata_MODULES): Add serial.mod.

Good, except for the first ":".

[...]

>> The same is true for cpuid, I think.  Are
>> you sure it works in grub-emu?
>
> Yes, cpuid should work everywhere as long as your cpu supports it.

Oh, nice :-).  I should try it :-).

>> Please test if it still builds, when
>> adding stuff.
>
> Sure (I even tested that it runs and sets up the serial console correctly).

I meant testing grub-emu.  It is disabled by default, so you might not
notice breaking it, when you do.

>> >  	disk/loopback.c	disk/raid.c disk/lvm.c				\
>> >  	fs/affs.c fs/ext2.c fs/fat.c fs/fshelp.c fs/hfs.c fs/iso9660.c	\
>> >  	fs/jfs.c fs/minix.c fs/sfs.c fs/ufs.c fs/xfs.c fs/hfsplus.c	\
>> > @@ -131,7 +131,7 @@
>> >  pkgdata_MODULES = _chain.mod _linux.mod linux.mod normal.mod \
>> >  	_multiboot.mod chain.mod multiboot.mod reboot.mod halt.mod	\
>> >  	vbe.mod vbetest.mod vbeinfo.mod video.mod gfxterm.mod \
>> > -	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod
>> > +	videotest.mod play.mod bitmap.mod tga.mod cpuid.mod serial.mod
>> 
>> Good catch, I also wonder why this wasn't added.  Can you please apply
>> this change?
>
> Done.

Thanks a lot.

--
Marco




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: serial module
  2007-06-23 15:13     ` Marco Gerards
@ 2007-06-23 17:42       ` Robert Millan
  0 siblings, 0 replies; 5+ messages in thread
From: Robert Millan @ 2007-06-23 17:42 UTC (permalink / raw)
  To: The development of GRUB 2

On Sat, Jun 23, 2007 at 05:13:35PM +0200, Marco Gerards wrote:
> Robert Millan <rmh@aybabtu.com> writes:
> 
> > On Sat, Jun 23, 2007 at 02:32:47PM +0200, Marco Gerards wrote:
> >> 
> >> You forgot a changelog entry :-/
> >
> > How about..
> >
> > 	* conf/i386-pc.rmk: (pkgdata_MODULES): Add serial.mod.
> 
> Good, except for the first ":".

Fixed.

> >> Please test if it still builds, when
> >> adding stuff.
> >
> > Sure (I even tested that it runs and sets up the serial console correctly).
> 
> I meant testing grub-emu.  It is disabled by default, so you might not
> notice breaking it, when you do.

I'll try to remember that.

-- 
Robert Millan

My spam trap is honeypot@aybabtu.com.  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.



^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-06-23 17:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-23 11:58 serial module Robert Millan
2007-06-23 12:32 ` Marco Gerards
2007-06-23 14:46   ` Robert Millan
2007-06-23 15:13     ` Marco Gerards
2007-06-23 17:42       ` Robert Millan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.