ntpdate ported to ARM32 platform

  1. Download ntp-4.2.8p15.tar.gz
  2. tar -xvf ntp-4.2.8p15.tar.gz
  3. implement

    
    ./configure --host=arm-none-linux-gnueabi CC=/opt_WQ/4.9.3/bin/arm-cortexa9-linux-gnueabihf-gcc --with-yielding-select=yes
    

  4. make

  5. Copy the ntdate of the ntpdate folder to the development department /usr/bin

    scp ntpdate [email protected]:/usr/bin

  6. /etc/profile added

    export TZ='cst-8'

    Execute sourec /etc/profile

  7. Add crontab to execute every minute

    crontab -e
    
    * * * * * /usr/bin/ntpdate -u ntp.api.bz 
    * * * * * /sbin/hwclock -w

Guess you like

Origin blog.csdn.net/yhjahjj1314/article/details/126737114