Tx2 cdrom flash error

NVIDIA L4T 32.4.3

hi :
we use the follow version in tx2 ,and default the target donot support usb cdrom .so we insmod the sr_mod.ko,cdrom.ko etc . and the target can use the breasro to write data to CDROM-RW .
but the fail rate is very high. we try to flash a file of 1GB. it may return error while the process is about 38%. and more than five times that the error is occured in the position .

it report I/O error .The kernel log is :
[sr0] tag#0 UNKNOWN(0X2003) Result: hostbyte=0x07 driverbyte=0x00
[sr0] tag#0 CDB: opcpde=0x1b 1b 00 00 00 02 00 00 00 00 00 00 00

if any advice or information ,plz reply me ,thank you

I use K3B for writing optical drives. This is a KDE app though, so you probably won’t have this unless you install it yourself (and it takes a lot of space). This app allows writing at different speeds, and I don’t know what app you are using, but most optical disk writing apps allow writing at lower speeds. My suggestion is to first try at the lowest speed…if that helps, then try incrementing speed up to the next speed.

thank you very much for reply!!!
we have do so much effort to test ,also use the k3b and growisofs and some other apps , the phenomenon are the same!!!
so we guess may be the software environment or the hardware compatibility .
could you give me more information about your test ?
hardware tx2 ,agx,or other ?
software which nvidia L4T version
which kernel module you have installed ??sr_mod.ko ,cdrom.ko,utf8.ko,isofs.ko ??
which brand of cd burner are you using ?
thank you again.

Can you provide the full dmesg which ends right after seeing this error? Also, is this a USB drive? If so, also include “lsusb -tv”. Also show the output of “lsmod” right after the attempt to write.

Is the CD drive able to read and mount a normal data drive (not movies)?

hi: thank you for you reply .we have get more information .plz help to check

mc@mc-desktop:~/Share/CD-ROM$ sudo insmod cdrom.ko
mc@mc-desktop:~/Share/CD-ROM$ sudo insmod isofs.ko
mc@mc-desktop:~/Share/CD-ROM$ sudo insmod nls_utf8.ko
mc@mc-desktop:~/Share/CD-ROM$ sudo insmod sr_mod.ko
cdrom plugin log:
mc@mc-desktop:~/Share/CD-ROM$ dmesg
[ 263.593178] usb 1-3.1: new high-speed USB device number 8 using tegra-xusb
[ 263.619992] usb 1-3.1: New USB device found, idVendor=0e8d, idProduct=1887
[ 263.620016] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 263.620033] usb 1-3.1: Product: Portable Super Multi Drive
[ 263.620048] usb 1-3.1: Manufacturer: Hitachi-LG Data Storage Inc
[ 263.620061] usb 1-3.1: SerialNumber: K0SM4173118
[ 263.624415] usb-storage 1-3.1:1.0: USB Mass Storage device detected
[ 263.624805] scsi host2: usb-storage 1-3.1:1.0
[ 264.654072] scsi 2:0:0:0: CD-ROM HL-DT-ST DVDRAM GP70N LI02 PQ: 0 ANSI: 0
[ 264.685534] sr 2:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 264.685540] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 264.685888] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 275.586702] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.591547] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.596295] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.600987] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.605662] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.610389] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.615052] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.619699] sr 2:0:0:0: [sr0] unaligned transfer
[ 277.099369] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 277.125754] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 278.300180] ISO 9660 Extensions: RRIP_1991A

mc@mc-desktop:~/Share/CD-ROM$ lsmod
Module Size Used by
sr_mod 18712 1
nls_utf8 2058 1
isofs 38985 1
cdrom 67144 1 sr_mod
fuse 103841 3
bnep 16562 2
hci_uart 75858 1
btbcm 8808 1 hci_uart
btqca 9013 1 hci_uart
btintel 10771 1 hci_uart
overlay 48691 0
zram 26166 6
bcmdhd 934210 0
cfg80211 589351 1 bcmdhd
spidev 13282 0
binfmt_misc 13103 1
userspace_alert 5665 0
nvgpu 1580772 42
bluedroid_pm 13912 0
ip_tables 19441 0
x_tables 28951 1 ip_tables

flash error log :
mc@mc-desktop:~/Share/CD-ROM$ dmesg
[ 263.593178] usb 1-3.1: new high-speed USB device number 8 using tegra-xusb
[ 263.619992] usb 1-3.1: New USB device found, idVendor=0e8d, idProduct=1887
[ 263.620016] usb 1-3.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 263.620033] usb 1-3.1: Product: Portable Super Multi Drive
[ 263.620048] usb 1-3.1: Manufacturer: Hitachi-LG Data Storage Inc
[ 263.620061] usb 1-3.1: SerialNumber: K0SM4173118
[ 263.624415] usb-storage 1-3.1:1.0: USB Mass Storage device detected
[ 263.624805] scsi host2: usb-storage 1-3.1:1.0
[ 264.654072] scsi 2:0:0:0: CD-ROM HL-DT-ST DVDRAM GP70N LI02 PQ: 0 ANSI: 0
[ 264.685534] sr 2:0:0:0: [sr0] scsi3-mmc drive: 24x/24x writer dvd-ram cd/rw xa/form2 cdda tray
[ 264.685540] cdrom: Uniform CD-ROM driver Revision: 3.20
[ 264.685888] sr 2:0:0:0: Attached scsi CD-ROM sr0
[ 275.586702] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.591547] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.596295] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.600987] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.605662] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.610389] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.615052] sr 2:0:0:0: [sr0] unaligned transfer
[ 275.619699] sr 2:0:0:0: [sr0] unaligned transfer
[ 277.099369] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 277.125754] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 278.300180] ISO 9660 Extensions: RRIP_1991A
[ 765.845608] usb 1-3.1: reset high-speed USB device number 8 using tegra-xusb
[ 771.477268] usb 1-3.1: reset high-speed USB device number 8 using tegra-xusb
[ 771.501960] sr 2:0:0:0: [sr0] tag#0 UNKNOWN(0x2003) Result: hostbyte=0x07 driverbyte=0x00
[ 771.501971] sr 2:0:0:0: [sr0] tag#0 CDB: opcode=0x1b 1b 00 00 00 02 00 00 00 00 00 00 00

breasero error log :
hecking session consistency (brasero_burn_check_session_consistency brasero-burn.c:1739)
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_set_output_size_for_current_track
BraseroBurnURI stopping
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_get_session_output_size
BraseroBurnURI output set (IMAGE) image = /home/mc/下载/brasero_tmp_Z4U3K2.bin toc = none
BraseroBurnURI called brasero_job_get_session_output_size
BraseroBurnURI called brasero_job_get_action
BraseroBurnURI called brasero_job_get_current_track
BraseroBurnURI no burn:// URI found
BraseroBurnURI stopping
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_set_output_size_for_current_track
BraseroLocalTrack stopping
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_get_session_output_size
BraseroLocalTrack output set (IMAGE) image = /home/mc/下载/brasero_tmp_ZW23K2.bin toc = none
BraseroLocalTrack called brasero_job_get_session_output_size
BraseroLocalTrack called brasero_job_get_action
BraseroLocalTrack called brasero_job_get_current_track
BraseroLocalTrack no remote URIs
BraseroLocalTrack stopping
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_flags
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_fd_in
BraseroChecksumImage called brasero_job_set_output_size_for_current_track
BraseroChecksumImage stopping
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_flags
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_session_output_size
BraseroChecksumImage output set (IMAGE) image = /home/mc/下载/brasero_tmp_OY43K2.bin toc = none
BraseroChecksumImage called brasero_job_get_session_output_size
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_input_type
BraseroChecksumImage called brasero_job_set_current_action
BraseroChecksumImage called brasero_job_get_fd_in
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage Starting checksuming file /home/mc/ubuntu-18.04.6-server-arm64.iso (size = 1044574208)
BraseroChecksumImage called brasero_job_get_fd_out
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage Setting new checksum (type = 2) 32a67f84d8ab7c0685c150c64dcab6d8 ((null) before)
BraseroChecksumImage Finished track successfully
BraseroChecksumImage stopping
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_flags
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_session_output_size
BraseroChecksumImage output set (IMAGE) image = /home/mc/下载/brasero_tmp_OY43K2.bin toc = none
BraseroChecksumImage called brasero_job_get_session_output_size
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_action
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_input_type
BraseroChecksumImage called brasero_job_set_current_action
BraseroChecksumImage called brasero_job_get_fd_in
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage Starting checksuming file /home/mc/ubuntu-18.04.6-server-arm64.iso (size = 1044574208)
BraseroChecksumImage called brasero_job_get_fd_out
BraseroChecksumImage called brasero_job_get_current_track
BraseroChecksumImage Setting new checksum (type = 2) 32a67f84d8ab7c0685c150c64dcab6d8 ((null) before)
BraseroChecksumImage Finished track successfully
BraseroChecksumImage stopping
BraseroLibburn called brasero_job_get_action
BraseroLibburn called brasero_job_get_action
BraseroLibburn unsupported operation
BraseroLibburn deactivating
BraseroLibburn called brasero_job_get_action
BraseroLibburn called brasero_job_get_action
BraseroLibburn called brasero_job_get_device
BraseroLibburn Drive (/dev/sr0) init result = 1
BraseroLibburn called brasero_job_get_flags
BraseroLibburn called brasero_job_get_media
BraseroLibburn called brasero_job_get_fd_in
BraseroLibburn called brasero_job_get_tracks
BraseroLibburn Setting burnproof 0
BraseroLibburn Setting dummy 0
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn burn_drive_convert_fs_adr( /dev/sr0 )
BraseroLibburn Blanking/Formatting
BraseroLibburn called brasero_job_set_dangerous
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn burn_drive_is_enumerable_adr( /dev/sr0 ) is true
BraseroLibburn Async START UNIT succeeded after 0.1 seconds
BraseroLibburn mmc_set_streaming: end_lba=2295103 , r=3324000 , w=5540
BraseroLibburn Allocating buffer via mmap()
BraseroLibburn Format type 26h “DVD+RW (fs=1,rs=1)”, blocks = 4294967295
BraseroLibburn CDB: 04 11 00 00 00 00
BraseroLibburn Format list: 00 02 00 08 FF FF FF FF 98 00 00 01

BraseroLibburn syncing cache
BraseroLibburn Async SYNCHRONIZE CACHE succeeded after 0.1 seconds
BraseroLibburn Writing
BraseroLibburn called brasero_job_set_dangerous
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn dvd/bd Profile= 1Ah , obs= 32768 , obs_pad= 0
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn called brasero_job_get_session_output_size
BraseroLibburn called brasero_job_set_current_action
BraseroLibburn SCSI command 2Ah yielded host problem: 0x7 SG_ERR_DID_ERROR (Internal error detected in the host adapter)
BraseroLibburn Something went wrong
BraseroLibburn called brasero_job_error
BraseroLibburn finished with an error
BraseroLibburn asked to stop because of an error
error = 15
message = “写入光盘时发生错误”
BraseroLibburn stopping
Session error : 写入光盘时发生错误 (brasero_burn_record brasero-burn.c:2856)

we use this application to flash for more than 6 times ,and the write error point may around 35% for 4 times at the same point .there is 2 times write successful.

You kernel drivers seem to be fully functional and operating as expected.

This might require more information on the BraseroLibburn logs (whoever supports BraseroLibburn). Ultimately, it looks like the USB is resetting, but there is no way to tell if it is hardware or software related.

If you were to burn a much smaller and different data file, does this work?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.