Jump to content
OMRON Forums

Eth1 is not being recognized at boot


Augusto

Recommended Posts

I am using DeltaTau with dualcore ARM processor, FW version: 2.6.0.0, PowerPMAC IDE: 4.4.1.7.

 

We have some DeltaTaus that are loosing the eth1 recognition at boot up.

After some tries, I connected via ssh trough eth0, and got some info:

 

1 - if I try to recognize the network interfaces, I get:

root@192.168.0.200:/opt/ppmac# ifconfig -a

eth0 Link encap:Ethernet HWaddr a0:22:4e:90:28:d3

inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:469 errors:0 dropped:0 overruns:0 frame:0

TX packets:261 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:49341 (48.1 KiB) TX bytes:31921 (31.1 KiB)

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

 

2 - The hardware itself should be ok, as stated:

root@192.168.0.200:/opt/ppmac# lspci

0000:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 0e0b (rev 20)

0000:01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 09)

0001:00:00.0 PCI bridge: Freescale Semiconductor Inc Device 0e0b (rev 20)

 

3 - if I try to check the boot log (dmesg), it appears some eth1 info:

root@192.168.0.200:/opt/ppmac# dmesg | grep r816

[ 28.978556] r8169 Gigabit Ethernet driver 2.3LK-NAPI loaded

[ 29.016254] r8169 0000:01:00.0 eth1: RTL8168f/8111f at 0xcf97e000, a0:22:4e:90:28:d4, XID 08000800 IRQ 63

[ 29.024564] r8169 0000:01:00.0 eth1: jumbo features [frames: 9200 bytes, tx checksumming: ko]

 

(check that the lines ifup / ifdown eth1 wont appear)

 

4- The lsmod command doesn't show the r8168 nor r8169 drivers loaded.

 

5 - If I try to insmod the r8169 (same as other DeltaTaus), got from /opt/etherlab/lib/ folder, it is not possible, indicating:

r8169: Unknown symbol release_firmware (err 0)

 

6 - If I try to insmod r8168 from same folder OR from default /lib/ folder:

root@192.168.0.200:/opt/ppmac# insmod /lib/modules/4.1.18-ipipe/kernel/drivers/net/ethernet/realtek/r8168.ko

 

Then, the eth1 interface comes up:

root@192.168.0.200:/opt/ppmac# ifconfig -a

eth0 Link encap:Ethernet HWaddr a0:22:4e:90:28:d3

inet addr:192.168.0.200 Bcast:192.168.0.255 Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

RX packets:757 errors:0 dropped:0 overruns:0 frame:0

TX packets:439 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:77659 (75.8 KiB) TX bytes:52885 (51.6 KiB)

 

eth1 Link encap:Ethernet HWaddr a0:22:4e:90:28:d4

BROADCAST MULTICAST MTU:1500 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:1000

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Interrupt:63 Base address:0xe000

 

lo Link encap:Local Loopback

inet addr:127.0.0.1 Mask:255.0.0.0

UP LOOPBACK RUNNING MTU:65536 Metric:1

RX packets:0 errors:0 dropped:0 overruns:0 frame:0

TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

collisions:0 txqueuelen:0

RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

 

Altough I have to "/etc/init.d/networking restart" to make the interface connect. Also, I was not able to make it work at boot.

 

Could you help me on this matter?

Link to comment
Share on other sites

  • Replies 10
  • Created
  • Last Reply

Top Posters In This Topic

1 - Yes, the PMAC have two phisical ethernet ports. Eth0 works fine, which I am using for ssh debugging. Eth1 is the one which is only started after manually including r8168 mod.

 

2- No, it hasn´t ethercat.

 

3- more /opt/etc/network/interfaces output :

 

iface lo inet loopback

 

iface eth0 inet static

address 192.168.0.200

netmask 255.255.255.0

 

iface eth1 inet dhcp

 

auto lo

auto eth0

auto eth1

Link to comment
Share on other sites

The IP addresses which intenal DHCP server provides here is NOT the mentioned one, it is inside 10.** range. I agree that the eth0 and eth1 should work independently (as it is in other deltatau we have here in our installation), but in some of the dualCore ARM deltatau we just acquired, they are not.
Link to comment
Share on other sites

I believe the difference between the CPUs is what firmware they are shipped with. Starting at firmware 2.5 or 2.6 we require that Sys.EcatType=2 for a second ethernet port. Otherwise the firmware will try to set that port up for EtherCAT (which won't work without a license). This change was to make it easier to switch between EtherCAT and a second ethernet port.

 

Normally Sys.EcatType is write protected. To change it issue the following commands. The last command will reboot PMAC so the changes can take affect.

system mount -o remount,rw /opt/
system sed -i 's/EcatType=1/EcatType=2/g' /opt/ppmac/usrflash/Project/Configuration/pp_proj.ini
system sed -i 's/EcatType=1/EcatType=2/g' /opt/ppmac/usrflash/Project/Configuration/pp_default.ini
system mount -o remount,ro /opt/
reboot

 

PMAC will now maintain the setting through $$$***.

Link to comment
Share on other sites

I just tested the commands and it worked, Eric. Thanks for your help.

 

Just a quick question to finish this thread: to have the ethercat running, is it just a matter of license then? or it is needed a hardware modification in the DeltaTaus?

Link to comment
Share on other sites

Starting at firmware 2.5 or 2.6 we require

This requirement starts with firmware 2.5.4.0.

 

to have the ethercat running, is it just a matter of license then? or it is needed a hardware modification in the DeltaTaus?

You need a license (it's an option in the part number) and you need Sys.EcatType=1 (or 0 for EtherLab).

To change Sys.EcatType to 1, issue the following commands.

system mount -o remount,rw /opt/
system sed -i 's/EcatType=2/EcatType=1/g' /opt/ppmac/usrflash/Project/Configuration/pp_proj.ini
system sed -i 's/EcatType=2/EcatType=1/g' /opt/ppmac/usrflash/Project/Configuration/pp_default.ini
system mount -o remount,ro /opt/
reboot

Link to comment
Share on other sites

To add on quickly, there actually are two licenses--one software (which has the potential to be corrupted or lost during device imaging) and also a hardware license. As such, adding EtherCAT does still require sending the unit to the factory, as the hardware license must be programmed in person using special hardware and software.
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.

×
×
  • Create New...