Brasero and Linux SG Driver
Chess Griffin
chess at chessgriffin.com
Thu Jan 3 10:57:06 PST 2008
* Joe Marcus Clarke <marcus at marcuscom.com> [2008-01-03 12:30:47]:
> This should be all that is required, kernel-wise. However, there will
> be a new device node, /dev/sg0 in most cases, that will be created. The
> default mode is 0600, so you will need to allow read-write access if you
> are going to run brasero as a non-root user.
>
Ok, thanks. I am running into some issues with this on two separate
machines, both running 7.0-RC1 on i386.
After recompiling my kernel and rebooting my main workstation, I now
get hard freezes and reboot with coredump when inserting a usb stick.
I have not actually tried building or running brasero yet on this
particular machine. I have hal running with xfce and it's been
working fine before this one change. I will try and rebuild hal with
debugging on tonight and report.
I also recompiled the kernel on a dedicated build box and did a
brasero build in tinderbox, but it failed with this in the error log:
scsi-command.o est -f 'scsi/scsi-command.c' || echo
'./'csi/scsi-command.c
scsi/scsi-command.c:33:23: error: scsi/scsi.h: No such file or
directory
scsi/scsi-command.c:34:21: error: scsi/sg.h: No such file or directory
scsi/scsi-command.c:82: warning: 'struct sg_io_hdr' declared inside
parameter list
scsi/scsi-command.c:82: warning: its scope is only this definition or
declaration, which is probably not what you want
scsi/scsi-command.c: In function 'brasero_sg_command_setup':
scsi/scsi-command.c:85: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:87: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:89: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:90: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:91: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:92: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:95: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:96: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:99: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:99: error: 'SG_DXFER_FROM_DEV' undeclared (first
use in this function)
scsi/scsi-command.c:99: error: (Each undeclared identifier is reported
only once
scsi/scsi-command.c:99: error: for each function it appears in.)
scsi/scsi-command.c:101: error: dereferencing pointer to incomplete
type
scsi/scsi-command.c:101: error: 'SG_DXFER_TO_DEV' undeclared (first
use in this function)
scsi/scsi-command.c: In function 'brasero_scsi_command_issue_sync':
scsi/scsi-command.c:111: error: storage size of 'transport' isn't
known
scsi/scsi-command.c:126: error: 'SG_IO' undeclared (first use in this
function)
scsi/scsi-command.c:132: error: 'SG_INFO_OK_MASK' undeclared (first
use in this function)
scsi/scsi-command.c:132: error: 'SG_INFO_OK' undeclared (first use in
this function)
scsi/scsi-command.c:135: error: 'CHECK_CONDITION' undeclared (first
use in this function)
scsi/scsi-command.c:111: warning: unused variable 'transport'
scsi/scsi-command.c: In function
'brasero_scsi_command_issue_immediate':
scsi/scsi-command.c:148: error: storage size of 'transport' isn't
known
scsi/scsi-command.c:162: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:163: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:165: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:170: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:172: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:173: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:175: error: invalid application of 'sizeof' to
incomplete type 'struct sg_io_hdr'
scsi/scsi-command.c:180: error: 'SG_INFO_OK_MASK' undeclared (first
use in this function)
scsi/scsi-command.c:180: error: 'SG_INFO_OK' undeclared (first use in
this function)
scsi/scsi-command.c:183: error: 'CHECK_CONDITION' undeclared (first
use in this function)
scsi/scsi-command.c:148: warning: unused variable 'transport'
gmake[3]: *** [scsi-command.o] Error 1
gmake[3]: Leaving directory
work/a/ports/sysutils/brasero/work/brasero-0.7.0/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
work/a/ports/sysutils/brasero/work/brasero-0.7.0/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
work/a/ports/sysutils/brasero/work/brasero-0.7.0'
gmake: *** [all] Error 2
*** Error code 2
Stop in /a/ports/sysutils/brasero.
Maybe a dumb question, but this dedicated box does not have a cdrom,
so it appears the /dev/sg* nodes are not being created. Would this
alone stop the brasero build? I would think I could build it even if
I couldn't use it on a box without a cdrom. Anyway, I will try
this one again tonight as well.
Chess
--
Chess Griffin
GPG Public Key: 0x0C7558C3
http://www.chessgriffin.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-gnome/attachments/20080103/6bb98682/attachment.pgp
More information about the freebsd-gnome
mailing list