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.

TDA4VM: Disabling eth0 (CPSW2G) permanently under Linux during kernel/device tree build

Part Number: TDA4VM

Hello TI,

as a result of having a working eth1 connection utilizing EthFw (CPSW9G) under Linux, I would like to completely disable the previously existing eth0 that utilizes CPSW2G (RGMII) connection.

I am aware that I can simply use:

sudo ifconfig eth0 down

or as described here (https://unix.stackexchange.com/questions/111256/how-to-permanently-disable-a-network-interface in Method #2) disable it “permanently” via /etc/network/interfaces/, however, those are the changes that can be easily reverted under Linux.

Is there any method that influences build process of Linux/UBoot/DeviceTree that would make enabling eth0 impossible without rebuilding of the Linux image or device tree blob?

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

I have tried the following:

I added:

status = "disabled";

under

mcu_cpsw: ethernet@46000000 {


node in k3-j721e-mcu-wakeup.dtsi

and the same under:

&mcu_cpsw {

        pinctrl-names = "default";

//      pinctrl-0 = <&mcu_cpsw_pins_default &mcu_mdio_pins_default>;

   pinctrl-0 = <&mcu_cpsw_pins_default>;

        status = "disabled";

        cpts {

                ti,pps = <3 1>;

        };     

};

in k3-j721e-common-proc-board.dts - it prevented CPSW9G ports from working as well (eth1 is not shown in ifconfig).

Linux while booting prints the following:

[    8.144563] virtio_rpmsg_bus virtio0: rpmsg host is online

[    8.150279] virtio_rpmsg_bus virtio0: creating channel rpmsg-kdrv addr 0x1a

[    8.153015]  remoteproc4#vdev0buffer: registered virtio0 (type 7)

[    8.159068] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: Device info: permissions: 07FFFFFF uart_id: 2

[    8.171040] remoteproc remoteproc4: remote processor 5c00000.r5f is now up

[    8.180895] rpmsg-kdrv-eth-switch rpmsg-kdrv-2-mpu_1_0_ethswitch-device-0: FW ver 0.1 (rev 1) 29/Dec/2020 SHA:8630d10d

[    8.200716] virtio_rpmsg_bus virtio0: creating channel rpmsg_chrdev addr 0x15

[    8.298191] ti-sci-inta 33d00000.interrupt-controller: Parent IRQ allocation failed

[    8.363087] genirq: Failed to request resources for main_r5fss_cpsw9g_virt_mac0 (irq 60) on irqchip MSI-INTA

[    8.439056] j721e-cpsw-virt-mac main_r5fss_cpsw9g_virt_mac0: failure requesting tx irq 60, -22

[    8.565824] j721e-cpsw-virt-mac: probe of main_r5fss_cpsw9g_virt_mac0 failed with error -22

 

Is there any way of disabling mcu_cpsw without affecting the CPSW9G?