Proper way to flash firmware in linux?

vbimport

#1

Is it possible to get a better explanation of how to flash my ND-3540A than whats in the faq?

To Flash a drive in DOS, LINUX or MAC. Use a current version of Binflash. Run Binflash with the commands necessary to load the firmware package. Binflash will accept either a .BIN or a .EXE file and flash your drive.

A little vague don’t you think?

What exactly is the command or entire procedure to flash in linux?

Thanx in advance:)


#2

look @ http://binflash.cdfreaks.com/


#3

Found it just after posting…thanks.


#4

Guess i am missing something.I do…
necflash -scan

List of supported devices:

Device : /dev/hdc
Vendor : _NEC
Model : DVD_RW ND-3540A
Firmware : 1.01

necflash -dump /home/Iron/Oldfirmware.bin 1.0.1
and get;
Do you understand and agree to the statement above (y/n)? y

// sgioOpen.open: No such file or directory
Error opening SCSI device

That binflash page shows commands but thats it…am I not makeing the syntax correctly?


#5

necflash -dump /home/Iron/Oldfirmware.bin /dev/hdc
that worked.


#6

Ok need help again…I ran;
necflash -flash /home/Iron/LD3540_1.W4_Firmware_Package.exe /dev/hdc
everything seem to go normal…my drive was lit up a bit and after a few seconds stopped.
After a reboot,my firmware is still version 1.01

Im assumeing it didnt flash with the LD3540_1.W4_Firmware_Package.exe because the .bin is in the exe…correct?
How do I get the proper 1.W4.bin to flash this drive?


#7

The necessary data is contained in the .exe file and the latest Binflash versions can flash these files from within any supported operating system.
Try adding one or two “-v” to your commandline to get a more detailed output on what is happening.

What Linux kernel are you using, when you try to flash? Are you logged in as root or only as a usual user?


#8

Normal user…I will try root again,didnt seem to recognise necflash when I was root.
I will fix permissions.
2.6.12-kanotix-1 is the kernel


#9

Great…everything worked:)

thank you


#10

I had you same problems + I can’t run the command (I’m a linux beginner):
I tryied to set the ownership to root+executable, end try to run it as root (from the download directory), but all I got is “command unknown”.
How shall I give the command?
Thank you


#11

sudo ./necflash -scan


#12

What kernels are known to be problematic?

I think I successfully flashed a 3540A to 1.WB using necflash:

Binflash - NEC version - © by Liggy and Herrie
Visit http://binflash.cdfreaks.com

List of supported devices:

Device : /dev/hda
Vendor : _NEC
Model : DVD_RW ND-3540A
Firmware : 1.WB

Now I get error messages such as these:

Feb 20 12:25:53 localhost kernel: [ 1932.196000] end_request: I/O error, dev hda, sector 43248
Feb 20 12:25:53 localhost kernel: [ 1932.228000] hda: command error: status=0x51 { DriveReady SeekComplete Error }
Feb 20 12:25:53 localhost kernel: [ 1932.228000] hda: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
Feb 20 12:25:53 localhost kernel: [ 1932.228000] ide: failed opcode was: unknown
Feb 20 12:25:53 localhost kernel: [ 1932.228000] end_request: I/O error, dev hda, sector 43252
Feb 20 12:25:53 localhost kernel: [ 1932.260000] hda: command error: status=0x51 { DriveReady SeekComplete Error }
Feb 20 12:25:53 localhost kernel: [ 1932.260000] hda: command error: error=0x54 { AbortedCommand LastFailedSense=0x05 }
Feb 20 12:25:53 localhost kernel: [ 1932.260000] ide: failed opcode was: unknown
Feb 20 12:25:53 localhost kernel: [ 1932.260000] end_request: I/O error, dev hda, sector 43248

kernel version is 2.6.20 (Ubuntu feisty current).

The IDE settings are:

Feb 20 11:54:13 localhost kernel: [ 37.478481] NFORCE-CK804: IDE controller at PCI slot 0000:00:06.0
Feb 20 11:54:13 localhost kernel: [ 37.478496] NFORCE-CK804: chipset revision 242
Feb 20 11:54:13 localhost kernel: [ 37.478499] NFORCE-CK804: not 100%% native mode: will probe irqs later
Feb 20 11:54:13 localhost kernel: [ 37.478504] NFORCE-CK804: 0000:00:06.0 (rev f2) UDMA133 controller
Feb 20 11:54:13 localhost kernel: [ 37.478510] ide0: BM-DMA at 0xf000-0xf007, BIOS settings: hda:DMA, hdb:DMA
Feb 20 11:54:13 localhost kernel: [ 37.478518] ide1: BM-DMA at 0xf008-0xf00f, BIOS settings: hdc:DMA, hdd:DMA
Feb 20 11:54:13 localhost kernel: [ 38.225213] hda: _NEC DVD_RW ND-3540A, ATAPI CD/DVD-ROM drive
Feb 20 11:54:13 localhost kernel: [ 38.898138] ide0 at 0x1f0-0x1f7,0x3f6 on irq 14
Feb 20 11:54:13 localhost kernel: [ 39.466267] ACPI: PCI Interrupt Link [APCH] enabled at IRQ 21
Feb 20 11:54:13 localhost kernel: [ 39.466275] ACPI: PCI Interrupt 0000:00:0a.0[A] -> Link [APCH] -> GSI 21 (level, low) -> IRQ 18
Feb 20 11:54:13 localhost kernel: [ 39.466286] forcedeth: using HIGHDMA

Ideas? The 3540 is the only ide device.


#13

After reflashing with original code, I think that behavior was induced by copy protection of the DVD being inspected because it behaves the same with with original and RPC1 codes.

Ordinary DVDs seem to read fine.

Oh well.