Ptp compilation
liu-jeff opened this issue · comments
After modifying the ptp code, how to compile ptp into the kernel, and then compile the kernel embedded in ptp into openil?
Please explain what you are trying to do.
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?
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?
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
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
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?
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?