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/DRA726:以太网问题

Guru**** 2597295 points
Other Parts Discussed in Thread: DP83867IS, DRA726

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/processors-group/processors/f/processors-forum/586027/linux-dra726-ethernet-issue

器件型号:DRA726
主题中讨论的其他器件:DP83867IS

工具/软件:Linux

我正在尝试弄清楚 u-boot 告诉我的内容

NET:  WAIT_for_USER_ACCESS 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时

大量"WAIT_TO_USER_ACCESS Timeout "

Wait_for_user_access 超时
PHY 复位超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时
Wait_for_user_access 超时

警告:以太网@48484000使用 ROM 中的 MAC 地址
eth0:以太网@48484000

我仔细检查了 DTS 中的设置、它们与我们板的原理图相匹配

Michel Catudal

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Michael、

    我已将您的问题转交给 u-boot 专家。
    您能否告诉我们您使用的 u-boot 版本是什么?

    此致、
    Yordan
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    3.02工业 SDK 中的一个、并对其进行了修改以支持我们的电路板。
    我无法从汽车 SDK 中获取用于在 micro SD 上查找 Linux 器件树的器件、并且由于我过去没有遇到工业版本的问题、我认为这是调试硬件的最佳选择。

    两者之间的区别在于早期启动和 Android、我们目前不使用任何一种、也不打算使用 Android。 我们在该板上的 eMMC 存在问题、因此我们尝试使该板与 micro SD 卡配合使用。
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    我忘记了提到使用的设备是 DP83865DVH
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    哎呀、我指的是 DP83867IS、DP83865DVH 是汽车 EVM 上的一个。
    上面有错误的原理图。

    它总是超时。 请注意、我们只使用其中一个端口、而不是同时使用这两个端口。

    米歇尔
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    这是 env
    =>印刷版
    arch = ARM
    args_fit=setenv bootargs console=${console}
    args_mmc=run finduid;setenv bootargs console=${console}${optargets}root=PARTUUID =${uuid}rw rootfstype=${mmcrootfstype}
    波特率=115200
    电路板=dra726
    Board_name=dra726
    BOOT_FDT=尝试
    BOOT_FIT = 0
    bootcmd=if test ${boot_fit}-eq 1;然后运行 update_TO_fit;fi;运行 findfdt;运行 envboot;运行 mmcboot;setenv mmcdev 1;setenv bootpart 1:2;setenv mmcroot /dev/mmcblk0p2 rw;运行 mmcboot;
    BOOTDELAY=2
    bootdir=/boot
    bootenvfile=uEnv.txt
    BootFile=zImage
    BOOTM_SIZE=0x10000000
    bootpart=0:2
    bootscript=echo 正在从 MMC${mmcdev}...;源${loadaddr}运行的 bootscript
    console=ttyO2,115200n8.
    CPU=armv7
    dfu_alt_info_eMMC=rawemmc raw 0 3751936;引导部分1;rootfs 部分1 2;mlo fat 1;ml.raw 0x100 0x100;u-boot.img.raw 0x300 0x400;spl-os-args.img raw 0x80 0x80;spl-os-image-raw 0x100;u-boot.g1;splfat 1;splfat 1 uEnv.txt raw 0xfat 1;spl- raw 0xfat 1;splfat 1
    dfu_alt_info_mmc=boot part 0 1;rootfs part 0 2;mlo fat 0 1;ml.raw 0x100 0x100;u-boot.img.raw 0x300 0x400;spl-os-args.raw 0x80 0x80;spl-os-image.fat raw 0x900;spl-os-os-gfat 1;fat 0 uEnv.txt
    DFU_alt_INFO_QSPI=MLO RAW 0x0 0x040000;u-boot.img RAW 0x040000 0x0100000;u-boot-spl-OS RAW 0x140000 0x080000;u-boot-env RAW 0x1C0000 0x010000;u-boot-env.backup RAW 0x1D0000 0x010000;u-boot-env.backup RAW 0x8000000 0x0000 0x8000000 0xE0000
    dfu_alt_info_ram=内核 ram 0x80200000 0x4000000;fdt ram 0x80f80000 0x80000;ramdisk ram 0x81000000 0x4000000
    DFU_bufsiz=0x10000
    envboot=MMC dev ${mmcdev};如果 MMC 重新扫描;然后回显在器件${mmcdev}上找到的 SD/MMC;如果运行 loadbootscript;然后运行 bootscript;否则运行 loadbootenv;然后从${bootenvfile}回显已加载的 env;运行 importbootenv;fi;if test -n $uuccmd;然后运行 envenvcmd;envive...
    ethaddr=fc:0f:4b:5d:E5:28
    FDT_addr_r=0x88000000
    fdtaddr=0x88000000
    fdtcontrolladdr=9ff8aae0
    fdtfile=未定义
    findfdt=setenv fdtfile dra726-activa-lcd-12inch.dtb;
    finduuid=part uuid MMC ${bootpart}uuid
    fit_bootfile=fitImage.itb.
    fit_loadaddr=0x88000000
    importbootenv=echo 从 MMC${mmcdev}导入环境...;env 导入-t ${loadaddr}${filesize}
    kernel_addr_r=0x82000000
    loadaddr=0x82000000
    loadbootenv=fatload MMC ${mmcdev}${loadaddr}${bootenvfile}
    loadbootscript=load MMC ${mmcdev}${loadaddr}boot.scr
    loadfdt=load ${devtype}${bootpart}${fdtaddr}${bootdir}/${fdtfile}
    loadfit=run args_fit;bootm ${loadaddr}#${fdtfile};
    loadimage=load ${devtype}${bootpart}${loadaddr}${bootdir}/${bootfile}
    mmcboot=MMC dev ${mmcdev};setenv devnum ${mmcdev};setenv devtype MMC;如果 MMC 重新扫描;然后回显在器件${mmcdev}上找到的 SD/MMC;如果运行 loadimage;然后测试${boot_fit}-eq 1;然后运行 loadfit;否则运行 mmcovados;fi;fi;
    mmcdev=0
    mmclosados=run args_mmc;如果测试${boot_FDT}= yes ||测试${boot_FDT}=试用;如果运行 loadfdt;则 bootz ${loadaddr}-${fdtaddr};否则测试${boot_FDT}=试用;然后 bootz;否则、回显警告:无法加载 bootz;否则;fi;
    mmcrootfstype=ext4 rootwait
    netargs=setenv bootargs console=${console}${optargets}root=/dev/nfs nfsroot=${serverip}:${rootpath}、${nfsopts}RW IP=DHCP
    netboot=echo Booting from network...;setenv autoload no;dhcp;run netloadimage;run netloadfdt; 运行 netargs;bootz ${loadaddr}-${fdtaddr}
    netloadfdt=tftp ${fdtaddr}${fdtfile}
    netloadimage=tftp ${loadaddr}${bootfile}
    nfsopts=nolock
    partitions=uuid_disk=${uid_gppt_disk};name=rootfs、start=2MiB、size=-、uid=${uid_gppt_rootfs}
    pxefile_addr_r=0x80100000
    ramdisk_addr_r=0x88080000
    读数地址= 0x88080000
    rootpath=/export/rootfs
    脚本地址=0x80000000
    SoC=omap5
    static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off
    stderr=串行@48020000
    stdin =串行@48020000
    stdout=串行@48020000
    update_TO_fit=setenv loadaddr ${fit_loadaddr};setenv 引导文件${fit_bootfile}
    usbtty=CDC_ACM
    Vendor=activa
    ver = U-Boot 2016.05 (2017年4月03日- 17:25:53 -0400)
    VRAM=16M

    环境大小:4028/65532字节

    ------------------------

    当它启动时、我在串行端口上得到它

    A3%f ü ŘKDRAM:512 mib
    MMC:OMAP SD/MMC:0、OMAP SD/MMC:1.


    我在尝试切换至 eMMC 时得到此值
    => MMC DEV 1
    卡未响应电压选择!

    加载 Linux 设备树后、它会崩溃。 如果没有正常工作的以太网、调试就会比较困难


    =>引导
    切换到分区#0,确定
    mmc0是当前器件
    在器件0上找到 SD/MMC
    正在读取 BOOT.SCR
    **无法读取文件 boot.scr **
    正在阅读 uEnv.txt
    **无法读取文件 uEnv.txt **
    切换到分区#0,确定
    mmc0是当前器件
    在器件0上找到 SD/MMC
    在175ms 内读取3515920字节(19.2 MiB/s)
    在20ms (4.5 MIB/s)内读取93430字节
    内核映像@ 0x82000000 [ 0x000000 - 0x35a610]
    ###展开的设备树 blob、88000000
    使用0x88000000处的 FDT blob 进行引导
    正在将设备树加载到8ffe6000,结束8ffcf5... 好的

    正在启动内核...
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好、Michel、
    我不是一名专家。 我只想回顾一下、有几个 E2E 主题用于 PHY 超时。
    -您能否检查 MDIO 连接、上拉电阻?
    - MDIO 引脚多路复用?
    -正确配置 PHY 地址? (类似 I2C)

    此致、
    STAN
  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    [引用用户="Michel Catudal"]哦,我指 的是 DP83867IS,DP83865DVH 是汽车 EVM 上的一个。[/引用]

    DRA72x EVM 的修订版 C 和更新版本已迁移到 DP83867。  查看 dra72-EVM-revc.dts:

    DaVinci_MDIO{
    dp83867_0:ethernet-phy@2{
    reg =<2>;
    TI、Rx 内部延迟= ;
    TI、TX 内部延迟= ;
    TI、FIFO 深度= ;
    ti、最小输出阻抗;
    };
    
    dp83867_1:ethernet-phy@3{
    reg =<3>;
    TI、Rx 内部延迟= ;
    TI、TX 内部延迟= ;
    TI、FIFO 深度= ;
    ti、最小输出阻抗;
    };
    };
    

    与手动 I/O 模式、内部延迟等相关的 RGMII 接口有很多子集  所有内容都需要配置为精确对齐。