From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 391E5138334 for ; Fri, 31 Aug 2018 22:17:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6D7BEE08B1; Fri, 31 Aug 2018 22:16:58 +0000 (UTC) Received: from mail-wm0-x241.google.com (mail-wm0-x241.google.com [IPv6:2a00:1450:400c:c09::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CD86CE0798 for ; Fri, 31 Aug 2018 22:16:57 +0000 (UTC) Received: by mail-wm0-x241.google.com with SMTP id 207-v6so6576535wme.5 for ; Fri, 31 Aug 2018 15:16:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:reply-to:subject:date:message-id:in-reply-to:references :mime-version; bh=Fd3cfA93aHzg++pMPy3qvBSHyMgCpvCFeJPu/UgiOMw=; b=XGrgk2Mf/UZj2u+bREtIGcXbGMPjnGWzng/Ur4D8k3w9q7BLA6Ah9Se8urlKC0z6bx d9Szx7cREzFvn6B0/mBs+XR0An1VSkQZLoMJ/9fGKP0pdcPHfCELBLjUwHrWNpXq+9+h y/udE74YDnWwQQGNiIA0ALue51fufC7iusJHmd3pwyXy8tglk+4NnNi2GocTnc2TD2cR 09VGP5R9z7RnYHx7hIU51D6s/lNB22GxggC1bR06azTuvdiMljtsIJGdDEM4l5yqA9BC gSwe67dkvWP2z7kva+rZIblt0Tm9+VnEZ+pVkelsE4EQvjhH/WGu1Etec2BQCa91Zkdl cs0Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:reply-to:subject:date:message-id :in-reply-to:references:mime-version; bh=Fd3cfA93aHzg++pMPy3qvBSHyMgCpvCFeJPu/UgiOMw=; b=cQI43rOnkND8vIxuIPXYMy4ToXKOjAcF8Q/fHjHPy/VD5AdALDX4a0pPMskmyj5l9S lATToAIW61HSNkZLklro6CTdUFyG0UswLWLePNiu24zK2WGbnuhS8SixzauSmcF0imoI ImB56GgCjrX86DSTuMLAf63FG/fJ00WyJhpiEIqSme/vnBEGuoghsrHZIcsfAR6A/N51 EVjC1PB5kjPM5sZ0m+G3mKlnwQYCVqKyZtH5ZhzqSb/og1Px7JyVu+17+yml4bn7Y6Cg hFe/h5YSFCSmZFId2TX5Ytv/vwfgdZS0UWvcdCbOByB6b56NQq5gBOp3zIM/ruwUOJnp WoCA== X-Gm-Message-State: APzg51AmS72RE6rGui6W/YbIGTIJE/bDalKGpMUgj9rMfuMieJvlc9wv 9q89lQdLIcvw2Bx8RnlN3ZmsXELN X-Google-Smtp-Source: ANB0VdZSpupriRLn4cNVydm9SOisKD+acXYJvWEBG062ap9vDicb33blr0dKwzPb18kcB9RHhtyTQg== X-Received: by 2002:a1c:480a:: with SMTP id v10-v6mr5634165wma.161.1535753816016; Fri, 31 Aug 2018 15:16:56 -0700 (PDT) Received: from dell_xps.localnet (230.3.169.217.in-addr.arpa. [217.169.3.230]) by smtp.gmail.com with ESMTPSA id 124-v6sm8346238wmk.20.2018.08.31.15.16.54 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 15:16:55 -0700 (PDT) From: Mick To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Gentoo on Apple TV 1 Date: Fri, 31 Aug 2018 23:16:34 +0100 Message-ID: <7801542.9tG7oKzLiV@dell_xps> In-Reply-To: <5f88fed0-0a25-3d19-b19d-739711e90e87@gmail.com> References: <2147720.hYZmMkTFMu@dell_xps> <7389207.YZWuP8yg8U@dell_xps> <5f88fed0-0a25-3d19-b19d-739711e90e87@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart2045351.7t8MQ6Hqvq"; micalg="pgp-sha256"; protocol="application/pgp-signature" X-Archives-Salt: 0374a557-4919-4af8-bd4a-9d2ebef02e34 X-Archives-Hash: 6b35e71be54665e3146417e7d48bc074 --nextPart2045351.7t8MQ6Hqvq Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="UTF-8" On Friday, 31 August 2018 22:10:48 BST Andrew Udvare wrote: > On 8/31/18 2:41 PM, Mick wrote: > > What I have not fathomed yet is how to compile into the mach_kernel the > > vmlinuz and initrd the boot.efi uses to boot linux. :-/ > > (Note that I am making assumptions that the Apple TV 1st gen can be > treated kind of like a Mac.) Right, I'm not sure if it can ... > You probably should try rEFInd to help. You can get rid of it once you > are comfortable. rEFInd can be avoided: > > https://glandium.org/blog/?p=2830 > > This is what I used years back on a MacBook Pro but I was not successful > in getting an EFI stub to boot correctly. The issue was a bug with USB > 2/3 initialisation or something at the time in the kernel, which you > probably won't run into. I had to use the BIOS emulation which you might > have the ability to do. So it was rEFInd -> BIOS emulation (calls it > Windows) -> LILO (GRUB didn't work) and then Linux. Last time I was dual booting into a MacBook Pro a couple of years ago, I think I used CONFIG_EFI_STUB on linux and no boot manager at the time. The MacBook's boot manager listed my gentoo bootx64.efi file which booted into Linux without any drama. > Here is what it looked like (holding C at boot time): > https://i.imgtc.com/jjBY8AF.jpg (OS is macOS, "Windows" CD in the > picture was just Gentoo live CD). Yes, I recall a similar picture with my installation at the time. > Your problem can be made simpler if you have a) no desire to dual-boot > and b) no disk encryption. This would mean you only have your VFAT > partition for EFI and your main partition. Well, this box has a 32bit EFI, for which a special boot.efi[1] binary was developed a long time ago to boot a mach_kernel executable.[2] The mach_kernel is compiled to contain a compressed vmlinuz and initrd image for the Linux OS. The /boot partition is on an 'AppleTV Recovery' (AF04) partition type with an HFS+ fs. At least this is how OSMC and from what I understand older Gentoo installations were booting these devices. However, all this was happening 10 years ago. I don't know if I can bypass all this malarkey and just compile a kernel with an EFI stub and without initrd to boot with. [1] https://www.developerfusion.com/project/24162/atvbootloader/ [2] https://github.com/davilla/atv-bootloader -- Regards, Mick --nextPart2045351.7t8MQ6Hqvq Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part. Content-Transfer-Encoding: 7Bit -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEt7MNaGaS6HvTUrEz6WnU8jC95dcFAluJvkIACgkQ6WnU8jC9 5dcYWg/7BD104ifRISyb+6Z3L50aLCP7hwUzZeIm+nwrfVUSocdo5b3xrSc9ZbH8 ZBM+AA40ai9btJSHL4hcVwgsE7fEfwsX6FbS7r5LnBwtxRIPmNIF84f3PwbftA3s iabuRmJND13BHGw+qR8eVGy5M35/t4V/OChHbBpbphI1WRTIZ7CjvjSpmNDI0qcb 1nZ6kXYBaevKTPJqiz/HAWfq8Oy7zVMd7IO+1wtXE6cA6X2H9TyrRbvFkGiZktXx 5iPRsVLV2YcPUcmuLTGaF7agIckET2+JWgBteXnBdKUDI2ZcabfiRwW1m9LhpySD YAS9l9CuYXJovD3kQmJmW32w47z0H/YBEF2UlbGtjdq+wIHLM+1ZXJOozSViOYJT GkECRSZCo22ZP47jIKT7T8o7hQQvoyOLCvpbs/XjSjdTCwk2n/PemXzKeXPuK4H+ xu6LDW8f1vA0Il44IadbB2hLKsiQyPZ1244PIP5vMKqXpTLzfxi36ZA8cQhXk97Z NvxQtdUmLD2MbfkP+zATxTJCDL73CREzrVIaCl3pNsCnvDMmn/oIV1DphQW9hXV/ ip1K82Pu7bNmGGjvg5mig/RuLnEvYjgssTGhU9tKx5GcRWpAUwPnMVM3XoWcPFkf 6EGYP4FUgfC9G/hnMeGzVOEM/jdq2e+xEyqT27Ms/vE327G0Jss= =WMms -----END PGP SIGNATURE----- --nextPart2045351.7t8MQ6Hqvq--