- Wed Dec 10, 2014 6:59 am
#4484
Dear Bananis,
I shall be waiting for the files.
Some progress and the result:
I am able to use your Makefile. It is generating several .bin files (0x00000.bin, 0x01000.bin etc) inside /firmware directory.
Now, when I am running the script file (original gen_misc_plus.sh by espressif), it is looking for eagle.app.v6.out to generate bin files as per below code
Code: Select all#!/bin/bash -x
cd /SDK/app
#rm ./user/.output/eagle/debug/lib/libuser.a
touch user_main.c
make APP=$1
if [ $? == 0 ];then
rm ../bin/upgrade/user$1.bin ../bin/upgrade/user$1.dump ../bin/upgrade/user$1.S
cd E:/cygwin/SDK/app/.output/eagle/debug/image/
/SDK/xtensa/bin/xtensa-lx106-elf-objdump -x -s eagle.app.v6.out > ../../../../../bin/upgrade/user$1.dump
/SDK/xtensa/bin/xtensa-lx106-elf-objdump -S eagle.app.v6.out > ../../../../../bin/upgrade/user$1.S
#/SDK/xtensa/bin/xtensa-lx106-elf-objdump -x -s eagle.app.v6.out > user$1.dump
#/SDK/xtensa/bin/xtensa-lx106-elf-objdump -S eagle.app.v6.out > user$1.S
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .text -O binary eagle.app.v6.out eagle.app.v6.text.bin
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .data -O binary eagle.app.v6.out eagle.app.v6.data.bin
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .rodata -O binary eagle.app.v6.out eagle.app.v6.rodata.bin
/SDK/xtensa/bin/xtensa-lx106-elf-objcopy --only-section .irom0.text -O binary eagle.app.v6.out eagle.app.v6.irom0text.bin
Am I missing anything or should I change the script (gen_misc_plus.sh) ? I think, I am doing mess with my directory structure. Please provide a link to understand the directory structure of SDK and app.
Thanks.