[T1040RDB] l2sw_bin -> Failed to open /dev/l2sw_phy

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[T1040RDB] l2sw_bin -> Failed to open /dev/l2sw_phy

907 Views
nicolaskury
Contributor II

Hi

I have a T1040RDB with image-core sdk 1.8.  I can run l2sw_bin, it works but I see some errors.  Why ? Is it important ?

root@t1040rdb:~# l2sw_bin

Using UIO: /dev/uio16

Mapped register memory @ 0x3fff9da00000

Chipid: 099530e9

Failed to open /dev/l2sw_phy_0 on port 0: No such file or directory

Failed to open /dev/l2sw_phy_1 on port 1: No such file or directory

Failed to open /dev/l2sw_phy_2 on port 2: No such file or directory

Failed to open /dev/l2sw_phy_3 on port 3: No such file or directory

Failed to open /dev/l2sw_phy_4 on port 4: No such file or directory

Failed to open /dev/l2sw_phy_5 on port 5: No such file or directory

Failed to open /dev/l2sw_phy_6 on port 6: No such file or directory

Failed to open /dev/l2sw_phy_7 on port 7: No such file or directory

l2switch>

I have noticed these logs when I start Linux :

phy_0: Failed to get irq number - 0

phy_1: Failed to get irq number - 0phy_2: Failed to get irq number - 0

phy_3: Failed to get irq number - 0phy_4: Failed to get irq number - 0

phy_5: Failed to get irq number - 0phy_6: Failed to get irq number - 0

phy_7: Failed to get irq number - 0S

Note: when I launch the board with the default image image-core sdk 1.7, I don't have these errors.

Thank you

Labels (1)
0 Kudos
3 Replies

647 Views
bpe
NXP Employee
NXP Employee

The UIO switch driver seems to be missing. Userspace switch control software uses it to access the switch registers. Make sure uio-seville kernel module

is built and installed. Refer to SDK 1.8 User's Manual, Section 8.3.1.2


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

647 Views
nicolaskury
Contributor II

Hi

the module was already running. When I stoped and run it again, I've got:

root@t1040rdb:~# insmod /lib/modules//3.12.37-rt51-QorIQ-SDK-V1.8+gf488de6/extra/uio_seville.ko

seville ffe800000.l2switch: Found Seville Switch, UIO device - IRQ 26, id 0x099530e9.

seville MAC address not found

phy_0: Failed to get irq number - 0

phy_1: Failed to get irq number - 0phy_2: Failed to get irq number - 0

phy_3: Failed to get irq number - 0phy_4: Failed to get irq number - 0

phy_5: Failed to get irq number - 0phy_6: Failed to get irq number - 0

phy_7: Failed to get irq number - 0root@t1040rdb:~#

0 Kudos

647 Views
nicolaskury
Contributor II

Hi. Thank you! I will check that soon.

0 Kudos