User manual

U-Boot for MPL SBC
User Manual
2003 by MPL AG
31
MEH-10082-002 Rev. D
High-Tech • Made in Switzerland
3.5.3 Console assignment
The default console is the RS232 interface. On some boards alternatively in/output devices can be used, for example:
PIP405:
Onboard keyboard controller
USB keyboard
Onboard VGA
MIP405:
USB keyboard
PC/104-Plus VGA card (currently only ct69000 boards)
VCMA9:
Onboard LCD controller (not yet implemented)
USB keyboard (not yet implemented)
3.5.3.1 Assign alternate console
First connect the In/Output devices on your board and start-up. If using a USB keyboard start the USB sub-system:
=> usb start
(Re)start USB...
USB: scanning bus for devices... 4 USB Devices found
=>
With the coninfo command you can see all Input/Output Devices:
=> coninfo
List of available devices:
vga 80000002 S.O
serial 80000003 SIO stdin stdout stderr
kbd 80000001 SI.
usbkbd 80000001 SI.
=>
To assign another device to the console, you have to set environment variables:
=> setenv stdin kbd
=> saveenv
Saving Environment to EEPROM...
=> coninfo
List of available devices:
vga 80000002 S.O
serial 80000003 SIO stdout stderr
kbd 80000001 SI. stdin
usbkbd 80000001 SI.
=>
Note: The new assignment takes place immediately. So in the example above you have to enter
the saveenv and coninfo command on the connected keyboard instead on the terminal.
Since the environment variables are saved, the next time the board starts-up, the devices are still assigned. In case a
device is not found on start-up, the U-Boot switches automatically back to the default console assignment (that is serial
line).
If you want to switch back to the default console without setting the environment variables, a DIP switch exists where you
can “over write” the settings. Please refer your board documentation for information over this feature.