Accessing the NVMe flash drive of the April 2016 MacBook 12" (A1534) [SOLVED]
Carina Willbold
nvme at elfenteich.de
Mon May 16 10:55:15 PDT 2016
Dear Keith,
Am 2016-05-16 16:46, schrieb Keith Busch:
> On Mon, May 16, 2016 at 04:59:51AM +0200, Carina Willbold wrote:
[ Trying to get the flash disk on the new MacBook recognized ]
>> I can now happily confirm that accessing the flash drive works using
>> kernel
>> 4.6.0-rc7 and manually binding using:
>>
>> echo 106b 2003 > /sys/bus/pci/drivers/nvme/new_id
>>
>> No controller resets or other IO errors occur even with (moderately)
>> drive-intense activities like compiling and installing packages.
>>
>> I'll submit a patch which will make the manual binding superfluous
>> tomorrow.
>
> It was starting to sound like you might need to copy the current
> Apple
> driver quirk for the 0x2001 device, but if it's working without, you
> can just append the VID/DID to nvme's pci_device_id table.
yes, thought so too, but it's working without. I can confirm that the
flash drive works fine and is automatically detected with the (trivial)
patch given in the other mail. The patch is against 4.6, but it applies
cleanly against the current linux-next and axboe/linux-block.
In my boot scripts, I had to include a short sleep because I was too
lazy to properly wait for the device files to come into existence.
Thank you for your answer!
LLAP,
Carina
More information about the Linux-nvme
mailing list