News for hackers. Stuff that matters.
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by cstross on Monday July 26, 2021 @08:12AM (#27958452)
Get back to me when you've got it running on a dead badger:

https://www.abyssapexzine.com/2021/04/dead-badger/

/humor, in case you were wondering.

(More seriously: this is great stuff, but it's on a desktop Mac Mini; I suspect getting it running on an iPad Pro might be just slightly harder ...)

Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by svenpeter on Monday July 26, 2021 @08:29AM (#27958567)
On the computers (i.e. mac mini, macbook, iMac) Apple ships an unlocked bootloader and we can just install our own bare metal code very early on using their official tools.

On the iPad Pro that bootloader is locked down and running Linux on there is unfortunately very unlikely to ever be possible.

Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by sudosysgen on Monday July 26, 2021 @10:35AM (#27959860)
It would be possible, though very difficult, to turn the OS into a staging bootloader, and load another OS bare-metal from there. Still insanely difficult though.
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by svenpeter on Monday July 26, 2021 @10:51AM (#27960096)
Usually, once you can run code in kernel mode it’s just a matter of bringing the hardware back to a sane state.

Unfortunately, “just” running code in kernel mode is incredibly hard on the iPad. There’s e.g. a hardware mitigation that turns a memory region to read-only and also only allows kernel code to run from this region. This mitigation is locked down and cannot be disabled once XNU is running on the iPad (http://siguza.github.io/KTRR/).

On top of that page tables are also protected by a “kernel within the kernel” (https://blog.svenpeter.dev/posts/m1_sprr_gxf)

Getting past all that is going to be very hard if not impossible.

Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by azalemeth on Monday July 26, 2021 @01:24PM (#27962224)
I thought the first-generation iPad pro was checkra1n-compatible? Isn't checkm8 a bootloader exploit?
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by somebody_amzn on Monday July 26, 2021 @02:15PM (#27963030)
Yes the first gen iPad Pro can, and the second generation one too. The target user base for Linux on those might be too small though.
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by londons_explore on Monday July 26, 2021 @08:46AM (#27958704)
But all that's needed is a bootloader exploit...
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by Wowfunhappy on Monday July 26, 2021 @10:26AM (#27959738)
Chkm8 was the first of its kind since the early days of iOS. It's not impossible but we'd have to get very lucky.
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by svenpeter on Monday July 26, 2021 @09:00AM (#27958815)
which is not impossible but very unlikely.
Re:Debian GNU/Linux running bare metal on the Apple M1 with ... by andrewmcwatters on Monday July 26, 2021 @12:01PM (#27961086)
It’s fun to do an’ all, but the lack of drivers really made the experience half-baked for me when I realized I couldn’t use any of the badger’s limbs.