Attention is currently required from: Hung-Te Lin, Rex-BC Chen, Julius Werner.
3 comments:
File src/soc/mediatek/mt8186/include/soc/memlayout.ld:
TTB(0x00100000, 28K)
DMA_COHERENT(0x00107000, 4K)
TPM_TCPA_LOG(0x00108000, 2K)
FMAP_CACHE(0x00108800, 2K)
WATCHDOG_TOMBSTONE(0x00109000, 4)
CBFS_MCACHE(0x00109004, 16K - 4)
/* EMPTY(0x0010d000, 4K) */
STACK(0x0010E000, 7K)
TIMESTAMP(0x0010FC00, 1K)
/* MT8186 has 64KB SRAM. */
Done, with slight adjustment.
STACK 7k-4
From my experiments, the STACK size needs to be a multiple of 16. Neither `7K-4` nor `7K-8` work: the last log was `Jump to BL`, which means that the device got stuck somewhere in bootblock before `console_init()`. The device can boot with `7K-16` though.
ARM64's memlayout.h only requires the address to be 16-byte aligned. I'm not sure if we should also add an extra assertion for the size.
Patch Set #2, Line 44: /* 4K reserved for BOOTROM until BOOTBLOCK is started */
Correction. […]
Done
aarch64-cros-linux-gnu-objdump -x dram.elf | grep memsz […]
Yes, I've mentioned that in the commit message.
To view, visit change 63924. To unsubscribe, or for help writing mail filters, visit settings.