Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seagate Firecuda 530 on Thunderbolt 4 Acasis TBU405 - no sector size to 4096 alignment possible #37

Open
Districtor opened this issue Jan 22, 2025 · 4 comments
Labels

Comments

@Districtor
Copy link

Problem

Asus Hero XIII on-board Thunderbolt 4 (Intel JHL8540) to Acasis TBU405 (Intel JHL7440) external enclosure. The TBU is recognized via TB Control Center, the Firecuda 530 is recognized as a Firecuda 530 and it can be interacted with normally via Seachest command-line utilities. Flashing the firmware in Win 11 Pro worked fine, since sector alignment does not work in Windows environment, Seaboot was used.

Seaboot (tinycorelinux) recognizes the drive as Firecuda 530 and it can be interacted with normally. 4096 sector size is shown as available.
However alignment fails with the error message shown on the screenshot.

Image

Expected behavior

Sector size set to 4096.

How to reproduce

See screenshot.

Deployment information

Seaboot (tinycorelinux).

Additional information

No response

@Districtor Districtor added the bug label Jan 22, 2025
@vonericsen
Copy link
Contributor

Hi @Districtor,

Can you try running it this way? SeaChest_Lite -d <handle> --nvmFormat 1 --confirm this-will....

If that works, please let me know. I think there is a bug translating the requested sector size to a format number. The method I am asking gives a format number directly which should workaround this for now, I just want to confirm it is working properly.

@Districtor
Copy link
Author

Districtor commented Jan 23, 2025

Thank you for your fast reply.

Did not work, exact same error. Note: SeaChest_Lite, as per your example, does not support the --nvmFormat option, SeaChest_NVMe was used in all instances.

Attached is the verbose 4 txt file for 4096, i do not think that SeaChest_Lite supports verbose.

sector.txt

Image

@vonericsen
Copy link
Contributor

@Districtor,

Thanks for sharing the verbose output.

Note: SeaChest_Lite, as per your example, does not support the --nvmFormat option, SeaChest_NVMe was used in all instances.

You are right! That was my mistake, I saw SeaChest_Lite at the top of the image and used that....oops.

I think I see the problem when I am walking through the code.
There is validation that a LBA format identifier is within range of what the drive supports. It seems that a bug was introduced when we added some support for NVMe 2.0 specification which upped the maximum number of formats from 16 to 64.
I will make a change and test this. I can share a test build once I have verified it fixes the issue.

If you are comfortable using nvme-cli as another solution, this should be the equivalent of what SeaChest is running: nvme format /dev/nvme2n1 --lbaf 1
I do not remember if nvme-cli polls for progress so you may need to wait a few minutes for it to complete before removing power/rebooting.

I don't remember if nvme-cli is included in the USB image we use, but it might be. You could alternatively flash something like Ubuntu to a USB, install nvme-cli with apt, and then run this command.
On the USB (/dev/sde1 in your image) there are some folders you can check to see if it's there. You can use ls ./<folder> to see what's in each and if it is present or not. Sometimes we include other tools when we build the image.

vonericsen added a commit to Seagate/opensea-operations that referenced this issue Jan 24, 2025
The code was subtracting a 1 from the number of supported LBA formats, but this is incorrect. Since that field is zeros based, this subtraction is not necessary.

[Seagate/ToolBin#37]

Signed-off-by: Tyler Erickson <[email protected]>
@Districtor
Copy link
Author

Districtor commented Jan 24, 2025

Seaboot does include nvme-cli, however the version seems to be outdated (1.5), so I used System Rescue, which does include the most recent version (2.11). --lbaf 1 completed successfully.

Image

One thing I noticed with Seaboot: The main screen shows: 13-Apr-2020, yet the included SeaChest utilities show their build date
as: Sep 26 2024. Somewhat confusing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants