Old 09-11-2009   #1
MyCE Rookie
 
Join Date: Mar 2003
Location: Kingston Ontario
Posts: 43
Firmware Update Linux

For those that are interested

I could not get MCSE or the rpc1 firmware to install through wine. It correctly detects the drive, however is not able to read the firmware parameters.

In VMWare-workstation 6.5.3, it did update successfully after:
1. Adding a new SCSI device in VM->Settings->Hardware
2. Click "Add"
3. CD/DVD Device, Next
4. Use Physical Drive, Next
5. Typically it will autodetect your Physical Drive, but it is good to verify (Typically SATA drives are /dev/sr0 or /dev/scd0), Finish
6. Click on the CD/DVD (IDE) device and then click "Advanced" in the lower right
7. Change it from IDE to SCSI. If it is the only SATA CD/DVD device in the PC or is the only one you will want to use in VMWare, choose 0:0

To verify that the device is properly identified in VMWare. Go into Windows Device Manager. Under CD/DVD drives it should now show the complete hardware information for your CD/DVD drive instead of "Virtual IDE" device
Jagaer is offline   Reply With Quote
Old 15-11-2009   #2
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
If you point me to the firmware of the drive you are talking about I might be able to make a flasher for your drive.. I already have on that works on linux for other LG drives but i have never tested it on a blueray so i want to see the firmware before suggesting it.
devilsclaw is offline   Reply With Quote
Old 15-11-2009   #3
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
I went and downloaded the firmware for the drive from a japanes site and found that the flasher is the same one that many of the none blueray drives use and those drives my software supports.

if you need help getting the source and how to compile it just ask. Im sure it will work for you on linux. you might need root user privs to do it though not sure.
devilsclaw is offline   Reply With Quote
Old 16-11-2009   #4
MyCE Rookie
 
Join Date: Mar 2003
Location: Kingston Ontario
Posts: 43
Thanks, I did a google search for a linux patcher and came up empty.

EDIT: Found your SF project, thanks.

I'll test it and see if gentoo will add it to the repository.
Jagaer is offline   Reply With Quote
Old 17-11-2009   #5
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
if you let me know what gentoo your running i might be able to download the installer and build it in a virtual machine and send it to you.
devilsclaw is offline   Reply With Quote
Old 17-11-2009   #6
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
I did some research to see how to make a program a bit more compatible with other linux distros and here is my attempt to make it work with your os with out building it specifically for your distro.


http://www.devilsclaws.net/flasher.tar.bz2

download it and go into a console, goto location of the file, extract it with: tar xf flasher.tar.bz

run it:
replace [drive] with the dev path of your cdrom drive
example /dev/hda

1. Backup main firmware
./flasher -d [drive] -m dump_main.bin

2. Backup core firmware
./flasher -d [drive] -c dump_core.bin

3. Flash drive with new firmware
./flasher -d [drive] -f official.bin
devilsclaw is offline   Reply With Quote
Old 17-11-2009   #7
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
I tested it on Damn Small Linux so im guessing it should work on other distros also.
devilsclaw is offline   Reply With Quote
Old 23-11-2009   #8
MyCE Rookie
 
Join Date: Mar 2003
Location: Kingston Ontario
Posts: 43
Sorry I didn't get back sooner

It works fine on gentoo, compiling from source.

I'm making an ebuild to send in for approval to testing branch.

Thanks again for the app
Jagaer is offline   Reply With Quote
Old 26-12-2009   #9
MyCE Member
 
woppr's Avatar
 
Join Date: Aug 2004
Posts: 167
Re: Firmware Update Linux

Quote:
Originally Posted by Jagaer View Post
EDIT: Found your SF project, thanks.
http://sourceforge.net/projects/flasher/files/

Last edited by woppr; 26-12-2009 at 19:41.
woppr is offline   Reply With Quote
Old 26-12-2009   #10
MyCE Member
 
woppr's Avatar
 
Join Date: Aug 2004
Posts: 167
Re: Firmware Update Linux

Thanks, but no go here with LG GH22NS40 and Linux 2.6.32.2, promise 20579 sata II 150.
dumping with -c or -d takes ages and reads dozens of MB of --debug output
resulting in size not matching errors and no output to files.

With --verbose all looks ok but system allows only reading every 3/10s.

-D works fine, dump attached.

Exe ripping not.

flasher -r GH22NS40_NL02.exe
Devilsclaw's Renesas Utility
cmd_ripexe: Starting firmware ripping process
firm_ripexe: Unknown encryption type
cmd_ripexe: Failed firmware ripping process

No other found so far, does not extract temp files to disc.
Attached Files
File Type: zip gh22mem.dmp.zip (84.0 KB, 14 views)
woppr is offline   Reply With Quote
Old 20-01-2010   #11
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
you have to run it as root for one.
devilsclaw is offline   Reply With Quote
Old 30-01-2010   #12
MyCE Member
 
woppr's Avatar
 
Join Date: Aug 2004
Posts: 167
Re: Firmware Update Linux

Same results as root.
woppr is offline   Reply With Quote
Old 20-03-2010   #13
MyCE Member
 
devilsclaw's Avatar
 
Join Date: May 2005
Posts: 221
Re: Firmware Update Linux

The problem is now fixed in the newest version.
http://sourceforge.net/projects/flasher/files/
devilsclaw is offline   Reply With Quote
Old 29-06-2010   #14
MyCE Member
 
woppr's Avatar
 
Join Date: Aug 2004
Posts: 167
Re: Firmware Update Linux

Thx, I'll test backup tomorrow and report.
woppr is offline   Reply With Quote
Old 10-12-2011   #15
MyCE Member
 
woppr's Avatar
 
Join Date: Aug 2004
Posts: 167
Re: Firmware Update Linux

Quote:
Originally Posted by devilsclaw View Post
The problem is now fixed in the newest version.
http://sourceforge.net/projects/flasher/files/
Nope. Sorry for Your great work.

Code:
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 5 commits.

$ uname -a
Linux xxxxx 2.6.39-bpo.2-amd64 #1 SMP Tue Jul 26 10:35:23 UTC 2011 x86_64 GNU/Linux

# flasher --verbose -d /dev/sr1 -c lg-cnl01.bin
Devilsclaw's Renesas Utility
cmd_drive: Opening Drive: /dev/sr1.
CDB6:
0x00000000: 1200 0000 2400                          ....$.
CDB: PASSED
SENSE: Size 24
0x00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00000010: 0000 0000 0000 0000                     ........

inquiry_d->p_qual = 0
inquiry_d->p_devtype = 5
inquiry_d->rmb = 1
inquiry_d->devtype_mod = 0
inquiry_d->iso_ver = 0
inquiry_d->ecma_ver = 0
inquiry_d->ansi_ver = 5
inquiry_d->aec = 0
inquiry_d->triop = 0
inquiry_d->resdata_for = 2
inquiry_d->reladr = 0
inquiry_d->wbus32 = 0
inquiry_d->wbus16 = 0
inquiry_d->sync = 0
inquiry_d->linked = 0
inquiry_d->cmdque = 0
inquiry_d->sftre = 0
inquiry_d->ven_id = HL-DT-ST
inquiry_d->p_id = DVDRAM GH22NS40 @NL01
inquiry_d->p_rev = NL01
inquiry_d->ven_spec = 
cmd_drive: Drive /dev/sr1 Opened.
cmd_dumpcore: Starting dumping process
CDB10:
0x00000000: 3c05 0000 0000 0080 0044                <........D
CDB: PASSED
SENSE: Size 24
0x00000000: 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x00000010: 0000 0000 0000 0000                     ........
...
firm_dumper: Failed to read from drive. Will write what we got so far
cmd_dumpcore: dumped size and firmware size missmatch
Same with -m, -D still works and prints area names, "servo rom" etc,
dump attached.

with --debug it looks like it does not increment read offset > 0xFFFF, it's overflowing and looping ~5x from offset 0x0000 again, reads invalid output and dumps nothing.

And -r not working, too:

Code:
# flasher -r GH22NS40_NL02_speedpatched.exe
Devilsclaw's Renesas Utility
cmd_ripexe: Starting firmware ripping process
firm_ripexe: Unknown encryption type
cmd_ripexe: Failed firmware ripping process
Attached Files
File Type: zip flasher_git_lg_gh22ns_viavt6420_linux2639.zip (127.8 KB, 21 views)
woppr is offline   Reply With Quote
Old 11-03-2013   #16
MyCE Rookie
 
Join Date: Sep 2007
Posts: 37
Trying my luck here - I know this is the LG forum but I notice your flasher project doesnt tie itself to a manufacturer in the description Are there any plans for Liteon code? I recently gained C progression but will be a n00b for some time.

Unfortunately the normal Liteon installers dont work in WINE (GNU/Linux Debian user here) so I need to look further afield, ideally finding a libre flasher.
Omega Weapon is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Proper way to flash firmware in linux? Ironwalker NEC / Optiarc Writer 12 21-02-2008 19:00
Upgrading 1004 firmware with Linux Hyper_Eye CD, DVD and Blu-ray Writers 9 28-08-2006 11:58
LG GSA-4120B firmware upgrade in Linux ? mendieta General Software 1 18-12-2005 16:46
3520 new firmware and linux ewan.paton NEC / Optiarc Writer 2 13-04-2005 08:35
HP 530i-can I update its firmware with Lite-On 832S firmware? bodobodo LiteOn / PLDS / Sony Writer 26 18-01-2005 00:37


All times are GMT +2. The time now is 05:40.
Top