Netgate m1n1wall

Author Topic: TEAK-5020 problem with uart - bypass  (Read 1850 times)

0 Members and 1 Guest are viewing this topic.

Offline gregober

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
    • OSNet your provider of Open Source appliances for pfSense
TEAK-5020 problem with uart - bypass
« on: November 24, 2011, 10:17:17 am »
Hello,

I am testing a new device in order to install It and I am having very serious problem with uart.
System boots ok until It reaches uart interfaces (AKA LAN bypass). Then system freezes.



[…]
atapci1: <Intel ICH8M SATA300 controller> port 0x1c40-0x1c47,0x1c34-0x1c37,0x1c38-0x1c3f,0x1c30-0x1c33,0x1c00-0x1c0f,0x18f0-0x18ff irq 19 at device 31.2 on pci0
atapci1: [ITHREAD]
ata2: <ATA channel 0> on atapci1
ata2: [ITHREAD]
ata3: <ATA channel 1> on atapci1
ata3: [ITHREAD]
pci0: <serial bus, SMBus> at device 31.3 (no driver attached)
pci0: <dasp> at device 31.6 (no driver attached)
acpi_tz0: <Thermal Zone> on acpi0
ACPI Warning for \_TZ_.TZ01._AL0: Return Package type mismatch at index 0 - found [NULL Object Descriptor], expected Reference (20100331/nspredef-1197)
acpi_button0: <Power Button> on acpi0
atrtc0: <AT realtime clock> port 0x70-0x71 irq 8 on acpi0
uart0: <16550 or compatible> port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
uart0: [FILTER]
uart0: console (9600,n,8,1)
uart1: <16550 or compatible> port 0x2f8-0x2ff irq 3 on acpi0
uart1: [FILTER]
uart2: <16550 or compatible> port 0x3e8-0x3ef irq 5 on acpi0
uart2: [FILTER]
uart3: <16550 or compatible> port 0x2e8-0x2ef irq 7 on acpi0
uart3: [FILTER]

The device I am testing is : http://www.arinfotek.com/product.php?gid=1&pid=104

Do you know what I can do to solve the problem ?

There are no related function in the BIOS to deactivate… 
So I am stuck with this problem and I need to solve It urgently.


Thanks for your help.

G.B.

Online stephenw10

  • Hero Member
  • *****
  • Posts: 8159
  • Karma: +5/-0
    • View Profile
Re: TEAK-5020 problem with uart - bypass
« Reply #1 on: November 24, 2011, 10:45:50 am »
The uart devices are serial connections. What makes you think they are related to the LAN-bypass feature?
Interestingly the specification for that box shows two serial ports. Perhaps it has unused serial headers internally.

Steve

Edit: Yes. It has two serial ports on the southbridge chip and two further ports on the superIO chip.
« Last Edit: November 24, 2011, 10:50:47 am by stephenw10 »

Offline gregober

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
    • OSNet your provider of Open Source appliances for pfSense
Re: TEAK-5020 problem with uart - bypass
« Reply #2 on: November 24, 2011, 10:50:32 am »

The uart devices are serial connections. What makes you think they are related to the LAN-bypass feature?
Interestingly the specification for that box shows two serial ports. Perhaps it has unused serial headers internally.

Steve

Here is the quote from the documentation :

Quote
There are two pairs of Bypass Relays in the 5020 series, one for LAN1 and LAN2, and the other one for LAN3 and LAN4. These Bypass Relays can be monitored or controlled by an application during any system state. The application can handle the relay to bypass or go back to normal in the power up or down state, in the system OS shutdown state, or in the running application state.

The Host sends Control Data to the Bypass controller via an UART interface to handle the relay bypass state. The UART port on the host site, which is connected to the Bypass Controller is a serial port 4. The configuration setting of the serial port is baud rate 9600, data bit 8, non-parity, 1 stop-bit. The Bypass Controller will program the Relay through GPIO pins.

The Bypass can be set to Normal or Bypass mode, and a timer can be programmed for event triggering for any desired time. The control commands are defined in the next section.


?

Online stephenw10

  • Hero Member
  • *****
  • Posts: 8159
  • Karma: +5/-0
    • View Profile
Re: TEAK-5020 problem with uart - bypass
« Reply #3 on: November 24, 2011, 10:59:05 am »
Ooo, interesting. I'm still reading the spec sheet.

I can't see why it would cause an issue though. Unless the console has for some reason chosen the lan-bypass port.

Steve

Offline gregober

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
    • OSNet your provider of Open Source appliances for pfSense
Re: TEAK-5020 problem with uart - bypass
« Reply #4 on: November 24, 2011, 11:07:33 am »
Ooo, interesting. I'm still reading the spec sheet.

I can't see why it would cause an issue though. Unless the console has for some reason chosen the lan-bypass port.

Steve

So you advise me to try to modify the console redirection in the BIOS ?

Online stephenw10

  • Hero Member
  • *****
  • Posts: 8159
  • Karma: +5/-0
    • View Profile
Re: TEAK-5020 problem with uart - bypass
« Reply #5 on: November 24, 2011, 11:21:00 am »
I doubt that's the problem, your log shows the console on uart0.
More likely it's having a problem with whatever should be detected after the uarts and is not showing in the logs.

My advise would be to disable everything you don't need in the bios, parallel ports, usb etc. This will free up system resources.

Steve

Offline gregober

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
    • OSNet your provider of Open Source appliances for pfSense
Re: TEAK-5020 problem with uart - bypass
« Reply #6 on: November 24, 2011, 11:59:42 am »
I doubt that's the problem, your log shows the console on uart0.
More likely it's having a problem with whatever should be detected after the uarts and is not showing in the logs.

My advise would be to disable everything you don't need in the bios, parallel ports, usb etc. This will free up system resources.

Steve

Thanks very much.

I'll try that. I have also contacted the manufacturer as I am a wholesaler… 

I'll keep you posted in case I find smthg interesting.



Online stephenw10

  • Hero Member
  • *****
  • Posts: 8159
  • Karma: +5/-0
    • View Profile
Re: TEAK-5020 problem with uart - bypass
« Reply #7 on: November 24, 2011, 02:19:30 pm »
It might help if you post a complete boot log. Someone may spot something.

I notice you have an ACPI error in what you have already posted. Incomplete or incorrect acpi tables often cause problems (I cannot run acpi on my system) try disabling acpi.

Steve

Offline gregober

  • Jr. Member
  • **
  • Posts: 71
  • Karma: +0/-0
    • View Profile
    • OSNet your provider of Open Source appliances for pfSense
Re: TEAK-5020 problem with uart - bypass [solved]
« Reply #8 on: November 25, 2011, 03:07:52 am »
Ok,

It now works like a charm.

Had to go in the BIOS setting to disable the UART port of 81216D.
And change the setting of the fourth serial port to be 3E8 and IRQ 5.

FYI.

Thx everyone (and most particularly Steve) :-)