• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Mac Mini with T2 chip

    Scheduled Pinned Locked Moved Solved
    Mac Problems
    5
    41
    6.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      TaTa
      last edited by

      @george1421 Yes. Secure boot is disabled (Mac won’t allow to boot to external device if it’s enable). I tried the new kernel and it gets a bit further. Kernel log level has been set to 7. Where does the log write to? I can’t seem to find it anywhere.
      I noticed there are more errors before it gets to USB fog menu (wrong efi file?)
      Video: https://s.amsu.ng/JWcj5VGc5USN

      @Sebastian-Roth When the screen goes to power saving mode, machine is still on. It does not response to mouse or keyboard.

      1 Reply Last reply Reply Quote 0
      • S
        Sebastian Roth Moderator
        last edited by

        @TaTa The “log” is just output on the screen. Nothing written to a file.

        Seems like you took some kind of slow motion video to grab the further output seen on the screen. Great idea. Though the picture is not clear enough to read anything. Can you please do the same thing again but this time rest the camera/phone on a pile of books in front of the screen and pay attention to it being focused on the text on screen.

        When the screen goes to power saving mode, machine is still on. It does not response to mouse or keyboard.

        So it’s not just a screen resolution/graphics card issue?! What you say doesn’t respond to mouse or keyboard… does this mean you cannot toggle NUM or CAPS lock? Any chance you can hook up the network card to an old hub or modern switch using a port mirror to capture all the network traffic?

        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

        1 Reply Last reply Reply Quote 0
        • T
          TaTa
          last edited by TaTa

          @Sebastian-Roth Apparently, it does not like usb-c to vga adapter. I connected to another monitor through DVI and saw a lot more. I went to a place where it’s trying to connect to fog server x.x.x/fog//index.php but failed to get an IP from DHCP through enp1s0 interface. I noticed it uses Atheros driver (00:13s) instead of Aquantia AQtion (Ethernet maker for this mini Mac).
          My apologize for the out of focus and shaky hands. You might need to download it to be able to read the text.
          https://s.amsu.ng/f8cHjL2HeJON (fixed)

          george1421G 1 Reply Last reply Reply Quote 0
          • george1421G
            george1421 Moderator @TaTa
            last edited by george1421

            @TaTa said in Mac Mini with T2 chip:

            Apparently, it does not like usb-c to vga adapter

            I did not enable this feature in the 5.3.4 kernel I built. I also did not add the kernel patches for the mouse and keyboard because they should have been included in the 5.3.x series of linux kernels. I can enable both and recompile the T2 kernel if needed.

            Just to be clear you are testing with the kernel I built (bzImageT2) with your current testing. I want to make sure we are talking about the same thing with your testing.

            Lastly your link to the latest video is damaged and can’t be viewed.

            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

            1 Reply Last reply Reply Quote 0
            • T
              TaTa
              last edited by TaTa

              I used USB-c ethernet cable instead and it went to uploading image screen. It’s currently uploading now. I will let you know how it goes.
              alt text

              george1421G 1 Reply Last reply Reply Quote 0
              • george1421G
                george1421 Moderator @TaTa
                last edited by

                @TaTa I have a new T2 kernel (bzImageT2b) where I enabled the apple usb display and a few other usb attached display adapters, plus I applied the patch for the apple HID devices.
                https://drive.google.com/open?id=12St-Wix1io0s0oXhgxAuLlQOVoT9548L

                BTW: 9.5GB/m is doing pretty good after 30 seconds. It would be interesting to know what the rate settles to after 3 minutes.

                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                T 1 Reply Last reply Reply Quote 0
                • T
                  TaTa @george1421
                  last edited by

                  @george1421 Thank you. I will try it out once i’m done testing this.
                  It’s at 71% now and still going strong. Uploading speed is 6.66GB/min.

                  1 Reply Last reply Reply Quote 0
                  • T
                    TaTa
                    last edited by

                    @george1421 Uploaded successfully but getting the error below. I’m downloading it now and will report back.
                    alt text

                    1 Reply Last reply Reply Quote 0
                    • T
                      TaTa
                      last edited by TaTa

                      @george1421 Downloaded successfully but with error below. Rebooted the machine and tested both Mac OS and BootCamp partitions. Everything’s working fine. Thanks a million @george1421 & @Sebastian-Roth
                      alt text

                      I tried T2b kernel. USB-C to vga adapter still does not work (screen went power saving). Built-in ethernet are not able to get an IP from DHCP.

                      george1421G 1 Reply Last reply Reply Quote 0
                      • S
                        Sebastian Roth Moderator
                        last edited by Sebastian Roth

                        @TaTa said:

                        Failed to read back partitions (runPartprobe)
                           Args Passed: /dev/nvme0n
                        

                        As far as I know this issue should be fixed in the latest inits already. From what I see in the pictures (partclone v0.2.89, ramdisk_size=127000) you seem to use an older version of the init files.

                        Please download the latest inits (64 bit, 32 bit) and make sure you update your grub.conf file to use ramdisk_size=275000!!

                        Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                        Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                        Tom ElliottT T 2 Replies Last reply Reply Quote 0
                        • Tom ElliottT
                          Tom Elliott @Sebastian Roth
                          last edited by

                          @Sebastian-Roth The init’s kind of indicate the fix wasn’t in for those files. Notice the Parclone version is still 0.2.89

                          Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG! Get in contact with me (chat bubble in the top right corner) if you want to join in.

                          Web GUI issue? Please check apache error (debian/ubuntu: /var/log/apache2/error.log, centos/fedora/rhel: /var/log/httpd/error_log) and php-fpm log (/var/log/php*-fpm.log)

                          Please support FOG if you like it: https://wiki.fogproject.org/wiki/index.php/Support_FOG

                          B 1 Reply Last reply Reply Quote 0
                          • george1421G
                            george1421 Moderator @TaTa
                            last edited by

                            @TaTa said in Mac Mini with T2 chip:

                            Built-in ethernet are not able to get an IP from DHCP.

                            Do you want to work on this error? We can probably fix it.

                            Secondly I just want to confirm that 5.3.4 linux kernel with the T2 patches worked and imaged the computer correctly through the T2 chip? I’ll need to write up what I changed for the developers so they can look at adding it to a future release of FOG.

                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                            T 1 Reply Last reply Reply Quote 0
                            • T
                              TaTa @george1421
                              last edited by

                              @george1421 Yes. I want to be able to use built-in ethernet card (and usb-c to vga adapter if possible).
                              Yes. 5.3.4 with T2 paches worked through HDMI and I was able to upload/download image correctly.

                              george1421G 1 Reply Last reply Reply Quote 0
                              • george1421G
                                george1421 Moderator @TaTa
                                last edited by george1421

                                @TaTa OK for both lets see if we can get the hardware IDs of both of them.

                                From the USB stick make sure option #6 (debug) uses the new 5.3.4 kernel. Then usb boot using option 6. After several screens of text you need to clear with the enter key. Eventually you will be dropped to a FOS linux command (just a note, if the system will boot with the usb video adapter installed, install it before you boot into option #6). Once at the linux command prompt key in the following lspci -nn | grep -i net Take a clear picture of the output the closer the better. I need the values that look like this [8086:15cd] (totally made up number). But I need the hex values in the squared brackets with the description. The next one is going to be a bit of hunt and pecking to find the right numbers for the usb interlaces. I don’t think that the FOS Linux command gives us as much detail as on a conventional linux distribution. lsusb from there I need to get the hardware numbers of the video adapter.

                                Now your MAC OS may provide a better and quicker way to get the hardware ID than booting through FOS linux. The numbers will be constructed similarly. So you might try OSX first. In windows these values are avaialble via the device manager in the form of “vend_id=8086;device_id=15cd”

                                Once I have the device ids I can then start tracking back the drivers needed for them.

                                Oh one last feedback on the T2b kernel, did the keyboard and mouse work on this one vs just the T2 patches? I just wanted to know the effectiveness of the HID patch.

                                Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                T 1 Reply Last reply Reply Quote 0
                                • T
                                  TaTa @george1421
                                  last edited by

                                  @george1421 alt text
                                  alt text

                                  Keyboard and mouse works on both T2 and T2b.

                                  george1421G 2 Replies Last reply Reply Quote 0
                                  • george1421G
                                    george1421 Moderator @TaTa
                                    last edited by george1421

                                    @TaTa Ah that is a 10G adapter. The last time I looked not all of the 10G adapters were enabled in FOS Linux

                                    So for the network adapter I need Aquantia AQtion [1D6A:07B1]

                                    For the video
                                    05AC:1461 05ac Apple, Inc.

                                    Off to search now

                                    Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                    1 Reply Last reply Reply Quote 0
                                    • george1421G
                                      george1421 Moderator @TaTa
                                      last edited by george1421

                                      @TaTa For the network adapter, that driver has been in the linux kernel since 4.12. It is still in the current release and is enabled in the FOS Linux kernel. For the next steps I will need you to boot into debug mode on the usb stick and run a few commands.

                                      ip addr show
                                      Confirm that the network adapter doesn’t an ip address. Post the output here so I can see what it looks like, wait 30 seconds after booting then key in
                                      /sbin/udhcpc -i $iface --now Now you will need to replace the variiable $iface with the kernel name of the network adapter. This kernel name will come from the ip addr show command.
                                      again run the ip address show to see if time fixes the issue.
                                      ip addr show

                                      for the video, I’ll need you to run the lsusb command to see if the kernel sees the driver with the USB ID 05AC:1461

                                      Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                      T 1 Reply Last reply Reply Quote 0
                                      • george1421G
                                        george1421 Moderator
                                        last edited by george1421

                                        Patch linux kernel 5.4.6 (disregard my references to other series 5.x.x kernels in previous posts. I used and compiled against 5.4.6 and not what I thought I was building against 5.4.3 or what ever I said).

                                        I started with the 5.4.6 base kernel and applied the FOG configurations from FOS Linux 1.5.7 config file. I enabled thunerbolt and usb type-c drivers in the code, plus a bunch of other things I can’t remember at the moment.

                                        The config file used to build the bzImageT2b is here:
                                        Config.T2Chip.txt

                                        The diff from the 1.5.7 kernel loaded into the 5.4.6 kernel config space vs the bzImageT2b config file above is here:
                                        apple_T2_diff.patch.txt

                                        Basically these are the changes made from FOS Linux 1.5.7 after they were loaded into the 5.4.6 kernel builder tool and the changes I made enabling what I thought this apple hardware needed.

                                        Here are the T2 kernel patches that were supplied via the github link https://github.com/MCMrARM/mbp2018-etc/tree/master/applesmc These patches must be applied to the linux 5.4.6 kernel in numeric order.

                                        0001-applesmc-convert-static-structures-to-drvdata.patch.txt
                                        0002-applesmc-make-io-port-base-addr-dynamic.patch.txt
                                        0003-applesmc-switch-to-acpi_device-from-platform.patch.txt
                                        0004-applesmc-key-interface-wrappers.patch.txt
                                        0005-applesmc-basic-mmio-interface-implementation.patch.txt
                                        0006-applesmc-fan-support-on-T2-Macs.patch.txt

                                        Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          TaTa @george1421
                                          last edited by

                                          @george1421 ip addr show lists network adapters as enp126s0u2 (USB-c to ethernet adapter), enp1s0, and lo. enp1s0 MAC address is not the same as reported in Mac OS or BootCamp for Ethernet adapter nor it’s the same as Wifi MAC address.
                                          lsusb does show ID for USB-C multimedia adapter: Bus 001 Device 004: ID 05ac:1461

                                          george1421G 1 Reply Last reply Reply Quote 0
                                          • george1421G
                                            george1421 Moderator @TaTa
                                            last edited by

                                            @TaTa Well having an unknown nic is a bit strange.

                                            If you plug a functioning network cable into both the onboard nic and the usb-c nic and then issue these commands can either get an IP address?

                                            /sbin/udhcpc -i enp126s0u2 --now

                                            /sbin/udhcpc -i enp1s0 --now

                                            To understand a bit more about the enp1s0 nic (which sounds like an Intel nic) you can run the following command lspci -nn |grep -i net and it will display the kernel drivers used for both nics. I can tell you from experience if linux doesn’t have a driver for the network device it will not report or show up the nic in the ip addr show command. Now it may pic the wrong driver, but at least FOS Linux has the driver for both nics.

                                            Please help us build the FOG community with everyone involved. It's not just about coding - way more we need people to test things, update documentation and most importantly work on uniting the community of people enjoying and working on FOG!

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 1 / 3
                                            • First post
                                              Last post

                                            201

                                            Online

                                            12.0k

                                            Users

                                            17.3k

                                            Topics

                                            155.2k

                                            Posts
                                            Copyright © 2012-2024 FOG Project