>Hi Casper, > >I placed the files in the directories according to your instructions. > >I got the following messages in /var/adm/messages when I try to do > >#add_drv dummy > >-------------------------------------------------------------------------------------------------- ------------ >Jan 4 20:58:39 opensolaris genunix: [ID 720415 kern.notice] file >/usr/kernel/drv/amd64/dummy: >Jan 4 20:58:39 opensolaris genunix: [ID 370954 kern.notice] symbol >dummy_dip: >Jan 4 20:58:39 opensolaris genunix: [ID 780480 kern.notice] value >0xffffffffc02e1ff0 does not fit >Jan 4 20:58:39 opensolaris genunix: [ID 399259 kern.notice] do_relocations: >/usr/kernel/drv/amd64/dummy do_relocate failed >Jan 4 20:58:39 opensolaris genunix: [ID 603676 kern.notice] dummy error >doing relocations >-------------------------------------------------------------------------------------------------- -
Looks like progress; you need to use the appropriate compiler and link flags to create a kernel module. Specifically, I think you need -xmodel=kernel. Casper _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@opensolaris.org