Comments (5)
m1n1 is an example of an application that runs on bare metal (or at least, as bare as one can get) on apple silicon https://github.com/AsahiLinux/m1n1, https://github.com/AsahiLinux/docs/wiki/m1n1%3AUser-Guide
Note that it supports chainloading kernel images, which might be useful to you. This, iiuc, represents the unofficial standard that is the linux kernel image format, which you can find documented here https://www.kernel.org/doc/Documentation/arm64/booting.txt
In terms of driving the hardware, you can look at m1n1 itself, or the various linux device drivers that have been written as part of the asahi project.
You may be able to achieve your goals by editing m1n1 itself.
from docs.
I am no expert in any of this stuff. Just a random person on the Internet who happened to see your question. But it seems to me tbat a Raspberry Pi is a deliberately simple device, designed for people to tinker with, whereas a Mac is a highly proprietary and complex device with no official public documentation on a lot of the pieces. So my guess is that it would be a lot more work than you expect.
But if you can use qemu to emulate most of the hardware and then maybe write custom drivers for one piece of hardware at a time, then maybe that would work. But as I say, I'm just a random person on the Internet, so I don't really know how much effort this would be.
from docs.
Unless you want to write device drivers, a TCP/IP stack, etc., etc., yourself, it seems better to use a Linux kernel and just have a minimal userspace containing your game. But I am not a game dev or OS kernel dev 🤷♂️
from docs.
Unless you want to write device drivers, a TCP/IP stack, etc., etc., yourself, it seems better to use a Linux kernel and just have a minimal userspace containing your game. But I am not a game dev or OS kernel dev 🤷♂️
Thanks for getting back to me - much appreciated.
I'm fine with nothing working out the box. This would be all about practicing low-level programming. Building a game was just hypothetical (I'm more interested in generating music personally).
I just wondered if this is comparable to doing the same on a RPi, and I can't see any reason why not, but feel like there's probably a few reasons why not. I just don't know what they are yet.
I'm thinking it might be possible to use QEMU and M1 virtualization to efficiently emulate the hardware, with the option of buying a second M1 Mac down the road (when I can afford another one, frankly), and linking them up (with debugging etc). It could be a lot of fun (if it was as simple as it seems).
Again, all the best, buddy. Cheers.
from docs.
@wodin - I understand you're not taking an authoritative position, but I still appreciate the time you took you offer your thoughts. Thanks.
@DavidBuchanan314 - I was looking at m1n1
, and hoped I could exploit stuff like that. I understand I'll need some parts of the project, but would like to avoid an entire OS kernel. To be fair, I'm really just toying with the idea, and wanted to see if anyone more knowledgable could foresee it was a non-starter.
I appreciate your advice (and the links). I'll close the issue, and look into it some more. Thanks again. Much appreciated.
from docs.
Related Issues (20)
- Speaker support for M1 mac HOT 3
- Thunderbolt4 Support is more important than you might think. HOT 5
- Repartition the disk due to an error HOT 1
- F6 (Key board brightness up) key suspends the system (F6 <-> XF86Sleep) HOT 3
- After installation I cannot boot with `option` HOT 4
- Sorry, I don't know where to make this request. HOT 8
- fedora Asahi remix 39 boot into black screen while the external hdmi monitor work. HOT 1
- (Feel free to move this question) Re-registering an Asahi partition HOT 5
- M3 support timeline HOT 1
- (Fr/En) Debian on MBP M1 : After installation read but not write rights HOT 1
- Stop at "Downloading OS package info..."
- xml.parsers.expat.ExpatError: not well-formed (invalid token): line 303843, column 35 HOT 1
- Installing Paragon APFS for Linux on Asahi-any success? HOT 1
- Typo on About page? HOT 5
- How to boot in single user mode to change root or user password HOT 1
- Update "Partitioning cheatsheet" to reflect the partition layout with fedora Asahi Remix
- How do I install it? WIKI FAQ HOT 7
- Dev Team's plans for an automated uninstaller?
- Setting up OpenGL within Flatpaks HOT 2
- Error During Asahi Linux Installation - "No Internet Connection" at Setting Asahi as Default Boot Volume Step HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docs.