a3e3d9c198
Update STM32F469-disco configuration files to operate with new kernel. Result of make tinyconfig was taken as a starting point to fit kernel into flash memory. Current setup kernel + rootfs fits in 1.6MB on-chip flash memory Fixes: - Move kernel to new flash bank due to growth of dtb size - Fix kernel start address in bootloader - Remove outdated path which doesn't affect normal operation mode For better binary size optimization gcc LTO is turned on. Signed-off-by: Yauheni Saldatsenka <eugentoo@gmail.com> [Arnout: - squash 3 patches into 1; - remove unused dts file; - move linux/linux.config to linux-xip.config; - add a sentence to readme to say SD card is not needed. ] Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
21 lines
583 B
Bash
21 lines
583 B
Bash
#!/bin/bash
|
|
|
|
OUTPUT_DIR=$1
|
|
|
|
if ! test -d "${OUTPUT_DIR}"; then
|
|
echo "ERROR: no output directory specified."
|
|
echo "Usage: $0 OUTPUT_DIR"
|
|
exit 1
|
|
fi
|
|
|
|
${OUTPUT_DIR}/host/bin/openocd -f board/stm32f469discovery.cfg \
|
|
-c "init" \
|
|
-c "reset init" \
|
|
-c "flash probe 0" \
|
|
-c "flash info 0" \
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/stm32f469i-disco.bin 0x08000000" \
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/stm32f469-disco.dtb 0x08004000" \
|
|
-c "flash write_image erase ${OUTPUT_DIR}/images/xipImage 0x08010000" \
|
|
-c "reset run" \
|
|
-c "shutdown"
|