LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-04-2021, 03:43 AM   #1
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Rep: Reputation: 5
Issues updating Samsung 860 EVO ssd firmware


I want to update my Samsung 860 EVO ssd firmware on linux, but I'm encountering errors. Some background to the situation is that Samsung provides an iso to make a linux livecd with to update firmware, but apparently Samsung has recently stopped caring about the quality of those images and they don't work. What some people have done is extract the initrd from the iso and run the updater locally on their system. Here are some posts I found and have been following that show how to do that (the blog seems to have gotten its information from the reddit thread):
https://www.reddit.com/r/zfs/comment..._ssd_firmware/
https://blog.quindorian.org/2021/05/...in-linux.html/

When I follow all those steps including installing unzip as mentioned in both posts, the updater scans for a bit and then aborts with the following error message:
Code:
eError_TransportFailed from ATACmd_Identify.cpp
terminate called after throwing an instance of 'FeatException'
Aborted
I have been unable to find much discussion about this error message and not sure how to resolve it. I'm cautious of running the updater with gdb because I don't want different behavior screwing the ssd while debugging if undefined behavior is causing this. I have everything backed up, but I don't want a bricked ssd at the moment.

I am trying to update the firmware from RVT02B6Q to RVT04B6Q.

Last edited by Yetoo; 09-04-2021 at 03:47 AM.
 
Old 09-04-2021, 03:49 AM   #2
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Issues updating Samsung 860 EVO ssd firmware

Why do you want to do that?

Sorry, I can't answer your question, but I've been using Samsung SSDs for a long time with Linux. I'm curious about the benefits of doing this?
 
Old 09-04-2021, 03:52 AM   #3
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by rkelsen View Post
Why do you want to do that?
Because I want the benefits of the new firmware version.
 
Old 09-04-2021, 03:59 AM   #4
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Which are?
 
Old 09-04-2021, 04:09 AM   #5
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by rkelsen View Post
Which are?
I don't know Samsung doesn't provide them. Supposedly there's compatibility for older systems (that's all support wrote according to a post on a form). Even if there's no real benefit to the firmware update, I want to at least make sure I can update the firmware on Linux without booting into Windows so if there is a future update that fixes a serious flaw and Samsung's live updaters still don't work, I can update from my system and not floundering to set up a windows system to detect my ssd and update from there.
 
Old 09-04-2021, 04:18 AM   #6
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Never had any issues with a Samsung SSD in Linux, and I've never updated a firmware.
 
Old 09-04-2021, 04:08 PM   #7
leclerc78
Member
 
Registered: Dec 2020
Posts: 169

Rep: Reputation: Disabled
I think the OP wanted to install Magician - it's for Windows only.
 
Old 09-04-2021, 04:24 PM   #8
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by leclerc78 View Post
I think the OP wanted to install Magician - it's for Windows only.
Nothing in my original post or any of the posts I linked to suggests this. The ISOs to to extract the initrd or make into a livecd to update Samsung ssd firmware can be obtained at https://www.samsung.com/semiconducto...ownload/tools/ and the specific ISO I'm referring to can be obtained at https://s3.ap-northeast-2.amazonaws....T04B6Q_Win.iso. I don't know why Samsung decided to put a Win suffix in the filename, but I couldn't find an ounce of Microsoft in there.
 
1 members found this post helpful.
Old 09-04-2021, 05:08 PM   #9
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,597

Rep: Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545Reputation: 2545

So you've paid Samsung for a product, and now you want to upgrade the firmware.

Samsung provide a means to upgrade the firmware, but it doesn't work.

Have you attempted to contact Samsung, telling them how it doesn't work, and asking for support in making it work?

 
Old 09-04-2021, 05:25 PM   #10
cwizardone
LQ Veteran
 
Registered: Feb 2007
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,086

Rep: Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262Reputation: 7262
Quote:
Samsung 860/870 SSDs Continue Causing Problems For Linux Users
The story can be found at, https://www.phoronix.com/scan.php?pa...70-More-Quirks
 
1 members found this post helpful.
Old 09-04-2021, 06:12 PM   #11
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Quote:
Originally Posted by cwizardone View Post
Huh. Wow, OK.

I've not noticed any issues. The articles I can find about it only say that users have been reporting problems without mentioning specific problems they're having.

I've got a PM981 in my laptop, an 860 Pro and a 970 Pro in my office file server, and an 860 EVO and 2 x 860 Pro in my home desktop. All 100% Linux machines, all have factory firmware.

None of them have exhibited any noticeable problems. The oldest one is over 3 years old. The office server is over 2 years old.

EDIT: I'll keep researching, but if anyone can provide more information about the specific combinations which have trouble, I'd greatly appreciate it.

There was an article a while back about the hardware Linus uses:
Quote:
Originally Posted by The guy who wrote the Linux kernel
I've refused to touch spinning media for over a decade by now, and for the last several generations I've tried to avoid the hassle with cabling, etc., by just going with an m.2 form factor. I've had several of the Samsung SSD's, they've been fine. A few generations ago there were lots of bad SSD's, these days it's much less of an issue, but I've stuck with what works for me.
EDIT #2: Ok, after doing some research into it, this problem only occurs with particular SATA controllers. The way to find out if your SATA controller is impacted is to search through your kernel logs for the text, "FPDMA QUEUED".

If those words do not appear in your system logs, then your hardware combination is fine. You can use your system as normal.

If those words do appear in your system logs, you can append "libata.force=noncq" to the kernel command line to work around the problem. The article linked to by cwizardone above says that this will now be the default behaviour on all affected hardware combinations.

It's most likely to happen with old AMD SATA controllers.

The problem will happen during periods of high IO, like copying a large file onto the drive. I will also add that this problem is not unique to Linux. If your SATA controller is one of those impacted, using it under Windows 10 can cause your system to freeze requiring a hard reboot. The way to fix it in Windows is similar to the Linux workaround... by disabling NCQ. To do it, you need to add this to your registry:
Code:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\storahci\Parameters\Device]
"NcqDisabled"=dword:00000001

Last edited by rkelsen; 09-05-2021 at 02:33 AM.
 
Old 09-04-2021, 06:45 PM   #12
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Geeze, if the guy wants to update then let him.

My guess would be to run those commands one at a time to see exactly where it failed.

I assume this is fatal. FeatException

apt-get -y install gzip unzip wget cpio
mkdir -p /tmp/samsung/rootfs/mnt
wget -O /tmp/samsung/file.iso $iso_url
mount /tmp/samsung/file.iso /tmp/samsung/rootfs/mnt/
cd /tmp/samsung/rootfs
gzip -dc /tmp/samsung/rootfs/mnt/initrd | cpio -idv --no-absolute-filenames
cp -r /tmp/samsung/rootfs/root/fumagician/* /tmp/samsung/
umount /tmp/samsung/rootfs/mnt
rm -rf /tmp/samsung/rootfs
rm /tmp/samsung/file.iso
cd /tmp/samsung
./fumagician

Someone has a youtube from 2020 on that issue.

Last edited by jefro; 09-04-2021 at 06:48 PM.
 
Old 09-04-2021, 06:54 PM   #13
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by jefro View Post
Geeze, if the guy wants to update then let him.

My guess would be to run those commands one at a time to see exactly where it failed.

I assume this is fatal. FeatException

apt-get -y install gzip unzip wget cpio
mkdir -p /tmp/samsung/rootfs/mnt
wget -O /tmp/samsung/file.iso $iso_url
mount /tmp/samsung/file.iso /tmp/samsung/rootfs/mnt/
cd /tmp/samsung/rootfs
gzip -dc /tmp/samsung/rootfs/mnt/initrd | cpio -idv --no-absolute-filenames
cp -r /tmp/samsung/rootfs/root/fumagician/* /tmp/samsung/
umount /tmp/samsung/rootfs/mnt
rm -rf /tmp/samsung/rootfs
rm /tmp/samsung/file.iso
cd /tmp/samsung
./fumagician

Someone has a youtube from 2020 on that issue.
That Youtube video doesn't show a solution to the issue and has disabled comments so no one can ask if they fixed it since then. Every command except for the last one just extracts the iso and cleans up, the actual update command (the last command) is just one step.

Last edited by Yetoo; 09-04-2021 at 06:55 PM.
 
Old 09-04-2021, 07:28 PM   #14
rkelsen
Senior Member
 
Registered: Sep 2004
Distribution: slackware
Posts: 4,441
Blog Entries: 7

Rep: Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551Reputation: 2551
Quote:
Originally Posted by Yetoo View Post
Some background to the situation is that Samsung provides an iso to make a linux livecd with to update firmware, but apparently Samsung has recently stopped caring about the quality of those images and they don't work.
Are you saying that the officially documented process doesn't work: https://www.samsung.com/semiconducto...UserManual.pdf

Then as indicated by a previous poster, you should complain to Samsung. They provide a bootable environment which runs their scripts to update the firmware of their drives. The whole process happens independently of the OS installed. The only part of the process which depends upon an OS is the burning of the iso to a USB or CD/DVD. This can easily be done on any platform.

If I'm reading the situation correctly, then this impacts upon everyone who has a Samsung SSD, not just Linux users.

I note that the instructions mention that the upgrader won't detect the drive if it is in a hardware RAID. Are you running a RAID?
 
Old 09-04-2021, 08:04 PM   #15
Yetoo
Member
 
Registered: Dec 2015
Distribution: Fedora, Debian, Ubuntu, couldn't install gentoo
Posts: 44

Original Poster
Rep: Reputation: 5
Quote:
Originally Posted by boughtonp View Post
So you've paid Samsung for a product, and now you want to upgrade the firmware.

Samsung provide a means to upgrade the firmware, but it doesn't work.

Have you attempted to contact Samsung, telling them how it doesn't work, and asking for support in making it work?

I didn't contact support at first because the blog that was posted in May 2021 said that this has been an issue for years and I assumed sojmeone has contacted them about it already but with no avail. I would contact them now, but their ssd support is closed on the weekends.

Quote:
Originally Posted by rkelsen View Post
Are you saying that the officially documented process doesn't work: https://www.samsung.com/semiconducto...UserManual.pdf

Then as indicated by a previous poster, you should complain to Samsung. They provide a bootable environment which runs their scripts to update the firmware of their drives. The whole process happens independently of the OS installed. The only part of the process which depends upon an OS is the burning of the iso to a USB or CD/DVD. This can easily be done on any platform.

If I'm reading the situation correctly, then this impacts upon everyone who has a Samsung SSD, not just Linux users.

I note that the instructions mention that the upgrader won't detect the drive if it is in a hardware RAID. Are you running a RAID?
I am not running a software or hardware RAID.

Last edited by Yetoo; 09-04-2021 at 08:05 PM.
 
  


Reply

Tags
firmware, samsung, ssd



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Video : Samsung 860 EVO 250GB VS. Chinese brand Yucun 240GB SSD NicoD SBC Linux - Hardware 3 11-28-2018 09:26 AM
Gigabyte MB H61N-USB3 with Samsung 860 ssd ERKBUNTU Linux - Newbie 1 04-03-2018 06:26 PM
[SOLVED] Want to use Samsung 850 EVO SSD on Biostar M7MCD Ultra 1.5 SATA motherboard 1sweetwater! Linux - Hardware 1 06-08-2015 09:07 AM
LXer: Samsung 840 EVO 120GB SSD LXer Syndicated Linux News 0 01-25-2014 01:10 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration