Difference between revisions of "Napera Notes"

From Onekopakaspace Wiki
(Created page with "These are some little notes about the Napera switch hardware.. = serial info = USB serial adapter, speak at 115200 baud. This gives you = reset info = <pre> . /etc/profile...")
 
 
Line 3: Line 3:
 
= serial info =
 
= serial info =
 
USB serial adapter, speak at 115200 baud.
 
USB serial adapter, speak at 115200 baud.
This gives you  
+
This gives you root shell w/o password prompt.
 +
 
 +
= hw info =
 +
 
 +
== /proc/cpuinfo ==
 +
<pre>
 +
0001000023:/$ cat /proc/cpuinfo
 +
system type : CN3010_EVB_HS5
 +
processor : 0
 +
cpu model : Cavium Networks Octeon CN30XX V0.0
 +
BogoMIPS : 800.55
 +
wait instruction : yes
 +
microsecond timers : yes
 +
tlb_entries : 32
 +
extra interrupt vector : yes
 +
hardware watchpoint : yes
 +
ASEs implemented :
 +
VCED exceptions : not available
 +
VCEI exceptions : not available
 +
</pre>
  
 
= reset info =
 
= reset info =

Latest revision as of 03:47, 29 March 2021

These are some little notes about the Napera switch hardware..

serial info

USB serial adapter, speak at 115200 baud. This gives you root shell w/o password prompt.

hw info

/proc/cpuinfo

0001000023:/$ cat /proc/cpuinfo 
system type		: CN3010_EVB_HS5
processor		: 0
cpu model		: Cavium Networks Octeon CN30XX V0.0
BogoMIPS		: 800.55
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 32
extra interrupt vector	: yes
hardware watchpoint	: yes
ASEs implemented	:
VCED exceptions		: not available
VCEI exceptions		: not available

reset info

. /etc/profile
factory_reset.sh

OS info

dmesg

Output from dmesg, before trying reset.

0001000023:/$ dmesg
Linux version 2.6.16.26-Cavium-Octeon (builds@clyde) (gcc version 4.1.1 (Cavium Networks Version: 1_5_0, build 14)) #1 SMP Mon Jan 12 04:10:47 PST 2009
Cavium Networks Version: 1.5.0, build 187
CVMSEG size: 2 cache lines (256 bytes)
Setting flash physical map for 128MB flash at 0x17c00000
CPU revision is: 000d0200
Determined physical RAM map:
 memory: 0000000000c00000 @ 0000000000110000 (usable)
 memory: 000000000e800000 @ 0000000001710000 (usable)
 memory: 0000000010000000 @ 0000000410000000 (usable)
On node 0 totalpages: 4325376
  DMA zone: 32768 pages, LIFO batch:7
  DMA32 zone: 0 pages, LIFO batch:0
  Normal zone: 4292608 pages, LIFO batch:31
  HighMem zone: 0 pages, LIFO batch:0
Built 1 zonelists
Kernel command line: console=ttyS1,115200 mtdparts=phys_mapped_flash:384K(uboot)ro,25600K(failsafe)ro,7168K(kernel),72192K(root),25600K(user),128K(env)ro root=/dev/mtdblock3 rootfstype=jffs2 init=/etc/preinit noinitrd
Primary instruction cache 16kB, virtually tagged, 2 way, 64 sets, linesize 128 bytes.
Primary data cache 8kB, 64-way, 1 sets, linesize 128 bytes.
Synthesized TLB refill handler (52 instructions).
Synthesized TLB load handler fastpath (73 instructions).
Synthesized TLB store handler fastpath (73 instructions).
Synthesized TLB modify handler fastpath (71 instructions).
PID hash table entries: 4096 (order: 12, 131072 bytes)
Using 400.000 MHz high precision timer.
Console: colour dummy device 80x25
Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes)
Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes)
Memory: 442416k/512000k available (4206k kernel code, 69356k reserved, 1431k data, 248k init, 0k highmem)
Calibrating delay using timer specific routine.. 800.55 BogoMIPS (lpj=400279)
Mount-cache hash table entries: 256
Checking for 'wait' instruction...  available.
Checking for the multiply/shift bug... no.
Checking for the daddi bug... no.
Checking for the daddiu bug... no.
Brought up 1 CPUs
migration_cost=0
NET: Registered protocol family 16
Not in host mode, PCI Controller not initialized
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
/proc/octeon_perf: Octeon performace counter interface loaded
Total HugeTLB memory allocated, 0
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
Initializing Cryptographic API
io scheduler noop registered
io scheduler cfq registered (default)
Generic RTC Driver v1.07
[drm] Initialized drm 1.0.1 20051102
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing enabled
RAMDISK driver initialized: 1 RAM disks of 500000K size 1024 blocksize
loop: loaded (max 8 devices)
Intel(R) PRO/1000 Network Driver - version 6.3.9-k4-NAPI
Copyright (c) 1999-2005 Intel Corporation.
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <[email protected]>
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
libata version 1.20 loaded.
Fusion MPT base driver 3.03.07
Copyright (c) 1999-2005 LSI Logic Corporation
Fusion MPT SAS Host driver 3.03.07
physmap flash device: 8000000 at 17c00000
phys_mapped_flash: Found 1 x16 devices at 0x0 in 16-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
phys_mapped_flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
6 cmdlinepart partitions found on MTD device phys_mapped_flash
Creating 6 MTD partitions on "phys_mapped_flash":
0x00000000-0x00060000 : "uboot"
0x00060000-0x01960000 : "failsafe"
0x01960000-0x02060000 : "kernel"
0x02060000-0x066e0000 : "root"
0x066e0000-0x07fe0000 : "user"
0x07fe0000-0x08000000 : "env"
usbmon: debugfs is not available
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (PCI)
USB Universal Host Controller Interface driver v2.3
dwc_otg: version 2.40a 10-APR-2006
DWC_otg: Using DMA mode
dwc_otg dwc_otg: DWC OTG Controller
dwc_otg dwc_otg: new USB bus registered, assigned bus number 1
dwc_otg dwc_otg: irq 64, io mem 0x00000000
DWC_otg: Init: Port Power? op_state=1
DWC_otg: Init: Power Port (0)
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
Initializing USB Mass Storage driver...
usb 1-1: new full speed USB device using dwc_otg and address 2
usb 1-1: configuration #1 chosen from 1 choice
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usbcore: registered new driver usbhid
drivers/usb/input/hid-core.c: v2.6:USB HID core driver
usbcore: registered new driver usbserial
drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
usbcore: registered new driver usbserial_generic
drivers/usb/serial/usb-serial.c: USB Serial Driver core
drivers/usb/serial/usb-serial.c: USB Serial support registered for Belkin / Peracom / GoHubs USB Serial Adapter
usbcore: registered new driver belkin
drivers/usb/serial/belkin_sa.c: USB Belkin Serial converter driver v1.2
drivers/usb/serial/usb-serial.c: USB Serial support registered for cp2101
usbcore: registered new driver cp2101
drivers/usb/serial/cp2101.c: Silicon Labs CP2101/CP2102 RS232 serial adaptor driver v0.06
drivers/usb/serial/usb-serial.c: USB Serial support registered for Reiner SCT Cyberjack USB card reader
usbcore: registered new driver cyberjack
drivers/usb/serial/cyberjack.c: v1.01 Matthias Bruestle
drivers/usb/serial/cyberjack.c: REINER SCT cyberJack pinpad/e-com USB Chipcard Reader Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for DeLorme Earthmate USB
drivers/usb/serial/usb-serial.c: USB Serial support registered for HID->COM RS232 Adapter
usbcore: registered new driver cypress
drivers/usb/serial/cypress_m8.c: Cypress USB to Serial Driver v1.09
drivers/usb/serial/usb-serial.c: USB Serial support registered for Digi 2 port USB adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for Digi 4 port USB adapter
usbcore: registered new driver digi_acceleport
drivers/usb/serial/digi_acceleport.c: v1.80.1.2:Digi AccelePort USB-2/USB-4 Serial Converter driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport 2 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport 4 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport 8 port adapter
usbcore: registered new driver io_edgeport
drivers/usb/serial/io_edgeport.c: Edgeport USB Serial Driver v2.7
drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport TI 1 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for Edgeport TI 2 port adapter
usbcore: registered new driver io_ti
drivers/usb/serial/io_ti.c: Edgeport USB Serial Driver v0.7
drivers/usb/serial/usb-serial.c: USB Serial support registered for empeg
usbcore: registered new driver empeg
drivers/usb/serial/empeg.c: v1.2:USB Empeg Mark I/II Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for FTDI USB Serial Device
usbcore: registered new driver ftdi_sio
drivers/usb/serial/ftdi_sio.c: v1.4.3:USB FTDI Serial Converters Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for Garmin GPS usb/tty
usbcore: registered new driver garmin_gps
drivers/usb/serial/garmin_gps.c: garmin gps driver v0.23
drivers/usb/serial/usb-serial.c: USB Serial support registered for hp4X
usbcore: registered new driver hp4X
drivers/usb/serial/hp4x.c: HP4x (48/49) Generic Serial driver v1.00
drivers/usb/serial/usb-serial.c: USB Serial support registered for PocketPC PDA
drivers/usb/serial/ipaq.c: USB PocketPC PDA driver v0.5
usbcore: registered new driver ipaq
drivers/usb/serial/usb-serial.c: USB Serial support registered for IPWireless converter
usbcore: registered new driver ipwtty
drivers/usb/serial/ipw.c: IPWireless tty driver v0.3
drivers/usb/serial/usb-serial.c: USB Serial support registered for IR Dongle
usbcore: registered new driver ir-usb
drivers/usb/serial/ir-usb.c: USB IR Dongle driver v0.4
drivers/usb/serial/usb-serial.c: USB Serial support registered for Keyspan - (without firmware)
drivers/usb/serial/usb-serial.c: USB Serial support registered for Keyspan 1 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for Keyspan 2 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for Keyspan 4 port adapter
usbcore: registered new driver keyspan
drivers/usb/serial/keyspan.c: v1.1.4:Keyspan USB to Serial Converter Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for Keyspan PDA
drivers/usb/serial/usb-serial.c: USB Serial support registered for Keyspan PDA - (prerenumeration)
drivers/usb/serial/usb-serial.c: USB Serial support registered for Xircom / Entregra PGS - (prerenumeration)
usbcore: registered new driver keyspan_pda
drivers/usb/serial/keyspan_pda.c: USB Keyspan PDA Converter driver v1.1
drivers/usb/serial/usb-serial.c: USB Serial support registered for KL5KUSB105D / PalmConnect
usbcore: registered new driver kl5kusb105d
drivers/usb/serial/kl5kusb105.c: KLSI KL5KUSB105 chipset USB->Serial Converter driver v0.3a
drivers/usb/serial/usb-serial.c: USB Serial support registered for KOBIL USB smart card terminal
usbcore: registered new driver kobil
drivers/usb/serial/kobil_sct.c: 21/05/2004 KOBIL Systems GmbH - http://www.kobil.com
drivers/usb/serial/kobil_sct.c: KOBIL USB Smart Card Terminal Driver (experimental)
drivers/usb/serial/usb-serial.c: USB Serial support registered for MCT U232
usbcore: registered new driver mct_u232
drivers/usb/serial/mct_u232.c: Magic Control Technology USB-RS232 converter driver z2.0
drivers/usb/serial/usb-serial.c: USB Serial support registered for ZyXEL - omni.net lcd plus usb
usbcore: registered new driver omninet
drivers/usb/serial/omninet.c: v1.1:USB ZyXEL omni.net LCD PLUS Driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
pl2303 1-1:1.0: pl2303 converter detected
usb 1-1: pl2303 converter now attached to ttyUSB0
usbcore: registered new driver pl2303
drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
drivers/usb/serial/safe_serial.c: v0.0b [email protected], [email protected]
drivers/usb/serial/safe_serial.c: USB Safe Encapsulated Serial
drivers/usb/serial/safe_serial.c: vendor: 0 product: 0 safe: 1 padded: 0

drivers/usb/serial/usb-serial.c: USB Serial support registered for safe_serial
usbcore: registered new driver safe_serial
drivers/usb/serial/usb-serial.c: USB Serial support registered for TI USB 3410 1 port adapter
drivers/usb/serial/usb-serial.c: USB Serial support registered for TI USB 5052 2 port adapter
usbcore: registered new driver ti_usb_3410_5052
drivers/usb/serial/ti_usb_3410_5052.c: TI USB 3410/5052 Serial Driver v0.9
drivers/usb/serial/usb-serial.c: USB Serial support registered for Handspring Visor / Palm OS
drivers/usb/serial/usb-serial.c: USB Serial support registered for Sony Clie 3.5
drivers/usb/serial/usb-serial.c: USB Serial support registered for Sony Clie 5.0
usbcore: registered new driver visor
drivers/usb/serial/visor.c: USB HandSpring Visor / Palm OS driver
drivers/usb/serial/usb-serial.c: USB Serial support registered for Connect Tech - WhiteHEAT - (prerenumeration)
drivers/usb/serial/usb-serial.c: USB Serial support registered for Connect Tech - WhiteHEAT
usbcore: registered new driver whiteheat
drivers/usb/serial/whiteheat.c: USB ConnectTech WhiteHEAT driver v2.0
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
oprofile: using mips/octeon performance monitoring.
NET: Registered protocol family 2
IP route cache hash table entries: 524288 (order: 10, 4194304 bytes)
TCP established hash table entries: 262144 (order: 10, 4194304 bytes)
TCP bind hash table entries: 65536 (order: 8, 1048576 bytes)
TCP: Hash tables configured (established 262144 bind 65536)
TCP reno registered
ip_conntrack version 2.4 (8192 buckets, 65536 max) - 312 bytes per conntrack
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
Bridge firewalling registered
serial8250: ttyS0 at MMIO 0x1180000000800 (irq = 42) is a 16550A
serial8250: ttyS1 at MMIO 0x1180000000c00 (irq = 43) is a 16550A
cf: Octeon bootbus compact flash driver version 1.0
cf: Compact flash interface not present.
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing unused kernel memory: 248k freed
Warning: unable to open an initial console.
ipt_recent v0.3.1: Stephen Frost <[email protected]>.  http://snowman.net/projects/ipt_recent/
ip_conntrack_pptp version 3.1 loaded
ip_nat_pptp version 3.0 loaded
altus_ethernet: module license 'Proprietary' taints kernel.
Octeon ethernet driver version: 1.5.0, build 187, altus rev 6677
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
Octeon Ethernet: Fixing IPD pointer alignment...packet size is 4916 bytes
vstax: received device register for eth0
device eth0 entered promiscuous mode
vstax: Initialized on eth0 listening for protocol 0x8880
vstax: vstax module loaded
Octeon Utility Device Driver loaded.

lsmod

0001000023:/$ lsmod
Module                  Size  Used by    Tainted: P  
octeon_dev              6784  0 
vstax                  22832  1 
altus_ethernet         46288  0 
ipt_ULOG               11408  0 
ip_queue               14256  0 
ip_nat_pptp             7440  0 
ip_conntrack_pptp      12096  1 ip_nat_pptp
ip_conntrack_amanda     6304  0 
ip_conntrack_tftp       5824  0 
ip_nat_irc              4608  0 
ip_conntrack_irc        8384  1 ip_nat_irc
ip_nat_ftp              5632  0 
ip_conntrack_ftp        9280  1 ip_nat_ftp
ipt_esp                 3968  0 
ipt_ah                  3968  0 
ipt_TTL                 4608  0 
ipt_ttl                 3840  0 
ipt_TOS                 4480  0 
ipt_tos                 3456  0 
ipt_TCPMSS              6400  0 
xt_tcpmss               4736  0 
xt_MARK                 4992  0 
xt_mark                 3968  0 
xt_mac                  4096  0 
xt_length               3840  0 
ipt_ECN                 5504  0 
ipt_ecn                 4224  0 
ipt_DSCP                4480  0 
ipt_dscp                3584  0 
xt_CLASSIFY             4352  0 
xt_NOTRACK              4224  0 
iptable_raw             3840  0 
xt_string               4224  0 
ipt_recent             15008  0 
xt_pkttype              3712  0 
ipt_owner               4096  0 
ipt_multiport           4480  0 
ipt_LOG                10640  0 
xt_connbytes            4480  0 
xt_helper               4352  0 
xt_conntrack            4352  0 
xt_CONNMARK             4608  0 
xt_connmark             4096  0 

some network info

pre-reset

had a pde0 (point to point??) interface using 198.18.0.251/24. Tried to reach 64.81.6.226 Tried to use 1.2.3.2/24 on eth1.. Management interface. Started at half duplex 10M.. but capable of 1G. eth0 was set to 9012 MTU.