Commit Graph

2693 Commits

Author SHA1 Message Date
misson20000
d1078b5c82 fastboot: add support for flashing sd directly 2020-11-20 18:01:25 -08:00
misson20000
5c73dd1453 fusee-primary: use reference counting for sd device/filesystem 2020-11-20 18:01:25 -08:00
misson20000
bd5ec4be4e fastboot: add 'flash ams' command, for extracting a zip file to SD 2020-11-20 18:01:25 -08:00
misson20000
ebc3de045a fusee-primary: add fastboot usb gadget 2020-11-20 18:01:25 -08:00
misson20000
d29baa337e fusee-primary: deduplicate display initialization code 2020-11-20 17:10:14 -08:00
misson20000
1eded071c3 fusee-primary: tweak sdram_lp0_save_params to save code space
This code is essentially a giant unrolled loop over an array of register
copies. I've manually re-rolled the loop so that rather than emitting code for
each parameter to read it, perform bit arithmetic on it, and write it, there is
instead a static list of parameters which can be encoded using much less memory.
2020-11-20 17:10:14 -08:00
misson20000
20dc027a23 fusee-primary: split stage2 handling into several functions 2020-11-20 17:10:14 -08:00
misson20000
45b170084e fusee-primary: refactor BCT0 parsing
BCT0 is now only parsed once into a struct this is shared between log
level logic and stage2 logic. This has been done in anticipation of
needing config items for fastboot gadget.
2020-11-20 17:10:14 -08:00
misson20000
c00c30c751 fusee-primary: move BCT0 buffer to dram to save on iram
Add dram section to link script, and also creates a framebuffer section so we
can start to use the link script as a single source of truth for how
fusee-primary uses dram.
2020-11-20 17:10:14 -08:00
misson20000
4499c4392d fusee-primary: add reference counting to AHB redirect
The SDMMC driver is currently the only user of the AHB redirect, but the
upcoming XUSB driver will also need to use the AHB redirect, potentially at the
same time. This ensures that the AHB redirect will not be disabled unexpectedly
if one driver is deinitialized without the other.
2020-11-20 17:10:14 -08:00
misson20000
f98ce0c909 fusee-primary: log to UART-B 2020-11-20 17:10:14 -08:00
misson20000
190fed22e2 build: fix some broken dependencies in Makefiles that were causing targets to get rebuild when they did not need to be rebuilt 2020-11-20 17:10:14 -08:00
Michael Scire
835aa6b9db exo: fix building on release 2020-11-18 15:08:44 -08:00
Michael Scire
69f9fb8713 exo: receive saved lcd vendor from bl 2020-11-18 15:08:44 -08:00
Michael Scire
a843cc0ee7 fatal: restructure, skeleton disp 2020-11-18 15:08:44 -08:00
Michael Scire
b96b162b0b sdmmc: fix UHS-I tuning init for SD cards 2020-11-18 15:08:44 -08:00
Michael Scire
512fc8f9b1 sdmmc: various fixes + logging as bugs are debugged 2020-11-18 15:08:44 -08:00
Michael Scire
b32c9bf17c exo/mariko fatal: save fatal error binaries to the SD 2020-11-18 15:08:44 -08:00
Michael Scire
5f6942aec8 exo/mariko_fatal: add sdmmc write function 2020-11-18 15:08:44 -08:00
Michael Scire
a2c89a8f3f mariko fatal: map 0xC0000000 for framebuffer usage 2020-11-18 15:08:44 -08:00
Michael Scire
898fe61034 exo: read first two sd card sectors in mariko_fatal 2020-11-18 15:08:44 -08:00
Michael Scire
7bcd5c6e3b exo: implement start of mariko fatal handler 2020-11-18 15:08:44 -08:00
Michael Scire
123ed80dc7 boot: update DisplayConfigMipiCal01 to reflect newest boot sysmodule 2020-11-16 17:51:52 -08:00
Michael Scire
5dfe355df1 git subrepo push emummc
subrepo:
  subdir:   "emummc"
  merged:   "791681f5"
upstream:
  origin:   "https://github.com/m4xw/emuMMC"
  branch:   "develop"
  commit:   "791681f5"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-11-15 22:46:12 -08:00
Michael Scire
c77b76fbd2 emummc: add GetSocType/GetHardwareType utils 2020-11-15 22:45:31 -08:00
Michael Scire
1525c66de7 git subrepo clone --force --branch=develop https://github.com/m4xw/emummc
subrepo:
  subdir:   "emummc"
  merged:   "24bdbec8"
upstream:
  origin:   "https://github.com/m4xw/emummc"
  branch:   "develop"
  commit:   "24bdbec8"
git-subrepo:
  version:  "0.4.1"
  origin:   "???"
  commit:   "???"
2020-11-15 22:39:39 -08:00
Michael Scire
f72b21d665 exo: upload memory layout design document I use 2020-11-15 08:44:57 -08:00
Michael Scire
74da8a4885 exo: map stack region for mariko-only program 2020-11-15 08:43:55 -08:00
Michael Scire
cb7c6a5d8a exo: load mariko-only program during boot 2020-11-15 08:35:57 -08:00
Michael Scire
fc97237447 exo: add logging to boot under debug config 2020-11-15 03:24:04 -08:00
Michael Scire
a203ac3f80 exo: free space by moving keys to volatile iram, support logging under debug config 2020-11-15 02:47:44 -08:00
Michael Scire
2ef41f0027 exo: shuffle logic around to support debug code region in iram 2020-11-15 01:36:50 -08:00
Michael Scire
ee3a7e7740 exo: disable untranslated gpu accesses on mariko 2020-11-15 00:45:41 -08:00
Michael Scire
3c595994df exosphere: release, debug, audit configs 2020-11-14 14:40:16 -08:00
Michael Scire
b4c908ba9f exo/program: release, debug, audit configs 2020-11-14 14:14:07 -08:00
Michael Scire
c572024a5e rebootstub: audit/debug/release 2020-11-14 12:19:01 -08:00
Michael Scire
71a38ae74d libexo/sc7fw: support release/debug/audit 2020-11-14 12:17:38 -08:00
Michael Scire
f74527d93c libexosphere: support building under debug/audit configurations 2020-11-14 11:35:51 -08:00
Michael Scire
72f83ea43e exo: reserve a portion of iram for secure monitor debug (including code) 2020-11-14 11:11:41 -08:00
Michael Scire
43ef260c66 boot2: don't wait for bpc.mitm on mariko 2020-11-14 10:40:40 -08:00
Michael Scire
f2c553be1a bpc.mitm: don't mitm bpc on mariko 2020-11-14 10:34:13 -08:00
Michael Scire
304b9bfbd1 i2c: correct missing destruction 2020-11-14 03:37:51 -08:00
Michael Scire
1d8744164e ams.mitm: provide different boot0-protection for custom public key 2020-11-14 03:37:51 -08:00
Michael Scire
d587054f96 wec: whoops 2020-11-14 03:37:51 -08:00
Michael Scire
29facf6141 updater: don't overwrite custom-public-key BCTs 2020-11-14 03:37:51 -08:00
Michael Scire
b8c3128d16 pinmux: whoops 2020-11-14 03:37:51 -08:00
Michael Scire
b62aa044e4 boot/powctl/i2c: more miscellaneous fixes 2020-11-14 03:37:51 -08:00
Michael Scire
affdea9244 boot: various bugfixes (b/w logo displays now) 2020-11-14 03:37:51 -08:00
Michael Scire
fdab964e3d powctl: implement max17050 driver 2020-11-14 03:37:51 -08:00
Michael Scire
15c752f52d powctl: add battery driver logic (missing impl) 2020-11-14 03:37:51 -08:00