nxp-archive / openil_linuxptp

PTP IEEE 1588 stack for Linux
GNU General Public License v2.0
136 stars 60 forks source link

Ptp compilation #7

Open liu-jeff opened 4 years ago

liu-jeff commented 4 years ago

After modifying the ptp code, how to compile ptp into the kernel, and then compile the kernel embedded in ptp into openil?

vladimiroltean commented 4 years ago

Please explain what you are trying to do.

liu-jeff commented 4 years ago

Please explain what you are trying to do. First of all, thank you very much for your reply, I want to know After I modified the ptp code, how do I make the ptp compiled by Openil my modified ptp?

vladimiroltean commented 4 years ago

Where have you modified the source code? Did you clone openil/linuxptp into a separate git folder, or did you edit in the output/build/ptp4l folder of the OpenIL Buildroot tree?

liu-jeff commented 4 years ago

Where have you modified the source code? Did you clone openil/linuxptp into a separate git folder, or did you edit in the output/build/ptp4l folder of the OpenIL Buildroot tree?

I am modifying it in a separate linuxptp

vladimiroltean commented 4 years ago

And what happens if you go to the openil root directory, then run these commands?

export PTP4L_OVERRIDE_SRCDIR=/path/to/linuxptp
rm -rf output/build/ptp4l*
make ptp4l
scp output/target/usr/sbin/ptp4l root@<board-ip>:/usr/sbin
liu-jeff commented 4 years ago

And what happens if you go to the openil root directory, then run these commands?

export PTP4L_OVERRIDE_SRCDIR=/path/to/linuxptp
rm -rf output/build/ptp4l*
make ptp4l
scp output/target/usr/sbin/ptp4l root@<board-ip>:/usr/sbin

when makeing ,it shows ptp4l custom Syncing from source dir /path/to/linuxptp!it is ok?

liu-jeff commented 4 years ago

And what happens if you go to the openil root directory, then run these commands?

export PTP4L_OVERRIDE_SRCDIR=/path/to/linuxptp
rm -rf output/build/ptp4l*
make ptp4l
scp output/target/usr/sbin/ptp4l root@<board-ip>:/usr/sbin

I follow the steps, but there is no ptp4l in output/target/usr/sbin/。 I try export PTP4L_OVERRIDE_SRCDIR=/path/to/linuxptp rm -rf output/build/ptp4l* make ptp4l-rebuild make Then put sdcard.img into the development board again, is this OK?