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)