Re: [driver-discuss] Newbie needs debugging tips (si3124)

2011-11-22 Thread Hansel Chung
Well, there appears to be progress. In case people are interested, I changed si_tran_probe_port to be more similar to ahci_tran_probe_port and things magically started working. I have no idea why it works but I'm trying it out on a test rig to see if anything bad happens. http://www.ocf.berkele

Re: [driver-discuss] Newbie needs debugging tips

2011-11-12 Thread John Martin
On 11/12/11 19:01, Hansel Chung wrote: Oh... if I don't run that, where does it get the driver from? The boot archive. ___ driver-discuss mailing list driver-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/driver-discuss

Re: [driver-discuss] Newbie needs debugging tips

2011-11-12 Thread Hansel Chung
Oh... if I don't run that, where does it get the driver from? For the one time I think I got my code working, here's what I did: 1) compile the driver 2) modunload the existing driver 3) modload the driver I compiled 4) dmesg to see if I got anything. What I'm trying to do is patch in SATA Port M

Re: [driver-discuss] Newbie needs debugging tips

2011-11-11 Thread Dan Mick
On 11/11/11 05:05 PM, Hansel Chung wrote: On Nov 10, 2011, at 5:44 PM, Dan Mick wrote: cmn_err() can go to the log (/var/adm/messages), the console, or both. See its manpage. debugger: see kmdb(1). Cool, I'll check out the manpage next. You've got access to Writing Device Drivers, I assu

Re: [driver-discuss] Newbie needs debugging tips

2011-11-11 Thread Hansel Chung
On Nov 10, 2011, at 5:44 PM, Dan Mick wrote: > > cmn_err() can go to the log (/var/adm/messages), the console, or both. See > its manpage. > > debugger: see kmdb(1). Cool, I'll check out the manpage next. > You've got access to Writing Device Drivers, I assume? Yep! I assume you're referrin

Re: [driver-discuss] Newbie needs debugging tips

2011-11-11 Thread John Martin
On 11/10/11 18:43, Hansel Chung wrote: Hi, I'm very new to driver development, and would like to try my hand at tweaking a driver in Opensolaris. I made some changes. But unfortunately, I can't trace any of my work because cmn_err doesn't appear to post messages anywhere, ... Verify you hav

Re: [driver-discuss] Newbie needs debugging tips

2011-11-10 Thread Dan Mick
On 11/10/11 03:43 PM, Hansel Chung wrote: Hi, I'm very new to driver development, and would like to try my hand at tweaking a driver in Opensolaris. I made some changes. But unfortunately, I can't trace any of my work because cmn_err doesn't appear to post messages anywhere, and I have no ide

[driver-discuss] Newbie needs debugging tips

2011-11-10 Thread Hansel Chung
Hi, I'm very new to driver development, and would like to try my hand at tweaking a driver in Opensolaris. I made some changes. But unfortunately, I can't trace any of my work because cmn_err doesn't appear to post messages anywhere, and I have no idea how to hook up a debugger to single step