Commit c25454e2 authored by schneider's avatar schneider
Browse files

hack(build_image): Reintroduce build_image to generate card10.bin files.

parent 2b567d0b
name=$(basename `pwd`)
ninja -C ../../build -t clean hw-tests/$name/$name.elf
ninja -C ../../build hw-tests/$name/ecgtest.elf
arm-none-eabi-objcopy -O binary ../../build/hw-tests/$name/$name.elf ../../build/hw-tests/$name/$name.bin
cp ../../build/hw-tests/$name/$name.bin card10.bin
../../bootloader/crc_patch.py card10.bin
name=$(basename `pwd`)
ninja -C ../../build -t clean hw-tests/$name/$name.elf
ninja -C ../../build hw-tests/$name/ecgtest.elf
arm-none-eabi-objcopy -O binary ../../build/hw-tests/$name/$name.elf ../../build/hw-tests/$name/$name.bin
cp ../../build/hw-tests/$name/$name.bin card10.bin
../../bootloader/crc_patch.py card10.bin
name=$(basename `pwd`)
ninja -C ../../build -t clean hw-tests/$name/$name.elf
ninja -C ../../build hw-tests/$name/ecgtest.elf
arm-none-eabi-objcopy -O binary ../../build/hw-tests/$name/$name.elf ../../build/hw-tests/$name/$name.bin
cp ../../build/hw-tests/$name/$name.bin card10.bin
../../bootloader/crc_patch.py card10.bin
name=$(basename `pwd`)
ninja -C ../../build -t clean hw-tests/$name/$name.elf
ninja -C ../../build hw-tests/$name/ecgtest.elf
arm-none-eabi-objcopy -O binary ../../build/hw-tests/$name/$name.elf ../../build/hw-tests/$name/$name.bin
cp ../../build/hw-tests/$name/$name.bin card10.bin
../../bootloader/crc_patch.py card10.bin
name=$(basename `pwd`)
ninja -C ../../build -t clean hw-tests/$name/$name.elf
ninja -C ../../build hw-tests/$name/ecgtest.elf
arm-none-eabi-objcopy -O binary ../../build/hw-tests/$name/$name.elf ../../build/hw-tests/$name/$name.bin
cp ../../build/hw-tests/$name/$name.bin card10.bin
../../bootloader/crc_patch.py card10.bin
name=$(basename `pwd`)
ninja -C ../../build -t clean hw-tests/$name/$name.elf
ninja -C ../../build hw-tests/$name/ecgtest.elf
arm-none-eabi-objcopy -O binary ../../build/hw-tests/$name/$name.elf ../../build/hw-tests/$name/$name.bin
cp ../../build/hw-tests/$name/$name.bin card10.bin
../../bootloader/crc_patch.py card10.bin
......@@ -38,7 +38,7 @@
/* If used, they should be adjusted for the external Flash/RAM size */
MEMORY {
SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M
FLASH (rx) : ORIGIN = 0x10000000, LENGTH = 1M
FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 960k
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 512k
SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M
}
......
......@@ -38,7 +38,7 @@
/* If used, they should be adjusted for the external Flash/RAM size */
MEMORY {
SPIX (rx) : ORIGIN = 0x08000000, LENGTH = 128M
FLASH (rx) : ORIGIN = 0x10000000, LENGTH = 256k
FLASH (rx) : ORIGIN = 0x10010000, LENGTH = 192k
SRAM (rwx) : ORIGIN = 0x20000000, LENGTH = 256k
SPID (r) : ORIGIN = 0x80000000, LENGTH = 512M
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment