2010-11-03 09:35:38     Need help with Upgrading uClinux

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

2010-11-03 09:35:38     Need help with Upgrading uClinux


Message: 95525   


I was using an old version of uClinux and now want to upgrade to a later version.  I am trying to get 2008R1-RC8 working on my custom BF533 board.  It has the same SDRAM and network as the EZ-Kit with a serial SPI eeprom.  I am using U-Boot 2008.10-2009R1.1-rc1.  The kernel start to boot and then stops (hangs) at the following line:




TCP established hash table entries: 1024 (order: 1, 8192 bytes)


TCP bind hash table entries: 1024 (order: 0, 4096 bytes)


TCP: Hash tables configured (established 1024 bind 1024)


TCP reno registered


io scheduler noop registered


io scheduler deadline registered (default)


fpga0: INIT


Serial: Blackfin serial driver


bfin-uart.1: ttyBF0 at MMIO 0xffc00400 (irq = 21) is a BFIN-UART


RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize


smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@cam.org>




Enabling the debug inside the smc91x.c driver, the line:


eth%d: spurious interrupt (mask = 0x00)


is constantly printed on the console.  I am guessing the ethernet device is not configured, but I don't see where my problem would be.  Anybody have any ideas?










2010-11-03 22:41:15     Re: Need help with Upgrading uClinux

Aaron Wu (CHINA)

Message: 95534   


What is your kernel version? Is the ethernet working in u-boot? how did you load your kernel image into system, by uart or by ethernet in u-boot




2010-11-04 08:32:36     Re: Need help with Upgrading uClinux


Message: 95560   


My old kernel version was  The version I am trying to upgrade to is  I can ping another device on the network, so it appears to be working.  Is that the best test for determining if the ethernet is working in u-boot.  I loaded the kernel by reading from the SPI eeprom to the SDRAM and booting from memory.










2010-11-04 15:49:30     Re: Need help with Upgrading uClinux


Message: 95572   


In the driver (smc_91x.c), if I change the request_irq function call to pass 0 for the IRQ flags, the kernel boots fine.  I cannot get the network to work though.  It has the correct MAC address and I can assign the IP address with ifconfig, but I cannot ping a device on the network.  If I execute a ping, I do not see any activity on my ethernet hub. 


ifconfig eth0 result:




eth0      Link encap:Ethernet  HWaddr 00:E0:22:FE:02:3F 


          inet addr:  Bcast:  Mask:


          UP BROADCAST MULTICAST  MTU:1500  Metric:1


          RX packets:0 errors:0 dropped:0 overruns:0 frame:0


          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0


          collisions:0 txqueuelen:1000


          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


          Interrupt:42 Base address:0x300 DMA chan:ff


Was removing the correct thing to do or is it causing my problems?








2010-11-05 02:08:08     Re: Need help with Upgrading uClinux

Aaron Wu (CHINA)

Message: 95579   


Your kernel is old, why not use the newer 2009R1, since your hardware is the same as that from ADI, and your board is verified to work in the u-boot, pls try the newer version and let us know the result.




2010-11-05 08:34:46     Re: Need help with Upgrading uClinux


Message: 95593   


I chose the version based on the size of the source code.  I want a simple linux kernel and don't need another 200 MB of stuff.  Did the network not work in older versions?




2010-11-05 11:08:34     Re: Need help with Upgrading uClinux


Message: 95595   


Found the problem.  The interrupt pin was not correct.  Don't know if it is different than the EZ-Kit.  It has been 5 years since I did the original work on this board.  Thanks for you help.




2010-11-08 22:17:12     Re: Need help with Upgrading uClinux

Mike Frysinger (UNITED STATES)

Message: 95671   


we added a lot of new *optional* 3rd party packages (mostly imaging/graphics/media related).  but that has absolutely no bearing on the compiled image size if you dont enable any of the new packages.


you're certainly free to select any version of software you like (it is open source after all), but we only support the latest release.  which means 2009R1.1 at this point.