$1 macb_uio
$2 3200c000.ethernet

        echo $1 > /sys/bus/platform/devices/$2/driver_override
        echo $2 > /sys/bus/platform/drivers/$1/bind
        echo "Successfully bind platform device $2 to driver $1"

        echo macb_uio > /sys/bus/platform/devices/3200c000.ethernet/driver_override
        echo 3200c000.ethernet > /sys/bus/platform/drivers/macb_uio/bind

        echo macb_uio > /sys/bus/platform/devices/soc:switch0/driver_override
        echo soc:switch0 > /sys/bus/platform/drivers/macb_uio/bind


        echo 3200c000.ethernet > /sys/bus/platform/devices/3200c000.ethernet/driver/unbind
        echo macb_uio > /sys/bus/platform/devices/3200c000.ethernet/driver_override
        echo 3200c000.ethernet > /sys/bus/platform/drivers/macb_uio/bind


        echo soc:switch0  > /sys/bus/platform/devices/soc:switch0/driver/unbind

        echo macb_uio > /sys/bus/platform/devices/soc:switch0/driver_override
        echo soc:switch0 > /sys/bus/platform/drivers/macb_uio/bind

[  646.481395] phytium_macb 3200c000.ethernet: gem-ptp-timer ptp clock unregistered.
[  646.671922] macb_uio 3200c000.ethernet: mapping 1K dma=0xf9f07000 host=00000000199ab8fb
[  646.671950] macb_uio 3200c000.ethernet: unmapping 1K dma=0xf9f07000 host=00000000199ab8fb


/home/dpdk_ft_e2000/dpdk-kmods-macb_uio_v5.0_release/linux/macb_uio


bash ../../../dpdk-macb_v5.0_release/usertools/dpdk-pdevbind.sh -q eth3


Depends on [n]: SPI [=y] && SPI_MASTER [=y] && (ARCH_PHYTIUM || COMPILE_TEST [=n]) || SPI [=y] && SPI_MASTER [=y] && (ARCH_PHYTIUM || COMPILE_TEST [=n])

PLAT
PHYT_PCI


check-config: CONFIG_SPI_PHYTIUM changed from - to y: policy<{'arm64': 'y'}>)
check-config: CONFIG_SPI_PHYTIUM_PCI changed from - to n: policy<{'arm64': 'y'}>)
check-config: CONFIG_SPI_PHYTIUM_PLAT changed from - to y: policy<{'arm64': 'y'}>)

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部