Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - io-usb segfault: (8 Items)
   
io-usb segfault  
Our two blade vendors are end of lifing our SBC blades.  We have been
evaluating new blades to support our QNX4.25 based application.

The attached pdf is a blade that we have working on the
    sata hard drive
    charcter io using the bios usb keyboard translation
    82571 networking using the e1000 dirver

As you can see, usb is primary interface option.
Even with the 20100707 USB2 patch  I get the following
trying to start the driver

//8/bin/io-usb terminated (SIGSEGV) at 00D1:00005330

I am attaching
pdf for the SBC
the following outputs from show_pci
show_pci1.txt - show_pci
show_pci2.txt - show_pci -v
show_pci3.txt - show_pci -vvvv
the following output from lsusb when I loaded LINUX on the board
lsusb1.txt - lsusb
lsusb2.txt - lsbsb -vvvvv

any help on how the run usb would be appreciated.

any help on what graphics driver to use would be appreciated

Thanks





Attachment: PDF cpc5565.pdf 218.06 KB Text lsusb1.txt 580 bytes Text lsusb2.txt 17.2 KB Text show_pci1.txt 947 bytes Text show_pci2.txt 16.55 KB Text show_pci3.txt 28.22 KB
Re: io-usb segfault  
Hi Richard,

That's quite bad situation. I'm afraid that with current version of
io-usb you can't work with usb on your board. But to clarify the situation:

1. When io-usb crash occurs: when you run io-usb without any connected
usb devices or when you connect first device or when you connect some
special device?

2. Try to run io-usb with manually specified Host Controller, for
example try
    # io-usb -d uhci pindex=0 & or
    # io-usb -d uhci pindex=1 & or
    # io-usb -d ehci pindex=0 &
Report if in some cases it will not crush.

3. Please provide io-usb trace report.
To collect trace report:
Copy attached file to the /etc/config
 - Change severity level:  # tracectrl -s7
 - Run: # tracelogger -f /trace &
 - Run # io-usb
 - After io-usb crush run: # traceinfo -M0x9 -e /etc/config/traceinfo
/trace > /io-usb.trace
 - Post here io-usb.trace file

As I see you have ATI graphical controller. It should work with Hydra.ms
and Pg.flat* driver.
In first case try:
# crttrap clear
# crttrap trap


Regards,
Pavel Kozlov



Richard Miller:
> Our two blade vendors are end of lifing our SBC blades.  We have been
> evaluating new blades to support our QNX4.25 based application.
>
> The attached pdf is a blade that we have working on the
>     sata hard drive
>     charcter io using the bios usb keyboard translation
>     82571 networking using the e1000 dirver
>
> As you can see, usb is primary interface option.
> Even with the 20100707 USB2 patch  I get the following
> trying to start the driver
>
> //8/bin/io-usb terminated (SIGSEGV) at 00D1:00005330
>
> I am attaching
> pdf for the SBC
> the following outputs from show_pci
> show_pci1.txt - show_pci
> show_pci2.txt - show_pci -v
> show_pci3.txt - show_pci -vvvv
> the following output from lsusb when I loaded LINUX on the board
> lsusb1.txt - lsusb
> lsusb2.txt - lsbsb -vvvvv
>
> any help on how the run usb would be appreciated.
>
> any help on what graphics driver to use would be appreciated
>
> Thanks
>
>
>
>
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post65699
>   

Re: io-usb segfault  
Pavel,

Thanks for you response.

1.  io-usb seg faults with no devices attached - or any combination of 
devices
2.  I ran io-usb -d [ueo]chi pindex=[012] and got sic "Error Intializing 
Stack"  in each case
3.  I ran this twice to make sure I got it right - see attached - it 
just contains 00
4.  crttrap  hangs at the 1st Pg.rage128 in the crttrap.list

     How should I modify the crttrap.list to get it to just trap on 
Hydra and Flat ??


Richard


Pavel Kozlov wrote:
> Hi Richard,
>
> That's quite bad situation. I'm afraid that with current version of
> io-usb you can't work with usb on your board. But to clarify the situation:
>
> 1. When io-usb crash occurs: when you run io-usb without any connected
> usb devices or when you connect first device or when you connect some
> special device?
>
> 2. Try to run io-usb with manually specified Host Controller, for
> example try
>     # io-usb -d uhci pindex=0 & or
>     # io-usb -d uhci pindex=1 & or
>     # io-usb -d ehci pindex=0 &
> Report if in some 
cases it will not crush.
>
> 3. Please provide io-usb trace report.
> To collect trace report:
> Copy attached file to the /etc/config
>  - Change severity level:  # tracectrl -s7
>  - Run: # tracelogger -f /trace &
>  - Run # io-usb
>  - After io-usb crush run: # traceinfo -M0x9 -e /etc/config/traceinfo
> /trace > /io-usb.trace
>  - Post here io-usb.trace file
>
> As I see you have ATI graphical controller. It should work with Hydra.ms
> and Pg.flat* driver.
> In first case try:
> # crttrap clear
> # crttrap trap
>
>
> Regards,
> Pavel Kozlov
>
>
>
> Richard Miller:
>   
>> Our two blade vendors are end of lifing our SBC blades.  We have been
>> evaluating new blades to support our QNX4.25 based application.
>>
>> The attached pdf is a blade that we have working on the
>>     sata hard drive
>>     charcter io using the bios usb keyboard translation
>>     82571 networking using the e1000 dirver
>>
>> As you can see, usb is primary interface option.
>> Even with the 20100707 USB2 patch  I get the following
>> trying to start the driver
>>
>> //8/bin/io-usb terminated (SIGSEGV) at 00D1:00005330
>>
>> I am attaching
>> pdf for the SBC
>> the following outputs from show_pci
>> show_pci1.txt - show_pci
>> show_pci2.txt - show_pci -v
>> show_pci3.txt - show_pci -vvvv
>> the following output from lsusb when I loaded LINUX on the board
>> lsusb1.txt - lsusb
>> lsusb2.txt - lsbsb -vvvvv
>>
>> any help on how the run usb would be appreciated.
>>
>> any help on what graphics driver to use would be appreciated
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post65699
>>   
>>     
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post66097
>
>
>   
Attachment: Text io-usb.trace 0 bytes
Re: io-usb segfault  
Hi Richard,

Please try to collect io-usb trace info again but  this time run io-usb
with increased verbosity level:
# io-usb -vvv
May be in this case you will catch something.  If not then io-usb
crashes somewhere in Host Controller initialization before sending any
debug output into the trace buffer.
io-usb in QNX4 (20100707 USB2 patch) is a port of QNX 6.4.1 USB stack.
Can you check io-usb behavior in QNX 6.4.1 or QNX 6.5 on your board?
Anyway I suppose that to work with usb on your board io-usb modification
for your hardware is required.

Regards,
Pavel Kozlov

Richard Miller:
> Pavel,
>
> Thanks for you response.
>
> 1.  io-usb seg faults with no devices attached - or any combination of 
> devices
> 2.  I ran io-usb -d [ueo]chi pindex=[012] and got sic "Error Intializing 
> Stack"  in each case
> 3.  I ran this twice to make sure I got it right - see attached - it 
> just contains 00
> 4.  crttrap  hangs at the 1st Pg.rage128 in the crttrap.list
>
>      How should I modify the crttrap.list to get it to just trap on 
> Hydra and Flat ??
>
>
> Richard
>
>
> Pavel Kozlov wrote:
>   
>> Hi Richard,
>>
>> That's quite bad situation. I'm afraid that with current version of
>> io-usb you can't work with usb on your board. But to clarify the situation:
>>
>> 1. When io-usb crash occurs: when you run io-usb without any connected
>> usb devices or when you connect first device or when you connect some
>> special device?
>>
>> 2. Try to run io-usb with manually specified Host Controller, for
>> example try
>>     # io-usb -d uhci pindex=0 & or
>>     # io-usb -d uhci pindex=1 & or
>>     # io-usb -d ehci pindex=0 &
>> Report if in some 
cases it will not crush.
>>
>> 3. Please provide io-usb trace report.
>> To collect trace report:
>> Copy attached file to the /etc/config
>>  - Change severity level:  # tracectrl -s7
>>  - Run: # tracelogger -f /trace &
>>  - Run # io-usb
>>  - After io-usb crush run: # traceinfo -M0x9 -e /etc/config/traceinfo
>> /trace > /io-usb.trace
>>  - Post here io-usb.trace file
>>
>> As I see you have ATI graphical controller. It should work with Hydra.ms
>> and Pg.flat* driver.
>> In first case try:
>> # crttrap clear
>> # crttrap trap
>>
>>
>> Regards,
>> Pavel Kozlov
>>
>>
>>
>> Richard Miller:
>>   
>>     
>>> Our two blade vendors are end of lifing our SBC blades.  We have been
>>> evaluating new blades to support our QNX4.25 based application.
>>>
>>> The attached pdf is a blade that we have working on the
>>>     sata hard drive
>>>     charcter io using the bios usb keyboard translation
>>>     82571 networking using the e1000 dirver
>>>
>>> As you can see, usb is primary interface option.
>>> Even with the 20100707 USB2 patch  I get the following
>>> trying to start the driver
>>>
>>> //8/bin/io-usb terminated (SIGSEGV) at 00D1:00005330
>>>
>>> I am attaching
>>> pdf for the SBC
>>> the following outputs from show_pci
>>> show_pci1.txt - show_pci
>>> show_pci2.txt - show_pci -v
>>> show_pci3.txt - show_pci -vvvv
>>> the following output from lsusb when I loaded LINUX on the board
>>> lsusb1.txt - lsusb
>>> lsusb2.txt - lsbsb -vvvvv
>>>
>>> any help on how the run usb would be appreciated.
>>>
>>> any help on what graphics driver to use would be appreciated
>>>
>>>...
Re: io-usb segfault  
Hi Pavel,

I am attaching the script of the script file I used and the output.  If 
I made
any mistakes let me know and I'll correct.  I saw the same result I'm 
afraid.

We will be testing QNX 6.4.1 and QNX 6.5 today and tomorrow.  I will post
you with the results as soon as I have them.

Really appreciate you help !

Richard

Pavel Kozlov wrote:
> Hi Richard,
>
> Please try to collect io-usb trace info again but  this time run io-usb
> with increased verbosity level:
> # io-usb -vvv
> May be in this case you will catch something.  If not then io-usb
> crashes somewhere in Host Controller initialization before sending any
> debug output into the trace buffer.
> io-usb in QNX4 (20100707 USB2 patch) is a port of QNX 6.4.1 USB stack.
> Can you check io-usb behavior in QNX 6.4.1 or QNX 6.5 on your board?
> Anyway I suppose that to work with usb on your board io-usb modification
> for your hardware is required.
>
> Regards,
> Pavel Kozlov
>
> Richard Miller:
>   
>> Pavel,
>>
>> Thanks for you response.
>>
>> 1.  io-usb seg faults with no devices attached - or any combination of 
>> devices
>> 2.  I ran io-usb -d [ueo]chi pindex=[012] and got sic "Error Intializing 
>> Stack"  in each case
>> 3.  I ran this twice to make sure I got it right - see attached - it 
>> just contains 00
>> 4.  crttrap  hangs at the 1st Pg.rage128 in the crttrap.list
>>
>>      How should I modify the crttrap.list to get it to just trap on 
>> Hydra and Flat ??
>>
>>
>> Richard
>>
>>
>> Pavel Kozlov wrote:
>>   
>>     
>>> Hi Richard,
>>>
>>> That's quite bad situation. I'm afraid that with current version of
>>> io-usb you can't work with usb on your board. But to clarify the situation:
>>>
>>> 1. When io-usb crash occurs: when you run io-usb without any connected
>>> usb devices or when you connect first device or when you connect some
>>> special device?
>>>
>>> 2. Try to run io-usb with manually specified Host Controller, for
>>> example try
>>>     # io-usb -d uhci pindex=0 & or
>>>     # io-usb -d uhci pindex=1 & or
>>>     # io-usb -d ehci pindex=0 &
>>> Report if in 
some cases it will not crush.
>>>
>>> 3. Please provide io-usb trace report.
>>> To collect trace report:
>>> Copy attached file to the /etc/config
>>>  - Change severity level:  # tracectrl -s7
>>>  - Run: # tracelogger -f /trace &
>>>  - Run # io-usb
>>>  - After io-usb crush run: # traceinfo -M0x9 -e /etc/config/traceinfo
>>> /trace > /io-usb.trace
>>>  - Post here io-usb.trace file
>>>
>>> As I see you have ATI graphical controller. It should work with Hydra.ms
>>> and Pg.flat* driver.
>>> In first case try:
>>> # crttrap clear
>>> # crttrap trap
>>>
>>>
>>> Regards,
>>> Pavel Kozlov
>>>
>>>
>>>
>>> Richard Miller:
>>>   
>>>     
>>>       
>>>> Our two blade vendors are end of lifing our SBC blades.  We have been
>>>> evaluating new blades to support our QNX4.25 based application.
>>>>
>>>> The attached pdf is a blade that we have working on the
>>>>     sata hard drive
>>>>     charcter io using the bios usb keyboard translation
>>>>     82571 networking using the e1000 dirver
>>>>
>>>> As you can see, usb is primary interface option.
>>>> Even with the 20100707 USB2 patch  I get the...
View Full Message
Attachment: Text io-usb.trace2 0 bytes Text dotrace 149 bytes
Re: io-usb segfault  
Hi Richard,

I would add set and sleep commands to your script to ensure that crash
occurs before traceinfo call. Script is in attach.
I'll wait your testing results with QNX 6*.
With old QNX4 io-usb patches do you see the same situation (crash)?

Regards,
Pavel Kozlov

Richard Miller:
> Hi Pavel,
>
> I am attaching the script of the script file I used and the output.  If 
> I made
> any mistakes let me know and I'll correct.  I saw the same result I'm 
> afraid.
>
> We will be testing QNX 6.4.1 and QNX 6.5 today and tomorrow.  I will post
> you with the results as soon as I have them.
>
> Really appreciate you help !
>
> Richard
>
> Pavel Kozlov wrote:
>   
>> Hi Richard,
>>
>> Please try to collect io-usb trace info again but  this time run io-usb
>> with increased verbosity level:
>> # io-usb -vvv
>> May be in this case you will catch something.  If not then io-usb
>> crashes somewhere in Host Controller initialization before sending any
>> debug output into the trace buffer.
>> io-usb in QNX4 (20100707 USB2 patch) is a port of QNX 6.4.1 USB stack.
>> Can you check io-usb behavior in QNX 6.4.1 or QNX 6.5 on your board?
>> Anyway I suppose that to work with usb on your board io-usb modification
>> for your hardware is required.
>>
>> Regards,
>> Pavel Kozlov
>>
>> Richard Miller:
>>   
>>     
>>> Pavel,
>>>
>>> Thanks for you response.
>>>
>>> 1.  io-usb seg faults with no devices attached - or any combination of 
>>> devices
>>> 2.  I ran io-usb -d [ueo]chi pindex=[012] and got sic "Error Intializing 
>>> Stack"  in each case
>>> 3.  I ran this twice to make sure I got it right - see attached - it 
>>> just contains 00
>>> 4.  crttrap  hangs at the 1st Pg.rage128 in the crttrap.list
>>>
>>>      How should I modify the crttrap.list to get it to just trap on 
>>> Hydra and Flat ??
>>>
>>>
>>> Richard
>>>
>>>
>>> Pavel Kozlov wrote:
>>>   
>>>     
>>>       
>>>> Hi Richard,
>>>>
>>>> That's quite bad situation. I'm afraid that with current version of
>>>> io-usb you can't work with usb on your board. But to clarify the situation:
>>>>
>>>> 1. When io-usb crash occurs: when you run io-usb without any connected
>>>> usb devices or when you connect first device or when you connect some
>>>> special device?
>>>>
>>>> 2. Try to run io-usb with manually specified Host Controller, for
>>>> example try
>>>>     # io-usb -d uhci pindex=0 & or
>>>>     # io-usb -d uhci pindex=1 & or
>>>>     # io-usb -d ehci pindex=0 &
>>>> Report if 
in some cases it will not crush.
>>>>
>>>> 3. Please provide io-usb trace report.
>>>> To collect trace report:
>>>> Copy attached file to the /etc/config
>>>>  - Change severity level:  # tracectrl -s7
>>>>  - Run: # tracelogger -f /trace &
>>>>  - Run # io-usb
>>>>  - After io-usb crush run: # traceinfo -M0x9 -e /etc/config/traceinfo
>>>> /trace > /io-usb.trace
>>>>  - Post here io-usb.trace file
>>>>
>>>> As I see you have ATI graphical controller. It should work with Hydra.ms
>>>> and Pg.flat* driver.
>>>> In first case try:
>>>> # crttrap clear
>>>> # crttrap trap
>>>>
>>>>
>>>> Regards,
>>>> Pavel...
View Full Message
Attachment: Text dotrace 185 bytes
Re: io-usb segfault  
Pavel,

Please ignore my post on the VGP - I have the flat32 working fine !

Still very interested in the USB

Richard

Pavel Kozlov wrote:
> Hi Richard,
>
> That's quite bad situation. I'm afraid that with current version of
> io-usb you can't work with usb on your board. But to clarify the situation:
>
> 1. When io-usb crash occurs: when you run io-usb without any connected
> usb devices or when you connect first device or when you connect some
> special device?
>
> 2. Try to run io-usb with manually specified Host Controller, for
> example try
>     # io-usb -d uhci pindex=0 & or
>     # io-usb -d uhci pindex=1 & or
>     # io-usb -d ehci pindex=0 &
> Report if in some 
cases it will not crush.
>
> 3. Please provide io-usb trace report.
> To collect trace report:
> Copy attached file to the /etc/config
>  - Change severity level:  # tracectrl -s7
>  - Run: # tracelogger -f /trace &
>  - Run # io-usb
>  - After io-usb crush run: # traceinfo -M0x9 -e /etc/config/traceinfo
> /trace > /io-usb.trace
>  - Post here io-usb.trace file
>
> As I see you have ATI graphical controller. It should work with Hydra.ms
> and Pg.flat* driver.
> In first case try:
> # crttrap clear
> # crttrap trap
>
>
> Regards,
> Pavel Kozlov
>
>
>
> Richard Miller:
>   
>> Our two blade vendors are end of lifing our SBC blades.  We have been
>> evaluating new blades to support our QNX4.25 based application.
>>
>> The attached pdf is a blade that we have working on the
>>     sata hard drive
>>     charcter io using the bios usb keyboard translation
>>     82571 networking using the e1000 dirver
>>
>> As you can see, usb is primary interface option.
>> Even with the 20100707 USB2 patch  I get the following
>> trying to start the driver
>>
>> //8/bin/io-usb terminated (SIGSEGV) at 00D1:00005330
>>
>> I am attaching
>> pdf for the SBC
>> the following outputs from show_pci
>> show_pci1.txt - show_pci
>> show_pci2.txt - show_pci -v
>> show_pci3.txt - show_pci -vvvv
>> the following output from lsusb when I loaded LINUX on the board
>> lsusb1.txt - lsusb
>> lsusb2.txt - lsbsb -vvvvv
>>
>> any help on how the run usb would be appreciated.
>>
>> any help on what graphics driver to use would be appreciated
>>
>> Thanks
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>> General
>> http://community.qnx.com/sf/go/post65699
>>   
>>     
>
>
>
>
>
> _______________________________________________
>
> General
> http://community.qnx.com/sf/go/post66097
>
>
>   
Re: io-usb segfault  
Forgot to attach traceinfo file.


Regards,
Pavel Kozlov
Attachment: Text traceinfo 14.51 KB