2009-07-27 03:06:05     uBoot Customisation in BF532.

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

2009-07-27 03:06:05     uBoot Customisation in BF532.

John Peter (INDIA)

Message: 78058   

 

Hai,

I am customizing the uBoot for BF532 board.In the board, we are using the smsc9215 ethernet chip.I had made changes to smsc9118.h file in uBoot as per 9215 chip specification. After booting, it throws error as "Failed to detect LAN9118", the output of which is shown below...

 

U-Boot 1.1.6 (ADI-2008R1.5) (Jul 27 2009 - 11:14:24)

 

CPU:   ADSP bf532-0.5 (Detected Rev: 0.5)

Board: ADI BF532 EZ-Kit Lite board

      Support: http://blackfin.uclinux.org/

Clock: VCO: 400 MHz, Core: 400 MHz, System: 133 MHz

RAM:   64 MB

Flash:  2.1 MB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Net:   Failed to detect LAN9118 (ID_REV = 0xe140e140) at 0x20181000 and ID_REV_I

D_MASK = 0xffff0000 and ID_REV_CHIP_118 = 0x115a0000

Hit any key to stop autoboot:  0

bfin>

 

The error come from this part of the code(smsc9118.c in uBoot) which is shown below:

 

int smsc9118_initialize(bd_t *bd)

{

       /* Because we just came out of h/w reset we can't be sure that

        * the chip has completed reset and may have to implement the

        * workaround for Errata 5, stepping A0.        Therefore we need to

        * check the ID_REV in little endian, the reset default.

        */

       //smc9118_reset();

       if (((*ID_REV & ID_REV_ID_MASK) == ID_REV_CHIP_118) ||

           ((*ID_REV & ID_REV_ID_MASK) == ID_REV_CHIP_218))

       {

               printf("LAN9x18 (0x%08x) detected at 0x%08x\n", *ID_REV, CONFIG_SMSC9118_BASE);

               return 0;

       } else {

               printf("Failed to detect LAN9118 (ID_REV = 0x%08x) at 0x%08x and ID_REV_ID_MASK = 0x%8x and ID_REV_CHIP_118 = 0x%8x\n", *ID_REV, CONFIG_SMSC9118_BASE,ID_REV_ID_MASK,ID_REV_CHIP_118);

               return -1;

       }

}

 

Can any one please clarify me in this regard ?

 

 

By

Peter

QuoteReplyEditDelete

 

 

2009-07-27 03:18:44     Re: uBoot Customisation in BF532.

Mike Frysinger (UNITED STATES)

Message: 78060   

 

you're using a device that driver obviously doesnt support.  you arent using a 118 or 218 part, so it isnt supported.

 

QuoteReplyEditDelete

 

 

2009-07-27 04:15:11     Re: uBoot Customisation in BF532.

John Peter (INDIA)

Message: 78063   

 

Dear Mike,

 

         With reference to your message ID 77484 dated on 17-7-09, I got a reply from you that for the custom board using 9215 ethernet chip, we can make use of 911x series drivers. Please clarify me in this regard.

QuoteReplyEditDelete

 

 

2009-07-27 04:22:57     Re: uBoot Customisation in BF532.

Mike Frysinger (UNITED STATES)

Message: 78077   

 

you arent using the driver i told you to.  "smsc9118" != "smc911x".  if you had used the driver i told you to, then it probably would have worked.

 

said driver is only in the 2009R1 release.

Attachments

    Outcomes