2008-08-27 10:19:05     Wait States for smsc921x device

Document created by Aaronwu Employee on Aug 14, 2013
Version 1Show Document
  • View in full screen mode

2008-08-27 10:19:05     Wait States for smsc921x device

Appalayagari Sreedhar (INDIA)

Message: 61179   

 

Hi,

 

In my custom we have SMSC921x chip is interfaced to BF533 with the AMS bank.

 

when i configure the wait states for the ethernet chip as maximum 0xFFC2 it is working fine.

 

but if i configure the wait states (0x4410) therotical values it is not working and gives following error.

 

>ifconfig eth0 192.168.10.24 

 

SIOCSIFFLAGS: No such device

 

Same theoritical wait states (0x4410 )values are working fine in VDK project, i am able to transmit and receive data succesfully over ethernet.

 

Definetely in uClinux it is requiring more wait states than VDK, why this behaviour and how i can reduce the wait states.

 

Best Regards,Sreedhar.

 

 

 

 

 

 

QuoteReplyEditDelete

 

 

2008-08-27 16:36:36     Re: Wait States for smsc921x device

Mike Frysinger (UNITED STATES)

Message: 61200   

 

ifconfig isnt really a utility to track down errors.  the driver itself would have output relevant messages in case of an error (and probably has extended error debugging available in its source).

 

how exactly are you configuring the flash settings ?  what kernel/toolchain version are you using ?  what driver exactly are you using ?  when posting questions, please describe your environment.

QuoteReplyEditDelete

 

 

2009-02-18 10:15:50     Re: Wait States for smsc921x device

Appalayagari Sreedhar (INDIA)

Message: 69567   

 

Hi,

 

I am away with some other assignment and came back to this work.

 

I am working with BF533 custom board, smsc chip is interfaced with BF533 through AMS Bank 1.

 

uClinux distribution 2007R1-RC3.

 

I am using the smsc driver version details.

 

#define SMSC_CHIPNAME           "smsc911x"

#define SMSC_DRV_VERSION        "2006-12-30"

 

 

I did not understand the question "how exactly are you configuring the flash settings ?"

 

kindly put the question elaborately. I will provide the details

 

kernel details:

 

Linux linux-hms-jasmin 2.6.16.13-4-smp #1 SMP Wed May 3 04:53:23 UTC 2006 i686 i686 i386 GNU/Linux

 

toolchain details:

 

Using built-in specs.

Target: bfin-uclinux

Configured with: /usr/src/packages/BUILD/blackfin-toolchain-08r1.5/../gcc-4.1/configure --build=i686-pc-linux-gnu --host=i686-pc-linux-gnu --target=bfin-uclinux --prefix=/opt/uClinux/bfin-uclinux --enable-threads=posix --with-sysroot=/opt/uClinux/bfin-uclinux/bfin-uclinux/runtime --disable-libstdcxx-pch --disable-symvers --disable-libssp --disable-libffi --enable-clocale=generic --enable-version-specific-runtime-libs --enable-__cxa_atexit

Thread model: posix

gcc version 4.1.2 (ADI svn)

 

Please reply me back if you need any more details.

 

Best Regards, Sreedhar.

 

 

QuoteReplyEditDelete

 

 

2009-02-20 09:07:15     Re: Wait States for smsc921x device

Appalayagari Sreedhar (INDIA)

Message: 69693   

 

Hi,

 

any idea to solve this problem?

 

Best Regards, Sreedhar.

 

 

QuoteReplyEditDelete

 

 

2009-02-20 09:24:51     Re: Wait States for smsc921x device

Michael Hennerich (GERMANY)

Message: 69694   

 

We use 0x5554 with the LAN9218 on BF548-EZKIT @ 131.25MHz SCLK without any problems.

No idea what your problem is.

 

Update your kernel from our 2008R1 release branch in svn or use svn trunk.

If you're still seeing problems let me know.

 

Michael

 

QuoteReplyEditDelete

 

 

2009-03-21 09:30:06     Re: Wait States for smsc921x device

Appalayagari Sreedhar (INDIA)

Message: 71341   

 

Hi Micheal,

 

I have updated the distribution to 2008R1 SVN Branch. I am still facing the same problem.

 

I am attaching the log output for reference.  I feel i am doing something wrong please suggest/guide me to solve the problem.

 

Best Regards, Sreedhar.

 

smsc9215_kernel_log.txt

QuoteReplyEditDelete

 

 

2009-03-23 05:03:10     Re: Wait States for smsc921x device

Michael Hennerich (GERMANY)

Message: 71365   

 

Did you set the IORESOURCE_IRQ_LOWLEVEL, flag in your platform data?

 

{

  .start = IRQ_PF6,

  .end = IRQ_PF6,

  .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_LOWLEVEL,

},

 

Double check your hardware and make sure that LAN9218 IRQ is connected to PORTF_6.

 

You should also have a Pull-Up resistor on LAN9218 IRQ...

 

-Michael

QuoteReplyEditDelete

 

 

2009-03-23 10:58:46     Re: Wait States for smsc921x device

Appalayagari Sreedhar (INDIA)

Message: 71373   

 

Hi Micheal,

 

Thankyou for the help.

 

I made the changes as mentioned by you  IORESOURCE_IRQ_LOWLEVEL flag. but it did not worked for me, the pull up is there. LAN_IRQ is properly connected to the PF6 Pin.

 

Is i am missing anything Micheal? I guess i am doing something wrong unable to figure out the exact root cause. I will check again and let you know. If you have any other suggestions please reply to me i will try it out.

 

Once again thanks.

 

Best Regards, Sreedhar.

Outcomes