Skip to contentSkip to conversation

serial module

PATCH Robert Millan 2 participants 5 messages Jun 23, 2007

lore
Share & tools
lore
#0 lore raw

Hi,

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

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
conf/i386-pc.rmk +2 -2
diff -ur grub2-1.95+20070621.old/conf/i386-pc.rmk grub2-1.95+20070621/conf/i386-pc.rmk
@@ -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
#1 lore raw

Robert Millan <[email protected]> writes:

Hi,

Quoted 2 lines

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

You forgot a changelog entry :-/

conf/i386-pc.rmk line 94

Quoted 9 lines

diff -ur grub2-1.95+20070621.old/conf/i386-pc.rmk grub2-1.95+20070621/conf/i386-pc.rmk

conf/i386-pc.rmk +1 -1
@@ -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.

conf/i386-pc.rmk line 134

Quoted 9 lines
conf/i386-pc.rmk +1 -1
 	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

#2 lore raw
Quoted 2 lines · Marco Gerards

You forgot a changelog entry :-/

How about..

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

Quoted 4 lines
Quoted 4 lines

diff -ur grub2-1.95+20070621.old/conf/i386-pc.rmk grub2-1.95+20070621/conf/i386-pc.rmk

conf/i386-pc.rmk +0 -0
@@ -91,7 +91,7 @@
Quoted 8 lines

conf/i386-pc.rmk line 94

Quoted 5 lines
conf/i386-pc.rmk +1 -1
 	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.

Quoted 2 lines

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.

Quoted 2 lines

Please test if it still builds, when
adding stuff.

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

Quoted 4 lines
Quoted 4 lines
conf/i386-pc.rmk +0 -0
 	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 @@
Quoted 8 lines

conf/i386-pc.rmk line 134

Quoted 5 lines
conf/i386-pc.rmk +1 -1
 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.

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.
#3 lore raw
Quoted 7 lines · Robert Millan
Quoted 2 lines · Marco Gerards

You forgot a changelog entry :-/

How about..

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

Good, except for the first ":".

[...]

Quoted 4 lines
Quoted 2 lines

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 :-).

Quoted 4 lines
Quoted 2 lines

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.

Quoted 13 lines
Quoted 4 lines
Quoted 4 lines
conf/i386-pc.rmk +0 -0
 	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 @@
Quoted 8 lines

conf/i386-pc.rmk line 134

Quoted 5 lines
conf/i386-pc.rmk +1 -1
 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?

Quoted 1 line

Done.

Thanks a lot.

--
Marco

#4 lore raw
Quoted 11 lines · Marco Gerards
Quoted 7 lines · Robert Millan
Quoted 2 lines · Marco Gerards

You forgot a changelog entry :-/

How about..

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

Good, except for the first ":".

Fixed.

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

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.

Signature · 4 lines
Robert Millan

My spam trap is [email protected].  Note: this address is only intended
for spam harvesters.  Writing to it will get you added to my black list.