在索智SC3807VS EVB上调试开发以太网功能(使用V3s的内部EMAC+PHY)

来源:互联网 发布:linux 复制到当前目录 编辑:程序博客网 时间:2024/06/06 12:57

V3s是全志SoC的一员,可以用于做CDR、IPCAMERA、SportDV等编码类的产品。这次,我需要在V3s上使用Ethernet功能,从V3s datasheet可以确定V3s内部带有EMAC及10/100M的PHY。


看了下索智SC3807VS EVB板的SPEC,硬件上已经将Ethernet设计出来,因此选择在TA上面进行预研开发。



第一步,飞线接上RJ45接口,可以选择用EVB上的变压器,接一个不带变压器的RJ45,也可以接一个带变压器的RJ45,不使用板上的。

第二步,使用menuconfig依次打开配置:

Device Driver->

----Network device support->

--------Ethernet driver support->

------------ SUNXI Platform Network devices drivers

----------------Sunxi platform Gigabit Ethernet driver

--------------------Use sunxi platform script

--------------------Clock use system interface

--------------------External PHY power control

如下图示,保存配置,重新编译内核。






第三步,修改sys_config.fex,如下:

[gmac0]
gmac_used          = 2
gmac_power1        =


第四步,重新构建firmware,烧录到SC3807VS EVB上。烧录结束后,进入shell进行测试:


至此,V3s使用Ethernet的预研顺利完成。


0 0
原创粉丝点击