Error Revert Quanta LB6M to Fastpath

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

Ulli

New Member
Sep 6, 2018
4
0
1
I followed the Instructions to flash the LB6M to a Brocade Turboiron. Everything worked fine.
Then i wanted to revert to Fastpath, also following the instructions, but after the reboot to the fastpath-image the bootloader does not find any image.
First it appears the following CRC-error:

*** WARNING: Could not read MAC address from EEPROM
VPD EEPROM CRC (0xb7a97e75) invalid, should be 0x664eb506

later another CRC-Error:

### JFFS2 loading 'image1' to 0x8000000
Scanning JFFS2 FS: . done.
### JFFS2 load complete: 257652 bytes loaded to 0x8000000
## Booting kernel from Legacy Image at 08000074 ...
Image Name: FASTPATH System for lb4m
Image Type: PowerPC Linux Multi-File Image (gzip compressed)
Data Size: 8134458 Bytes = 7.8 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 1138558 Bytes = 1.1 MB
Image 1: 1422470 Bytes = 1.4 MB
Image 2: 474 Bytes = 0.5 kB
Image 3: 5572930 Bytes = 5.3 MB
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
### JFFS2 loading 'image2' to 0x8000000
find_inode failed for name=image2
load: Failed to find inode
### JFFS2 LOAD ERROR<0> for image2!
## Booting kernel from Legacy Image at 08000074 ...
Image Name: FASTPATH System for lb4m
Image Type: PowerPC Linux Multi-File Image (gzip compressed)
Data Size: 8134458 Bytes = 7.8 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 1138558 Bytes = 1.1 MB
Image 1: 1422470 Bytes = 1.4 MB
Image 2: 474 Bytes = 0.5 kB
Image 3: 5572930 Bytes = 5.3 MB
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!
### JFFS2 loading 'image1' to 0x8000000
### JFFS2 load complete: 257652 bytes loaded to 0x8000000
## Booting kernel from Legacy Image at 08000074 ...
Image Name: FASTPATH System for lb4m
Image Type: PowerPC Linux Multi-File Image (gzip compressed)
Data Size: 8134458 Bytes = 7.8 MB
Load Address: 00000000
Entry Point: 00000000
Contents:
Image 0: 1138558 Bytes = 1.1 MB
Image 1: 1422470 Bytes = 1.4 MB
Image 2: 474 Bytes = 0.5 kB
Image 3: 5572930 Bytes = 5.3 MB
Verifying Checksum ... Bad Data CRC
ERROR: can't get kernel image!

Has anyone a idea, what i can do to revert to Fastpath?
 
Did you actually follow the guide all the way through without skipping a single thing? It seems like you skipped some steps.

When you first booted into u-boot for the first time, you should have set the MAC address with:

Code:
setenv ethaddr 54:AB:3A:42:0B:42
saveenv
reset

It will reboot back into u-boot. If it tries to fully boot, hit the b key to enter u-boot instead.

Then you need to tftpboot the quanta image, not try to boot it off flash:

Code:
setenv ipaddr 192.168.1.50
setenv serverip 192.168.1.49
tftpboot 0x08000000 lb6m.1.2.0.18.img
boot

it will boot into the fastpath utility menu, which you need to use option 2 to load a code update package, then follow those instructions to get the quanta image back to flash. Read the guide from start to finish and follow it exactly: (LB6M) Revert To Fastpath - Brokeaids
 
Hi, I followed exactly the guide, without any error.
The MAC-Addsess is set correctly, but during the reboot,
the error-message "Could not read MAC address from EEPROM" appears...
I tried to set the mac-address from the sticker on the device, but the same result.
I flashed the brocade firmware again, works fine, but i wanted to have a firmware with web-management . Is there another firmware with web-management i could flash on the device?
 
after which reboot? After tftp booting the image, then flashing it via the code update option?

if you can get me remote access to the serial console I can figure out what's missing (via teamviewer or similar on windows, or ssh on linux)

there's only two firmwares you can run, brocade or quanta, so you'll have to pick between those
 
You might want to delete that and send it to me in a private message, or anyone here will have access to your computer. I am going to bed (on a night shift), but this evening I can take a look
 
so, @Ulli found a VERY serious error in the "revert to fastpath" guide

Once you have u-boot loaded and running, the guide tells you to do this:

Code:
tftpboot 0x08000000 lb6m.1.2.0.18.img
boot

What that is SUPPOSED to do, is load the fastpath image from your TFTP server, into RAM address 0x08000000 - that part is correct

Then the "boot" command, with the appropriate u-boot environment variables set, is supposed to boot whatever image is at 0x08000000 (or 0x08000074 to be exact, the first 74 bytes are headers).

Except with the stock environment variables in the correct u-boot image, the "boot" command actually loads the contents from "image1" in flash, into the RAM address 0x08000000, overwriting our fresh image we just TFTP'd in, then tries to boot it. It was failing to load the kernel for him, because the boot command was loading the original fastpath image from flash, the one that got overwritten a few times by flashing the brocade software.

I was "very careful" and tested the revert guide on several switches before publishing it, and it worked every time - even though now I know it was loading in and booting the original fastpath image from flash, the one that shipped with the switch. I am honestly amazed nobody has ran into this problem before now - You would think flashing the brocade firmware, then it writing configs and logs, would have eventually overwritten the part of flash that stored the original fastpath image. I guess everyone got lucky and @Ulli was the first person who's flashing actually overwrote that part of flash

Anyway, the fix is quite easy, the "bootm" command actually loads code from RAM like we need:

Code:
tftpboot 0x08000000 lb6m.1.2.0.18.img
bootm 0x08000074

Just added to the guide site - MASSIVE BUG FIX: boot from RAM, not flash · Fohdeesha/quanta-brocade@e140698

Thanks to Ulli for finding this. Quite a beginner mistake on my part
 
Last edited:
  • Like
Reactions: Tha_14