Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trying to build for MV88E2010/TN9710Q but I get error MV88E2010_phy.h: No such file or directory #58

Open
ZacWolf opened this issue Apr 18, 2023 · 1 comment

Comments

@ZacWolf
Copy link

ZacWolf commented Apr 18, 2023

I'm trying to build the driver for support of MV88E2010/TN9710Q

make  MV88E2010=YES
make -C /lib/modules/5.10.0-21-amd64/build M=/home/router/tehuti2 clean
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-21-amd64'
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-21-amd64'
Building kernel 5.10.0-21-amd64 resume supported
make -C /lib/modules/5.10.0-21-amd64/build M=/home/router/tehuti2 modules
make[1]: Entering directory '/usr/src/linux-headers-5.10.0-21-amd64'
  CC [M]  /home/router/tehuti2/tn40.o
  CC [M]  /home/router/tehuti2/CX4.o
  CC [M]  /home/router/tehuti2/CX4_Linux.o
  CC [M]  /home/router/tehuti2/MV88X3310_phy.o
/home/router/tehuti2/MV88X3310_phy.c:6:10: fatal error: MV88E2010_phy.h: No such file or directory
    6 | #include "MV88E2010_phy.h"
      |          ^~~~~~~~~~~~~~~~~
compilation terminated.
make[3]: *** [/usr/src/linux-headers-5.10.0-21-common/scripts/Makefile.build:291: /home/router/tehuti2/MV88X3310_phy.o] Error 1
make[2]: *** [/usr/src/linux-headers-5.10.0-21-common/Makefile:1861: /home/router/tehuti2] Error 2
make[1]: *** [/usr/src/linux-headers-5.10.0-21-common/Makefile:185: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.10.0-21-amd64'
make: *** [Makefile:147: all] Error 2

I have searched everywhere for a MV88E2010_phy.h file, and it's nowhere; not even in the original vendor source. Am I SoL on trying to build a Linux driver for the TN9710Q card?

THANKS!
-Zac

@maskhero0308
Copy link

Please uses below instruction to install xxd module, the mvidtoh.sh needs the xxd to translate the hdr and generate MV88xxxx_phy.h file:
apt install xxd

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants