build_testptp_debian
This is an old revision of the document!
Build ''testptp'' on Debian
Applies to Debian-based distros too.
- Install build-essential and kernel source
sudo apt install linux-source build-essential
- Decompress kernel source
cd /usr/src ; sudo tar -xf linux-source-5.10.tar.xz ; cd /usr/src/linux-source-5.10/tools/testing/selftests/ptp
- Build!
gcc -static testptp.c -o testptp
- Optional - install
mv testptp /usr/bin/.
- Test!
sudo testptp /dev/ptp0 -c
build_testptp_debian.1678289586.txt.gz ยท Last modified: 2024/11/14 02:30 (external edit)