Operating the Unit
64
AM4904 User Guide
www.kontron.com
3.4.6 Configuring sRIO
This section is only valid for the serial RapidIO fabric.
The sRIO infrastructure can be configured using the file “
/opt/kontron/lib/variant-4.cfg”
The following listing shows the default “variant-4.cfg” file:
srio_activate=1
# enable INPUT/OUTPUT pins on 0x40
srio_init_early.0=i2c write 5 0x40 6 0xDD
# Enable I2C loading on SW1 and SW2
srio_init_early.1=i2c write 5 0x40 2 0x00
# enable OUTPUT pins on 0x42
srio_init_early.2=i2c write 5 0x42 6 0x01
srio_init_early.3=i2c write 5 0x42 7 0x01
# configure all ports for x4 SRIO mode
srio_init_early.4=i2c write 5 0x42 2 0x00
srio_init_early.5=i2c write 5 0x42 3 0x00
# enable OUTPUT pins on 0x44
srio_init_early.6=i2c write 5 0x44 6 0x03
srio_init_early.7=i2c write 5 0x44 7 0x00
# enable OUTPUT pins on 0x46
srio_init_early.8=i2c write 5 0x46 6 0x03
srio_init_early.9=i2c write 5 0x46 7 0x00
# disable POWERDOWN mode on all ports
srio_init_early.10=i2c write 5 0x44 2 0x00
srio_init_early.11=i2c write 5 0x44 3 0x00
srio_init_early.12=i2c write 5 0x46 2 0x00
srio_init_early.13=i2c write 5 0x46 3 0x00
#
The CM reads the config file on startup. It will first load factory default configurations from /opt/kontron/
lib/variant-4.cfg. Then it will load configuration settings from /etc/cm.cfg (not present by default).
Settings in files loaded later take precedence over settings in files that are loaded earlier.
The following table shows possible settings
Table 3-27: SRIO Settings
Setting
Default
Description
srio_powerdown_default 1
0 = sRIO power down mode is done through e-keying
1 = ports are enabled by default
2 = ports are disabled by default
srio_powerdown_port.X 0
0 = port X is in the same mode as srio_powerdown_default
1 = port X is enabled
2 = port X is disabled
srio_init_early.N
n/a
SRIO initialization sequence executed before T3 is taken out of reset.
There are a number of I2C initialization sequences executed during
startup and before the sRIO T3 is taken out of reset.
srio_init_early.N contains CLI commands to be executed during initial-
ization. This can be mainly the I2C commands.
Содержание AM4904
Страница 19: ...1KTC5520 EATX Chapter 1 Introduction www kontron com...
Страница 24: ...6KTC5520 EATX Chapter 2 Functional Description www kontron com...
Страница 65: ...47KTC5520 EATX Chapter 3 Operating the Unit www kontron com...
Страница 104: ...85KTC5520 EATX Chapter 4 Hardware Installation www kontron com...
Страница 109: ...90KTC5520 EATX Chapter 5 Power Considerations www kontron com...
Страница 113: ...Chapter 6 Thermal Considerations www kontron com...
Страница 121: ...1 Appendix A CM Configuration Options www kontron com...
Страница 128: ...1 Appendix B Getting Help www kontron com...
Страница 131: ...1KTC5520 EATX Appendix C Glossary www kontron com...