Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Can't start USB sub class driver when usb host driver start with "-t memory=" option: (2 Items)
   
Can't start USB sub class driver when usb host driver start with "-t memory=" option  
Hi All,

I'm using the latest QNX SDP 6.6.0 and USB driver/stack (io-usb , devu-ehci.so, devb-umass) , but I'm having problem 
with force kernel allocate memory region for USB driver (EHCI). The USB driver seem work fine however sub class driver 
(devb-umass) does not work, it terminated after I plug USB memory stick to USB port

I tried as below
====================================================================
1. Defining memory region for EHCI driver in startup module (file init_raminfo.c)

void init_raminfo() 
{
  add_ram(0x40000000, MEG(2048));
   // define legal access area for PCIAHB (USB 2.0) /
  as_add(0x50000000, 0x52000000 - 1, AS_ATTR_RAM,
       "usbram", as_default());//32MB
  alloc_ram(0x50000000, 0x2000000, 1);
}

2. Start USB driver after the board boot-up completely

# io-usb -t memory=usbram -dehci ioport=0xXXXXXXXX,irq=0xXX,memory=usbram

3. List all usb device 
# usb 
USB 0 (EHCI) v1.10, v1.01 DDK, v1.01 HCD

Device Address             : 1
Vendor                     : 0x0781 (SanDisk)
Product                    : 0x5530 (Cruzer)
Class                      : 0x00 (Independent per interface)

4. Sub class driver (devb-umass) is terminated when I plug USB stick.
==================================================================

So, could anyone suggest how I force the kernel allocate a memory region for USB drive.  I feel I must  be 
doing something stupid.

Thanks,
Tuong
Re: Can't start USB sub class driver when usb host driver start with "-t memory=" option  
Hi Deepankar,

This is QNX 4 discussion board, but you asked about QNX 6.6. Please post your question again in right forum.

Respectfully,
Oleg

24 июня 2015 г., в 11:40:14, DEEPANKAR BHARDWAJ <community-noreply@qnx.com> написал:

> Hi All,
> 
> I'm using the latest QNX SDP 6.6.0 and USB driver/stack (io-usb , devu-ehci.so, devb-umass) , but I'm having problem 
with force kernel allocate memory region for USB driver (EHCI). The USB driver seem work fine however sub class driver 
(devb-umass) does not work, it terminated after I plug USB memory stick to USB port
> 
> I tried as below
> ====================================================================
> 1. Defining memory region for EHCI driver in startup module (file init_raminfo.c)
> 
> void init_raminfo() 
> {
>  add_ram(0x40000000, MEG(2048));
>   // define legal access area for PCIAHB (USB 2.0) /
>  as_add(0x50000000, 0x52000000 - 1, AS_ATTR_RAM,
>       "usbram", as_default());//32MB
>  alloc_ram(0x50000000, 0x2000000, 1);
> }
> 
> 2. Start USB driver after the board boot-up completely
> 
> # io-usb -t memory=usbram -dehci ioport=0xXXXXXXXX,irq=0xXX,memory=usbram
> 
> 3. List all usb device 
> # usb 
> USB 0 (EHCI) v1.10, v1.01 DDK, v1.01 HCD
> 
> Device Address             : 1
> Vendor                     : 0x0781 (SanDisk)
> Product                    : 0x5530 (Cruzer)
> Class                      : 0x00 (Independent per interface)
> 
> 4. Sub class driver (devb-umass) is terminated when I plug USB stick.
> ==================================================================
> 
> So, could anyone suggest how I force the kernel allocate a memory region for USB drive.  I feel I must  be 
> doing something stupid.
> 
> Thanks,
> Tuong
> 
> 
> 
> 
> _______________________________________________
> 
> General
> http://community.qnx.com/sf/go/post114012
> To cancel your subscription to this discussion, please e-mail general-qnx4-unsubscribe@community.qnx.com