|
This page contains a few small tips which may come in useful, and which don't really fit in anywhere else. Most of them relate to post install configuraton which you may want to do. CTRL-C on default consoleOne of the problems you may find is that CTRL-C doesn't work when using a serial console. This is because by default the console is started using the device /dev/console, and attempting to set the process group of this device always fails. The easiest way to overcome this is to edit /etc/inittab and search for lines which contain /sbin/getty. Comment out the line which starts getty on /dev/console, and add a new line:
replace ttySC0 with the appropriate serial device, and follow this by the baud rate and default terminal type (which is what the TERM environment variable will be set to). BusyBoxBusyBox version of init can run quite happily without an /etc/inittab, but in this case it will suffer from the same problem, that the shell will be running on /dev/console. In this case you can perform the same change, which may involve creating a new /etc/inittab if there wasn't one present before. Note that the syntax for /etc/inittab when using the BusyBox version of init is slightly different. So an example /etc/inittab would be:
Here the second line is starting a shell on the specified console, in this case /dev/ttyAS1. Setting the timezoneWhen the system is first installed, the target doesn't know what timezone it is in, so will display all times as UTC. To set the correct timezone, simply put in a symbolic link to the correct timezone file, for example for GB:
Checking the root filesystem at boot time
If your root file system is one which need to be checked (for example
ext2), then a simple change will allow it to be checked
automatically at boot time. In the file
Network name servicesThere are two services you may want to configure for accessing network name services:
HostnameThe hostname can be set in several ways:
Serial ports on the STm8000The STm8000 doesn't use the standard SuperH serial ports (ttySCn), instead it uses the asynchronsous serial controllers (ASC's) which are part of the comms block. These use a different device driver, and so have different device names and major/minor numbers:
Note that these numbers have not been officially recognised, and so may have to change at some point in the future.
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||