marcan changed the topic of #asahi-re to: Asahi Linux: porting Linux to Apple Silicon macs | Hardware / boot process / firmware interface reverse engineering | WARNING: this channel (only) may contain binary reverse engineering discussion | RE policy: https://alx.sh/re (MANDATORY READ) | GitHub: https://alx.sh/g | Wiki: https://alx.sh/w | Logs: https://alx.sh/l/asahi-re
Namidairo has quit [Ping timeout: 246 seconds]
Namidairo has joined #asahi-re
larbob has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
larbob has joined #asahi-re
HeN has joined #asahi-re
aratuk has joined #asahi-re
_whitelogger has joined #asahi-re
aratuk has quit [Ping timeout: 256 seconds]
aratuk has joined #asahi-re
aratuk has quit [Ping timeout: 240 seconds]
shaun1 has quit [Quit: WeeChat 3.0]
modwizcode has quit [Quit: Later]
dstzd has quit [Quit: ZNC - https://znc.in]
dstzd has joined #asahi-re
Tokamak_ has joined #asahi-re
Tokamak has quit [Ping timeout: 240 seconds]
Necrosporus has quit [Ping timeout: 264 seconds]
bigos has joined #asahi-re
bigos has quit [Ping timeout: 264 seconds]
bigos has joined #asahi-re
bigos has quit [Ping timeout: 264 seconds]
Necrosporus has joined #asahi-re
HeN has quit [Quit: Connection closed for inactivity]
Tokamak_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
emily has joined #asahi-re
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
mogery has joined #asahi-re
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
CalumK has joined #asahi-re
CalumK has quit [Client Quit]
linuxgemini has joined #asahi-re
CalumK has joined #asahi-re
browzing_ has joined #asahi-re
Raqbit has quit [Read error: Connection reset by peer]
Raqbit has joined #asahi-re
tmbinc has quit [Ping timeout: 256 seconds]
browzing has quit [Ping timeout: 256 seconds]
tmbinc has joined #asahi-re
DragoonAethis has joined #asahi-re
Axenntio has joined #asahi-re
dstzd has quit [Quit: ZNC - https://znc.in]
dstzd has joined #asahi-re
hypergenesis[m] has joined #asahi-re
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
frode_0xa has joined #asahi-re
frode_0xa has quit [Quit: leaving]
snalty has joined #asahi-re
asmon[m] has joined #asahi-re
Axenntio has quit [Quit: Leaving]
snalty has quit [Ping timeout: 246 seconds]
imobilis has joined #asahi-re
Axenntio has joined #asahi-re
snalty has joined #asahi-re
Axenntio has quit [Ping timeout: 246 seconds]
uberusha1 has joined #asahi-re
<uberusha1> /j #radare
<uberusha1> sorry about that
modwizcode has joined #asahi-re
uberusha1 is now known as uberushaximus
<Bluerise> marcan: should m1n1.macho show something when bootet in a mini?
<Bluerise> right now it just reboots
<j`ey> did you enable the logo?
<j`ey> but the watchdog is disabled, so it shouldnt just reboot..
<Bluerise> heh, I did not enable the logo, let me retry with it on.
<Bluerise> does my second macos install,the one where I replace the kernel, need the newest beta as well?
<Bluerise> or only the main install?
<Shiz> i'd say just the main (if you want it to continue booting)
<Bluerise> nope, nothing on the screen, simply reboots
<yrlf> Bluerise: didn't marcan say something about that at the beginning of last (not today's) stream?
<j`ey> Bluerise: using the latest m1n1?
<Bluerise> yup
zopieux has quit [Quit: zopieux]
<Bluerise> yrlf: I think he couldn't boot his beta1 anymore, so maybe I should just update/install beta2 on both
<Bluerise> j`ey: in the stream he says the WDT is on
<Bluerise> So I'll reinstall big sur and update it to beta 2 and re-test
<j`ey> Bluerise: what m1 are you on?
<Bluerise> Ah, yeah. But by default it's on, he's got to disable it explicitly
<Bluerise> the lowest-spec mini
<j`ey> right, thats what I meant by "it's disabled"
<j`ey> Bluerise: you could try commenting out the printfs/uarts
<j`ey> assuming you dont have a uart connected
<j`ey> or at least move the logo / watch dog code first
zopieux has joined #asahi-re
vimal has quit [Quit: Leaving]
<marcan> Bluerise: if it reboots something is broken
<marcan> it should go into the serial serving loop
<marcan> Bluerise: beta2 cannot boot beta1
<marcan> this is an Apple bug
<marcan> so yes, you need to update both installs
<marcan> I did it manually by copying just the boot files around, but I'd recommend doing it properly, I don't have it written out as a guaranteed process yet
modwizcode_ has joined #asahi-re
fried_dede[m] has joined #asahi-re
minicom8 has joined #asahi-re
minicom has quit [Ping timeout: 256 seconds]
Ziemas has quit [Ping timeout: 256 seconds]
minicom8 is now known as minicom
marcan has quit [Ping timeout: 256 seconds]
marcan has joined #asahi-re
modwizcode has quit [Ping timeout: 256 seconds]
segher has quit [Ping timeout: 256 seconds]
modwizcode_ is now known as modwizcode
segher has joined #asahi-re
Ziemas has joined #asahi-re
HeN has joined #asahi-re
<Bluerise> marcan: well I had beta2 (main) and non-beta (for m1n1)
<Bluerise> re-installing the for-m1n1 partition with the beta
svenpeter[m] is now known as svenpeter
<Bluerise> Hm, didn't work
<Bluerise> bootloops
<Bluerise> marcan: so I reduced security and then ran kmutil with -c and -v
<j`ey> Bluerise: so you dont see any asahi logo, errors or anything?
<Bluerise> nope
<Bluerise> well I don't have a uart, so,...
<Bluerise> it reboots earlier than the WDT would (as seen in marcan's stream)
<Bluerise> so it's not the WDT, it's more like a) crashing b) not verified properly
<marcan> if you don't see the asahi logo then it's crashing
<marcan> the beta1/beta2 incompaitibility looks like that
<marcan> ~6 second reboot loop, never moving past the apple logo
<Bluerise> I have *both* on beta2 now
<marcan> Bluerise: to rule out build issues, try https://hub.marcan.st/t/m1n1.macho
<Bluerise> Now it's throwing my "Boot policy error: Error creating linked manifest: code BOOTPOLICY_ERROR_AP_BOOT_MODE"
<Bluerise> whaat.
<Bluerise> let's reboot and try again.
<Shiz> Bluerise: you're not in 1TR
<Shiz> if it throws that error
<Bluerise> Ah, ok, then that was the "bootloop recovery mode" that it auto booted into after it bootlooped 10 times
<Bluerise> going back into 1TR
<Bluerise> marcan: there's nothing else to do but a) reduced security in the dropdown, but not click checkboses b) run configure-boot?
<Bluerise> marcan: hm, doesn't work either
<Bluerise> so it's not build issue then
<Bluerise> Hm, I dunno. Both on Beta2, reduced security of the one OS, ran configure-boot, tried to boot it, reboots basically instantly
<Bluerise> No USB debug cable, only HDMI and a USB hub with mouse+keyboard
<modwizcode> had a thought recently, is there any point trying to do something like build out some of the peripherals/boot process in something like qemu as we discover more about how they work?
<roxfan> sure that should be useful for testing
<modwizcode> I wonder how hard something like that would be, I've tried several times to dive into qemu's codebase but I've found it somewhat confusing. At the very least adding support for loading the MachO or whatever format the kernel binaries have to be so the same files can be booted directly would be cool.
<modwizcode> I think qemu has some understanding of device trees in some way too maybe?
<j`ey> yeah but linux style ones
<asmon[m]> is ther any ethernet devs?
<asmon[m]> is ther any ethernet devs?
<Shiz> stop asking, this is most of all not the channel for this
<modwizcode> Are they much different? Is it just a different binary encoding? (I've mostly been following the chat logs but haven't been looking at code)
<j`ey> asmon[m]: your question is not asahi related
<modwizcode> but I assume support could be added to understand Apple's format if it would make it easier to use the same setup to test as with hardware.
<asmon[m]> ok answer his qemu question
<asmon[m]> ok answer his qemu question
<modwizcode> *their
<asmon[m]> his
<asmon[m]> his
<Shiz> modwizcode: apple and linux dtbs are different in encoding, vaguely based on the same concepts
<Shiz> but not trivially interchangable
<Shiz> a lot of fields are, but some of it is rooted in different ways to approach the tree or drivers
<jn__> (both evolved on different trajectories from OpenFirmware devicetrees)
<modwizcode> That's... frustrating. I've only seen like the decoded text forms I think and it looked pretty much the same as what I expected.
<modwizcode> Good old OpenFirmware
<asmon[m]> modwizcode: what you doing
<asmon[m]> I wonder how hard something like that would be, I've tried several times to dive into qemu's codebase but I've found it somewhat confusing. At the very least adding support for loading the MachO or whatever format the kernel binaries have to be so the same files can be booted directly would be cool.
<asmon[m]> what confusing the code?
<asmon[m]> what confusing the code?
<roxfan> why do you repeat everything twice?
<roxfan> or is that a bridge bug?
<asmon[m]> ethernet problems kext error
<asmon[m]> ethernet problems kext error
<asmon[m]> roxfan: ethernet problems kext error
<asmon[m]> roxfan: ethernet problems kext error
<roxfan> oh gods
<asmon[m]> it's been year like that..
<asmon[m]> it's been year like that..
<jn__> asmon[m]: Ethernet problems under macOS are off-topic for all of the asahi channels (except for #asahi-offtopic, perhaps). please don't ask about them here
<winocm> oh, TIL about that channel too
<asmon[m]> winocm: welcome
<asmon[m]> winocm: welcome
<asmon[m]> jn__: remember that
<asmon[m]> jn__: remember that
Tokamak has joined #asahi-re
CalumK has joined #asahi-re
<marcan> Bluerise: oh right, I heard there may be a bug
<marcan> asmon[m]: please fix your networking, the repetition is a problem
<marcan> don't ask about that here please
<marcan> Bluerise: so this is dumb but maybe try doing it on the other macos partition
<asmon[m]> marcan: trying to fix for year was hoping mayeb someone has idea?
<marcan> but yeah the AP_BOOT_MODE thing is the not-1TR error
<asmon[m]> marcan: trying to fix for year was hoping mayeb someone has idea?
<marcan> asmon[m]: please just stop talking here until you fix the problem, we really can't help you
<asmon[m]> marcan: i dont know how to fix it :(
<asmon[m]> marcan: i dont know how to fix it :(
<marcan> nor do we
<asmon[m]> you are very smart i had very big hopes someone know where to look into fixint it
<asmon[m]> you are very smart i had very big hopes someone know where to look into fixint it
<Bluerise> marcan: is there an easy way to restore the original kernelcache?
<Bluerise> like configure-boot on some specific file?
<Bluerise> hmm, is that the "fixed GPT partition id" bug?
<winocm> asmon: please, stop.
<asmon[m]> winocm: sorry
<asmon[m]> winocm: sorry
snalty has quit [Quit: Leaving]
Axenntio has joined #asahi-re
Axenntio has quit [Client Quit]
modwizcode has quit [Quit: Later]
mogery has quit [Read error: Connection reset by peer]
CalumK has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Tokamak has quit [Ping timeout: 260 seconds]
Tokamak has joined #asahi-re
Tokamak has quit [Ping timeout: 264 seconds]
Tokamak has joined #asahi-re