This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

BeagleBoard-xM Rev C, opkg update problem

Hello everyone,

I'm using a Beagle board - xM Rev C with Linux kernel 2.6.38, Angstrom distribution. u-boot loads kernel from NFS and kernel mounts NFS root. Everything works fine but I have a little problem... My Beagle board - xM can't "ping www.google.com" but can ping Google IP address 74.125.224.52. When I type opkg update I get:

                               ..........

wget: bad address 'www.angstrom-distribution.org'

Collected errors: opkg_download: Failed to download http://www.angstrom-distribution.org/feeds/unstable/ipk/glibc/armv7a/base/Packages.gz, wget returned 1.

                               ..........

I know that the problem is in DNS but I don't know how to solve it. I was surfing over the Internet and I didn't find any solution that works for me. Can there be a problem because of dynamic MAC address of the BB-xM? BB-xm doesn't have an EEPROM memory for saving MAC address and therefore BB-xM gets a new MAC and IP address on every reboot from DHCP server. Does anyone have any suggestion?

Thanks in advance, Vladimir

  • Hi Vladimir,

    A quick Google search returned this: http://www.electronsonradio.com/2011/07/angstrom-on-the-beagleboard-fixing-your-mac-address/

    It suggests you use the uEnv.txt on your SD card to set optargs=”ethaddr=00:11:22:33:44:66″

    You may also look for support on http://beagleboard.org/ and on our Linux forums.

    Best regards,
    Miroslav

  • Thank you for answer Miroslav...

    Yes, I saw that post but it didn't work for me. I tried again and the result is same. I edited eEnv.txt file and added "optargs=”ethaddr=00:11:22:33:44:66″ " but during boot I got:

    [    4.263203] smsc95xx 1-2.1:1.0: usb0: register 'smsc95xx' at usb-ehci-omap.0-2.1, smsc95xx USB 2.0 Ethernet, 26:c9:6f:83:df:3c

    I, also, tried to implement patch which is provided but it seems to be the same behaviour. Have you any other advice?

    Regards,

    Vladimir

  • Hi,

    I don't have the sources for the Angstrom U-Boot, but it should be something similar:

    There should be a README file in the U-Boot folder, which states:

    - Vendor Parameter Protection:

            U-Boot considers the values of the environment
            variables "serial#" (Board Serial Number) and
            "ethaddr" (Ethernet Address) to be parameters that
            are set once by the board vendor / manufacturer, and
            protects these variables from casual modification by
            the user. Once set, these variables are read-only,
            and write or delete attempts are rejected. You can
            change this behaviour:

            If CONFIG_ENV_OVERWRITE is #defined in your config
            file, the write protection for vendor parameters is
            completely disabled. Anybody can change or delete
            these parameters.

            Alternatively, if you #define _both_ CONFIG_ETHADDR
            _and_ CONFIG_OVERWRITE_ETHADDR_ONCE, a default
            Ethernet address is installed in the environment,
            which can be changed exactly ONCE by the user. [The
            serial# is unaffected by this, i. e. it remains
            read-only.]

            The same can be accomplished in a more flexible way
            for any variable by configuring the type of access
            to allow for those variables in the ".flags" variable
            or define CONFIG_ENV_FLAGS_LIST_STATIC.

    There should be a board config file with all these defines, usually <u-boot_folder>/include/configs/<your_board>.h.

    Inside it replace/add the following:

    #define CONFIG_ETHADDR  <your ethernet address>

    and then rebuild your U-Boot.

    Best regards,
    Miroslav

  • Hi Miroslav,

    I'm using u-boot (as well as MLO file) from this site: http://downloads.angstrom-distribution.org/demo/beagleboard/ and I can't modify "<u-boot_folder>/include/configs/<your_board>.h". Is that means I can't set static MAC address for my Beagleboard - xM? Now, I can download packages from the Internet. I solved my problem with modifying "/etc/hosts" file. I added in "hosts" file:

    188.40.83.200         www.angstrom-distribution.org

    "188.40.83.200" is IP address of "www.angstrom-distribution.org" site. Now, I'm able to download packages from the Internet directly on the BeagleBoard-xM.

    Best regards,

    Vladimir

  • Hi Vladimir,

    Vladimir Gajinov said:
    I'm using u-boot (as well as MLO file) from this site: http://downloads.angstrom-distribution.org/demo/beagleboard/ and I can't modify "<u-boot_folder>/include/configs/<your_board>.h". Is that means I can't set static MAC address for my Beagleboard - xM?

    Without the source code files, you won't be able to try the proposed solution.

    If you are not satisfied with your current solution, you can always download the source code files from the Andstrom project page and try what I have proposed.

    Best regards,
    Miroslav

  • Hi Miroslav,

    For now, I'm satisfied with this solution. Anyway, thanks for your reply.

    Best regards,

    Vladimir