Hi,
I managed to get some stuff on my serial out, when I switch on my commell lv671 board with i82801 chip and w83627hf superio, but it is not readable. The most of it are ? inverse colour like :
����������������SSQ����|���Ӌ����E���������������L�������E�����������i�������������������������iT���������������i�������[10;1H�����������������Ϝ������������������Ϭ�������������������������ϼԜ�������������������Ϭ�����������������������������c߈�w�H��
I use 115200,8N1, which works fine, if I boot into linux with original bios.
Has anybody seen those output and know what may be wrong ?
* Dieter Bloms linuxbios@bloms.de [070615 20:08]:
Hi,
I managed to get some stuff on my serial out, when I switch on my commell lv671 board with i82801 chip and w83627hf superio, but it is not readable. The most of it are ? inverse colour like :
����������������SSQ����|���Ӌ����E���������������L�������E�����������i�������������������������iT���������������i�������[10;1H�����������������Ϝ������������������Ϭ�������������������������ϼԜ�������������������Ϭ�����������������������������c߈�w�H��
I use 115200,8N1, which works fine, if I boot into linux with original bios.
Try changing the baud rate in your terminal program to, say, 57600
This may be a clock rate issue of the superio clock.
Output is goood. This looks like its the wrong baudrate.
Hi,
On Fri, Jun 15, Stefan Reinauer wrote:
I use 115200,8N1, which works fine, if I boot into linux with original bios.
Try changing the baud rate in your terminal program to, say, 57600
This may be a clock rate issue of the superio clock.
I've tried 115200, 57600, 38400, 19200, 9600, but the result is, that I get less questionmarks with lower baud rate settings for the terminal.
Do you thing it may help to make a linuxbios with let say 38400 ?
On Fri, Jun 15, 2007 at 08:08:59PM +0200, Dieter Bloms wrote:
Hi,
I managed to get some stuff on my serial out, when I switch on my commell lv671 board with i82801 chip and w83627hf superio, but it is not readable. The most of it are ? inverse colour like :
����������������SSQ����|���Ӌ����E���������������L�������E�����������i�������������������������iT���������������i�������[10;1H�����������������Ϝ������������������Ϭ�������������������������ϼԜ�������������������Ϭ�����������������������������c߈�w�H��
I use 115200,8N1, which works fine, if I boot into linux with original bios.
Has anybody seen those output and know what may be wrong ?
Can you post the complete patch you used for your code? It's hard to say if we don't know what code exactly you used.
Maybe the port is incorrect, try 0x2e, 0x4e, 0x3f0 etc in auto.c.
Uwe.
Hi,
On Fri, Jun 15, Uwe Hermann wrote:
On Fri, Jun 15, 2007 at 08:08:59PM +0200, Dieter Bloms wrote:
Hi,
I managed to get some stuff on my serial out, when I switch on my commell lv671 board with i82801 chip and w83627hf superio, but it is not readable. The most of it are ? inverse colour like :
����������������SSQ����|���Ӌ����E���������������L�������E�����������i�������������������������iT���������������i�������[10;1H�����������������Ϝ������������������Ϭ�������������������������ϼԜ�������������������Ϭ�����������������������������c߈�w�H��
I use 115200,8N1, which works fine, if I boot into linux with original bios.
Has anybody seen those output and know what may be wrong ?
Can you post the complete patch you used for your code? It's hard to say if we don't know what code exactly you used.
Maybe the port is incorrect, try 0x2e, 0x4e, 0x3f0 etc in auto.c.
Ok, I will try the other ones (I used 0x4e)
I've attached one diff with all my changes.
Dieter Bloms wrote:
Hi,
On Fri, Jun 15, Uwe Hermann wrote:
On Fri, Jun 15, 2007 at 08:08:59PM +0200, Dieter Bloms wrote:
Hi,
I managed to get some stuff on my serial out, when I switch on my commell lv671 board with i82801 chip and w83627hf superio, but it is not readable. The most of it are ? inverse colour like :
����������������SSQ����|���Ӌ����E���������������L�������E�����������i�������������������������iT���������������i�������[10;1H�����������������Ϝ������������������Ϭ�������������������������ϼԜ�������������������Ϭ�����������������������������c߈�w�H��
I use 115200,8N1, which works fine, if I boot into linux with original bios.
Has anybody seen those output and know what may be wrong ?
Can you post the complete patch you used for your code? It's hard to say if we don't know what code exactly you used.
Maybe the port is incorrect, try 0x2e, 0x4e, 0x3f0 etc in auto.c.
Ok, I will try the other ones (I used 0x4e)
I've attached one diff with all my changes.
In the future, "svn diff" is much easier to use and more readable.
- device_t dev;
- /* enable the decoding of superio ranges to the LPC interface */
- dev = pci_locate_device(PCI_ID(0x8086, 0x24c0), 0);
- pci_write_config16(dev, 0xE6, 0x3cff);
Please add this line:
pci_write_config16(dev, 0xE0, 0x10);
and see if it helps. If it doesn't, remove that block entirely, and try again (this shouldn't be necessary for basic early serial anyways)
also this:
- enable_smbus ();
shouldn't have a space. If all else fails, try doing this before your serial, I'm not sure why, just call it a hunch.
-Corey
* Corey Osgood corey.osgood@gmail.com [070615 21:51]:
In the future, "svn diff" is much easier to use and more readable.
- device_t dev;
- /* enable the decoding of superio ranges to the LPC interface */
- dev = pci_locate_device(PCI_ID(0x8086, 0x24c0), 0);
- pci_write_config16(dev, 0xE6, 0x3cff);
Please add this line:
pci_write_config16(dev, 0xE0, 0x10);
and see if it helps. If it doesn't, remove that block entirely, and try again (this shouldn't be necessary for basic early serial anyways)
Why do you think so? The ICH4 has LPC decodes and Serial port decodes disabled on poweron. Or the datasheets lie. (Both is possible, in any case)
Stefan Reinauer wrote:
- Corey Osgood corey.osgood@gmail.com [070615 21:51]:
In the future, "svn diff" is much easier to use and more readable.
- device_t dev;
- /* enable the decoding of superio ranges to the LPC interface */
- dev = pci_locate_device(PCI_ID(0x8086, 0x24c0), 0);
- pci_write_config16(dev, 0xE6, 0x3cff);
Please add this line:
pci_write_config16(dev, 0xE0, 0x10);
and see if it helps. If it doesn't, remove that block entirely, and try again (this shouldn't be necessary for basic early serial anyways)
Why do you think so? The ICH4 has LPC decodes and Serial port decodes disabled on poweron. Or the datasheets lie. (Both is possible, in any case)
Interesting...the ICH also says the same thing, but I didn't have to do any such thing to get serial output. The intel xe7501devkit, which is ICH3, doesn't do it either, nor does the jarrell, which is ICH5R. Given that, I'd say the datasheets lie, and in any case it couldn't hurt to try it ;)
Also, the tyan s2875 has the same superio as yours, and doesn't do any special setup for it at all, just w83627hf_enable_serial. You might want to take a quick peak at the auto.c there. From a running system, you should be able to determine if it's on 0x2e or 0x4e, just start doing inb from the command line, using 0x2e/4e as a starting point and counting up, when you start finding non-0xff values you've found _something_, although there's no guarantee its the serial port. Some distros (*cough* ubuntu *cough*) don't allow you to do anything under 0x100 though, but iirc arch and debian do it fine.
-Corey
Hi,
On Fri, Jun 15, Corey Osgood wrote:
Interesting...the ICH also says the same thing, but I didn't have to do any such thing to get serial output. The intel xe7501devkit, which is ICH3, doesn't do it either, nor does the jarrell, which is ICH5R. Given that, I'd say the datasheets lie, and in any case it couldn't hurt to try it ;)
have tried your changes, but then I get nothing on serial.
Also, the tyan s2875 has the same superio as yours, and doesn't do any special setup for it at all, just w83627hf_enable_serial. You might want to take a quick peak at the auto.c there. From a running system, you should be able to determine if it's on 0x2e or 0x4e, just start doing inb from the command line, using 0x2e/4e as a starting point and counting up, when you start finding non-0xff values you've found _something_, although there's no guarantee its the serial port. Some distros (*cough* ubuntu *cough*) don't allow you to do anything under 0x100 though, but iirc arch and debian do it fine.
I run a debian. What do you mean with inb from command line ?
* Corey Osgood corey.osgood@gmail.com [070616 05:31]:
Also, the tyan s2875 has the same superio as yours, and doesn't do any special setup for it at all, just w83627hf_enable_serial.
That's an opteron board. Sure it behaves differently than a system with an intel southbridge.
The effect I see here, too, is that the 855/ich4 systems have some kind of EC which takes control before the first instruction is executed.
Also, there is no output on the serial console, even though the SuperIO driver is known to work fine on other mainboards. So it definitely is a board/southbridge specific issue.
Some distros (*cough* ubuntu *cough*) don't allow you to do anything under 0x100 though, but iirc arch and debian do it fine.
Their kernels block IO accesses? Weird. Why?