2009-07-16 04:42:14     BF532 uBoot Configuration - SMC 9215

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

2009-07-16 04:42:14     BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 77446   

 

Hai,

 

   I am using BF532 custom board. SMC 9215 Ethernet chip is being used in the custom board . Is it possible for me to use the existing SMC91111 driver for my custom board in the uBoot with change in base address ? If not what are changes I have to do with the existing driver or Am I need to write a new driver ?

 

Can any one clarify in this regard ?

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-07-16 16:11:46     Re: BF532 uBoot Configuration - SMC 9215

Mike Frysinger (UNITED STATES)

Message: 77484   

 

use the SMC911X driver

QuoteReplyEditDelete

 

 

2009-07-27 07:29:23     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78083   

 

Mike,

 

    Sorry for the inconvenience. Actually I was in need to know for the SMSC9215 Ethernet chip. Here is the question

 

I am using BF532 custom board. SMSC 9215 Ethernet chip is being used in the custom board . Is it possible for me to use the existing drivers (SMSC91111,smsc9118.h etc) for my custom board in the uBoot with change in base address ? If not what are changes I have to do with the existing driver or Am I need to write a new driver ? Can any one clarify in this regard ? Also let me know wats the u-Boot distribution I have to use ??

 

Thanks

Peter

QuoteReplyEditDelete

 

 

2009-07-27 13:16:56     Re: BF532 uBoot Configuration - SMC 9215

Mike Frysinger (UNITED STATES)

Message: 78098   

 

if you want a supported driver, you'll have to use 2009R1 or newer.  if you want to use 2008R1.5, you're on your own to backport/update/whatever.

QuoteReplyEditDelete

 

 

2009-07-28 06:44:00     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78112   

 

Mike,

 

Thanks for your continued support. Then as I said I configured the smc911x.h file for porting to my custom board BF532. I am not able to compile the u-boot successfully. Can you please look into it more deeper and let me know what are the files i have to change before compiling ? I don know whether you people will support for these sort of helps. I have taken u-boot 2009R1 for this compiling.

 

Thanks

Peter.

QuoteReplyEditDelete

 

 

2009-07-28 07:09:49     Re: BF532 uBoot Configuration - SMC 9215

Robin Getz (UNITED STATES)

Message: 78114   

 

John:

 

The porting guide is at:

 

https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:porting

 

It might be easier to help if you indicated the exact errror.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-28 08:19:58     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78115   

 

Robin,

 

Thanks . While compiling I am getting the error as follows:

 

net/libnet.a(net.o): In function `NetSendPacket':

/home/thangaraj/u-boot-Mci900/net/net.c:657: undefined reference to `eth_send'

/home/thangaraj/u-boot-Mci900/net/net.c:657: relocation truncated to fit: R_pcrel24_jump_l against undefined symbol `eth_send'

net/libnet.a(net.o): In function `ArpRequest':

/home/thangaraj/u-boot-Mci900/net/net.c:255: undefined reference to `eth_send'

/home/thangaraj/u-boot-Mci900/net/net.c:255: relocation truncated to fit: R_pcrel24_jump_l against undefined symbol `eth_send'

net/libnet.a(net.o): In function `NetSendUDPPacket':

/home/thangaraj/u-boot-Mci900/net/net.c:706: undefined reference to `eth_send'

/home/thangaraj/u-boot-Mci900/net/net.c:706: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_send'

net/libnet.a(net.o): In function `PingTimeout':

/home/thangaraj/u-boot-Mci900/net/net.c:772: undefined reference to `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:772: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_halt'

net/libnet.a(net.o): In function `NetStartAgain':

/home/thangaraj/u-boot-Mci900/net/net.c:602: undefined reference to `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:602: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_halt'

net/libnet.a(net.o): In function `NetLoop':

/home/thangaraj/u-boot-Mci900/net/net.c:323: undefined reference to `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:323: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:327: undefined reference to `eth_init'

/home/thangaraj/u-boot-Mci900/net/net.c:327: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_init'

/home/thangaraj/u-boot-Mci900/net/net.c:509: undefined reference to `eth_rx'

/home/thangaraj/u-boot-Mci900/net/net.c:509: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_rx'

/home/thangaraj/u-boot-Mci900/net/net.c:569: undefined reference to `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:569: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:515: undefined reference to `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:515: relocation truncated to fit: R_pcrel24 against undefined symbol `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:409: undefined reference to `eth_halt'

/home/thangaraj/u-boot-Mci900/net/net.c:409: additional relocation overflows omitted from the output

make: *** [u-boot] Error 1

 

Actually that eth_send function is defined in net/eth.c and called in net/net.c. Its prototype is in include/net.h.

 

I have used u-boot 2009R1 for this. Pls clarify ?

QuoteReplyEditDelete

 

 

2009-07-28 10:48:56     Re: BF532 uBoot Configuration - SMC 9215

Robin Getz (UNITED STATES)

Message: 78116   

 

John:

 

That means you don't have the driver properly compiling. A quick grep shows up:

 

drivers/net/3c589.c:int eth_send(volatile void *packet, int length) {

drivers/net/4xx_enet.c:int eth_send(volatile void *packet, int length)

drivers/net/bcm570x.c:int eth_send (volatile void *packet, int length)

drivers/net/cs8900.c:int eth_send (volatile void *packet, int length)

drivers/net/dm9000x.c:int eth_send(volatile void *, int);

drivers/net/enc28j60.c:int eth_send (volatile void *packet, int length)

drivers/net/ks8695eth.c:int eth_send(volatile void *packet, int len)

drivers/net/lan91c96.c:int eth_send (volatile void *packet, int length)

drivers/net/ne2000_base.c:int eth_send(volatile void *packet, int length) {

drivers/net/ns7520_eth.c:int eth_send(volatile void *pPacket, int nLen)

drivers/net/ns9750_eth.c:int eth_send (volatile void *pPacket, int nLen)

drivers/net/sh_eth.c:int sh_eth_send(struct eth_device *dev, volatile void *packet, int len)

drivers/net/smc91111.c:int eth_send(volatile void *packet, int length) {

drivers/net/smc911x.c:int eth_send(volatile void *packet, int length)

drivers/net/xilinx_emac.c:int eth_send(volatile void *ptr, int len)

drivers/net/xilinx_emaclite.c:int eth_send (volatile void *ptr, int len) {

 

 

For your driver (SMSC9215), you need a "#define CONFIG_DRIVER_SMC911X 1" in your board config.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-29 02:22:40     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78134   

 

Robin,

 

Thanks for your continued support. I am not getting error this time. After compiling I have taken the u-boot.bin and converted to dat format(u-boot.dat). Then I tried loading the same to my custom board BF532. I am getting the error as "Core fault detected before halt at address: 0x00110194.  Attempting to reset processor. "

 

I got this error after I halt the project. Can you please clarify in this ?

 

Note: First I dumped the dat file to some memory location like 0x120000 and I run the project after setting the PC value as 120000. Actually this goes good previously. Anything wrong in this ??

 

Thanks,

Peter

QuoteReplyEditDelete

 

 

2009-07-29 02:26:55     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78135   

 

Robin,

 

Thanks for your continued support. I am not getting error this time. After compiling I have taken the u-boot.bin and converted to dat format(u-boot.dat). Then I tried loading the same to my custom board BF532. I am getting the error as "Core fault detected before halt at address: 0x00110194.  Attempting to reset processor. "

 

I got this error after I halt the project. Can you please clarify in this ?

 

Note: First I dumped the dat file to some memory location like 0x120000 and I run the project after setting the PC value as 110000. Actually this goes good previously. Anything wrong in this ??

 

Thanks,

Peter

QuoteReplyEditDelete

 

 

2009-07-29 08:02:19     Re: BF532 uBoot Configuration - SMC 9215

Robin Getz (UNITED STATES)

Message: 78156   

 

John:

 

When you say "convert to dat format" - what are you doing? The bin file should be programmed directly into the flash with the gnICE.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-29 08:08:12     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78158   

 

Robin,

 

With the help of the utility "Utility_Ver1.16.exe", we can convert the bin file to text file. This conversion will resultin dat file. But its not a problem and I sure that this conversion is correct and works well and good previously.

QuoteReplyEditDelete

 

 

2009-07-29 08:39:23     Re: BF532 uBoot Configuration - SMC 9215

Robin Getz (UNITED STATES)

Message: 78161   

 

John:

 

I have no idea what this is - or where you got it - I can't help when you don't use our recommended method of programming flash - since I have no idea if that is corrupting things or not.

 

If you use something that is unsupported from here - you need to go ask someone else for help.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-29 08:46:39     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78162   

 

I want to make this clear to you. After compiling we will get the bin file and we just convert that to dat file. Nothing makes difference because bin file contains 0 and 1 where as the dat file contains data in Hexadecimal-8 format. That's it.

 

Previously(for u-boot2008R1.5) when we load the dat file we didnt get any errors like this "Core fault detected before halt at address: 0xEF0002DE.  Attempting to reset processor."

 

Now only I am getting this for the u-boot2009R1. I am expecting your continued support for this so that I can proceed my work further

 

Thanks,

John

QuoteReplyEditDelete

 

 

2009-07-29 13:18:19     Re: BF532 uBoot Configuration - SMC 9215

Robin Getz (UNITED STATES)

Message: 78175   

 

John:

 

I'm trying to be clear with you - if you use our tools - things work. a gnICE is not that expensive.

 

If you don't use our tools - we can't help - I have no idea what the translation is doing. If things worked by accident in the past - that is no indication that they will continue to work in the future.

 

-Robin

QuoteReplyEditDelete

 

 

2009-07-30 04:47:09     Re: BF532 uBoot Configuration - SMC 9215

John Peter (INDIA)

Message: 78191   

 

Robin,

 

In our custom board we are having problem in Flashing the code and we are not able to boot from Flash. So we are booting from SDRom by using ADI ICE only. I don know how to proceed further. thats why i am asking you again. Please clarify me or do you want any reference file from my side ?

 

Thanks

John

QuoteReplyEditDelete

 

 

2009-07-30 10:32:58     Re: BF532 uBoot Configuration - SMC 9215

Robin Getz (UNITED STATES)

Message: 78218   

 

John:

 

I don't know how to help if you are using the ADI ICE.

 

How to proceed - get something we support. OR - use the early print functionality in U-Boot:

 

https://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:debugging

 

But - as I have said - if you have trouble programming into flash - that is not something that I can help with - you are on your own to figure that out - since you are not using a supported programmer. There is nothing else to be said on that point - and your questions will go unanswered in the future.

QuoteReplyEditDelete

 

 

2009-08-05 00:26:50     Re: BF532 uBoot Configuration - SMC 9215

Mike Frysinger (UNITED STATES)

Message: 78381   

 

i dont know what you could have possibly changed in the smc911x.h header.  there should be no need for you to touch that at all.  all board configuration goes into the board config header.

Attachments

    Outcomes