marcan changed the topic of #asahi to: Asahi Linux: porting Linux to Apple Silicon macs | General project discussion | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Topics: #asahi-dev #asahi-re #asahi-gpu #asahi-stream #asahi-offtopic | Keep things on topic | Logs: https://alx.sh/l/asahi
___nick___ has quit []
___nick___ has joined #asahi
robinp has quit [Read error: Connection reset by peer]
phiologe has joined #asahi
PhilippvK has quit [Ping timeout: 480 seconds]
<marcan> I love it when idevicerestore doesn't work... and neither does Apple's restore tool.
skipwich has quit [Ping timeout: 480 seconds]
<marcan> I swear idevicerestore actually got *further* into the restore than Apple Configurator 2
<marcan> (trying to capture a TSS response for AppleTCON so nikias can add support for the iMac to idevicestore...)
<marcan> *idevicerestore
<marcan> now trying with the "latest software" which means a massive download... bleh
<marcan> I was trying a 11.4 restore from a 11.5 device, which really should work
marvin24 has joined #asahi
<marcan> but anyway, if we can get idevicerestore to work well on all these machines, that will hopefully give everyone piece of mind that we aren't going to brick anything
<marcan> AIUI even the factory data can be pulled over the network
<marcan> *peace of mind
<chadmed> are people actually scared of that happening still?
<marcan> it pops up now and then
<marcan> I stand by that philosophy; I never want a user to ever end up with damaged or unusable hardware due to something I wrote, not even in freak corner cases
<chadmed> thats a fair position to take though these devices really are unbrickable afaict unless you completely nuke the eeprom (which we do not expose atm)
marvin24_ has quit [Ping timeout: 480 seconds]
<marcan> AIUI they are unbrickable even if you nuke the NOR
<marcan> and that would be something I'd want to test on my second mac mini
<marcan> if it doesn't work, since I'm told it's supposed to, that's a bug to report to apple :)
<chadmed> my mate plans on getting an M1X mini on release, might ask if he can donate his M1 mini to science ;)
<marcan> I'll be getting one too of course
<marcan> I'm going to end up with quite a collection...
<marcan> if nothing else that's one good reason for the patreon, being able to buy all the devices for testing :)
robinp has joined #asahi
<marcan> ... and now it ran out of disk space
<marcan> but I don't know how. my data volume lists 400GB in use but `du` only shows about 90GB in use
<marcan> can we make it a goal to have Asahi work better than macOS on these machines? it really doesn't sound like that much of a challenge :p
<chadmed> that seems rather easy, the days of macos being a solid UNIX workstation os are long over
<marcan> online fsck isn't quite working properly
<marcan> let's try from recovery mode...
<chadmed> its a pretty horrific mess these days, especially ever since they started dumping ios libraries in starting with Lion
<marcan> (and people want APFS to work on Linux? so far my experiences with it on *macOS* are it corrupting in a way that caused kernel panics on a friend's machine, and now this)
<chadmed> its probably worth having a readonly kernel driver to make dual booters' lives a bit easier... but its a nice-to-have and at this stage probably more dangerous than helpful id say
<chadmed> i can imagine someone inadvertently shredding their apfs container with macos on it and getting upset
<marcan> wait what
<marcan> I can see the space users from recovery mode, it's an iOS backup I'd taken
<marcan> ... but I swear I deleted it
<marcan> why couldn't I see it while booted?
<marcan> ah right, Terminal didn't have Full Disk Access enabled
<marcan> ahaha and I think it's working now
<marcan> and I think I know why
<marcan> I was using a C-C cable before
<marcan> and I think, once it entered xnu/restore mode, the iMac decided it would be the DFP/host
<marcan> ... so the mba I was using to restore never saw the restore gadget
<marcan> now I'm using my serial rig which is hardcoded
<marcan> ... so I guess if you want to restore an Apple Silicon mac, you'd better use a C-A cable and an A-C adapter to force directionality...
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi
<marcan> yay, idevicerestore works on my iMac now \o/
<marcan> trying a full restore now for completeness
<marcan> looks like that worked too, although it landed me in an "Activate Mac" screen, so I think it didn't *quite* personalize properly, somehow
<chadmed> was it a full factory reset? they usually ask for your icloud details and time machine backup regardless, no?
<marcan> yes, full reset
<marcan> and no, I'm not talking about that
<marcan> initial OS boot failed, it kicked me into recovery assistant
<marcan> this doesn't happen with AC2
<marcan> I think the proxy support to Apple's activation server in idevicerestore is broken
<chadmed> ohhh right right yeah odd
<marcan> it did work after going through the recovery assistant screens
<marcan> just get on the wifi and it works
<marcan> but it's clearly something not quite right in idevicerestore
<marcan> oh huh, I just tried it again and restore failed
<marcan> looks like it just fell off of USB? weird
<marcan> maybe it was a fluke... it just failed mid sending the root FS with no discernible error
<marcan> yeah, works now but the proxy thing is definitely broken
<marcan> chadmed: fixed it, it was indeed broken proxy logic (and it worked... if you're close enough to Apple's server)
<marcan> boots normally after restore now
<chadmed> neat, that makes things significantly safer
<marcan> yeah, it also failed in a way that broke the entire restore sometimes
<marcan> it was just inconsistent in what part failed
nsklaus_ has quit [Ping timeout: 480 seconds]
nsklaus_ has joined #asahi
<marcan> trying the mba for completeness, though I suspect it'll work...
<marcan> yup, works fine
<marcan> so another interesting thing is the "no-erase" mode, as far as I can tell, just upgrades system firmware/recovery
<marcan> that should be convenient for those who need to upgrade to 12.0 firmware but don't want to upgrade macOS to 12.0
<chadmed> that will be very useful for us
<chadmed> yeah that ^
<marcan> (though I need to figure out how to make the installer bootability stuff work to install 12.0 on 11.x... that didn't work last time and I think it's due to apple bugs)
<marcan> OTOH if you're on 11.x, and you upgrade SFR, you get 12.0 for recoveryOS
<marcan> so you could just boot from 1TR and that would definitely work
<marcan> ok, SFR upgrade to 11.6 worked on the MBA, yay
<marcan> 12.0 probably won't work due to the missing BootabilityBundle feature though
<marcan> but I trust Nikias can figure that one out
chadmed has quit [Quit: Konversation terminated!]
chadmed has joined #asahi
chadmed has quit [Remote host closed the connection]
chadmed has joined #asahi
chadmed has quit [Remote host closed the connection]
aleasto has joined #asahi
aleasto has quit []
<robinp> just building a kernel from 'many-hacks' - do we need CONFIG_EEPROM_93CX6=y ? (just trying to work out why alyssa has it selected & its not a default).
<j_ey> Im pretty sure you don't..
<maz> pleasantly surprised that m1n1 already deals with the local-mac-address properties!
<maz> https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/commit/?h=hack/m1-pcie-v4&id=fcc0f91f4bfa8fe3c449d014a1a6863e677b7b9c
<maz> that's all it took for my mini to use the official MAC address.
<kettenis> maz: it works for the wifi as well; that needs a wifi0 alias
bgb has joined #asahi
<bgb> when I use m1n1 with ttyUSB0, it now always show me self.readfull(1) timeout, but it worked before, and works now on another linux machine. I don't what is wrong with my machine.... any suggestions?
<jn> do you have a different device connected to this machine, as ttyUSB0?
<bgb> an arduino usb cable as ttyACM0, nothing else
<bgb> same hw works well on another linux machine(ubuntu)
aleasto has joined #asahi
<sven> <3 usb *sigh*
<sven> anything in dmesg or on the m1n1 framebuffer?
<bgb> nothing
<sven> does the m1n1 version match the proxyclient version?
<bgb> ah, m1n1 inside mac mini is older
<sven> does chainload work?
<j_ey> always chainload m1n1 first
<bgb> even shell.py did not work
<sven> sure
<sven> but does chainload work?
mini has quit [Remote host closed the connection]
<bgb> no
<sven> hrm, okay. that's odd then
<bgb> worked at least once
mini has joined #asahi
<bgb> I'm moving to a newly installed gentoo(gnome desktop) machine, because ubuntu can not work with m1n1 usb driver due to BIOS bug. too hard for me...
bgb has quit [Ping timeout: 480 seconds]
JuniorJPDJ has joined #asahi
X-Scale` has joined #asahi
X-Scale has quit [Ping timeout: 480 seconds]
JJ_007 has joined #asahi
<nsr> thanks again for all the pointers on the PMU from friday, I did manage to configure it to retrieve clock cycle from el0 eventually, thanks to your documentation :)
<marcan> ttyUSB0 isn't m1n1, m1n1 would show up as ttyACM0
<maz> kettenis: yup. I just need to know whether wifi is function 0 or 1.
JJ_007 has left #asahi [Leaving]
quarkyalice has quit [Remote host closed the connection]
yuyichao_ has joined #asahi
yuyichao has quit [Ping timeout: 480 seconds]
boardwalk has quit [Ping timeout: 480 seconds]
<marcan> restoring 12.0 beta7 with idevicerestore + some manual work works now
<marcan> I'll let Nikias opine on how to implement the cpio shenanigans, but this proves it works :)
boardwalk has joined #asahi
aleasto has quit [Ping timeout: 480 seconds]
<kettenis> maz: wifi is function 0
<kettenis> reg = <0x10000 0x0 0x0 0x0 0x0>;
<kettenis> local-mac-address = [00 00 00 00 00 00];
<kettenis> is what I have in my u-boot device tree
povik has joined #asahi
X-Scale has joined #asahi
aleasto has joined #asahi
X-Scale` has quit [Ping timeout: 480 seconds]
tomtastic has quit [Ping timeout: 480 seconds]
tomtastic has joined #asahi
thunfisch has quit [Read error: Permission denied]
thunfisch has joined #asahi
yrlf has quit [Quit: The Lounge - https://thelounge.chat]
yrlf has joined #asahi
X-Scale` has joined #asahi
X-Scale has quit [Ping timeout: 480 seconds]
___nick___ has quit [Ping timeout: 480 seconds]
aleasto has quit [Quit: Konversation terminated!]
boardwalk has quit [Ping timeout: 480 seconds]
boardwalk has joined #asahi
boardwalk has quit [Ping timeout: 480 seconds]