On Mon, Dec 21, 2009 at 2:46 PM, Kaushik Gupta <[email protected]> wrote: > No, I build it using the following steps: > gcc -D_KERNEL -m64 -mcmodel=kernel -mno-red-zone -ffreestanding > -nodefaultlibs -c sxg.c > /usr/ccs/bin/ld -r -o sxg sxg.o > How do I link it with -Nmisc/mac ? >
/usr/ccs/bin/ld -r -Nmisc/mac -o sxg sxg.o > On Mon, Dec 21, 2009 at 5:13 PM, Cyril Plisko <[email protected]> > wrote: >> >> On Mon, Dec 21, 2009 at 1:02 PM, Kaushik Gupta <[email protected]> >> wrote: >> > Hi, >> > I tried with gld. It builds fine but gives error on inserting the >> > driver. >> > The following are the symbols that are stated as undefined: >> > 1. gld_mac_alloc >> > 2. gld_register. >> > I have included gdl.h and gldpriv.h >> > Could you please help me out the with the same >> >> Did you link with -Nmisc/mac ? >> >> >> > >> > >> > On Thu, Dec 17, 2009 at 11:27 PM, Cyril Plisko >> > <[email protected]> >> > wrote: >> >> >> >> On Thu, Dec 17, 2009 at 5:24 PM, Kaushik Gupta >> >> <[email protected]> >> >> wrote: >> >> > Hi, >> >> > I have used the following cmd: >> >> > ddi_create_minor_node() >> >> > and can see my network device in /devices but not when I run ifconfig >> >> > -a. >> >> > >> >> > I am facing problem in registering the device. In linux, I can >> >> > register >> >> > my >> >> > device as register_netdev(); >> >> > Could someone tell me the corresponding method to register in >> >> > solaris. >> >> > >> >> > My aim is to see my device when I run ifconfig -a. >> >> > >> >> >> >> Assuming you are developing driver for OpenSolaris/Nevada you best bet >> >> would be to do a GLDv3 driver. >> >> The GLDv3 API was recently promoted to public [1]. GLDv3 will allow >> >> you to concentrate on developing the driver for your specific >> >> hardware, while offloading the lion share of the common code to the >> >> generic implementation.Most of the current network drivers in >> >> OpenSolaris are GLDv3 based. >> >> >> >> >> >> >> >> [1] http://arc.opensolaris.org/caselog/PSARC/2009/638/materials/ >> >> >> >> >> >> -- >> >> Regards, >> >> Cyril >> > >> > >> >> >> >> -- >> Regards, >> Cyril > > -- Regards, Cyril _______________________________________________ driver-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/driver-discuss
