Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Error while loading sample driver using io-pkt-v4 command: (5 Items)
   
Error while loading sample driver using io-pkt-v4 command  
Hi,

I have couple of question

Question -1 
========

While loading sample ethernet driver (devnp-sam.so) via io-pkt-v4 command it throws an error.

command:
======

io-pkt-v4 -d /lib/dll/devnp-pe.so

Error
====

Nov 09 17:26:14    5    14     0 tcpip starting
Nov 09 17:26:14    3    14     0 Using pseudo random generator.  See "random" option
Nov 09 17:26:14    5    21     0 run fault pid 892961 tid 2 signal 11 code 1 ip 0x80854b8 sbin/io-pkt-v4


Question 2
=======
How to set the mac address for en0 interface via ifconfig command?


Thanks and Regards
K.Senthil
Re: Error while loading sample driver using io-pkt-v4 command  
On Mon, Nov 09, 2009 at 06:54:36AM -0500, Senthil K wrote:
> Hi,
> 
> I have couple of question
> 
> Question -1 
> ========
> 
> While loading sample ethernet driver (devnp-sam.so) via io-pkt-v4 command it throws an error.
> 
> command:
> ======
> 
> io-pkt-v4 -d /lib/dll/devnp-pe.so
> 
> Error
> ====
> 
> Nov 09 17:26:14    5    14     0 tcpip starting
> Nov 09 17:26:14    3    14     0 Using pseudo random generator.  See "random" option
> Nov 09 17:26:14    5    21     0 run fault pid 892961 tid 2 signal 11 code 1 ip 0x80854b8 sbin/io-pkt-v4

Time to fire up gdb.

> 
> 
> Question 2
> =======
> How to set the mac address for en0 interface via ifconfig command?
> 

# ifconfig wm0 link 00:01:02:03:04:05           <- add
# ifconfig wm0 link 00:01:02:03:04:05 active    <- activate
# ifconfig wm0 link 00:01:02:03:04:05 delete    <- delete
RE: Error while loading sample driver using io-pkt-v4 command  
> Time to fire up gdb.

Indeed.  Before you start io-pkt ensure that
dumper is running.

After the fault occurs, look in /var/dumps/
for a file that looks like io-pkt-v4.core.

You can then run:

# gdb /sbin/io-pkt-v4 /var/dumps/io-pkt-v4.core

Hint #1:  compile your driver with "-g -O0" to make
the backtrace MUCH more helpful.

Hint #2: learn about a file called ~/.gdbinit

--
aboyd
Re: Error while loading sample driver using io-pkt-v4 command  
Don't forget to turn off the sigsegv handler!!!!!

(-S option to io-pkt)

Andrew Boyd wrote:
>> Time to fire up gdb.
> 
> Indeed.  Before you start io-pkt ensure that
> dumper is running.
> 
> After the fault occurs, look in /var/dumps/
> for a file that looks like io-pkt-v4.core.
> 
> You can then run:
> 
> # gdb /sbin/io-pkt-v4 /var/dumps/io-pkt-v4.core
> 
> Hint #1:  compile your driver with "-g -O0" to make
> the backtrace MUCH more helpful.
> 
> Hint #2: learn about a file called ~/.gdbinit
> 
> --
> aboyd
> 
> 
> 
> 
> _______________________________________________
> 
> Networking Drivers
> http://community.qnx.com/sf/go/post41602
> 

-- 
cburgess@qnx.com
RE: Error while loading sample driver using io-pkt-v4 command  
> Don't forget to turn off the sigsegv handler!

You don't really need to - I never bother, anyways.

Just skip the first couple of frames in the 
offending thread, which is the sigsegv handler.

--
aboyd