Bitsetting not working under linux ?
| NEC / Optiarc Writer Discuss, Bitsetting not working under linux ? at CD and DVD Writers forum; Hi all! Firstly great thanks for great work on NEC firmware! Today I bought a NEC ND 3520A and I can't seem to be able to set bitset. I downloaded http://www.micheldeboer.nl/firmware/LD3520_1U7.zip . Flashed my firmware successfully and : [~/Nec]> sudo ./necflash -s -scan Binflash - NEC version - (C) by |
- #1
| Hi all! Firstly great thanks for great work on NEC firmware! Today I bought a NEC ND 3520A and I can't seem to be able to set bitset. I downloaded http://www.micheldeboer.nl/firmware/LD3520_1U7.zip. Flashed my firmware successfully and : [~/Nec]> sudo ./necflash -s -scan Binflash - NEC version - (C) by Herrie and Liggy Visit http://binflash.cdfreaks.com - http://www.herrie.org List of supported devices: Device : /dev/hdd Vendor : _NEC Model : DVD_RW ND-3520A Firmware : 1.U7 [~/Nec]> sudo ./necflash -s -setbt DVD+R DVD-ROM perm /dev/hdd Binflash - NEC version - (C) by Herrie and Liggy Visit http://binflash.cdfreaks.com - http://www.herrie.org Drivetype could not be determined Here is the strace info for relevant part : =============================== open("/dev/hdd", O_RDONLY|O_NONBLOCK) = 3 ioctl(3, SG_GET_VERSION_NUM, 0xbffff1b4) = 0 ioctl(3, SG_IO, 0x80ba2f8) = 0 ioctl(3, SG_IO, 0x80ba2f8) = 0 close(3) = 0 write(2, "Drivetype could not be determine"..., 34Drivetype could not be determined ) = 34 munmap(0xb7fff000, 4096) = 0 exit_group(12) = ? =============================== System info : Linux kernel 2.6.11 vanilla from kernel.org Also note that I run program through sudo so I got write access to device. |
- Today (MyCE Staff)
- Posts: 15,596
| |
- #2
| Quote:
Unfortunately there's nothing I can change in my program, as it's something else that prevents the flasher from sending the necessary commands to the drive.
__________________ You need to flash or dump your NEC DVD burner firmwares on your Mac, Windows, DOS or Linux machine? Just try Binflash. Visit Liggy's and Dee's Optiarc and NEC firmware and tools page for all kind of information about NEC and Optiarc drives. Unrequested PM about drive problems will not be answered! |
- #3
| Quote:
if you can send me the relevant part of your code ( only the part that does ioctl & error check ) I can try to find if kernel is buggy. Thanks, ismail
__________________ An Eye For Eye Will Make Whole World Blind |
- #7
| Quote:
__________________ You need to flash or dump your NEC DVD burner firmwares on your Mac, Windows, DOS or Linux machine? Just try Binflash. Visit Liggy's and Dee's Optiarc and NEC firmware and tools page for all kind of information about NEC and Optiarc drives. Unrequested PM about drive problems will not be answered! |
- #8
| Quote:
|
- #9
| Quote:
[~]> sudo dvd+rw-booktype -dvd-rom -unit+r /dev/hdd :-[ RICOH(14h) failed with SK=5h/ASC=20h/ACQ=00h]: No such device
__________________ An Eye For Eye Will Make Whole World Blind |
- #10
| Well, like I said everything linux related is a faded memory for me, but the tutorial for dvd+rw-tools mentions routing the command through the ide-scsi emulation, specifically Quote:
|
- #11
| Quote:
__________________ You need to flash or dump your NEC DVD burner firmwares on your Mac, Windows, DOS or Linux machine? Just try Binflash. Visit Liggy's and Dee's Optiarc and NEC firmware and tools page for all kind of information about NEC and Optiarc drives. Unrequested PM about drive problems will not be answered! |
- #13
| Quote:
__________________ An Eye For Eye Will Make Whole World Blind |
- #14
| One other weird thing here is this : ioctl(3, SG_IO, 0x80ba2f8) = 0 ioctl(3, SG_IO, 0x80ba2f8) = 0 Those ioctl commands return 0 which means ioctl succeeded but the program gives an error. Maybe a wrong if check there ( low possibility I know ... ) ?
__________________ An Eye For Eye Will Make Whole World Blind |
- #15
| Quote:
__________________ You need to flash or dump your NEC DVD burner firmwares on your Mac, Windows, DOS or Linux machine? Just try Binflash. Visit Liggy's and Dee's Optiarc and NEC firmware and tools page for all kind of information about NEC and Optiarc drives. Unrequested PM about drive problems will not be answered! |
- #16
| Quote:
. Cheers for great work!
__________________ An Eye For Eye Will Make Whole World Blind |
- #17
| With 1.12 -setbt works fine but -querybt says : Quote:
__________________ An Eye For Eye Will Make Whole World Blind |
- #18
| When I put a dvd in. I get this : [cartman@southpark][16:10:32] [~/Nec]> sudo ./necflash -s -setbt DVD+R DVD-ROM perm /dev/hdd Binflash - NEC version - (C) by Herrie and Liggy Visit http://binflash.cdfreaks.com - http://www.herrie.org [cartman@southpark][16:10:36] [~/Nec]> sudo ./necflash -querybt /dev/hdd Binflash - NEC version - (C) by Herrie and Liggy Visit http://binflash.cdfreaks.com - http://www.herrie.org The current disctype is DVD+R The current booktype is DVD+R The permanent booktype on DVD+R either has not been set or cannot be changed The permanent booktype on DVD+RW either has not been set or cannot be changed The permanent booktype on DVD+R-DL cannot be changed Something going wrong here?
__________________ An Eye For Eye Will Make Whole World Blind |
- #19
| Quote:
__________________ You need to flash or dump your NEC DVD burner firmwares on your Mac, Windows, DOS or Linux machine? Just try Binflash. Visit Liggy's and Dee's Optiarc and NEC firmware and tools page for all kind of information about NEC and Optiarc drives. Unrequested PM about drive problems will not be answered! |
- #20
| Quote:
Here is output of beloved strace :Quote:
__________________ An Eye For Eye Will Make Whole World Blind |
- #22
| Quote:
printf("Possible error : %s",strerror(errno)); This will print : "Possible Error : success" in case of no-error and will print error otherwise. But I rc = 0 means errno = 0 which is success. Btw sorry for asking maybe third time but it says inserted DVD's current booktype is DVD+R . Is that normal? Because I set booktype to DVD-ROM for DVD+R,DVD+R-DL and DVD+RW but that dvd is written before I set booktype.
__________________ An Eye For Eye Will Make Whole World Blind |
- #23
| If the disc was written before, then the booktype on your disc is DVD+R and cannot be changed anymore. That's completely normal. But discs that you've written after changing the booktype should show a different value.
__________________ You need to flash or dump your NEC DVD burner firmwares on your Mac, Windows, DOS or Linux machine? Just try Binflash. Visit Liggy's and Dee's Optiarc and NEC firmware and tools page for all kind of information about NEC and Optiarc drives. Unrequested PM about drive problems will not be answered! |
- #24
| Quote:
.
__________________ An Eye For Eye Will Make Whole World Blind |
WIN your own LG N2B1 NAS with 2TB of Storage!*
To win, tell us why you want to win and
tell ,or show us (graphic, video, etc.) why you think Life's Good with LG NAS.
*US only Not registered yet? Register now!
Posting Rules
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
People who found this also searched for
- -[ get configuration failed with sk=5h asc=20h acq=00h] no such device
- binflash drivetype could not be determined
- bitset linux
- bitsetting dvd linux
- bitsetting linux kernel
- bitsettings dvd-rom linux
- booktype bitsetting
- drivetype cannot be determined with binflash
- drivetype cannot be determined with binflash help
- drivetype could not be determined necflash
- dvd bitsetting linux
- dvd booktype no such device
- dvd rom not working linux
- dvd+rw-tools no such device
- dvd-rom bitsetting linux dvd+r dl
- linux atomic bit set
- linux atomic bitset
- linux bitset
- linux bitsetting
- linux dvd bitsetting
- linux dvd+rw-booktype no such device
- linux ioctl scsi sg get version num
- sg get version num
- sg io dvd+r
- sg io problem
- sg io set booktype
- sk=5h asc=20h acq=00h


. Cheers for great work!
: