This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Problem in Registering RAW Client with Block Media Driver

Hi,

I am using BIOS PSP drivers with EVM 6748. I am trying to access SATA HDD in RAW mode for that my application has to call PSP_blkmediaAppRegister() to register the device. But this call always returns error. Can anybody  share his experience about this. 

  • Chandrasekhar,

    Pl. ensure that no other app has registered for that media or ensure that any other instance of the same app has not registered for that device.  Beyond that I do not see any other issues.

    regards

    swami

  • Hi Swami,

    Before calling PSP_blkmediaAppRegister() in my application I called only sata driver initialisation sequences like ATA_init(), configureSata(),sataStorageInit() and ATA_DrvInit(). How I can ensure that there is no other media registered?  While debugging I found that I was not getting gBlkmediaInfo[device].DevHandle  for sata .

    Thanks,

    Chandra Shekhar Mishra

  • Chandra,

    This would explain why you appregiater failed.  There was no device to startwith to register for.

    Can you confirm that you have connected the sata device and is being enumerated correctly or whether the device is spinning.

    regards

    swami

  • Hi swami,

    Thanks for replay.

    Following is the messages I got while running the application on EVM 6748 board with externally powered Sata Hard disc connected to it.

    ATA Hard Drive Application Task starting.

    Configured ATA drive.

    Version : 0001.0100

    NumOfCmdSlots : 32

    NumOfPorts : 1

    Speed : 3 Gbps

    SATA:AHCI-CAP:SNCQ SSNTF SLAP SAL SCLO SAM SPM PMD SSC PSC

    Block Driver Initialization Succeeded

    ATA Build: Debug.

    SATA PHY initialized : online

    ATA_DrvInit Done..

    SATA_RAW_SAMPLE: Currently 7 device is set as a Raw Device

    SATA_RAW_SAMPLE: Ioctl for setting SATA device as RAW device is successfull

    SATA_RAW_SAMPLE: Currently 5 device is set as a Raw Device

     While debugging I come to know that ATA_DrvInit() function of sata driver has already called  PSP_blkmediaDrvRegister() function that is why  when I am trying to call it from application it is not able to register it.

    Now, I am wondering whether my application can call blk media read /write functions without calling PSP_blkmediaDrvRegister() ? Your little bit of guidance will help me to access sata in RAW mode.

    Regards,

    Chandra Shekhar Mishra

     

     

     

  • Hi swami,

    I was confused between PSP_blkmediaDrvRegister() with PSP_blkmediaAppRegister(). I think without calling PSP_blkmediaAppRegister my application can not get handle to device,right? I am unable to move beyond this point.It will be of great help if you can give some idea.

    Regards,

    Chandra Shekhar Mishra