Linux native flashing

Discussion of LibreDrive mode, compatible drives and firmwares
kahomono
Posts: 7
Joined: Mon Apr 10, 2017 10:40 am

Re: Linux native flashing

Post by kahomono » Mon Jun 08, 2020 10:27 am

Thanks, Mike!

spl147
Posts: 250
Joined: Mon Dec 10, 2012 4:59 pm

Re: Linux native flashing

Post by spl147 » Wed Jun 17, 2020 11:03 pm

i cannot get this to work!

Code: Select all

~ # /opt/makemkv/bin/makemkvcon f -d /dev/sr0 -f /config/data/sdf_00000070.bin flash -i /
config/data/WH16NS60-1.02.bin

Unknown command

Command produced error code 0x8fffffff

Big-rome
Posts: 12
Joined: Wed Dec 26, 2018 11:59 pm

Re: Linux native flashing

Post by Big-rome » Thu Aug 20, 2020 10:13 pm

I got this to work on my synology nas running makemkv in a docker container.

Big-rome
Posts: 12
Joined: Wed Dec 26, 2018 11:59 pm

Re: Linux native flashing

Post by Big-rome » Thu Aug 20, 2020 10:34 pm

flashing instructions on a synology nas with docker

Code: Select all

sudo docker exec -ti CONTAINERNAME sh
wget http://www.makemkv.com/svq/sdf.bin
chmod +x sdf.bin
wget https://www.makemkv.com/download/mk-firmware-pack-20200720.zip
unzip -q mk-firmware-pack-20200720.zip
cd /opt/makemkv/bin
./sdftool --list
./sdftool --sdf-file=/tmp/sdf.bin -d /dev/sg* rawflash -i /tmp/mk-firmware-pack-20200720/MK/bla/bla/bla.bin 

pr0999
Posts: 1
Joined: Sun Aug 30, 2020 9:23 pm

Re: Linux native flashing

Post by pr0999 » Sun Aug 30, 2020 9:28 pm

HereInPlainSight wrote:
Wed Apr 01, 2020 11:19 pm

Code: Select all

Drive Information
OS device name: /dev/sr0
Current profile: DVD-ROM
Manufacturer: ASUS
Product: BC-12B1ST
Revision: 1.01
Serial number: <removed>
Firmware date: 
Bus encryption flags: 12
But, when I try to do anything of interest with the sdftool, I'm not sure if it has anything to do with the firmware date being missing, but I keep hitting a wall, which seems best surmised with:

Code: Select all

$ ./sdftool.sh -d /dev/sr0 help
No drive tool logic found in SDF.bin
Internal error 0x8d000000
and:

Code: Select all

$ ./sdftool.sh -d /dev/sr0 --info
SDF.bin version: 0x006D
Drive Tool SDF not present
Drive Specific SDF not present
Identification SDF present
Of the two missing -- am I supposed to do anything specific to get / provide them? It looks like my drive is supported, just not on this specific firmware, which is... obviously exactly what I'm trying to fix (though I'm not entirely certain if I'm supposed to update to the latest for my system and then downgrade to the BW-16D1HT 3.02 firmware, that seems like what's being recommended but I'm a bit too new to understand the exact benefits, people just keep saying it can be done).

Any guidance on what I'm missing to be able to at least update my firmware would be great.
Did you ever solve this? I also have a 12B1ST at 1.01 and am trying to update it to a libredrive compatible fw, and running into the exact same problem. The devilsclaw flasher from OP also doesn't seem to work...

Billycar11
Posts: 1291
Joined: Sun Aug 24, 2014 5:49 am

Re: Linux native flashing

Post by Billycar11 » Sun Aug 30, 2020 9:49 pm

pr0999 wrote:
Sun Aug 30, 2020 9:28 pm

Did you ever solve this? I also have a 12B1ST at 1.01 and am trying to update it to a libredrive compatible fw, and running into the exact same problem. The devilsclaw flasher from OP also doesn't seem to work...
dont mess with an asus on 1.01 your asking for trouble only do this if they have 3.xx not worth it for the other drives
Buy a UHD drive from the guide and how to videos maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
Ultimate UHD Drives Flashing Guide Updated 2020: https://www.makemkv.com/forum/viewtopic ... 16&t=19634

hatch
Posts: 1
Joined: Sat Dec 12, 2020 7:02 pm

Re: Linux native flashing

Post by hatch » Sat Dec 12, 2020 7:31 pm

I have an ASUS BW-16D1HT made in March 2020 and I'm having a problem: BD discs do not work after the flashing. CD and DVD discs work. I only tried one BD disc, and it worked before flashing, though it took a while. When inserting the disc, after a while of making "horrible" noises (as described in the Sleep bug), MakeMKV reports "No disc inserted".

I followed these steps:

- Downloaded https://www.makemkv.com/sdf.bin, copied it to /root/.MakeMKV/
- Downloaded https://www.makemkv.com/download/mk-fir ... 200720.zip
- Downloaded and installed makemkv-oss-1.15.3.tar.gz and makemkv-bin-1.15.4.tar.gz (I used a custom installation directory and LD_LIBRARY_PATH to point to the right libmakemkv, if that matters)
- sdftool --info output:

Code: Select all

$ sdftool -d /dev/sr0 --info
SDF.bin version: 0x007D

Drive Tool SDF present

Drive Specific SDF present

[Drive Specific SDF] Embedded Info Strings:
8000:LibreDrive Information

8013:Status
8109:Possible (with patched firmware)

8001:Drive platform
:MT1959

8010:Harware support
8100:Yes

8011:Firmware support
8101:No

8002:Firmware type
8108:Original (patched version available)

8003:Firmware version
:3.10

8005:DVD all regions
8109:Possible (with patched firmware)

8006:BD raw data read
8109:Possible (with patched firmware)

8007:BD raw metadata read
8109:Possible (with patched firmware)

8009:Unrestricted read speed
8109:Possible (with patched firmware)


[Drive Specific SDF] Embedded Status Message:
8096:LibreDrive mode for this drive is only possible with firmware upgrade (id=%1)
:1C602C3A8BBC


Identification SDF present

[Identification SDF] Embedded Info Strings:
8000:LibreDrive Information

8013:Status
8102:Possible, not yet enabled

8001:Drive platform
:MT1959


[Identification SDF] Drive autodetect string:
mtk:19:59:JB8 :ASUS    :BW-16D1HT       3.10:W001601:-
- Flashed with:

Code: Select all

$ sdftool -d /dev/sr0 -v rawflash -i mk-firmware-pack-20200720/MK/ASUS/BW-16D1HT/ASUS-BW-16D1HT-3.10-WM01601-211901041014.bin 
Loaded SDF.bin version 0x7d

Reading input file mk-firmware-pack-20200720/MK/ASUS/BW-16D1HT/ASUS-BW-16D1HT-3.10-WM01601-211901041014.bin
Flashing flags = 0x0 : 0 0 0 0 : ---- ---- ---- ----
Current Drive ID: ASUS_BW-16D1HT_3.10_211901041014_KLOK3TB0433
Ready to write drive flash memory.
Type "yes" to continue, "no" to abort
yes
Operation started: Sending flash image to drive
 100% Operation finished                                
Operation started: Programming flash
 100% Operation finished                                
Done successfully

Command produced 0 file(s)
$ 
Output of --info after flashing was:

Code: Select all

sdftool -d /dev/sr0 --info
SDF.bin version: 0x007D

Drive Tool SDF present

Drive Specific SDF present

[Drive Specific SDF] Embedded Info Strings:
8000:LibreDrive Information

8013:Status
8105:Enabled

8001:Drive platform
:MT1959

8002:Firmware type
8107:Patched (microcode access re-enabled)

8003:Firmware version
:3.10

8005:DVD all regions
8100:Yes

8006:BD raw data read
8100:Yes

8007:BD raw metadata read
8100:Yes

8009:Unrestricted read speed
8100:Yes


[Drive Specific SDF] Embedded Status Message:
8099:Using LibreDrive mode (v%1 id=%2)
:06.2
:0FA242DD4D0B


Identification SDF present

[Identification SDF] Embedded Info Strings:
8000:LibreDrive Information

8013:Status
8102:Possible, not yet enabled

8001:Drive platform
:MT1959


[Identification SDF] Drive autodetect string:
mtk:19:59:JB8 :ASUS    :BW-16D1HT       3.10:WM01601:-
- I tried and the BDs that worked before, no longer worked. I checked in a player and the discs keep working, so that's not it.
- I realized that the instructions mention that the firmware needs to be updated with the 'enc' option, so I tried flashing again:

Code: Select all

sdftool -d /dev/sr0 -v rawflash enc -i mk-firmware-pack-20200720/MK/ASUS/BW-16D1HT/ASUS-BW-16D1HT-3.10-WM01601-211901041014.bin 
Loaded SDF.bin version 0x7d

Reading input file mk-firmware-pack-20200720/MK/ASUS/BW-16D1HT/ASUS-BW-16D1HT-3.10-WM01601-211901041014.bin
Flashing flags = 0x0 : 0 0 0 0 : ---- ---- ---- ----
Sending image in encrypted format
Current Drive ID: ASUS_BW-16D1HT_3.10_211901041014_KLOK3TB0433
Ready to write drive flash memory.
Type "yes" to continue, "no" to abort
yes
Operation started: Sending flash image to drive
 100% Operation finished                                
Operation started: Programming flash
 100% Operation finished                                
Done successfully

Command produced 0 file(s)
But that did not restore access to the BR discs.

Did I brick my unit by forgetting to upload the firmware with the 'enc' option the first time?

Did I miss any steps? Should I downgrade in order to get firmware that fixes the sleep bug? Where I can find information about downgrading? Where can I get the downgraded firmware for this drive? Putting together all the information necessary to reach this point has already been a bit of a hell.

Post Reply