Howto Hide the Dynmips Enviroment
Example: change Temperature on C7200
dev_c7200_iofpga.c
.
/* 4 temperature sensors in a C7200 */
#define C7200_TEMP_SENSORS 4
#define C7200_DEFAULT_TEMP 22 /* default temperature: 22°C */
.
change to :
.
/* 4 temperature sensors in a C7200 */
#define C7200_TEMP_SENSORS 4
#define C7200_DEFAULT_TEMP 25 /* changed default temperature: 22°C to 25°C */
.
Example: change Maschine ID on C7200 with NPE-300
Old Machine ID: 4294967295 -> 0xffff 0xffff
dev_c7200.c
/* NPE-300 */
static m_uint16_t eeprom_cpu_npe300_data[16] = {
0x01AE, 0x0402, 0xffff, 0xffff, 0x490D, 0x5108, 0x0000, 0x0000,
0x5000, 0x0000, 0x0012, 0x1000, 0x0000, 0xFFFF, 0xFFFF, 0xFF00,
};
New Machine ID: 2711724449 -> 0xa1a1 0xa1a1
/* NPE-300 */
static m_uint16_t eeprom_cpu_npe300_data[16] = {
0x01AE, 0x0402, 0xa1a1, 0xa1a1, 0x490D, 0x5108, 0x0000, 0x0000,
0x5000, 0x0000, 0x0012, 0x1000, 0x0000, 0xFFFF, 0xFFFF, 0xFF00,
};
Important:
after any change in the sourcecode, you must rebuild and restart dynamips !