On Amd64 I copy the driver to
CC=/opt/SUNWspro/bin/cc CFLAGS/sparc: -D_KERNEL -xarch=v9 CFLAGS/amd64 -D_KERNEL -xarch=amd64 -xmodel=kernel LD=/usr/ccs/bin/ld LDFLAGS=-dy -r -N "misc/gld"
and install driver using
Everything works fine, operation successful, I see trace for all the callback functions.
add_drv -i"pciXXXX,YYYY" zzz
and try to install it using the same
command. I get:
When I check traces I see that neither attach nor probe callbacks were called at all !
sparc-sol10 -> /usr/kernel/drv/sparcv9#add_drv -i"XXXX,YYYY" zzzz devfsadm: driver failed to attach: zzzz Warning: Driver (thtxg) successfully added to system but failed to attach
HelloWarning: Driver (thtxg) successfully added to system but failed to attach