Re: [Soekris] FreeBSD CF DMA problem

2008-02-26 Thread Paul Hoffman
At 10:18 PM + 2/26/08, Poul-Henning Kamp wrote:
>In message <[EMAIL PROTECTED]>, Paul Hoffman writes:
>
>>>My net4801 is into its 3rd year running FreeBSD on a standard HD 24/7.
>>>Can't expect it to last forever though.  So I'm trying to get a CF
>>>working without much luck so far.  It's a Kingston 1GB 50x 'elite pro'
>
>The problem is that the CF card reports DMA capability but on older
>4801's the CF card is not wired for that.
>
>FreeBSD cannot see the missing wires, and things get stuck.
>
>You can set
>   hw.ata.ata_dma=0
>
>in the loader to tell the disk driver to not attempt DMA.

Ah, in /boot/loader.conf, not /etc/sysctl.conf. Thanks! That fixed 
the problem. (I had put it in /etc/sysctl.conf, not 
/boot/loader.conf.)
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] net5501 vr(4) repeated unplug/replug -> port stops working

2008-02-26 Thread Jared D. McNeill
Stuart Henderson wrote:
> I've seen some problems with the onboard NICs on net5501, where
> if the device connected is unplugged and replugged, the interface
> has link, is able to transmit packets, but is unable to receive
> packets (nothing shown in tcpdump on the interface). Bringing
> the interface down and back up fixes it.
> 
> Has anyone noticed this on OS other than OpenBSD?

I see it on NetBSD also. Glad I'm not the only one :-)

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


Re: [Soekris] FreeBSD CF DMA problem

2008-02-26 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Paul Hoffman writes:

>>My net4801 is into its 3rd year running FreeBSD on a standard HD 24/7.
>>Can't expect it to last forever though.  So I'm trying to get a CF
>>working without much luck so far.  It's a Kingston 1GB 50x 'elite pro'

The problem is that the CF card reports DMA capability but on older
4801's the CF card is not wired for that.

FreeBSD cannot see the missing wires, and things get stuck.

You can set 
hw.ata.ata_dma=0

in the loader to tell the disk driver to not attempt DMA.


-- 
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD committer   | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
___
Soekris-tech mailing list
Soekris-tech@lists.soekris.com
http://lists.soekris.com/mailman/listinfo/soekris-tech


Re: [Soekris] FreeBSD CF DMA problem

2008-02-26 Thread Paul Hoffman
At 2:59 PM +0100 8/27/06, John Murphy wrote:
>My net4801 is into its 3rd year running FreeBSD on a standard HD 24/7.
>Can't expect it to last forever though.  So I'm trying to get a CF
>working without much luck so far.  It's a Kingston 1GB 50x 'elite pro'
>
>Pri Sla  CF300  (LBA Xlt 999-32-63  1007 Mbyte)
>[...]
>ad1: 983MB  at ata0-slave UDMA33
>ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=0
>ad1: TIMEOUT - READ_DMA retrying (0 retries left) LBA=0
>ad1: FAILURE - READ_DMA timed out LBA=0
>ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=1
>ad1: TIMEOUT - READ_DMA retrying (0 retries left) LBA=1
>ad1: FAILURE - READ_DMA timed out LBA=1
>ad1: TIMEOUT - READ_DMA retrying (1 retry left) LBA=0
>ad1: TIMEOUT - READ_DMA retrying (0 retries left) LBA=0
>ad1: FAILURE - READ_DMA timed out LBA=0

I'm having this, except that the LBA= is for various high numbers, 
and I'm on FreeBDS 6.3 which I installed onto the CF through a USB 
reader on a different device.

>That's with hw.ata.ata_dma="0" in /boot/loader.conf
>and sysctl hw.ata.ata_dma shows hw.ata.ata_dma: 0
>
>Is there anything else I can try to force a PIO mode?

I want to know that too. Later that day:

At 9:00 AM -0400 8/29/06, Jeff Quast wrote:
>I had a little trouble myself upgrading to a 1gb cf from a 256mb cf in
>openbsd. The logical and physical C/H/S were equal on the 256
>kingston. The logical is vastly different on the 1gb ...horay for
>1980's compatibility in the x86 architecture :(
>
>
>http://www.freebsd.org/cgi/man.cgi?query=atacontrol&sektion=8&apropos=0&manpath=FreeBSD+6.0-RELEASE
>
>Try using:
>
>atacontrol mode ad1 PIO4
>
>and 3, 2, 1...
>

I'm not seeing how to do that. I can't boot the Soekris box, so I 
can't run atacontrol there. How do I make the appropriate settings on 
the other box (the one that has the CF on a USB reader) so that they 
live through the bootup on the Soekris box?

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


Re: [Soekris] net4501 I/O Port

2008-02-26 Thread Serge Dewailly
Hi,

Many thanks for your advices :)
I've built a kernel, using an AMD Elan subarch, just to try... I've 
bought my soekris less than two weeks ago... I've built a kernel like 
that to see if there was optimization in linux kernel.

I will compile a new kernel in a x86 subarch, you are right, it will 
make me easier compile kernel module, or userland code ;)

Best regards,
Serge.

Brian Candler a écrit :
> On Tue, Feb 26, 2008 at 01:41:52PM +0100, Serge Dewailly wrote:
>   
>> I'am a little bit confused with the used of vmware in a subarch like amd 
>> elan...
>> 
>
> I really don't understand the problem:
>
> - The net4501 is just an x86 PC. It runs standard x86 code.
>
> - You can boot vmware using the same image that you use to boot the net4501.
>
> - You can build the gpio-controlling binary on *any* x86 platform.
>
> If you are building kernel modules which need to be optimised for some
> particular quirk or extra instruction available on the SC520 CPU then maybe
> I'd understand, but you really don't need to be doing this.
>
> I run OpenWrt on Soekris. I just build it for x86.
>
> Regards,
>
> Brian.
>
>
>   

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


Re: [Soekris] net5501 vr(4) repeated unplug/replug -> port stops working

2008-02-26 Thread Mike Tancsa
At 12:52 PM 2/26/2008, Stuart Henderson wrote:
>I've seen some problems with the onboard NICs on net5501, where
>if the device connected is unplugged and replugged, the interface
>has link, is able to transmit packets, but is unable to receive
>packets (nothing shown in tcpdump on the interface). Bringing
>the interface down and back up fixes it.
>
>Has anyone noticed this on OS other than OpenBSD?

Yes, on FreeBSD this can happen in RELENG_6. What seems to "fix" it 
is a packet going on the outbound interface will 'unwedge' it so that 
the box can received packets once again.  In the logs, a
vr0: Using force reset command.
will appear. It also seems to happen more frequently on vr0 than the 
other nics. Not sure if its an interrupt issue ?  The newer version 
of the driver soon to go into HEAD seems to reduce the amount of 
"force reset command" that I see. I havent yet seen a situation where 
the interface stops receiving packets with the new driver. But then 
again, I cant make this situation appear on demand so I dont know if 
the problem is gone, or just less visible.

 ---Mike


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

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


[Soekris] net5501 vr(4) repeated unplug/replug -> port stops working

2008-02-26 Thread Stuart Henderson
I've seen some problems with the onboard NICs on net5501, where
if the device connected is unplugged and replugged, the interface
has link, is able to transmit packets, but is unable to receive
packets (nothing shown in tcpdump on the interface). Bringing
the interface down and back up fixes it.

Has anyone noticed this on OS other than OpenBSD?


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


Re: [Soekris] net4501 I/O Port

2008-02-26 Thread Brian Candler
On Tue, Feb 26, 2008 at 01:41:52PM +0100, Serge Dewailly wrote:
> I'am a little bit confused with the used of vmware in a subarch like amd 
> elan...

I really don't understand the problem:

- The net4501 is just an x86 PC. It runs standard x86 code.

- You can boot vmware using the same image that you use to boot the net4501.

- You can build the gpio-controlling binary on *any* x86 platform.

If you are building kernel modules which need to be optimised for some
particular quirk or extra instruction available on the SC520 CPU then maybe
I'd understand, but you really don't need to be doing this.

I run OpenWrt on Soekris. I just build it for x86.

Regards,

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


Re: [Soekris] net4501 I/O Port

2008-02-26 Thread Brian Candler
On Tue, Feb 26, 2008 at 09:06:01AM +0100, Serge Dewailly wrote:
>Thanks for your response. that link was already in my bookmarks :)
>I need to install another new small linux using the AMD Elan subarch
>to be able to compile this code and run it.

Sorry, I assumed you were able to compile userland code for your platform
(otherwise you're going to be restricted to running just shell and perl
scripts :-)

There's always vmware / qemu / xen

>I was not able to find any documentation about the I/O ports of this
>board (nothing on soekris website, nothing on AMD website...)

The net4501 manual tells you how the pins are brought out, and this is on
the Soekris website.

Google for the SC520 data sheet for programming information.

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


Re: [Soekris] net4501 I/O Port

2008-02-26 Thread Serge Dewailly

Thanks for your response. that link was already in my bookmarks :)
I need to install another new small linux using the AMD Elan subarch to 
be able to compile this code and run it.


I was not able to find any documentation about the I/O ports of this 
board (nothing on soekris website, nothing on AMD website...)


Did you find something interesting ?

Thanks for your help.
Cheers,
Serge

Brian Candler a écrit :

On Sat, Feb 23, 2008 at 02:26:00PM +0100, Serge Dewailly wrote:
  

I have bought a soekris board for various personal projects.
I have successfully installed a debian etch, running a custom smaller
2.6.18-6 kernel (with debian patches).

I can't play with the error led and I/O port. I've found threads
speaking about kernel patches, but can't find how apply those...
I've found a driver for 4501 and 4801 on this site, but I can't compile
it since I've built my kernel in AMD Elan sub architecture. If I build
it from my computer (running debian too), I'm not able to then insert
the module in my soekris environment (bad module format...).

Does anyone find a solution to drive the error led and I/O port ?



A simple userland program exists which can control them. Needs no kernel
support, but must run as root.

Here's the source:
http://lists.soekris.com/pipermail/soekris-tech/2003-February/001954.html


  


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