Solved

/usr/cumulus/bin/decode-syseeprom : ERROR : unknown target, should be one of


Hi!

I had Cumulus Linux 3.6.0, I did a 'apt update; apt upgrade'.

net show system:
Accton AS4610
Cumulus Linux 3.6.1
Build: Cumulus Linux 3.6.1

Chipset: Broadcom Helix4 BCM56340
Port Config: 48 x 1G-T_PoE & 4 x 10G-SFP+
CPU: (ARMv7) ARM ARMv7-A Cortex-A9 1.20GHz
Uptime: 0:20:05.690000

After reboot, service update-ports.service fails with the error in the title in the logs.

Before the update, the switch worked just fine.

Running:
# /usr/cumulus/bin/decode-syseeprom -a
/usr/cumulus/bin/decode-syseeprom : ERROR : unknown target, should be one of

stracing the binary, shows that it dos a grep for 'eeprom' in /proc/mtd.

# cat /proc/mtd
dev: size erasesize name
mtd0: 000e0000 00010000 "uboot"
mtd1: 00010000 00010000 "shmoo"
mtd2: 00010000 00010000 "uboot-env"
mtd3: 00700000 00010000 "onie"

What can be the problem?

Thank you very much!
icon

Best answer by Catalinux 14 August 2018, 07:13

Hi!

Yes, I was able to install 3.6.1.

Seems the problem is related to the SFPs. I replaced the white label one I used with official upported ones and everything is ok.

View original

6 replies

Userlevel 3
There's nothing wrong with what's read from /proc/mtd, and (no surprise, since it passed QA), decode-syseeprom -a works on the ARM switches in our lab.

Hard to say exactly what the problem is on your switch, although the most likely cause is an I2C problem talking to the eeprom.

I'd try:
rm -rf /run/cumulus/decode-syseeprom/
to remove the cached copy, then try decode-syseeprom again, and if it still fails, try
hexdump -C /sys/class/eeprom_dev/eeprom8/device/eeprom
and see what it reports.

A cl-support and opening a case with our support team is the next step.
Hi Dave!

Thanks for your response!

A ONIE upgrade to Cumulus Linux 3.6.1 went just fine. But, I have another equipment with 3.6.0 which I will try to update using 'apt upgrade' and I will see if it happens again and I will follow your advises.

Thank you very much!
Hi!

hexdump -C /sys/class/eeprom_dev/eeprom8/device/eeprom
hexdump: /sys/class/eeprom_dev/eeprom8/device/eeprom: No such file or directory

After a hard power reset, I get this on the console:
[ 131.720981] bcm-iproc-i2c 1803b000.i2c: transaction timed out

After finally booting, tail /var/log/syslogs show a lot of:
bcm-iproc-i2c 1803b000.i2c: bus is busy

'ip li li' show all ports (including swp52).

But, the links do not come 'up'.

I am trying to re-install 3.6.1 from ONIE.

Thanks!
Userlevel 4
Hi @Catalinux did you successfully reinstall 3.6.1 from ONIE?
Hi!

Yes, I was able to install 3.6.1.

Seems the problem is related to the SFPs. I replaced the white label one I used with official upported ones and everything is ok.
Userlevel 4
Great, I'm glad it worked out in the end. I hope it didn't take you too long to get it installed.

Reply