Beware of EMC switches sold as Mellanox SX6XXX on eBay

Notice: Page may contain affiliate links for which we may earn a small commission through services like Amazon Affiliates or Skimlinks.

Quantum_Mechanic

New Member
Feb 16, 2019
14
0
1
Refering back to step 2 on the Linux box, here are the commands/debug/proof of what i used to make the jffs2 image:

Code:
step2 debug output:

root@n4:~/mel/step2mel# ls
bin  dev  etc  lib  proc  sbin  sys  tmp  var
root@n4:~/mel/step2mel# ls -al
total 44
drwxr-xr-x 11 root root 4096 Apr 13 19:35 .
drwxr-xr-x 21 root root 4096 Apr 13 22:23 ..
drwxr-xr-x  2 root root 4096 Apr 13 22:22 bin
drwxr-xr-x  2 root root 4096 Apr 13 22:11 dev
drwxr-xr-x  3 root root 4096 Apr 13 19:18 etc
drwxr-xr-x  2 root root 4096 Apr 13 19:46 lib
drwxr-xr-x  2 root root 4096 Apr 13 19:18 proc
drwxr-xr-x  2 root root 4096 Apr 13 19:37 sbin
drwxr-xr-x  2 root root 4096 Apr 13 19:18 sys
drwxr-xr-x  2 root root 4096 Apr 13 19:18 tmp
drwxr-xr-x  4 root root 4096 Apr 13 19:19 var
root@n4:~/mel/step2mel# ls -al var/
total 16
drwxr-xr-x  4 root root 4096 Apr 13 19:19 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
drwxr-xr-x  2 root root 4096 Apr 13 19:19 lib
drwxr-xr-x  2 root root 4096 Apr 13 19:18 run
root@n4:~/mel/step2mel# ls -al etc/
total 12
drwxr-xr-x  3 root root 4096 Apr 13 19:18 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
drwxr-xr-x  2 root root 4096 Apr 13 19:40 init.d
root@n4:~/mel/step2mel#


root@n4:~/mel/step2mel/dev# history |grep mknod

  426  mknod -m 622 console c 5 1
  428  mknod -m 666 null c 1 3
  429  mknod -m 444 random c 1 8
  430  mknod -m 644 ttyS0 c 4 64
  431  mknod -m 444 urandom c 1 9
  432  mknod -m 666 zero c 1 5


root@n4:~/mel/step2mel/dev# ls -al
total 8
drwxr-xr-x  2 root root  4096 Apr 13 22:11 .
drwxr-xr-x 11 root root  4096 Apr 13 19:35 ..
crw--w--w-  1 root root 5,  1 Apr 13 19:48 console
crw-rw-rw-  1 root root 1,  3 Apr 13 19:48 null
cr--r--r--  1 root root 1,  8 Apr 13 19:48 random
crw-r--r--  1 root root 4, 64 Apr 13 19:50 ttyS0
cr--r--r--  1 root root 1,  9 Apr 13 19:50 urandom
crw-rw-rw-  1 root root 1,  5 Apr 13 19:50 zero


root@n4:~/mel/step2mel/bin# ls -al
total 956
drwxr-xr-x  2 root root   4096 Apr 13 22:22 .
drwxr-xr-x 11 root root   4096 Apr 13 19:35 ..
lrwxrwxrwx  1 root root      7 Apr 13 19:24 bash -> busybox
-rwxr-xr-x  1 root root 683024 Apr 13 19:34 busybox
lrwxrwxrwx  1 root root      7 Apr 13 22:20 chmod -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 cp -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 22:21 echo -> busybox
-rwxr-xr-x  1 root root   9888 Apr 13 19:39 flash_eraseall
lrwxrwxrwx  1 root root      7 Apr 13 19:24 gunzip -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 gzip -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 ifconfig -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 22:21 ln -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 22:21 ls -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 mkdir -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 mount -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 mv -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 22:21 rm -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 rmdir -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 sh -> busybox
-rwxr-xr-x  1 root root 272880 Apr 13 19:39 tar
lrwxrwxrwx  1 root root      7 Apr 13 19:24 tftp -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 22:22 touch -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 umount -> busybox
lrwxrwxrwx  1 root root      7 Apr 13 19:24 vi -> busybox


root@n4:~/mel/step2mel/sbin# ls -al
total 8
drwxr-xr-x  2 root root 4096 Apr 13 19:37 .
drwxr-xr-x 11 root root 4096 Apr 13 19:35 ..
lrwxrwxrwx  1 root root   14 Apr 13 19:37 init -> ../bin/busybox


root@n4:~/mel/step2mel/etc/init.d# ls -al rcS
-rwxr-xr-x 1 root root 51 Apr 13 19:40 rcS
root@n4:~/mel/step2mel/etc/init.d# cat rcS
mount -t proc none /proc
mount -t sysfs none /sys

root@n4:~/mel/step2mel/lib# ls -al
total 2420
drwxr-xr-x  2 root root    4096 Apr 13 19:46 .
drwxr-xr-x 11 root root    4096 Apr 13 19:35 ..
-rwxr-xr-x  1 root root  136408 Apr 13 19:42 ld-2.17.so
lrwxrwxrwx  1 root root      10 Apr 13 19:43 ld-linux.so.2 -> ld-2.17.so
lrwxrwxrwx  1 root root      10 Apr 13 19:43 ld.so.1 -> ld-2.17.so
-rwxr-xr-x  1 root root 1469360 Apr 13 19:42 libc-2.17.so
-rwxr-xr-x  1 root root   34296 Apr 13 19:42 libcrypt-2.17.so
lrwxrwxrwx  1 root root      16 Apr 13 19:44 libcrypt.so.1 -> libcrypt-2.17.so
lrwxrwxrwx  1 root root      12 Apr 13 19:43 libc.so.6 -> libc-2.17.so
-rwxr-xr-x  1 root root  694592 Apr 13 19:42 libm-2.17.so
lrwxrwxrwx  1 root root      12 Apr 13 19:46 libm.so.6 -> libm-2.17.so
-rwxr-xr-x  1 root root   92376 Apr 13 19:43 libpthread-2.17.so
lrwxrwxrwx  1 root root      18 Apr 13 19:46 libpthread.so.0 -> libpthread-2.17.so
-rwxr-xr-x  1 root root   30704 Apr 13 19:43 librt-2.17.so
lrwxrwxrwx  1 root root      13 Apr 13 19:46 librt.so.1 -> librt-2.17.so

root@n4:~/mel/step2mel# history |grep mkfs.jffs2
513  mkfs.jffs2 --eraseblock=0x20000 --pagesize=2048 --pad --no-cleanmarkers --big-endian --squash-uids --root=step2mel --output=step2mel_jffs2_image
This created a jffs2 image with a file size of 2.3mb:

Code:
root@n4:~/mel# ls -alh step2mel_jffs2_image
-rw-r--r-- 1 root root 2.3M Apr 13 22:23 step2mel_jffs2_image
 
Last edited:

Quantum_Mechanic

New Member
Feb 16, 2019
14
0
1
Sx6012 or 6018 ,.
If it is 6012 only one mgmt port , why two Mac ?
If it is 6018 then wrong firmware

In this thread , some one post his mini image maybe @JSLEnterprises
This is from the 6012.

The reason I have two mac is because ifconfig (when booting from /dev/mtdblock6) reports 2 interfaces:

Code:
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr F4:52:14:F0:CF:B6
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:41

eth1      Link encap:Ethernet  HWaddr F4:52:14:F0:CF:B7
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:43

lo        Link encap:Local Loopback
          LOOPBACK  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

#

Regarding the mini image thread post, the link is dead.
 

Rand__

Well-Known Member
Mar 6, 2014
6,626
1,767
113
somewhere there must be a mistake;) and given you have it everywhere it has be a structural error...
 

TsubasaFTL

New Member
Apr 12, 2019
3
0
1
I'm at that step also. Would be great if someone could share the modified versions required. Or perhaps a point in the direction they could be found at would also help.

Thanks.
 

TsubasaFTL

New Member
Apr 12, 2019
3
0
1
Yeah I just saw his last login date. Oh well, not in a hurry, I just got the switch for fun anyways. haha
 

klui

Well-Known Member
Feb 3, 2019
824
453
63
Could someone send me the conversion procedure? I haven't received a reply from mpogr since I sent him PM on Apr 27.

Thanks.
 

devin_mm

New Member
May 7, 2019
21
1
3
Could someone send me the conversion procedure? I haven't received a reply from mpogr since I sent him PM on Apr 27.

Thanks.
If I could get it as well that would be fantastic, maybe I can resurrect my 6018.
 

Zhenfang Wei

New Member
Apr 25, 2019
3
0
1
Hi,
I recently got the SX6012 switch (EMC version) and I am planning to flash it to the stock firmware according to @mpogr's instruction.
In the document I received, in Step 6, i am supposed to extract the firmware using HEX editor and flash the extracted firmware (.bin) file to switch via "flint" command. It doesn't say where I should run the command, i assume i have to execute it via a desktop connected to the switch (with ConnectX adapter and Mellanox OFED tools installed). Is it correct?
Before I start to perform the processes, i am verifying if the switch can be identified by my desktop (the adapter is HP_0280210019).
I boot the switch into untouched EMC OS and used a DAC cable (QSFP port) to connect my adapter and switch and I can see the link is up with FDR rate. Also I can use "iblinkinfo" and "mst status" command to verify the switches can be seen from the desktop with lid 2.

Code:
[root@aurora ~]# ibswitches
Switch  : 0x248a0703007ed300 ports 12 "SwitchX -  Mellanox Technologies" base port 0 lid 2 lmc 0

[root@aurora ~]# iblinkinfo
Switch: 0x248a0703007ed300 SwitchX -  Mellanox Technologies:
           2    1[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    2[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    3[  ] ==( 4X       14.0625 Gbps Active/  LinkUp)==>       3    2[  ] "aurora HCA-1" ( )
           2    4[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    5[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    6[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    7[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    8[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2    9[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2   10[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2   11[  ] ==(                Down/ Polling)==>             [  ] "" ( )
           2   12[  ] ==(                Down/ Polling)==>             [  ] "" ( )
CA: aurora HCA-1:
      0x0002c90300fee2b2      3    2[  ] ==( 4X       14.0625 Gbps Active/  LinkUp)==>       2    3[  ] "SwitchX -  Mellanox Technologies" ( )
But then I got problem, it seems command "flint" is unable to query to switch's information via following command.

flint -d lid-0x2 q

The command ends with error:
Code:
[root@aurora ~]# flint -d lid-0x2 q
-E- ibvsmad : cr access read to Lid 2 failed
-E- ibvsmad : cr access read to Lid 2 failed
FATAL - crspace read (0xf0014) failed: Invalid argument
-E- Cannot open Device: lid-0x2. Invalid argument. MFE_GENERAL_ERROR
I wonder if there is any issue here. Or I missed anything.
 
Last edited:

Rand__

Well-Known Member
Mar 6, 2014
6,626
1,767
113
You also an flash directly on the switch, i (re-) posted the instructions several times in this thread:)
 

Necrotyr

Active Member
Jun 25, 2017
206
52
28
Denmark
Anyone using their switch to route between vlans?

I'm having to ping a device from the switch before I can ping it from the other vlan, it then works finde for a time and then I have to do it again.

I'm thinking it has something to do with ARP, but I'm not sure.