Hung-Te Lin has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/31516 )
Change subject: google/kukui: boot up sspm
......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/#/c/31516/1/src/mainboard/google/kukui/mainboard...
File src/mainboard/google/kukui/mainboard.c:
https://review.coreboot.org/#/c/31516/1/src/mainboard/google/kukui/mainboard...
PS1, Line 44: unsigned char buf[BUF_SIZE];
If move to sspm_boot, it will cause build error.
I think you mean declare that as auto variable inside function, which uses stack and would definitely run out of space.
If use malloc(), the memory allocates fail .
Like it said, I think heap reserved there is less than 64K. There are few solutions:
1. If we think the sspm image file won't be compressed in future, just use cbfs_boot_map_with_leak .
2. If we think it'll save a lot of space by applying compression (and should be compressed), increase the heap in ramstage (src/soc/mediatek/mt8183/include/soc/memlayout.ld) may help.
--
To view, visit
https://review.coreboot.org/c/coreboot/+/31516
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4ae6034454326f5115cd3948819adc448b67fb1c
Gerrit-Change-Number: 31516
Gerrit-PatchSet: 2
Gerrit-Owner: Erin Lo
erin.lo@mediatek.com
Gerrit-Reviewer: Chun-ta Lin
itspeter@google.com
Gerrit-Reviewer: Erin Lo
erin.lo@mediatek.com
Gerrit-Reviewer: Hung-Te Lin
hungte@chromium.org
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Martin Roth
martinroth@google.com
Gerrit-Reviewer: Patrick Georgi
pgeorgi@google.com
Gerrit-Reviewer: You-Cheng Syu
youcheng@google.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Paul Menzel
paulepanter@users.sourceforge.net
Gerrit-CC: Tristan Hsieh
tristan.shieh@mediatek.com
Gerrit-Comment-Date: Mon, 25 Feb 2019 06:22:53 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Erin Lo
erin.lo@mediatek.com
Comment-In-Reply-To: You-Cheng Syu
youcheng@google.com
Gerrit-MessageType: comment