182 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
0
answers
37
views
Is it possible to create a fake SCSI target on macOS DriverKit
I am migrating a KEXT driver to DEXT, using PCIDriverKit and SCSIControllerDriverKit on macOS.
But I also want to write a loopback SCSI target in the DEXT for testing purpose.
Is it possible to create ...
0
votes
1
answer
271
views
How to identify the name of a needed linux kernel module
I am trying to build the linux Parted tool following these instructions.
After building Parted you can run tests on it and those instructions state:
About 20 % more tests are run if the following ...
0
votes
0
answers
88
views
On Linux, for a scsi device, how to make an inquiry call (sg_ll_inquiry()) to page code 00 and check which other pages are supported?
I want to understand if there is a way to make an inquiry call to page code 00 and retrieve the supported page codes to further make inquiry calls to those page codes. I'm new to scsi and any help ...
2
votes
0
answers
323
views
Functions of IOUserSCSIPeripheralDeviceType00 class in SCSIPeripheralsDriverKit always return kIOReturnUnsupported (0xe00002c7)
I already have a working KEXT which I use for sending SCSI vendor commands for a SCSI Peripheral Type 0 device with IOSCSIPeripheralDeviceNub as the provider. Currently, in the process of migrating to ...
1
vote
1
answer
354
views
SCSI commands that can benefit from a full duplex SAS connection
One of the distinguishing features of SAS is a full-duplex connection between the HBA and device. SATA provides only half-duplex connections.
I used to think that SAS drives could simultaneously ...
1
vote
1
answer
792
views
How to send a generic SCSI command to a USB drive under MACOS
This has been asked a few times, but I haven't found any actual resolution to how to accomplish this. I will admit, I am a Linux programmer, not MACOS, so this is a very different world, but this ...
0
votes
2
answers
152
views
DEXT. How to set property for SCSI device created by UserCreateTargetForId()
For my KEXT I set the property "Protocol Characteristics" in Info.plist file
<key>Protocol Characteristics</key>
<dict>
<key>Physical Interconnect</key>
<...
-3
votes
1
answer
60
views
53C94 SCSI IC as target - Cannot handle WRITE(10) command from Initiator
I am building a SD card/SCSI adapter using NCR 53CF94 IC and STM32.
All goes pretty well, even manged to make my device work to some degree, i.e. accepting all basic commands and even booting from it ...
1
vote
4
answers
328
views
SCSIControllerDriverKit: Process gets stuck on UserCreateTargetForID
Context:
We are working on migration of the driver, which is currently represented as a kernel extension, to the DriverKit framework.
The driver works with Thunderbolt RAID storage devices.
When ...
3
votes
1
answer
605
views
When should I use REQ_OP_FLUSH in a kernel blockdev driver? (Do REQ_OP_FLUSH bio's flush dirty RAID controller caches?)
When should I use REQ_OP_FLUSH in my kernel blockdev driver, and what is the expected behavior of the hardware that receives the REQ_OP_FLUSH (or equivalent SCSI cmd)?
In the Linux kernel, when a ...
0
votes
1
answer
1k
views
How do I pass SCSI (CDB) commands through a USB connection
I am trying to talk to a MSC USB device (interface class 8, subclass 6, protocol 0x50) via a plain USB API with endpoints (all set up for me).
Provided I have a valid CDB, such as for "Test Unit ...
0
votes
0
answers
880
views
how does Linux get the max_hw_sectors_kb value?
I'm trying to find how the Linux obtains the max_hw_sectors_kb value. I know that it comes from the HW itself but how?
0
votes
1
answer
420
views
Why physical disk connected to the same HBA port may have different paths?
i'm new on Linux
May you help me?
I have connected disk on /dev/sda and another one on /dev/sdb
When i eject disk on /dev/sda and load & scanning (through echo "- - -" > /sys/class/...
1
vote
2
answers
520
views
How to access physical address from a DriverKit driver?
Now I am trying to write an IOUserSCSIParallelInterfaceController driver which uses neither DMA nor PCI and emulates a SCSI target.
I realized that fBufferIOVMAddr ( https://developer.apple.com/...
0
votes
1
answer
1k
views
Read a sector from physical drive
I am trying to read a sector from my physical drive using SCSI commands.
I referenced other people's code and modified some, below is the code.
#include <stddef.h>
#include <stdio.h>
#...