How to install the LibreDrive patched firmware for BD drive, in linux?

Discussion of LibreDrive mode, compatible drives and firmwares
Post Reply
annevejb
Posts: 12
Joined: Wed Jan 11, 2012 12:48 am

How to install the LibreDrive patched firmware for BD drive, in linux?

Post by annevejb »

How to install the LibreDrive patched firmware for BD drive, in linux? :
Manufacturer: HL-DT-ST
Product: BD-RE BH16NS55
Drive platform: MT1959
in linux?
d00zah
Posts: 1586
Joined: Mon Jun 06, 2016 8:23 pm

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by d00zah »

annevejb wrote:
Tue Jul 07, 2020 3:28 pm
How to install the LibreDrive patched firmware for BD drive, in linux? :
Manufacturer: HL-DT-ST
Product: BD-RE BH16NS55
Drive platform: MT1959
in linux?
Linux native flashing

Example:

Linux How To: Flash ASUS-BW-16D1HT
annevejb
Posts: 12
Joined: Wed Jan 11, 2012 12:48 am

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by annevejb »

Thank you for the info. I have made some progress with it.
My drive firmware is 1.03, so I assume that the approach geared to 1.04, mk-firmware-pack-20200214, is the one to use.

From:
Linux How To: Flash ASUS-BW-16D1HT
I got as far as getting
sudo makemkvcon f --help
to work. I still struggle with the next line:

example of use
sudo makemkvcon f -f sdf_00000076.bin -d /dev/sr0 rawflash -i ASUS-BW-16D1HT-3.10-WM01601-211901041014.bin


reconfigured for BH16NS55 and mk-firmware-pack-20200214
sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Input file not found -- HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Internal error 0x83000001

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i mk-firmware-pack-20200214
Input file not found -- mk-firmware-pack-20200214
Internal error 0x83000001

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i mk-firmware-pack-20200214/
Input file not found -- mk-firmware-pack-20200214/
Internal error 0x83000001

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214
Internal error 0xfffffffb

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/
Internal error 0xfffffffb

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Unable to load sdf.bin
Internal error 0xffffffff

sudo makemkvcon f -f sdf_00000019.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Unable to load sdf.bin
Internal error 0xffffffff

So, on that I am stuck.


Update: I have just read the posting
Re: Linux How To: Flash ASUS-BW-16D1HT
Post by MrPickle » Tue Jul 07, 2020 4:25 pm
I found it gives useful extra detail, so:

I then try:
sudo makemkvcon f -f /home/Extra/.MakeMKV/sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
No drive tool logic found in SDF.bin
Internal error 0x8d000000

Still no go.
SamuriHL
Posts: 2327
Joined: Mon Jun 14, 2010 5:32 pm

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by SamuriHL »

Downgrade to 1.15.0 temporarily.
d00zah
Posts: 1586
Joined: Mon Jun 06, 2016 8:23 pm

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by d00zah »

annevejb wrote:
Wed Jul 08, 2020 1:28 pm
Thank you for the info. I have made some progress with it.
My drive firmware is 1.03, so I assume that the approach geared to 1.04, mk-firmware-pack-20200214, is the one to use.

From:
Linux How To: Flash ASUS-BW-16D1HT
I got as far as getting
sudo makemkvcon f --help
to work. I still struggle with the next line:

example of use
sudo makemkvcon f -f sdf_00000076.bin -d /dev/sr0 rawflash -i ASUS-BW-16D1HT-3.10-WM01601-211901041014.bin


reconfigured for BH16NS55 and mk-firmware-pack-20200214
sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Input file not found -- HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Internal error 0x83000001

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i mk-firmware-pack-20200214
Input file not found -- mk-firmware-pack-20200214
Internal error 0x83000001

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i mk-firmware-pack-20200214/
Input file not found -- mk-firmware-pack-20200214/
Internal error 0x83000001

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214
Internal error 0xfffffffb

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/
Internal error 0xfffffffb

sudo makemkvcon f -f sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Unable to load sdf.bin
Internal error 0xffffffff

sudo makemkvcon f -f sdf_00000019.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Unable to load sdf.bin
Internal error 0xffffffff

So, on that I am stuck.


Update: I have just read the posting
Re: Linux How To: Flash ASUS-BW-16D1HT
Post by MrPickle » Tue Jul 07, 2020 4:25 pm
I found it gives useful extra detail, so:

I then try:
sudo makemkvcon f -f /home/Extra/.MakeMKV/sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
No drive tool logic found in SDF.bin
Internal error 0x8d000000

Still no go.
What made you choose/extract 'sdf_0000003e.bin''? Seems VERY old. Example used was 'sdf_00000077.bin' & the most recent I see in my '_private_data.tar'. That should eliminate the "No drive tool logic found in SDF.bin" msg.

& "-i mk-firmware-pack-20200214" isn't a valid option. That's the name of the archive, not the drive-specific FW you should be extracting from the archive. '-i HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin' looked correct.
SamuriHL
Posts: 2327
Joined: Mon Jun 14, 2010 5:32 pm

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by SamuriHL »

That's what I get for reading too fast. Yes, all of that. But, sometimes the SDF won't load properly for 1.15.1. Reverting temporarily to 1.15.0 can help if you're using the proper SDF and still getting the error.
d00zah
Posts: 1586
Joined: Mon Jun 06, 2016 8:23 pm

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by d00zah »

annevejb wrote:
Wed Jul 08, 2020 1:28 pm
sudo makemkvcon f -f /home/Extra/.MakeMKV/sdf_0000003e.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
No drive tool logic found in SDF.bin
Internal error 0x8d000000

Still no go.
A lot to digest in that post... :shock:

Extracting/using the correct .sdf SHOULD do the trick...

sudo makemkvcon f -f /home/Extra/.MakeMKV/sdf_00000077.bin -d /dev/sr0 rawflash -i /home/ajb/.MakeMKV/mk-firmware-pack-20200214/MK/HL-DT-ST/BH16NS55/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
annevejb
Posts: 12
Joined: Wed Jan 11, 2012 12:48 am

Re: How to install the LibreDrive patched firmware for BD drive, in linux?

Post by annevejb »

Done successfully. Gratitude.

Part of the problem could be that I save settings between OS installs by using a partition that is not affected by a fresh install. Over the years it seems to get cluttered.
I try a fresh install of MakeMKV 1.15.1. If it does not work, then I will try 1.15.0.

Using the instructions in
Linux How To: Flash ASUS-BW-16D1HT
tar -tvf ~/.MakeMKV/_private_data.tar
This does not give any file names, just a long list of numbered bin files.

Ark of _private_data.tar gives sdf_00000078.bin.
Extracted and placed in my .MakeMKV data directory, with the firmware file.


sudo makemkvcon f -f /home/Extra/.MakeMKV/sdf_00000078.bin -d /dev/sr0 rawflash -i /home/Extra/.MakeMKV/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
[sudo] password for ajb:

Reading input file /home/Extra/.MakeMKV/HL-DT-ST-BD-RE_BH16NS55-1.04-NM01701-211901041342.bin
Flashing flags = 0x0 : 0 0 0 0 : ---- ---- ---- ----
Current Drive ID: HL-DT-ST_BD-RE__BH16NS55_1.03_211711201704_K9CHCO84447
Ready to write drive flash memory.
Type "yes" to continue, "no" to abort
y
yes
Operation started: Sending flash image to drive
100% Operation finished
Operation started: Programming flash
100% Operation finished
Done successfully

Drive Information
OS device name: /dev/sr0
Manufacturer: HL-DT-ST
Product: BD-RE BH16NS55
Revision: 1.04
Serial number: K9CHCO84447
Firmware date: 2119-01-04 13:42
Bus encryption flags: 17
Highest AACS version: 72

LibreDrive Information
Status: Enabled
Drive platform: MT1959
Firmware type: Patched (microcode access re-enabled)
Firmware version: 1.04
DVD all regions: Yes
BD raw data read: Yes
BD raw metadata read: Yes
Unrestricted read speed: Yes
Post Reply