Flashing disc drives.

The place to discuss linux version of MakeMKV
Post Reply
Message
Author
Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Flashing disc drives.

#1 Post by Qwerty27 » Mon Nov 06, 2023 5:54 am

Hi. I'm trying to flash a drive on Linux.

However, the flasher guide seems to be for mac terminal. Can some one help me?
I'm kinda new to terminal.

NGr2023
Posts: 7
Joined: Fri Mar 31, 2023 12:48 pm

Re: Flashing disc drives.

#2 Post by NGr2023 » Mon Nov 06, 2023 9:44 am

Here is how I flashed my drive a while ago (I had moved the sdf.bin and the firmware file to /tmp/asus):

First get drive identifier (first section after 00:, e.g. dev_21:1):

/usr/bin/makemkvcon f -l

Then flash drive:

/usr/bin/makemkvcon f -d 'dev_21:1' -f /tmp/asus/sdf.bin rawflash enc -i /tmp/asus/DE_ASUS_BC-12D2HT_3.11_MK.bin

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#3 Post by Qwerty27 » Tue Nov 07, 2023 4:52 pm

NGr2023 wrote:
Mon Nov 06, 2023 9:44 am
Here is how I flashed my drive a while ago (I had moved the sdf.bin and the firmware file to /tmp/asus):

First get drive identifier (first section after 00:, e.g. dev_21:1):

/usr/bin/makemkvcon f -l

Then flash drive:

/usr/bin/makemkvcon f -d 'dev_21:1' -f /tmp/asus/sdf.bin rawflash enc -i /tmp/asus/DE_ASUS_BC-12D2HT_3.11_MK.bin
I tried the second line and it didn't work for me. All I got was the drive finder. I'm curious. Is dev_21:1 supposed to be replaced by the drive I want to flash? And is the DE_ASUS_BC-12D2HT_3.11_MK.BIN supposed to be the firmware pack I need?

dcoke22
Posts: 3082
Joined: Wed Jul 22, 2020 11:25 pm

Re: Flashing disc drives.

#4 Post by dcoke22 » Tue Nov 07, 2023 5:21 pm

Yes, you are supposed to replace dev_21:1 in the example with the identifier of your specific drive.

And you should match the firmware used in the command to whatever is required for your drive.

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#5 Post by Qwerty27 » Wed Nov 08, 2023 6:14 am

dcoke22 wrote:
Tue Nov 07, 2023 5:21 pm
Yes, you are supposed to replace dev_21:1 in the example with the identifier of your specific drive.

And you should match the firmware used in the command to whatever is required for your drive.
I tried it again and it said input file not found. Like input file not found - - /tmp/lg/firmware pack not found
And then
Internal error 0x8300001.

I've tried several times. And,sometimes, it will just say /tmp/LG/LG

The first LG is the file I made in tmp for both the sdf.bin and the firmware pack. The second one is the start of the firmware folder. the firmware folder I am using is LG slim BP50NB40-NB50.

I tried putting under scores "-", dashes "-" and spaces. All just gave me the same error. And the space version just gave me the error back, but with /tmp/LG/LG and nothing else after the second LG. I even tried using /so and so. ( the bin in the firmware folder) and the error came back.

dcoke22
Posts: 3082
Joined: Wed Jul 22, 2020 11:25 pm

Re: Flashing disc drives.

#6 Post by dcoke22 » Wed Nov 08, 2023 6:29 am

I assume there are spaces in a folder or filename somewhere.

https://www.howtogeek.com/850124/spaces ... -on-linux/

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#7 Post by Qwerty27 » Wed Nov 08, 2023 6:53 am

Thank you. Turns out the firmware pack had spaces in it. I just put ' around it and it seemed to work.

Now, instead of bash or whatever, it shows >.

Do I put the firmware I need there or what?

dcoke22
Posts: 3082
Joined: Wed Jul 22, 2020 11:25 pm

Re: Flashing disc drives.

#8 Post by dcoke22 » Thu Nov 09, 2023 2:00 pm

Qwerty27 wrote:
Wed Nov 08, 2023 6:53 am
Thank you. Turns out the firmware pack had spaces in it. I just put ' around it and it seemed to work.

Now, instead of bash or whatever, it shows >.

Do I put the firmware I need there or what?
Is your command prompt changing to a > and it is not executing your command? That doesn't seem right. It might be easier if you modified the firmware pack folder names so there are not any spaces. Then you can undo whatever you did to deal with the spaces.

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#9 Post by Qwerty27 » Thu Nov 09, 2023 4:46 pm

dcoke22 wrote:
Thu Nov 09, 2023 2:00 pm
Qwerty27 wrote:
Wed Nov 08, 2023 6:53 am
Thank you. Turns out the firmware pack had spaces in it. I just put ' around it and it seemed to work.

Now, instead of bash or whatever, it shows >.

Do I put the firmware I need there or what?
Is your command prompt changing to a > and it is not executing your command? That doesn't seem right. It might be easier if you modified the firmware pack folder names so there are not any spaces. Then you can undo whatever you did to deal with the spaces.
I again and it still showed the > the command prompt. Then I tried removing spaces from both the code and the file name and the input error came back. I also tried using \ instead of spaces and that didn't work.

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#10 Post by Qwerty27 » Thu Nov 09, 2023 4:57 pm

this is what i put in.

/lg is a file i put in the tmp file on my computer and it has my firmware pack and sdf bin.

user@user-ThinkPad-SL510:~$ /usr/bin/makemkvcon f -d HL-DT-ST_BD-RE_BP50NB40_1.03_212107081603_SIK08N7MI4815 -f /tmp/lg/sdf.bin rawflash enc -i /tmp/lg/'LG slim BP50NB40-NB50"MK.BIN

user@user-ThinkPad-SL510:~$ is the command prompt, i think. and when i execute this command it turns into >.

and if i remove the quotation marks at the end and replace it with an apostrophe, it repeats the same input error.

NGr2023
Posts: 7
Joined: Fri Mar 31, 2023 12:48 pm

Re: Flashing disc drives.

#11 Post by NGr2023 » Thu Nov 09, 2023 5:11 pm

The drive identifier doesn't look correct. What is the output of:
/usr/bin/makemkvcon f -l

It will be easier just to replace all spaces in the firmware name with underscores, otherwise you have to escape them with \

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#12 Post by Qwerty27 » Thu Nov 09, 2023 5:22 pm

shows this:

Found 2 drives(s)
00: dev_21:1, /dev/sr0, /dev/sr0
Optiarc_DVD_RW_AD-7710H_1.S0_Lf315C3BfKXc

01: dev_21:2, /dev/sr1, /dev/sr1
HL-DT-ST_BD-RE_BP50NB40_1.03_212107081603_SIK08N7MI4815.

dcoke22
Posts: 3082
Joined: Wed Jul 22, 2020 11:25 pm

Re: Flashing disc drives.

#13 Post by dcoke22 » Thu Nov 09, 2023 5:57 pm

I agree that the command has the wrong drive identifier. Also, quotes to accommodate spaces in a file name are used incorrectly. The command should be something like the following:

Code: Select all

/usr/bin/makemkvcon f -d 'dev_21:2' -f /tmp/lg/sdf.bin rawflash enc -i '/tmp/lg/LG slim BP50NB40-NB50MK.BIN'
assuming the name of the firmware file you're trying to flash is:

Code: Select all

LG slim BP50NB40-NB50MK.BIN
If you're getting the files from the All You Need Firmware pack, then unless you've changed the name, the name of the file is:

Code: Select all

HL-DT-ST-BD-RE_BP50NB40-NB50-1.03-NM00800-212005070917.bin
And by default it is in a folder named:

Code: Select all

LG slim BP50NB40-NB50
Using those defaults would imply the command should be:

Code: Select all

/usr/bin/makemkvcon f -d 'dev_21:2' -f /tmp/lg/sdf.bin rawflash enc -i '/tmp/lg/LG slim BP50NB40-NB50/HL-DT-ST-BD-RE_BP50NB40-NB50-1.03-NM00800-212005070917.bin'
or, if you don't want to use quotes for spaces, but instead escape the space with a \

Code: Select all

/usr/bin/makemkvcon f -d 'dev_21:2' -f /tmp/lg/sdf.bin rawflash enc -i /tmp/lg/LG\ slim\ BP50NB40-NB50/HL-DT-ST-BD-RE_BP50NB40-NB50-1.03-NM00800-212005070917.bin
If you've renamed the folders or renamed files, then you need to use whatever the appropriate names are for your system.

Finally, consider taking your drive to a Windows system where you can install MakeMKV and the SDFTool GUI to do the flashing. It simplifies the process and adds a few more safeguards compared to the command line. Once the drive is flashed, it can be used on any OS.

Qwerty27
Posts: 16
Joined: Sun Oct 29, 2023 12:52 am

Re: Flashing disc drives.

#14 Post by Qwerty27 » Thu Nov 09, 2023 6:25 pm

I tried your code. the very last one. it worked showing this!

Reading input file /tmp/lg/LG slim BP50NB40-NB50/HL-DT-ST-BD-RE_BP50NB40-NB50-1.03-NM00800-212005070917.bin
Flashing flags = 0x0 : 0 0 0 0 : ---- ---- ---- ----
Sending image in encrypted format
Current Drive ID: HL-DT-ST_BD-RE_BP50NB40_1.03_212107081603_SIK08N7MI4815
DEBUG: Code 117637252 at wfCw3OE9o6xoDD[;$ZOJdpeNgiQob2>_:213132261
Desktop drive handshake failed with error=0x07030084, trying slim drive handshake...
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

and when i opened makemkv it showed this:

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

i have one question, though. the bp50nb40s require several flashings. do i still have to do them?
or am i good.

lastly id like to thank all of of you for helping me. i have been almost to the point of ripping my hair over this for the past two weeks! Thank you! thank you! thank you!

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

Re: Flashing disc drives.

#15 Post by Billycar11 » Thu Nov 09, 2023 10:57 pm

Qwerty27 wrote:
Thu Nov 09, 2023 6:25 pm

i have one question, though. the bp50nb40s require several flashings. do i still have to do them?
or am i good.

lastly id like to thank all of of you for helping me. i have been almost to the point of ripping my hair over this for the past two weeks! Thank you! thank you! thank you!
Why do ask the same question multiple times I already told you in your pms it will require multiple flashings if you want it to do UHD
Buy a UHD drive from the guide and how to video maker: https://www.makemkv.com/forum/viewtopic ... 20&t=17831
UHD Drives Guide: https://www.makemkv.com/forum/viewtopic ... 16&t=19634
Auto flash kit $25 Email me for one Billycar5924@gmail.com

Post Reply