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.
/opt/tms/bin/mellaggra _write_fru 1 0x51 1000 fru_patched.bin

btw do not use `eeprom write` from the U-Boot command line. you will brick your switch
Just wanted to say a huge thank you for the exact syntax: /opt/tms/bin/mellaggra _write_fru 1 0x51 1000 /tmp/fru_patched_new.bin. I had been trying various combinations of addresses and offsets with no success. Your command executed without errors, and cmp -l confirms that the data was written correctly to the EEPROM.
Unfortunately, even with a properly written FRU, the system (both 3.5.1006 and 3.4.0012) still reports the model as 'ppc', and the SX driver loads but doesn't create any IB/net devices. It seems the OS is ignoring the FRU or the profile is stuck.
My next step is to try a clean installation via Manufacturing Environment (MFG), hoping that manufacture.sh will build a fully valid FRU and system profile from scratch on a wiped partition. I'll report back on how that goes. Thanks again for the invaluable help!
 
upgrade to 3.6.8012 or do a factory reset again
@freebsd1976 Thanks again for the offset tip—it was the key to finally getting the FRU written correctly, which felt like a huge win.
Just to close the loop on the upgrade suggestion: I tried a direct upgrade to 3.6.8012 with the newly written FRU, but unfortunately, it still resulted in the cant parse system profile error and a boot loop. It seems my unit is particularly stubborn.
No worries, though—I've got U-Boot access and am falling back to a clean MFG install as the next step. Appreciate all the help!
 
get shell access and try this first
touch /etc/.firstboot
touch /var/opt/tms/.firstmfg
then reboot switch
 
Last edited:
get shell access and try this first
touch /etc/.firstboot
touch /var/opt/tms/.firstmfg
then reboot switch
@freebsd1976 Thank you for the suggestion! The combination of touch /etc/.firstboot and /var/opt/tms/.firstmfg is a great trick to force a clean configuration run. In my case, I had already managed to stabilize the system by performing a clean installation via MFG after unlocking U-Boot, but I've noted this method down for future reference. I appreciate you taking the time to share it!
 
Hi everyone,

I'm trying to activate the Fabric Inspector (UFM) via the web interface on an SX6012 running MLNX-OS 3.6.8012. This is not specific to a converted EMC model—I've tested the same approach on both a genuine Mellanox SX6012 and a converted one, and the result is identical.

The goal is to get the Fabric Inspector working without an official NVIDIA/Mellanox UFM license.

Here’s exactly what I’ve tried on both switches:
1. Generating a new EFM_SX license key that includes UFM options via genlicense:
/opt/tms/bin/genlicense 2 EFM_SX m210n%0x9 -o 53 true -o 51 true -o 58 true -o 55 200
This key is accepted but shows as 'Invalid'. The 'Max num ufm ports supported: 200' parameter is recognized as (ok).

2. Manually setting the UFM activation flags in the configuration database:
/opt/tms/bin/mddbreq /config/db/initial set modify - /mlx/license/state/ufm_feature_active bool true
/opt/tms/bin/mddbreq /config/db/initial set modify - /mlx/license/state/ufm_ports_limit uint16 200
(followed by 'configuration write' and a full reload)

3. Verified that the ufma process is running (ps aux shows /opt/tms/bin/ufma active).

After all these steps, the 'Fabric Inspector' section in the web UI remains greyed out and inactive, even after restarting the webserver and rebooting the switch.
Since the same behavior occurs on a genuine, non-converted switch, it seems the issue is not related to the EMC conversion itself.

Has anyone successfully gotten Fabric Inspector to work on 3.6.8012 using only locally generated keys and configuration changes? Is a separate UFM installation package (e.g., UFM-SX-*.img) required, or is there another hidden flag that needs to be set?

Any advice or fresh ideas would be much appreciated!
 
Hi everyone,

I'm trying to activate the Fabric Inspector (UFM) via the web interface on an SX6012 running MLNX-OS 3.6.8012. This is not specific to a converted EMC model—I've tested the same approach on both a genuine Mellanox SX6012 and a converted one, and the result is identical.

The goal is to get the Fabric Inspector working without an official NVIDIA/Mellanox UFM license.

Here’s exactly what I’ve tried on both switches:
1. Generating a new EFM_SX license key that includes UFM options via genlicense:
/opt/tms/bin/genlicense 2 EFM_SX m210n%0x9 -o 53 true -o 51 true -o 58 true -o 55 200
This key is accepted but shows as 'Invalid'. The 'Max num ufm ports supported: 200' parameter is recognized as (ok).

2. Manually setting the UFM activation flags in the configuration database:
/opt/tms/bin/mddbreq /config/db/initial set modify - /mlx/license/state/ufm_feature_active bool true
/opt/tms/bin/mddbreq /config/db/initial set modify - /mlx/license/state/ufm_ports_limit uint16 200
(followed by 'configuration write' and a full reload)

3. Verified that the ufma process is running (ps aux shows /opt/tms/bin/ufma active).

After all these steps, the 'Fabric Inspector' section in the web UI remains greyed out and inactive, even after restarting the webserver and rebooting the switch.
Since the same behavior occurs on a genuine, non-converted switch, it seems the issue is not related to the EMC conversion itself.

Has anyone successfully gotten Fabric Inspector to work on 3.6.8012 using only locally generated keys and configuration changes? Is a separate UFM installation package (e.g., UFM-SX-*.img) required, or is there another hidden flag that needs to be set?

Any advice or fresh ideas would be much appreciated!

Hi everyone,

Just wanted to share a quick but important update for anyone struggling with genlicense on version 3.6.8012. Contrary to some older posts suggesting the secret word changes with each release, I can confirm that the classic word m210n%0x9 (ROT18 of z7y5a%5k4) still works perfectly on this version to generate valid license keys.

Took a bit of digging, but happy to report it's still functional. Hope this saves someone else the trouble.
 
Title: [Guide] Automated Silent Fan Control Script for Converted EMC / Mellanox SX60xx (SX6018) Switches on MLNX-OS 3.6+

Background & Hardware
  • Hardware: Mellanox SX6018 (18-port FDR InfiniBand / VPI switch, running in Ethernet mode).
  • Origin: Originally an OEM EMC-branded switch, successfully converted to pure Mellanox firmware structure.
  • Firmware Version: Mellanox MLNX-OS v3.6.8012 (PPC M460EX architecture).
As many homelabbers know, running enterprise gear like the SX6018 at home brings a massive downside: jet-engine fan noise. While standard conversion guides get the switch running on pure MLNX-OS, finding a robust, automatic way to quiet down the fans without risking hardware overheating can be tricky—especially since the root filesystem (/etc) is Read-Only in MLNX-OS, breaking standard rc.local persistence methods.

Here is a fully tested, elegant solution using native internal database tools (mdreq) to dynamically control the fan speed based on the core CPU/ASIC temperature (T2), complete with a hard safety ceiling and persistent startup.

How the Script Works
  1. Temperature Monitoring: Instead of parsing messy text logs, it queries the internal MLNX-OS database directly for the CPU_BOARD_MONITOR (T2) core temperature (/system/chassis/temperature/state/MGMT/CPU_BOARD_MONITOR/t2/temperature).
  2. Dynamic Curve:
    • Below 70°C, it locks the fans to an ultra-silent 18% (~4300 RPM).
    • Above 70°C, it gently ramps up speed by 2% for every 1°C increase.
  3. Hard Ceiling (Apartment/Homelab Friendly): It enforces a strict maximum speed cap of 45%. It will never spike to 100% unexpectedly and wake you up at midnight.
  4. Persistence: It uses user-space crontab @reboot hooks to survive reboots gracefully without hitting Read-Only partition walls.
Step-by-Step Implementation Guide
Step 1: Access the Switch Shell
Log into your switch via SSH or serial console, enter privileged mode, and drop into the hidden Linux shell:

codeText

enable
_shell
Step 2: Create the Dynamic Fan Script
Create and populate the script inside the persistent /config directory by running the following block in your shell:

codeBash

cat << 'EOF' > /config/fan_dynamic.sh
#!/bin/bash

# --- CONFIGURATION (HOMELAB / SILENT MODE) ---
BASE_TEMP=70 # Up to 70°C on T2, fans stay at ultra-quiet minimum (18%)
MIN_SPEED=18 # Minimum fan speed in % (~4300 RPM)
MAX_SPEED=45 # HARD CEILING: Never exceed 45% to prevent midnight noise!
STEP_PERCENT=2 # Gentle ramp-up by 2% for every 1°C above 70°C
CHECK_INTERVAL=30 # Check loop interval in seconds

# Startup safety sleep to let the internal management database settle
sleep 45

while true; do
# 1. Fetch exact core temperature (T2) directly from MLNX-OS database
RAW_TEMP=$(/opt/tms/bin/mdreq -v query get - /system/chassis/temperature/state/MGMT/CPU_BOARD_MONITOR/t2/temperature 2>/dev/null)
TEMP=${RAW_TEMP%%.*}

# Fallback safety default if query fails
if [ -z "$TEMP" ] || ! [[ "$TEMP" =~ ^[0-9]+$ ]]; then
TEMP=68
fi

# 2. Calculate dynamic fan speed
if [ "$TEMP" -le "$BASE_TEMP" ]; then
SPEED=$MIN_SPEED
else
DIFF=$((TEMP - BASE_TEMP))
SPEED=$((MIN_SPEED + (DIFF * STEP_PERCENT)))
fi

# 3. Enforce strict safety boundaries (18% to 45%)
if [ "$SPEED" -lt "$MIN_SPEED" ]; then
SPEED=$MIN_SPEED
elif [ "$SPEED" -gt "$MAX_SPEED" ]; then
SPEED=$MAX_SPEED
fi

# 4. Apply speed natively via mdreq for chassis fans (1 to 4) and power supply (PS2)
/opt/tms/bin/mdreq action /system/chassis/actions/set-fan-speed fan_module string "/FAN/FAN" fan_number int8 1 fan_speed int8 $SPEED set_max uint8 45 >/dev/null 2>&1
/opt/tms/bin/mdreq action /system/chassis/actions/set-fan-speed fan_module string "/FAN/FAN" fan_number int8 2 fan_speed int8 $SPEED set_max uint8 45 >/dev/null 2>&1
/opt/tms/bin/mdreq action /system/chassis/actions/set-fan-speed fan_module string "/FAN/FAN" fan_number int8 3 fan_speed int8 $SPEED set_max uint8 45 >/dev/null 2>&1
/opt/tms/bin/mdreq action /system/chassis/actions/set-fan-speed fan_module string "/FAN/FAN" fan_number int8 4 fan_speed int8 $SPEED set_max uint8 45 >/dev/null 2>&1
/opt/tms/bin/mdreq action /system/chassis/actions/set-fan-speed fan_module string "/PS2/FAN" fan_number int8 1 fan_speed int8 $SPEED set_max uint8 45 >/dev/null 2>&1

# Log current status to system logs for tracking
logger "FAN_CONTROL: Temp=${TEMP}C, TargetSpeed=${SPEED}%"

# Sleep before next check
sleep $CHECK_INTERVAL
done
EOF

Step 3: Make it Executable
Grant execution permissions to your script:

codeBash

chmod +x /config/fan_dynamic.sh
Step 4: Set Up Persistent Autostart (Bypassing Read-Only /etc)
Because /etc is read-only in MLNX-OS, standard startup hooks will fail. Instead, configure user-space crontab to trigger the script seamlessly on boot:

codeBash

(crontab -l 2>/dev/null; echo "@reboot sleep 60 && /config/fan_dynamic.sh &") | crontab -
You can verify the configuration was saved successfully by running:

codeBash

crontab -l
Testing and Verification
  1. You can test the script manually in the background right now:
    codeBash

    /config/fan_dynamic.sh &
  2. Check real-time actions via system logs:
    codeBash

    tail -f /var/log/messages
    You should see entries like: FAN_CONTROL: Temp=68C, TargetSpeed=18%.
Enjoy your silent, converted Mellanox switch! Huge thanks to the STH community for mapping out the initial EMC-to-Mellanox conversion paths.
 
  • Like
Reactions: shpitz461 and klui
Nice script. Not all Switch-2s need the same commands. For example, SX6012s just require setting /MGMT/FAN1.
 
"Rescuing a switch made by a company that no longer exists, which uses a CPU that is no longer made, which was by a company that also no longer exists, using a JTAG debugger by yet another company, that also no longer exists."

View attachment 21969

The BDI 2000 was in the mail today, so I reflashed it right away to PPC400 on Linux using bdisetup V1.27. Then some serious hair pulling with a few of Abatron's quirks started. Also funny Intel, the NOR flash will come up completely locked, needs unlocking first before you can erase and program a new U-Boot.

I am leaving the required BDI config and a register definition file here for posterity. The switch lives... ;-) Could also work for other 460EX Mellanoxes. Files need to be put on TFTP where the BDI can grab them. Also you'll need the uboot.bin you want to flash. Then it's all just telnet into the BDI and

First line will rewrite U-Boot and dump a few bytes from start and end of NOR so you can see if it worked, second line will start U-Boot.

Even though AMCC is dead (sold to Macom, which immediately sold the CPU biz to an investor LLC, which did unknown stuff with it, maybe give or use it at Ampere), and even though the people implementing Linux for this platform are also gone, through reading the investor news bulletin of the AMCC/Macom merger I stumbled upon a German sub entity of AMCC. Which led me, after guessing Macom's email schema, to an AMCC PPC engineer from back in the day. Who was super kind to send me the 460EX User's Manual and also a spiffy Excel sheet to calculate the bootstrap EEPROM bits. Which all came in very handy because the BDI config contains mandatory TLB and 16-bit NOR flash setup, but without the manual you will never figure out what all the bits mean.

If you need any of the other mentioned files, send me a message.

Code:
; bdiGDB configuration file for Mellanox SwitchX-2 AMCC 460EX (Dingo)

[INIT]
WTLB        0xFF000075  0x4FF0003F      ; Boot space 16 MB (entire NOR flash)
WTLB        0x80000055  0x4000003F      ; SRAM and OCM space 1 MB (256 KB L2 + 64 KB OCM usable)

WDCR        0x12    0x10                ; Select EBC0_B0AP
WDCR        0x13    0x10055E00            ; B0AP: Flash (manual page 872: 1 00000000 0 10 10 10 11 11 000 0 0 0 0 00000)
WDCR        0x12    0x00                ; Select EBC0_B0CR
WDCR        0x13    0xFF09A000          ; B0CR: 16 MB, 16 Bit at 0xFF000000 (manual page 869: 111111110000 100 11 01 0000000000000)

WDCR        0x030   0x00000008          ; Disable L2 cache, enable SRAM R/W access
WDCR        0x020   0x00000984            ; Base address, size 64 KB, R/W access
WDCR        0x021   0x00010984            ; Base address, size 64 KB, R/W access
WDCR        0x022   0x00020984            ; Base address, size 64 KB, R/W access
WDCR        0x023   0x00030984            ; Base address, size 64 KB, R/W access
WDCR        0x02A   0x00000000            ; Disable parity checking
WDCR        0x0B0   0x00040984            ; Base address, size 64 KB, R/W access

WM32        0x80000000  0x48000000      ; Write opcode "b $pc" to SRAM
WREG        PC          0x80000000      ; Set PC to this infinite loop

WM16        0xFFFA0000  0x0060          ; Flash powers up with all sectors locked, unlock U-Boot sectors
WM16        0xFFFA0000  0x00D0
WM16        0xFFFC0000  0x0060
WM16        0xFFFC0000  0x00D0
WM16        0xFFFE0000  0x0060
WM16        0xFFFE0000  0x00D0
WM16        0xFFFE8000  0x0060
WM16        0xFFFE8000  0x00D0
WM16        0xFFFF0000  0x0060
WM16        0xFFFF0000  0x00D0
WM16        0xFFFF8000  0x0060
WM16        0xFFFF8000  0x00D0
WM16        0xFFFA0000  0xFFFF          ; Select read mode

[TARGET]
JTAGCLOCK    0                           ; BDI2000 16.6 MHz JTAG clock
CPUTYPE        440 FPU                     ; Target CPU type
WORKSPACE   0x80040000                  ; Workspace in OCM to dump FP registers
WAKEUP        500                         ; Wakeup time after reset
BREAKMODE    HARD                        ; Hardware breakpoint
STEPMODE    HWBP                        ; Hardware breakpoints

[HOST]
IP          192.168.128.100             ; TFTP server address
DUMP        /mlnx460ex/dump.bin
PROMPT      460EX>

[FLASH]
FILE        /mlnx460ex/uboot.bin        ; File on tftp server
CHIPTYPE    STRATAX16                   ; SX6012 uses a JS28F128P33TF70
CHIPSIZE    0x1000000                   ; Flash size 16 MB @ 0xFF000000
BUSWIDTH    16                          ; Flash memory bus width in bits
WORKSPACE   0x80040100                  ; Workspace in OCM for fast programming algorithm
FORMAT      BIN 0xFFFA0000              ; U-Boot file format is binary
ERASE       0xFFFA0000                  ; Erase top-most 128 + 128 + 32 + 32 + 32 + 32 KB
ERASE       0xFFFC0000
ERASE       0xFFFE0000
ERASE       0xFFFE8000
ERASE       0xFFFF0000
ERASE       0xFFFF8000

[REGS]
FILE        /mlnx460ex/reg460ex.def
IDCR1        0x010   0x011               ; SDRAM0_CFGADDR, SDRAM0_CFGDATA
IDCR2        0x012    0x013               ; EBC0_CFGADDR, EBC0_CFGDATA
IDCR3        0x00C    0x00D               ; CPR0_CFGADDR, CPR0_CFGDATA
IDCR4        0x00E    0x00F               ; SDR0_CFGADDR, SDR0_CFGDATA
Code:
;Register definition for PPC460EX
;================================
;
; name: user defined name of the register
; type: the type of the register
;   GPR general purpose register
;   SPR special purpose register
;   MM  memory mapped register
;   DMMx    direct memory mapped register with offset
;       x = 1..4
;       the base is defined in the configuration file
;       e.g. DMM1 0x02200000
;   IDCRx   indirect accessed DCR's
;       x = 1..4
;       the addr and data DCR is defined in the configuration file
;       e.g. IDCR1 0x010 0x011
; addr: the number, adddress or offset of the register
; size  the size of the register (8,16 or 32)
;
;name           type    addr            size
;-------------------------------------------
;
sp      GPR 1
;
;   Special Purpose Registers
;
xer             SPR     0x001
lr              SPR     0x008
ctr             SPR     0x009
dec             SPR     0x016
srr0            SPR     0x01a
srr1            SPR     0x01b
pid             SPR     0x030
decar           SPR     0x036
csrr0           SPR     0x03a
csrr1           SPR     0x03b
dear            SPR     0x03d
esr             SPR     0x03e
ivpr            SPR     0x03f
usprg0          SPR     0x100
sprg4r          SPR     0x104
sprg5r          SPR     0x105
sprg6r          SPR     0x106
sprg7r          SPR     0x107
tblr            SPR     0x10c
tbur            SPR     0x10d
sprg0           SPR     0x110
sprg1           SPR     0x111
sprg2           SPR     0x112
sprg3           SPR     0x113
sprg4w          SPR     0x114
sprg5w          SPR     0x115
sprg6w          SPR     0x116
sprg7w          SPR     0x117
tblw            SPR     0x11c
tbuw            SPR     0x11d
pir             SPR     0x11e
pvr             SPR     0x11f
dbsr            SPR     0x130
dbcr0           SPR     0x134
dbcr1           SPR     0x135
dbcr2           SPR     0x136
iac1            SPR     0x138
iac2            SPR     0x139
iac3            SPR     0x13a
iac4            SPR     0x13b
dac1            SPR     0x13c
dac2            SPR     0x13d
dvc1            SPR     0x13e
dvc2            SPR     0x13f
tsr             SPR     0x150
tcr             SPR     0x154
ivor0           SPR     0x190
ivor1           SPR     0x191
ivor2           SPR     0x192
ivor3           SPR     0x193
ivor4           SPR     0x194
ivor5           SPR     0x195
ivor6           SPR     0x196
ivor7           SPR     0x197
ivor8           SPR     0x198
ivor9           SPR     0x199
ivor10          SPR     0x19a
ivor11          SPR     0x19b
ivor12          SPR     0x19c
ivor13          SPR     0x19d
ivor14          SPR     0x19e
ivor15          SPR     0x19f
mcsrr0          SPR     0x23a
mcsrr1          SPR     0x23b
mcsr            SPR     0x23c
inv0            SPR     0x370
inv1            SPR     0x371
inv2            SPR     0x372
inv3            SPR     0x373
itv0            SPR     0x374
itv1            SPR     0x375
itv2            SPR     0x376
itv3            SPR     0x377
ccr1            SPR     0x378
dnv0            SPR     0x390
dnv1            SPR     0x391
dnv2            SPR     0x392
dnv3            SPR     0x393
dtv0            SPR     0x394
dtv1            SPR     0x395
dtv2            SPR     0x396
dtv3            SPR     0x397
dvlim           SPR     0x398
ivlim           SPR     0x399
rstcfg          SPR     0x39b
dcdbtrl         SPR     0x39c
dcdbtrh         SPR     0x39d
icdbtrl         SPR     0x39e
icdbtrh         SPR     0x39f
mmucr           SPR     0x3b2
ccr0            SPR     0x3b3
icdbdr          SPR     0x3d3
dbdr            SPR     0x3f3
;
;
;    Indirectly Accessed DCR's
;
;       IDCR1 must be set to SDRAM0_CFGADDR and SDRAM0_CFGDATA
;       IDCR2 must be set to EBC0_CFGADDR   and EBC0_CFGDATA
;       IDCR3 must be set to EBM0_CFGADDR   and EBM0_CFGDATA
;       IDCR4 must be set to PPM0_CFGADDR   and PPM0_CFGDATA
;       IDCR5 must be set to CPR0_CFGADDR   and CPR0_CFGDATA
;       IDCR6 must be set to SDR0_CFGADDR   and SDR0_CFGDATA
;
; External Bus Controller DCRs
;
ebc0_b0cr       IDCR2    0x00
ebc0_b1cr       IDCR2    0x01
ebc0_b2cr       IDCR2    0x02
ebc0_b3cr       IDCR2    0x03
ebc0_b4cr       IDCR2    0x04
ebc0_b5cr       IDCR2    0x05
ebc0_b6cr       IDCR2    0x06
ebc0_b7cr       IDCR2    0x07
ebc0_b0ap       IDCR2    0x10
ebc0_b1ap       IDCR2   0x11
ebc0_b2ap       IDCR2    0x12
ebc0_b3ap       IDCR2    0x13
ebc0_b4ap       IDCR2    0x14
ebc0_b5ap       IDCR2    0x15
ebc0_b6ap       IDCR2    0x16
ebc0_b7ap       IDCR2    0x17
ebc0_bear       IDCR2    0x20
ebc0_besr       IDCR2    0x21
ebc0_cfg        IDCR2    0x23
ebc0_cid        IDCR2    0x24
;
; Clocking and PowerOn Reset DCR
;
cpr0_clkupd     IDCR5   0x0020
cpr0_pllc       IDCR5    0x0040
cpr0_plld       IDCR5    0x0060
cpr0_plbed      IDCR5    0x0080
cpr0_plb2d      IDCR5    0x00A0
cpr0_opbd       IDCR5    0x00C0
cpr0_perd       IDCR5    0x00E0
cpr0_ahbd       IDCR5    0x0100
cpr0_icfg       IDCR5    0x0140
;
; System DCR
;
sdr0_sdstp0     IDCR6   0x0020
sdr0_sdstp1     IDCR6    0x0021
sdr0_pinstp     IDCR6    0x0040
sdr0_sdcs       IDCR6    0x0060
sdr0_ecid0      IDCR6    0x0080
sdr0_ecid1      IDCR6    0x0081
sdr0_ecid2      IDCR6    0x0082
sdr0_jtag       IDCR6    0x00C0
sdr0_ddrdl      IDCR6    0x00E0
sdr0_ebc        IDCR6    0x0100
sdr0_uart0      IDCR6    0x0120
sdr0_uart1      IDCR6    0x0121
sdr0_uart2      IDCR6    0x0122
sdr0_uart3      IDCR6    0x0123
sdr0_cp440      IDCR6    0x0180
sdr0_xcr        IDCR6    0x01C0
sdr0_xpllc      IDCR6    0x01C1
sdr0_xplld      IDCR6    0x01C2
sdr0_srst0      IDCR6    0x0200
sdr0_srst1      IDCR6    0x0201
sdr0_slpipe     IDCR6    0x0220
sdr0_amp        IDCR6    0x0240
sdr0_mirq0      IDCR6    0x0260
sdr0_mirq1      IDCR6    0x0261
sdr0_maltbl     IDCR6    0x0280
sdr0_malrbl     IDCR6    0x02A0
sdr0_maltbs     IDCR6    0x02C0
sdr0_malrbs     IDCR6    0x02E0
sdr0_pci0    IDCR6    0x0300
sdr0_usb2d0cr    IDCR6    0x0320
sdr0_usb2h0cr    IDCR6    0x0340
sdr0_cust0      IDCR6    0x4000
sdr0_sdstp2     IDCR6    0x4001
sdr0_cust1      IDCR6    0x4002
sdr0_sdstp3     IDCR6    0x4003
sdr0_pfc0       IDCR6    0x4100
sdr0_pfc1       IDCR6    0x4101
sdr0_usb2phy0cr IDCR6    0x4103
sdr0_plbtr      IDCR6    0x4200
sdr0_mfr        IDCR6    0x4300
sdr0_usb2host    IDCR6    0x4600
;
; Internal SRAM Controller
;
sram0_sb0cr     DCR     0x020
sram0_sb1cr     DCR     0x021
sram0_sb2cr     DCR     0x022
sram0_sb3cr     DCR     0x023
sram0_bear      DCR     0x024
sram0_besr0     DCR     0x025
sram0_besr1     DCR     0x026
sram0_pmeg      DCR     0x027
sram0_dpc       DCR     0x0a0
;
; Clock and Power Management
;
cpm0_er         DCR     0x160
cpm0_fr         DCR     0x161
cpm0_sr         DCR     0x162
;
; Double Data Rate (DDR) SDRAM Controller
;
mq0_b0bas       DCR     0x0040
mq0_b1bas       DCR     0x0041
mq0_b2bas       DCR     0x0042
mq0_b3bas       DCR     0x0043
mq0_cf1h        DCR     0x0045
mq0_esh         DCR     0x0047
mq0_eauh        DCR     0x0048
mq0_ealh        DCR     0x0049
mq0_baul    DCR     0x004A
mq0_cf1l    DCR     0x004B
mq0_esl        DCR     0x004C
mq0_eaul    DCR     0x004D
mq0_eall    DCR     0x004E
mq0_cfbhl    DCR     0x004F
mq0_bauh    DCR     0x0050
;
mcif0_mcstat    IDCR1   0x0014
mcif0_mcopt1    IDCR1    0x0020
mcif0_mcopt2    IDCR1    0x0021
mcif0_modt0    IDCR1    0x0022
mcif0_modt1    IDCR1    0x0023
mcif0_modt2    IDCR1    0x0024
mcif0_modt3    IDCR1    0x0025
mcif0_codt    IDCR1    0x0026
mcif0_vvpr    IDCR1    0x0027
mcif0_opar1    IDCR1    0x0028
;mcif0_opar2    IDCR1    0x0029
mcif0_rtr    IDCR1    0x0030
mcif0_mb0cf    IDCR1    0x0040
mcif0_mb1cf    IDCR1    0x0044
mcif0_mb2cf    IDCR1    0x0048
mcif0_mb3cf    IDCR1    0x004C
mcif0_initplr0    IDCR1    0x0050
mcif0_initplr1    IDCR1    0x0051
mcif0_initplr2    IDCR1    0x0052
mcif0_initplr3    IDCR1    0x0053
mcif0_initplr4    IDCR1    0x0054
mcif0_initplr5    IDCR1    0x0055
mcif0_initplr6    IDCR1    0x0056
mcif0_initplr7    IDCR1    0x0057
mcif0_initplr8    IDCR1    0x0058
mcif0_initplr9    IDCR1    0x0059
mcif0_initplr10    IDCR1    0x005A
mcif0_initplr11    IDCR1    0x005B
mcif0_initplr12    IDCR1    0x005C
mcif0_initplr13    IDCR1    0x005D
mcif0_initplr14    IDCR1    0x005E
mcif0_initplr15    IDCR1    0x005F
mcif0_rqdc     IDCR1    0x0070
mcif0_rfdc     IDCR1    0x0074
mcif0_rdcc      IDCR1    0x0078
mcif0_dlcr    IDCR1    0x007A
mcif0_clktr    IDCR1    0x0080
mcif0_wrdtr    IDCR1    0x0081
mcif0_sdtr1    IDCR1    0x0085
mcif0_sdtr2    IDCR1    0x0086
mcif0_sdtr3    IDCR1    0x0087
mcif0_mmode    IDCR1    0x0088
mcif0_memode    IDCR1    0x0089
mcif0_ecces    IDCR1    0x0098
mcif0_fcsr    IDCR1    0x00B0
mcif0_rtsr    IDCR1    0x00B1
;
;
; Memory Mapped Peripherals
; =========================
;
; PMM1 must point to Peripheral space (real 4_0000_0000)
;
; GPIO
;
gpio0_or        PMM1    0xEF600B00
gpio0_tcr       PMM1    0xEF600B04
gpio0_osrl      PMM1    0xEF600B08
gpio0_osrh      PMM1    0xEF600B0C
gpio0_tsrl      PMM1    0xEF600B10
gpio0_tsrh      PMM1    0xEF600B14
gpio0_odr       PMM1    0xEF600B18
gpio0_ir        PMM1    0xEF600B1C
gpio0_rr1       PMM1    0xEF600B20
gpio0_rr2       PMM1    0xEF600B24
gpio0_rr3       PMM1    0xEF600B28
gpio0_isr1l     PMM1    0xEF600B30
gpio0_isr1h     PMM1    0xEF600B34
gpio0_isr2l     PMM1    0xEF600B38
gpio0_isr2h     PMM1    0xEF600B3C
gpio0_isr3l     PMM1    0xEF600B40
gpio0_isr3h     PMM1    0xEF600B44
;
gpio1_or        PMM1    0xEF600C00
gpio1_tcr       PMM1    0xEF600C04
gpio1_osrl      PMM1    0xEF600C08
gpio1_osrh      PMM1    0xEF600C0C
gpio1_tsrl      PMM1    0xEF600C10
gpio1_tsrh      PMM1    0xEF600C14
gpio1_odr       PMM1    0xEF600C18
gpio1_ir        PMM1    0xEF600C1C
gpio1_rr1       PMM1    0xEF600C20
gpio1_rr2       PMM1    0xEF600C24
gpio1_rr3       PMM1    0xEF600C28
gpio1_isr1l     PMM1    0xEF600C30
gpio1_isr1h     PMM1    0xEF600C34
gpio1_isr2l     PMM1    0xEF600C38
gpio1_isr2h     PMM1    0xEF600C3C
gpio1_isr3l     PMM1    0xEF600C40
gpio1_isr3h     PMM1    0xEF600C44
;

photo_1_2026-09-21_04-07-36.jpg
photo_3_2026-09-21_04-07-36.jpg
photo_4_2026-09-21_04-07-36.jpg
photo_5_2026-09-21_04-07-36.jpg
photo_2_2026-09-21_04-07-36.jpg
I ran into the same problem in 2026: using the -B option incorrectly during flashing left my SX6036 completely bricked, with no serial output at all. Thank you for documenting your troubleshooting and findings. They were instrumental in getting my switch back up and running!

I took a different recovery approach, though: I desoldered the NOR flash chip, used a T48 programmer to restore the missing U-Boot partition, and soldered it back onto the board. The switch is now working again.

One warning for anyone taking the desoldering route: be very careful with the tiny 0402 capacitors and resistors around the NOR chip. I accidentally knocked some of them off during the repair and experienced both a completely silent console and hangs at the U-Boot banner. I also subsequently found corruption in one kernel partition. I cannot confirm whether that corruption was related to the component damage, but I strongly recommend verifying the full partition contents after recovery, rather than stopping once U-Boot starts.

If anyone else runs into the same issue, feel free to contact me. I can share a full NOR dump from programmer as a recovery reference. Please back up your own chip first and preserve any device-specific data.

Thanks again for sharing your work!
 
I ran into this as well per forums.servethehome.com/index.php?threads/beware-of-emc-switches-sold-as-mellanox-sx6xxx-on-ebay.10786/post-478102.

If you intended to update directly to the last version 3.6.8012 directly from 3.4.0012, a bug in gunzip/zcat from the distro will fail manufacture and leave the U-boot partition empty if you reboot without retrying. forums.servethehome.com/index.php?threads/beware-of-emc-switches-sold-as-mellanox-sx6xxx-on-ebay.10786/post-434551

Conservative upgrade would be to first perform U-boot update through only -B, leaving off -a (I've never tried this, though). Then perform manufacture again but don't include -B. If not practical, modifying the script would be an alternative--update U-boot first then the other partitions.
 
Hi,
mainly thanks to the person who wrote the "Converting Mellanox EMC switch to SX60xx" manual. It’s absolutely excellent!
I have a few observations: For TFTP, web services and DHCP, you can use a single tool: DHCP Server for Windows
The manual doesn't explicitly state that a DHCP server is required. If you're working without a router, you need to have a DHCP server running on your laptop. If the console doesn't recognize a command, you probably missed the "enable" or "conf t" steps.
LOL, a rookie mistake - just like connecting the console cable after booting up! ROFL.
Thanks for the silent support!