MBP 13" 2017 Touchbar - OSX Mojave - Fog can't find a disk
-
@Sebastian-Roth Keyboard doesn’t work. I have a USB to USB-c that I have a keyboard plugged into, use that to get ssh working, and then ssh in from another machine.
-
@rhulet If you are still in debug mode the echo command that Sebastian mentioned was this:
echo 106b 2005 > /sys/bus/pci/drivers/nvme/new_id
(I did see that Sebastian posted the exact command below)
What others have said is the system runs for about 10 seconds, hangs and you get high fan spin. Others said it worked, but most said not.
-
@george1421 Yeah last time I used it the machine shut down after about 10 seconds
-
@rhulet said in MBP 13" 2017 Touchbar - OSX Mojave - Fog can't find a disk:
Yeah last time I used it the machine shut down after about 10 seconds
Ok, so we are back to the points of the github topic. So what I would suggest is that I compile a 5.x kernel including the patch mentioned and we’ll see what happens. Won’t get to that tonight though I think. Late here and little sleep.
-
@rhulet Oh well, just started the compilation and when I got back from the bathroom it was done already: https://fogproject.org/kernels/Kernel.TomElliott.5.1.16_mac-nvme-fix.64
Edit:
echo 106b 2005 > /sys/bus/pci/drivers/nvme/new_id
should not be needed with this one as far as I understand the patch.No guarantee this will run with our inits… untested kernel!!
-
I would download the new 5.x kernel and place it in the /var/www/html/fog/service/ipxe directory as bzImage5116 Then go into the host definition for this mac and set the kernel parameter to bzImage5116…
Crud I forgot you are using a usb stick. Copy that to the usb stick as bzImage in the /boot directory (you might want to save the original kernel). Then boot into debug mode again and do a
lsblk
command to see if the nvme disk is seen. -
@rhulet Any news on this?
-
@rhulet We’ve pushed this quite far and I’d hope you read this and test the kernel I compiled for you!
-
So sorry Sebastian! I was out of the office and got put on another project. I will test this today! Thank you!
-
When I boot into debug, I get an
unable to access /index.php for connection testing
-
@rhulet Sounds like a network driver issue. But network did work earlier, right? Can you please take a picture of that error and post here?
-
Nevermind I’m dumb. I forgot the butterfly keyboard doesn’t work with the kernal. I plugged in a usb and hit enter and its working. I can see the nvme drive. Lets see if I can drop an image!
-
Update. Good news, I was able successfully capture and deploy an image from one 2017 mbp to another. Thanks!
-
OK so where did we end up here? Did applying the T2 kernel github patch resolve the issue or just adding subsystem ID to the nvme driver kernel parameter fix the issue?
-
@george1421 Using the kernal provided by @Sebastian-Roth at https://fogproject.org/kernels/Kernel.TomElliott.5.1.16_mac-nvme-fix.64 was all I needed. Worked like a charm.
-
It’s been almost a months and I am not 100% sure which patch I added. I think it was the one mentioned here: https://github.com/Dunedan/mbp-2016-linux/issues/71#issuecomment-510715810 (patch)
Will check later on today on the build server. Should still be there.
-
@george1421 Yes indeed it was this patch I used. I don’t really fancy having it in our official build.
@rhulet Would you mind being the housekeeper for this special Mac patch? We can show you how to build and add the patch. It’s not very hard if you know how to use the Linux terminal.
-
As an aside, Linux kernel 5.3 has added native support for keyboard in these models.
-
@Sebastian-Roth yeah I’d be happy to take it, just show me what to do.
-
@rhulet I’ll show you how to bake your own kernel. Though George suggested adding the patch to our official kernel. I am still not sure if it’s wise to do or not.
Use any kind of Linux machine you have at hand:
git clone https://github.com/FOGProject/fos cd fos grep KERNEL_VERSION Jenkinsfile export KERNEL_VERSION=4.19.64 ./build.sh -kn -a x64
See if that runs trough withou an issue.