[Nintendo Switch News, Guides, Discussion , Develop] gavin_darkglider1:
Lol, that was me, but I dont really care about android, I wanted it for my gentoo switch build. lol. I was quite happy when I finally figured out how to build it, when I found out that there is still a major bug resuming from sleep mode, where the system becomes unusable. So then I reverted the LP0 stuff, and just added the minerva stuff. Still had the issue resuming from sleep mode. From what bylaws was saying, memory training breaks resume for now, on top of the other issues. lol. I am pretty good, but low level programming has never been my strong suit. Porting linux userspaces is another story though. Feel free to check out my gentoo repository on github, I would post a link, but I cant, since I lost my old account details. just google "GavinDarkglider gentoo-switch_overlay github" should be the first link. This should at least give people a decent idea of what is needed to build the kernel, as for the boot chain, that was a bit of trial and error, a bit of atmosphere, and a huge pain in the ass to work out the missing repo files that used to be downloaded automatically when running make. lol. Easiest way to deal with that is to copy the 3rd party stuff from fail0verflow coreboot, once you run make, then clone the switch atf folder into 3rdparty/arm-trusted-firmware.

once you have done that, you need to build lp0 firmware, before running make.

As for sc7firmware, you need to patch atmosphere with the patch in the issue on github, and then build atmosphere, at least to the point of exosphere being finished with the build.

once you have lp0 and sc7firmware built, then you can build coreboot. it isnt hard, but was a bit tedious to build, with less information then I am giving now. lol.

There is enough there to build the kernel, and install the video card drivers, audio card drivers, and dock profile stuff, and a bunch of patches for wifi injection, gadget bashbunny patches(my own custom work), hid-joycon patches(Broken as of now, waiting on dev for updates for kernel 4-9) and other stuff taken from lakka, updates to the kernel itself, and gentoo patches. I am still working out cuda, tensorRT, openMAX, V4L, etc stuff that is also supported by the 210 SOC's maxwell GPU. Once I finish with gentoo I might port debian(Much easier, as the ubuntu packages should just install easily there), and Arch. Someone else has a working version of fedora core as well. So, yes, we should all be thanking switchroot for the amazing work on the l4t platform, as that is the important part, if you ask me. Sleep mode is nice, but full working hardware in linux is more important to me than sleep mode. And personally, while I think android is a logical option for the switch, it is just one linux based option. ChromeOS would be cool as well, and if I get really bored, I might try that as well(Probably wont work, as there isnt a 32bit driver package for l4t.)

As for building android, it should be possible with the current stuff on github, and the information in this thread(Drivers and stuff). The only part missing is the dts stuff for android, but that should be about the same for linux, so a few minor changes, if that to get it to boot android properly. Personally I would wait for the official release though.

[MENTION=576676]langer hans[/MENTION] I look forward to seeing what comes next, and am curious if you have looked into the screen bringup stuff for coreboot that imbusho pushed for his efi bootloader. This was for windows 10 arm, but should work with linux and android as well, so it might make sense to switch away from u-boot at some point. I havnt seen any development there for a while though.