Go to previous topic
Go to next topic
Last Post 03 Feb 2012 10:53 AM by  jsarao
Problem reading MAC address
 6 Replies
Author Messages
jsarao
New Member
New Member
Posts:29


--
01 Feb 2012 02:50 PM
    LoLo version 2.5.0
    SOM Model: SOMDM3730-20-2780AGCR-A

    Using the SOM with our own carrier, which has no EEPROM (U22 AT93C46-10TU-1.8 on the TORPEDO LAUNCHER 2 BASEBOARD PN 1020170)

    ifmac command fails

    losh> ifmac sm0 0x00:0x02:0x04:0x08:0xaa:0xbb
    readEEPROMmac: eth buffer empty???
    error: ifmac: failed to write ()
    error: ifmac: failed to write

    QUESTION: How can I configure the LoLo to not try to read from the EEPROM?

    QUESTION: How can I configure the LoLo to use a MAC that I assign?

    I have seen with LoLo 2.4.x there is a "config" command that doesn't seem to be available on 2.5.

    Any help is appreciated.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    01 Feb 2012 03:55 PM
    j - did you do ifconfig sm0 first? This does work on your kit, correct?

    *****************************************************************

    LogicLoader

    (c) Copyright 2002-2011, Logic PD, Inc. All Rights Reserved.

    LoLo Version: 2.5.0
    SOM Model Number: SOMDM3730-20-2780AGCR-2
    SOM Part Number: XXXXX
    SOM Serial Number: XXXXX

    *****************************************************************

    losh> ifconfig sm0 dhcp
    Waiting for link to come up... up
    Starting DHCP on sm0 .
    losh> ifmac sm0
    Current MAC Address: 00:08:ee:05:21:7a
    losh>
    jsarao
    New Member
    New Member
    Posts:29


    --
    01 Feb 2012 04:04 PM
    losh> ifconfig sm0 up

    readEEPROMmac: eth buffer empty???
    resetMAC91C117: readEEPROMmac returns -7
    MAC EEPROM not programmed! Programming to default address.
    Please reset the baord for this new default MAC to take effect.

    [js. This make sense because my custom carrier has no eeprom hooked to the LAN9 chip]

    ...
    I power cycle the board
    ...

    losh> ifconfig sm0 dhcp
    Waiting for link to come up... up
    Starting DHCP on sm0..........
    error: ifconfig: unable to get ip address; still trying (sm0)

    [js. This makes since because the default MAC is FF:FF:FF:FF:FF:FF]

    losh> ifconfig
    sm0: up 100M full-duplex (25)
    sm0: mac: ff:ff:ff:ff:ff:ff ip: 0.0.0.0
    mask: 0.0.0.0 gw: 0.0.0.0

    I would like a way to manually override the MAC to some other address. This should allow the ifconfig sm0 dhcp command to succeed.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    02 Feb 2012 02:31 PM
    I'm checking internally, but the first reply from my LoLo guru said he doesn't know of a way to make the LAN chip work without the EERPOM connected to it.

    Thanks
    jsarao
    New Member
    New Member
    Posts:29


    --
    02 Feb 2012 04:04 PM
    Great. thanks for checking. Otherwise, is the LoLo source available?
    I know the u-boot source is and we should be able to push an address to the LAN chip register... presumably.
    richard.laborde@logicpd.com
    Basic Member
    Basic Member
    Posts:247


    --
    03 Feb 2012 08:19 AM
    Generally speaking the LoLo source is not available, and when the guy that wrote it tells me it won't work, I listen to him.
    Ask Matt to look into it for you.
    Thanks
    jsarao
    New Member
    New Member
    Posts:29


    --
    03 Feb 2012 10:53 AM
    Posted By richardl on 3 Feb 2012 8:19 AM
    Generally speaking the LoLo source is not available, and when the guy that wrote it tells me it won''t work, I listen to him.
    Ask Matt to look into it for you.
    Thanks




    Thanks for checking. I will talk to Matt to see what we can do.

    FYI: from the LAN9221 documentation.

    The LAN9221/LAN9221i can optionallyload its MAC address from an external serial EEPROM.
    ...
    If a properly configured EEPROM is not detected, it is the responsibility of the host LAN Driver to set the IEEE addresses.


    ---