From: Mick <michaelkintzios@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Gentoo on Apple TV 1
Date: Fri, 31 Aug 2018 23:16:34 +0100 [thread overview]
Message-ID: <7801542.9tG7oKzLiV@dell_xps> (raw)
In-Reply-To: <5f88fed0-0a25-3d19-b19d-739711e90e87@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2360 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2018-08-31 22:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-31 15:31 [gentoo-user] Gentoo on Apple TV 1 Mick
2018-08-31 16:02 ` Andrew Udvare
2018-08-31 16:22 ` Andrew Udvare
2018-08-31 18:41 ` Mick
2018-08-31 21:10 ` Andrew Udvare
2018-08-31 22:16 ` Mick [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7801542.9tG7oKzLiV@dell_xps \
--to=michaelkintzios@gmail.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox