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.

Linux: How to modify u-boot for EMAC RMII mode instead of MII

Other Parts Discussed in Thread: OMAPL138, OMAP-L138

Tool/software: Linux

Hi there,

COuld you help me with this change please? 
I would like to change the EMAC phy interface to use RMII instead of the MII in the u-boot

regards,

Mitesh

  • Hello Mitesh,


    Please, see this thread.

    Best regards,
    Kemal

  • Hi Kemal, thanks for the reply. I have read that tread but it doesn't help me.

    I have OMAPL138 LCDK and I have managed to rebuild u-boot and now I am trying to understand what needs to be changed to make RMII work.

    As of now, I have changed pinmux in the "uboot-2012.04.01.../board/davinci/da8xxevm/omapl138_lcdk.c" such that RMII is used for EMAC but that changes doesn't seem to make any changes..

    In regards, with the other post, could you tell me which files were changed, as well. Thanks
  • Hi there, would it be possible to list all the files that are used by the makefile to build u-boot for omapl138_lcdk target?
  • Try a ‘--just-print’ or ‘--dry-run’ to list the used files by the build. Also examine the local Makefile and check if the object file is created for this file.
  • Hi Kemal, still no luck.

    Let me summaries, what I have done till now to rebuild u-boot for custom board.

    1) I have added "omapl138_custom" as a new target in the boards.cfg
    "omapl138_custom arm arm926ejs omapl138_custom davinci davinci"

    2) Created new src file for "omapl138_custom.c" with all the hardware info like RMII, etc.

    3) Created new header file as well with basic changes to define RMII.

    4) Added rule in the make file for the omapl138_custom_config similar to omapl138_lcdk_config

    5) After running "host $ make omapl138_lcdk_config CROSS_COMPILE=arm-arago-linux-gnueabi-" it does generate config.h file
    with this in the file
    /* Automatically generated - do not edit */
    #define CONFIG_BOARDDIR board/davinci/omapl138_custom
    #include <config_defaults.h>
    #include <configs/omapl138_custom.h>
    #include <asm/config.h>

    6) I guess, the next step is to do make all.. but I am getting error here..

    But am I on the right track??
  • One more thing, I don't understand is..
    Once I generate the u- boot.bin and after converting it to AIS format. I am writing this to the NAND Flash using "sfh_OMAP-L138.exe"

    I guess, the next step should be to change the boot arguments?

    bootargs=console=ttyS2,115200n8 root=/dev/mmcblk0p2 rw rootwait ip=off
    bootcmd=if mmc rescan 0; then if fatload mmc 0 0xc0600000 boot.scr; then source
    0xc0600000; else fatload mmc 0 0xc0700000 uImage; bootm c0700000; fi; else sf pr
    obe 0; sf read 0xc0700000 0x80000 0x220000; bootm 0xc0700000; fi
    bootfile=uImage


    I am not sure, if I need to change the above commands.. I want to use the filesystem from the SD card but not the bootfile...