[Soekris] FreeBSD PCI-driver?

2010-08-15 Thread Goran Sandin
Hi all,

I have problem with a http://www.lavalink.com/dev/index.php?id=53

net5501 identifies it like this from the BIOS:

Slot   Vend Dev  ClassRev Cmd  Stat CL LT HT  Base1Base2   Int 
---
0:14:0 1407 0110 07000200 0041 0480 00 00 80 E501  10
0:14:1 1407 0111 07000200 0041 0480 00 00 80 E509  10

A linux 2.6.27 kernel identify this card like this a boot:
Serial: 8250/16550 driver8 ports, IRQ sharing enabled   
serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
serial8250: ttyS1 at I/O 0x2f8 (irq = 3) is a 16550A
:00:0e.0: ttyS4 at I/O 0xe500 (irq = 10) is a 16550A
:00:0e.1: ttyS5 at I/O 0xe508 (irq = 10) is a 16550A

lspci -v gives:
00:0e.0 Serial controller: Lava Computer mfg Inc Lava DSerial-PCI Port A 
(prog-if 02 [16550])
Subsystem: Lava Computer mfg Inc Lava DSerial-PCI Port A
 
Flags: slow devsel, IRQ 10  
 
I/O ports at e500 [size=8]  
 
Kernel driver in use: serial
 

00:0e.1 Serial controller: Lava Computer mfg Inc Lava DSerial-PCI Port B 
(prog-if 02 [16550])
Subsystem: Lava Computer mfg Inc Lava DSerial-PCI Port B
 
Flags: slow devsel, IRQ 10  
 
I/O ports at e508 [size=8]  
 
Kernel driver in use: serial
 

I tried to use both /dev/ttyS4 and /dev/ttyS5 without any problem.


FreeBSD 7.3 identify the card like this at boot:
sio0:  port 0xe500-0xe507 irq 10 at 
device 14.0 on pci0
sio0: moving to sio4
sio4: type 16550A
sio4: [FILTER]
sio0:  port 0xe508-0xe50f irq 10 at 
device 14.1 on pci0
sio0: moving to sio5
sio5: type 16550A


Now to the problem...

With FreeBSD the system halt when I run sysinstall.

If I try to use the serial ports; sio4 seems to work, but when I try to open 
sio5 the system halt.

I think this is where FreeBSD gets "Koutech" info instead of  "Lava" from...

/usr/src/sys/dev/sio/sio_pci.c
{ 0x01101407, "Koutech IOFLEX-2S PCI Dual Port Serial", 0x10 },
{ 0x0407, "Koutech IOFLEX-2S PCI Dual Port Serial", 0x10 },

/usr/src/sys/dev/puc/pucdata.c lists some serial cards from Lava, but not the 
one I have. I can't find any description of what the purpose of the different 
fields in the structure is.

Does anyone have some ideas of what to try to get this card work properly in 
FreeBSD (7.3)?

Also, what does it mean that the BIOS says "Base1" is 0xe501 and 0xe509 while 
both linux and FreeBSD reports the address to be 0xe500 and 0xe508, it looks 
like it is an offset of 1.

Thanks,
Göran


___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] Installing FreeBSD on net5501 using PXE?

2010-08-15 Thread Goran Sandin
On Monday 02 August 2010 10.14.07 Graham Menhennitt wrote:
> On 02/08/10 07:18, Goran Sandin wrote:
> > The process always freeze on the last one for net5501.
> 
> I also had a problem although I'm not sure if it's the same as yours.
> See
> http://menhennitt.com.au/wordpress/2009/07/05/installing-freebsd-on-a-soekr
> is-net5501-using-pxe-and-dnsmasq for details.
> 
> Graham

Thanks for the reply.

I remember that I found your web page Graham when Googling before posting the 
list :-)

I tried your kernel config but it didn't work. "options 
COMPAT_FREEBSD7" 
wasn't recognized, I assume it means that it was a config for FreeBSD 8, but 
you mentioned on the web page that you installed version 7.2.

Never mind, anyway your and Martins respons made me continue.

I also tried NanoBSD and later on to upgrade to FreeBSD 7.3, but still the 
same problem

I finally found the reason why I could not run sysinstall. It was a problem 
with the driver used for the PCI-card I had installed in my net5501. When I 
removed it, sysinstall doesn't make the system halt any more :-)

/Göran
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech