Mellanox SX6012 Help

HowardC

New Member
Apr 26, 2016
5
0
1
47
Hi,
Does anyone work with SX6012 before? I was able to do serial connection to the switch and see the U-BOOT prompt. However, I could not find a mean to either turn on SSH or enter the privilege mode to turn on the management port. The switch was preconfigured with a class B address, when I drop a VM in the same subnet, it could be ping'ed, but no web console access available.

If anyone works with this before, please share your experience. Thanks.
 

Chankster

Member
Mar 9, 2015
67
14
8
If you're sitting at a U-Boot prompt, you'll most likely need to select 1 or 2 to boot the Mellanox image. If its a brand new switch it should then immediately launch the config wizard. Otherwise you can optionally reset ("reset factory") and relaunch the wizard ("configuration jump-start").
 

HowardC

New Member
Apr 26, 2016
5
0
1
47
If you're sitting at a U-Boot prompt, you'll most likely need to select 1 or 2 to boot the Mellanox image. If its a brand new switch it should then immediately launch the config wizard. Otherwise you can optionally reset ("reset factory") and relaunch the wizard ("configuration jump-start").
If there is any license previously installed, would it wipe clean? Is there a way to check what licenses are installed and back them up before doing factory reset? Thanks.
 

Chankster

Member
Mar 9, 2015
67
14
8
Use "reset factory keep-basic" to keep the licenses. Otherwise I believe "show running-config" will include the licenses.
 

HowardC

New Member
Apr 26, 2016
5
0
1
47
It looks like my device is in a much worse situation, here is the information after reboot:
U-Boot 2009.01 SX_PPC_M460EX SX_3.2.0330-82-EMC ppc (Feb 27 2013 - 12:13:42)

CPU: AMCC PowerPC 460EX Rev. B at 1000 MHz (PLB=166, OPB=83, EBC=83 MHz)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52)
Internal PCI arbiter disabled
32 kB I-Cache 32 kB D-Cache
Board: Mellanox PPC460EX Board
FDEF: No
I2C: ready
DRAM: 2 GB (ECC enabled, 333 MHz, CL3)
FLASH: 16 MB
NAND: 1024 MiB
PCI: Bus Dev VenId DevId Class Int
PCIE0: link is not up.
PCIE1: successfully set as root-complex
01 00 15b3 c738 0c06 00
Net: ppc_4xx_eth0, ppc_4xx_eth1
Hit any key to stop autoboot: 0
Waiting for PHY auto negotiation to complete...... TIMEOUT !
done
ENET Speed is 10 Mbps - HALF duplex connection (EMAC0)
Using ppc_4xx_eth0 device
ping failed; host 192.168.138.101 is not alive
Loading Kernel Image ... OK
ABCDE
kernel_pre_init: ISR subsystem initialized, initializing data.
kernel_pre_init: Data initialized, initializing non-driver subsystems.
kernel_pre_init: trace_init done
kernel_pre_init: sh_sheap_init done
kernel_pre_init: locks&sem _init done
kernel_pre_init: profile_init done
Fdrv_table_install: syslog at 0x0003511c with minor 0 (DRV_SETUP) (DRV_INIT)
drv_table_install: isrlog at 0x0003511c with minor 1 (DRV_INIT)
drv_table_install: userinterface at 0x00004db0 with minor 0 (DRV_SETUP) (DRV_INIT)
drv_table_install: stty0 at 0x00070c30 with minor 0 (DRV_SETUP) (DRV_INIT)
drv_table_install: eth0 at 0x000715e4 with minor 0 (DRV_SETUP) (DRV_INIT)
drv_table_install: i2c0 at 0x0007d2ac with minor 0 (DRV_SETUP) (DRV_INIT)
drv_table_install: i2c1 at 0x0007d2ac with minor 1 (DRV_INIT)
drv_table_install: itcpip at 0x0003df70 with minor 0tcpipInit: Starting internal TCP/IP stack.
(DRV_SETUP) (DRV_INIT)
kernel_main: Drivers installed, installing INIT process with stack size = 8192.
sk_init_main: Started @ 3:00:40 4/28/2016
nor_flash_ini_setup: big_flash_lock created
sk_init_main: Starting process based initialization - 8791.
02:60:48:10:ff:78 UDP socket 3 created
TCP socket 4 created
sk_init_main: Process based initialization complete - 8791.
sk_init_main: Installing task table.
task_table_install: console at 0x00016208 stack 0x00512410/26624 : 4
task_table_install: inetd at 0x00036d90 stack 0x00534c10/8192 : 5
task_table_install: poll_cqs at 0x000b52f8 stack 0x00518c10/8192 : 6
task_table_install: poll_ports at 0x000b5660 stack 0x0051ac10/16384 : 7
task_table_install: env_mon at 0x000877bc stack 0x00520c10/8192 : 8
task_table_install: env_bin_api at 0x000148d0 stack 0x00522c10/8192 : 9
task_table_install: incoming_fw_files at 0x00014334 stack 0x00524c10/8192 : 10
task_table_install: incoming_fw_files at 0x00014334 stack 0x00526c10/8192 : 11
task_table_install: wdog at 0x00021cd0 stack 0x00536c10/4096 : 12
sk_init_main: Task table installed. Starting tasks and exiting.
sk_init_main: Enable WatchDog
----------------------------- Board Info -----------------------------
* Chasis Type : DINGO
* Number of Ports : 12
* U-Boot Revision :U-Boot 2009.01 SX_PPC_M460EX SX_3.2.0330-82-EMC ppc (Feb 27 2013 - 12:13:42)
* Firmware Revision : 9.9.1260
* INI file Revision : 0x31010016
----------------------------------------------------------------------
BUILD INFO UTILITY

GET_PROJECT_CVS_COMMIT_LEVEL..=1.383
GET_BUILD_BASE................=
GET_BUILD_SIGNATURE...........=0025b50070be,2014-05-23,10:04:05,34176
GET_BUILD_PATH................=/emc/tdowning/ppc460_release/may_23_2014
03:00:48 04/28/2016
Switch-B(4)>
 

HowardC

New Member
Apr 26, 2016
5
0
1
47
These are commands available to me:

Switch-B(4)> help
Command Description Syntax
-------------- ------------------------- ------
sched sched sched
piecnt piecnt piecnt
alarm alarm alarm
ps list processes ps
pdump pdump pdump <pid>
stack_trace stack trace stack_trace <pid>
lastrun Task/ISR/sched last run h lastrun <enable|disable|status|clear|dump> [task|isr|idle|sched|event]
syslog syslog display syslog
isrlog isrlog display isrlog
spinlocks spinlocks display spinlocks
log user log display log
rwlocks rwlocks display rwlocks
genstackerr generate a 93FF genstackerr
generrtasks save err tasks info generrtasks
findstack find proc from stack findstack
setblockedticks set max blocked ticks setblockedticks
region Time entreg/lvreg calls region <n repetitions>
lock Time getlock/releselock c lock <n repetitions>
sema Time sempend/sempost call sema <n repetitions>
kill signal thread kill
exit exit exit
help help help
start start start
tracef tracef tracef
trace trace trace
dump dump memory dump <addr> [length]
dm dump memory dm <addr> [length]
poke poke memory poke <size> <addr> <value>
pm patch memory pm
sems sems sems
fds Show active file descript fds
ipcq ipcq ipcq
cycles cycles cycles
eihdlrs eihdlrs eihdlrs
profile profile profile
proc proc proc
uptime uptime uptime
ttytest ttytest ttytest
baud baud baud
sread open and read device sread [flush]
lsreset long slice reset lsreset [pid]
drivers Show installed drivers drivers
reload Do reboot reload
reboot Do reboot reboot FORCE
hreset Do hard reset hreset FORCE
pci_conf Do PCI Config pci_conf <cmd>
pci_probe Do PCI Probe for device pci_probe vendor device startslot
trypcie try PCI Config trypcie
tryrwbar try RW Bar tryrwbar
searchfw search firmware searchfw
tlbs show tlbs tlbs
mung mung tlb mung tlb
mcds Machine Check Disable Machine Check Disable
mcen Machine Check Enable Machine Check Enable
getdcr Get DCR Get DCR <dcr#>
setdcr Set DCR Set DCR <dcr#> <val>
queryboard Query Board Info queryboard
i2c0 i2c0 commands i2c0
i2c1 i2c1 commands i2c1
adm adm commands adm
env env commands env
uicread uicread uicread
ienable ienable ienable
macread macread macread
macrestore macrestore macrestore
checkpci Check PCI Availability checkpci
rxtest rxtest rxtest
drxtest drxtest drxtest
txtest txtest txtest
dtxtest dtxtest dtxtest
rcvmacon rcvmacon rcvmacon
telnet telnet telnet
netstat netstat netstat
ping ping ping
arp arp arp
ifconfig ifconfig ifconfig
traceroute traceroute traceroute
route route route
getimg getimg getimg
ibfl IB Flash Uitlity ibfl
baz Baz Switch Commands baz
norf NOR Flash Utility norf
build Build Info Utility build
board Board Info Utility board
info Board Info Utility board
crc32 Display CRC32 crc32 addr length [seed]
chkimg Check validity of SymmK O chkimg [addr]
testsyslog testsyslog testsyslog
testibsw testibsw testibsw
testmacaddr testmacaddr testmacaddr
setnewip setnewip setnewip
sheapmem sheapmem sheapmem
rtcdate rtcdate rtcdate HrMnSc MmDdYr (in BCD)
date date Displays current time and date
doubledate doubledate Displays current time and date
showif showif showif
incoming_fw check/restart incming fir incoming_fw [start]
_ibswbinapi check/restart env bin api _ibswbinapi [start]
burnbazfw burnbazfw [auto] auto will do getimg and burn baz fw
burnswitchos burnswitchos [auto] auto will do getimg and burn switchos
tcpdump tcpdump tcpdump
eint eint <clear> Dump number of vector interrupts we have received
ib_tunnel ib_tunnel IB Tunnel statistics and debugging control
set_all_arp set_all_arp set_all_arp
repeat repeat repeat
wdog test wdog interrupt wdog
dumpwdog dump info from wdog inter dumpwdog
 

Chankster

Member
Mar 9, 2015
67
14
8
* U-Boot Revision :U-Boot 2009.01 SX_PPC_M460EX SX_3.2.0330-82-EMC ppc (Feb 27 2013 - 12:13:42)
It looks like you have some EMC variant of the MLNX-OS. Heres the image info from one of mine:

mell08 [standalone: master] > show version
Product name: SX_PPC_M460EX
Product release: SX_3.3.4100
Build ID: #1-dev
Build date: 2013-09-16 18:27:29
Target arch: ppc
Target hw: m460ex
Built by: jenkins@fit70
Version summary: SX_PPC_M460EX SX_3.3.4100 2013-09-16 18:27:29 ppc
 

Chankster

Member
Mar 9, 2015
67
14
8
The following steps worked for me but I'm not sure if they will be different for your variant. I was able to step from 3.3.4100 -> 3.3.5600 -> 3.4.3002 -> 3.5.1006.
  1. ssh to switch
  2. enable
  3. configure terminal
  4. image fetch scp://user@host:/path/to/image/image-PPC_M460EX-SX_3.3.5006.img
  5. image install image-PPC_M460EX-SX_3.3.5006.img
  6. image boot next
  7. configuration write
  8. reload
mell08 [standalone: master] > show version
Product name: MLNX-OS
Product release: 3.5.1006
Build ID: #1-dev
Build date: 2016-03-09 11:29:49
Target arch: ppc
Target hw: m460ex
Built by: dvirl@fit74
Version summary: PPC_M460EX 3.5.1006 2016-03-09 11:29:49 ppc
 
Last edited:

mpogr

Active Member
Jul 14, 2016
113
88
28
50
Looks like I've got the same kind of firmware (U-Boot 2009.01 SX_PPC_M460EX SX_3.2.0330-82-EMC) on my switch (probably got it from the same eBay dealer). I found the way to configure the eth0 interface and was able to telnet into it, but it gives me the same interface/commands as the serial one. Any idea on how to progress from here?
 
Apr 21, 2016
49
20
8
41
I'm in the same boat (sx6012 EMC)
Does anyone have a guide for U-boot ? I already heave the mlnx-os images - thank you hp(e) and ibm.
 
Apr 21, 2016
49
20
8
41
Hello,
I've been messing around with the u-boot and flashed the mlnx version - password locked :(
If anyone has the good old EMC u-boot image, it would be nice.
I still have the EMC switchos on one of the nand partitions so, in theory, I can still interact with u-boot parameters.
 

Rand__

Well-Known Member
Mar 6, 2014
5,541
1,199
113
I dont have a clue how to extract the Uboot image, else I could help you out ...
 

necr

Member
Dec 27, 2017
74
26
18
121
Hello,
I've been messing around with the u-boot and flashed the mlnx version - password locked :(
If anyone has the good old EMC u-boot image, it would be nice.
I still have the EMC switchos on one of the nand partitions so, in theory, I can still interact with u-boot parameters.
For recent MLNX-OS (3.6.6003 for example, 3.6.4006 will not work) it's even easier:

Code:
enable
configure terminal
boot bootmgr password 7 ""
write memory
show bootvar
There should be no passwords in boot manager, IMO.
Even Huawei allows bootmgr access:
[All About Switches] 07 User Login Password-Switch-Huawei Enterprise Support Community

Code:
/opt/tms/bin/mddbreq /config/db/initial set modify - /system/bootmgr/password string ''
eetool -a bf -s UBPASSWD=""
That makes settings persistent and on the next boot the password is gone.


If that helped, please endorse: https://goo.gl/RfjbnG
 
Last edited: