Home»Projects »Linux for Cisco 2500 routers»Verify i/o memory remapping

Verify i/o memory remapping

From the ios prompt, type 'sh mem 0x400000'. If the result is all X's, iomem has not been remapped.

As an example, this is a box with 16mb of ram, 2 mb soldered-on:

Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-I-L), Version 12.0(9), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Mon 24-Jan-00 21:19 by bettyl
Image text-base: 0x0302F300, data-base: 0x00001000

 

cisco 2500 (68030) processor (revision D) with 16384K/2048K bytes of memory.
Processor board ID 02085518, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read ONLY)

 

Press RETURN to get started!

 

Router#sh mem 0x4000000
04000000: AB1234CD FFFFFFFE 00000000 0317BFFA  +.4M...~......?z
04000010: 0317C32C 04000130 00027D34 80000084  ..C,...0..}4....
04000020: 00000001 0004DD3C AFACEFAD 00000000  ......]</,o-....
04000030: 00000000 00000000 00000000 00000000  ................
04000040: 00000000 00000000 00000000 00000000  ................
04000050: 00000000 00000000 00000000 00000000  ................
04000060: 00000000 00000000 00000000 00000000  ................

iomem has been remapped and the ethernet runs fine. This is the same box with 4 mb of ram, 2 mb soldered-on:
cisco 2500 (68030) processor (revision D) with 4096K/2048K bytes of memory.
Processor board ID 02085518, with hardware revision 00000000
Bridging software.
X.25 software, Version 3.0.0.
Basic Rate ISDN software, Version 1.1.
1 Ethernet/IEEE 802.3 interface(s)
2 Serial network interface(s)
1 ISDN Basic Rate interface(s)
32K bytes of non-volatile configuration memory.
8192K bytes of processor board System flash (Read ONLY)

 

Press RETURN to get started!


...
00:00:33: %SYS-5-RESTART: System restarted --
Cisco Internetwork Operating System Software
IOS (tm) 2500 Software (C2500-I-L), Version 12.0(9), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2000 by cisco Systems, Inc.
Compiled Mon 24-Jan-00 21:19 by bettyl
00:00:34: %LINEPROTO-5-UPDOWN: Line protocol on Interface BRI0, changed state tn
00:00:34: %LINEPROTO-5-UPDOWN: Line protocol on Interface Ethernet0, changed stn
00:00:34: %LINEPROTO-5-sh UPDOWN: Line protocol on Interface Serial0, changed sn
00:00:34: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1, changed statn
Router>ena
Router#sh mem 0x4000000
04000000: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000010: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000020: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000030: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000040: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000050: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000060: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000070: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX
04000080: XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX  XXXXXXXXXXXXXXXX

 

 

Back to uClinux-cisco2500