#asahi-dev · 2021-01-27 11:20
marcanso yeah, it'd need a little tool#asahi-dev · 2021-01-27 11:20
marcanbecause IIRC iBoot2 puts data after the macho#asahi-dev · 2021-01-27 11:20
marcanactually this won't work#asahi-dev · 2021-01-27 11:18
marcanactually let me try this right now#asahi-dev · 2021-01-27 11:17
marcankettenis: yes, but they have a tool#asahi-dev · 2021-01-27 11:17
marcan^^#asahi-dev · 2021-01-27 11:17
marcanif not it would need a trivial tool to embed#asahi-dev · 2021-01-27 11:17
marcannot sure yet though#asahi-dev · 2021-01-27 11:17
marcanif it does we could literally do cat m1n1.macho u-boot.elf (or whatever format) > boot.macho#asahi-dev · 2021-01-27 11:16
marcanfwiw I want to see if iBoot2 will just dump whole macho files in RAM or not#asahi-dev · 2021-01-27 11:16
marcanno atf here so :)#asahi-dev · 2021-01-27 11:15
marcan(again this is common)#asahi-dev · 2021-01-27 11:15
marcanBluerise: m1n1 would embed u-boot as a second stage#asahi-dev · 2021-01-27 11:14
marcanand getting a nice standard devicetree and SMP spintable passed to it?#asahi-dev · 2021-01-27 11:14
marcanbut does it gain anything from that, vs just wrapping it in m1n1?#asahi-dev · 2021-01-27 11:14
marcanI mean if u-boot wants to copy and paste all the m1n1 code for this and make m1n1 unnecessary then sure#asahi-dev · 2021-01-27 11:14
marcanalso, dealing with ADTs and FDTs#asahi-dev · 2021-01-27 11:13
marcanand it might make sense not to pollute u-boot with all that junk#asahi-dev · 2021-01-27 11:13
marcanif u-boot does not do SMP spinup then we need that#asahi-dev · 2021-01-27 11:13
marcanwell, really the point is m1n1 will spin up the CPUs and apply chicken bits#asahi-dev · 2021-01-27 11:13
marcananyway, one thing I was going to write was embedded second stage support in m1n1, both for testing self-contained boot a la corellium now (which sucks, but has its uses), and for embedding e.g. u-boot#asahi-dev · 2021-01-27 11:12
marcanthis is totally going to end up being SecureROM -> iBoot1 -> iBoot2 -> m1n1 -> u-boot -> grub -> linux, isn't it#asahi-dev · 2021-01-27 11:12
marcanyeah as I said, crazy boot chains on ARM#asahi-dev · 2021-01-27 11:11
marcanlol#asahi-dev · 2021-01-27 11:11
marcanala grub#asahi-dev · 2021-01-27 11:11
marcanhow do you pick kernels?#asahi-dev · 2021-01-27 11:11
marcansome nvram file?#asahi-dev · 2021-01-27 11:11
marcanstore it where?#asahi-dev · 2021-01-27 11:10
marcanlol ok#asahi-dev · 2021-01-27 11:10
marcanor is it EFI style bootXXX.EFI?#asahi-dev · 2021-01-27 11:10
marcando they have tooling to mess with u-boot configs?#asahi-dev · 2021-01-27 11:10
marcanhow do those platforms boot anyway, as far as distros go?#asahi-dev · 2021-01-27 11:10
marcanso yes, someone should port u-boot anyway#asahi-dev · 2021-01-27 11:09
marcanwe'll see in the long term what ends up being used#asahi-dev · 2021-01-27 11:09
marcanchaining u-boot was always one path I had in mind :)#asahi-dev · 2021-01-27 11:09
marcananyway I'm saying you will be *able* to use m1n1 for this, not that distros won't want to chain u-boot#asahi-dev · 2021-01-27 11:09
marcanarch linux arm#asahi-dev · 2021-01-27 11:08
marcan:p#asahi-dev · 2021-01-27 11:08
marcanALARM already treats every platform as special anyway#asahi-dev · 2021-01-27 11:08
marcanand I already did that for asbestos anyway#asahi-dev · 2021-01-27 11:08
marcanonce you have that, throwing in fatfs and a simple config file parser is stupid easy#asahi-dev · 2021-01-27 11:08
marcanwe need to work out disk I/O anyway, so I'll be writing that code for testing purposes#asahi-dev · 2021-01-27 11:07
marcanagraf: because it's easy#asahi-dev · 2021-01-27 11:07
marcanm1n1 was never intended to go that way#asahi-dev · 2021-01-27 11:07
marcanthe corellium preloader stuff is a terrible idea#asahi-dev · 2021-01-27 11:07
marcanagraf: m1n1 will solve that anyway, as I said I'm adding disk support :p#asahi-dev · 2021-01-27 11:07
marcanplus the disk I/O#asahi-dev · 2021-01-27 11:07
marcanwonder how much porting it really needs then... probably just the same stuff I did for linux, IRQs and the FIQ timer thing, a patch or two to serial or maybe not even that, and that's about it#asahi-dev · 2021-01-27 11:06
marcanyeah#asahi-dev · 2021-01-27 11:06
marcanin that case that would work fine in principle