Intel I/O Processor manual Initial Debian System Configuration, Maintaining System Time With Rdate

Page 21

Distributions—Linux - Debian

6.1.2Initial Debian System Configuration

On the first boot of the new Debian installation, the base-config application will be run. This will do more configuration of the system. Please consult the Debian home page for help with this process. I generally skip running the “tasksel” and “dselect” processes until I have tweaked the configuration of my system as discussed next.

When running Linux on any of the IOP HBA-type CRBs (i.e., IQ80321, IQ80331, etc), they will not have a real-time-clock (RTC) on board. As such, they will not retain the time across boots. To address this, we can install either rdate or ntp. A side effect of this is that for every login, there is a prompted to change the password. This is because password aging is enabled be default and the date is wrong, thus confusing the system.

6.1.3Maintaining System Time With Rdate

To enable the IA Linux host as an rdate server, issue the following commands on the server as root:

#/sbin/chkconfig time on

#/sbin/service xinetd restart

Then on the Intel XScale® microarchitecture-Linux target, issue the following commands to download and install the rdate package. This only needs to be done once.

# apt-get install rdate

To manually update the time on the target:

# rdate 192.168.0.1

Add the following to the '/etc/rc.local' or create it when it does not exist:

rdate -s 192.168.0.1

and ensure that it is executable and is called on each boot:

#chmod 755 /etc/rc.local

#cd /etc/rc2.d; ln -s ../rc.local ./S99local

#cd /etc/rc3.d; ln -s ../rc.local ./S99local

#cd /etc/rc4.d; ln -s ../rc.local ./S99local

#cd /etc/rc5.d; ln -s ../rc.local ./S99local

Linux-Debian Installation Guide

Intel® I/O Processors

June 2005

 

Order Number: 306507001US

21

Image 21
Contents Intel I/O Processors Linux Debian Installation GuideJune Contents Revision History Introduction Host Setup Host Setup-Linux Debian Host Networking Setup Minicom SetupDhcpd Server Setup Tftp Server Setup NFS Server SetupRedBoot Parameter Values for CRBs Target Firmware SetupLinux Debian-Target Firmware Setup Cross Toolchain Kernel Kernel-Linux Debian Linux Debian-Kernel Distributions6 Installing Debian Stable on a NFS Root File System Installing Debian# cd /target/var # tar cvf lib.tar lib # exit Linux Debian-Distributions Maintaining System Time With Rdate Initial Debian System ConfigurationMaintaining System Time With NTP and Ntpdate Upgrading to Debian Testing