Page 1 of 1

BU40N Flash Hangs

Posted: Sun Aug 24, 2025 1:40 am
by tauceti
I'm trying to flash a BU40N drive from version 1.05 -> 1.03 (see further below for full details of the drive). However, when I run the command:
makemkvcon f -d 'dev_21:4' -f /tmp/sdf.bin rawflash main -i /tmp/HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin
It hangs forever with no progress. I am able to still use the drive after killing the command.
Followed instructions from viewtopic.php?p=181425#p181425 to flash on a linux device. I have no disc in the drive.

How can I troubleshoot this? I include more details below. Thanks!

Command:

makemkvcon f -l
Found 2 drives(s)
00: dev_21:4, /dev/sr1, /dev/sr1
HL-DT-ST_BD-RE_BU40N_1.05_212404231347_MOBP4291705

[omitted second drive]
md5sum of the two files used:
$ md5sum sdf.bin HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin
602b0be6847e9623f7454ac2b87df80d sdf.bin
74ebaf627d2aac5f899191d6caceb54c HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin
Drive Info:
Drive Information
OS device name: /dev/sr1
Manufacturer: HL-DT-ST
Product: BD-RE BU40N
Revision: 1.05
Serial number: XXX
Firmware date: 2124-04-23 13:47
Bus encryption flags: 17

LibreDrive Information
Status: Possible, not yet enabled
Drive platform: MT1959

No disc inserted

Re: BU40N Flash Hangs

Posted: Sun Aug 24, 2025 3:23 am
by Billycar11
well you dont have enc but thats probably not the problem though
last few version have a flashing bug on linux go back to 1.17 and try with enc and it should work and go to 1.00 after 1.03 as on linux there is also a bug that 1.03mk does not work only the de fw does

Re: BU40N Flash Hangs

Posted: Sun Aug 24, 2025 12:48 pm
by tauceti
Thanks. I ended up addressing this in windows. I'm not sure why it doesn't work in linux. MakeMKV recognizes my drive but would also freeze when trying to load a bluray disc (that I could load in windows; it's not UHD).
What's interesting is that when I would start MakeMKV in linux, it would launch a process `makemkvcon`, which would just hang forever. When killing MakeMKV, I would have to manually kill this process myself.

After flashing in Windows, MakeMKV works in Linux. I also don't see that hanging process named `makemkvcon` anymore.

Here is what I did and the relevant output below/

First, I followed https://github.com/nxyzo/Flashing-Verba ... -to-1.03MK

Double checked my drive worked by loading a disc in windows (unlike linux, the disc loads):
Drive Information
OS device name: \Device\CdRom0
Current profile: BD-ROM
Manufacturer: HL-DT-ST
Product: BD-RE BU40N
Revision: 1.05
Serial number: XXXXXX
Firmware date: 2124-04-23 13:47
Bus encryption flags: 17
Highest AACS version: 78

LibreDrive Information
Status: Possible, not yet enabled
Drive platform: MT1959

Disc Information
Label: Stargate_SG1_BR_S5D2
Timestamp: 2021-01-22 12:12:47
Protection: AACS v78
Data capacity: 34.82 Gb
Disc type: BD-ROM
Number of layers: 2
Channel bit length: 74,5 nm (25.0 GB max. per layer)
I then ran this at command line (powershell):
./makemkvcon64.exe f --all-yes -d D: rawflash enc -i "C:\Users\jrmlh\projects\bluray\The all you need firmware pack\The all you need firmware pack\LG slim BU40N\HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin"
and got this output:
./makemkvcon64.exe f --all-yes -d D: rawflash enc -i "C:\Users\XXX\projects\bluray\The all you need firmware pack\The all you need firmware pack\LG slim BU40N\HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin"

Reading input file C:\Users\XXX\projects\bluray\The all you need firmware pack\The all you need firmware pack\LG slim BU40N\HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin
Flashing flags = 0x0 : 0 0 0 0 : ---- ---- ---- ----
Sending image in encrypted format
Current Drive ID: HL-DT-ST_BD-RE_BU40N_1.05_212404231347_MOBP4291705
Ready to write drive flash memory. (auto confirmed)
Operation started: Sending flash image to drive
100% Operation finished
Operation started: Programming flash
100% Operation finished
Done successfully
After this, I now see this output in linux when test loading a disc:
Drive Information
OS device name: /dev/sr1
Current profile: BD-ROM
Manufacturer: HL-DT-ST
Product: BD-RE BU40N
Revision: 1.03
Serial number: XXX
Firmware date: 2118-10-24 19:34
Bus encryption flags: 17
Highest AACS version: 78

LibreDrive Information
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

Disc Information
Label: Stargate_SG1_BR_S5D2
Timestamp: 2021-01-22 12:12:47
Protection: AACS v78
Data capacity: 34.82 Gb
Disc type: BD-ROM
Number of layers: 2
Channel bit length: 74,5 nm (25.0 GB max. per layer)

Re: BU40N Flash Hangs

Posted: Mon Aug 25, 2025 1:03 am
by MartyMcNuts
tauceti wrote:
Sun Aug 24, 2025 12:48 pm
Thanks. I ended up addressing this in windows. I'm not sure why it doesn't work in linux. MakeMKV recognizes my drive but would also freeze when trying to load a bluray disc (that I could load in windows; it's not UHD).
What's interesting is that when I would start MakeMKV in linux, it would launch a process `makemkvcon`, which would just hang forever. When killing MakeMKV, I would have to manually kill this process myself.

After flashing in Windows, MakeMKV works in Linux. I also don't see that hanging process named `makemkvcon` anymore.

Here is what I did and the relevant output below/

First, I followed https://github.com/nxyzo/Flashing-Verba ... -to-1.03MK

Double checked my drive worked by loading a disc in windows (unlike linux, the disc loads):
Drive Information
OS device name: \Device\CdRom0
Current profile: BD-ROM
Manufacturer: HL-DT-ST
Product: BD-RE BU40N
Revision: 1.05
Serial number: XXXXXX
Firmware date: 2124-04-23 13:47
Bus encryption flags: 17
Highest AACS version: 78

LibreDrive Information
Status: Possible, not yet enabled
Drive platform: MT1959

Disc Information
Label: Stargate_SG1_BR_S5D2
Timestamp: 2021-01-22 12:12:47
Protection: AACS v78
Data capacity: 34.82 Gb
Disc type: BD-ROM
Number of layers: 2
Channel bit length: 74,5 nm (25.0 GB max. per layer)
I then ran this at command line (powershell):
./makemkvcon64.exe f --all-yes -d D: rawflash enc -i "C:\Users\jrmlh\projects\bluray\The all you need firmware pack\The all you need firmware pack\LG slim BU40N\HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin"
and got this output:
./makemkvcon64.exe f --all-yes -d D: rawflash enc -i "C:\Users\XXX\projects\bluray\The all you need firmware pack\The all you need firmware pack\LG slim BU40N\HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin"

Reading input file C:\Users\XXX\projects\bluray\The all you need firmware pack\The all you need firmware pack\LG slim BU40N\HL-DT-ST-BD-RE_BU40N-1.03-NM00000-211810241934.bin
Flashing flags = 0x0 : 0 0 0 0 : ---- ---- ---- ----
Sending image in encrypted format
Current Drive ID: HL-DT-ST_BD-RE_BU40N_1.05_212404231347_MOBP4291705
Ready to write drive flash memory. (auto confirmed)
Operation started: Sending flash image to drive
100% Operation finished
Operation started: Programming flash
100% Operation finished
Done successfully
After this, I now see this output in linux when test loading a disc:
Drive Information
OS device name: /dev/sr1
Current profile: BD-ROM
Manufacturer: HL-DT-ST
Product: BD-RE BU40N
Revision: 1.03
Serial number: XXX
Firmware date: 2118-10-24 19:34
Bus encryption flags: 17
Highest AACS version: 78

LibreDrive Information
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

Disc Information
Label: Stargate_SG1_BR_S5D2
Timestamp: 2021-01-22 12:12:47
Protection: AACS v78
Data capacity: 34.82 Gb
Disc type: BD-ROM
Number of layers: 2
Channel bit length: 74,5 nm (25.0 GB max. per layer)
I suggest you now flash the drive to BU40N 1.00 as BU40N 1.03-MK doesn't work very well on Linux.

Re: BU40N Flash Hangs

Posted: Tue Sep 09, 2025 9:42 pm
by gabiel
Hi MartyMcNuts,

I have a couple of questions regarding the flashing of BU40N to 1.00:
  1. The procedure is the same as flashing to 1.03?
  2. Can it be done directly from stock firmware or the drive should be flashed first to 1.03?
  3. Do you have a link to the issues of 1.03 on Linux? I tried searching the forum but I cannot find any specific issue, only other post stating that there are issues
Thanks for your time.

Re: BU40N Flash Hangs

Posted: Mon Sep 15, 2025 10:55 pm
by NGNXM8
Hey Gabiel!

There are no issues with 1.03 on Linux i backed up 3 UHD discs just a few hours ago on it.
The only thing that is broken, is makemkvcon after version 1.17.6, so you cant flash drives on linux with newer versions.

Re: BU40N Flash Hangs

Posted: Tue Sep 16, 2025 1:33 am
by MartyMcNuts
gabiel wrote:
Tue Sep 09, 2025 9:42 pm
Hi MartyMcNuts,

I have a couple of questions regarding the flashing of BU40N to 1.00:
  1. The procedure is the same as flashing to 1.03?
  2. Can it be done directly from stock firmware or the drive should be flashed first to 1.03?
  3. Do you have a link to the issues of 1.03 on Linux? I tried searching the forum but I cannot find any specific issue, only other post stating that there are issues
Thanks for your time.
Yes
No
No. There are quite a few posts in various threads on the forum. I think it's more of a MakeMKV issue (Linux version), not a firmware issue.

Re: BU40N Flash Hangs

Posted: Tue Sep 16, 2025 7:18 pm
by gabiel
Ok, I will stay with 1.03 then. Thank you very much for your answers NGNXM8 and MartyMcNuts.

Regards.