hardkernel / ODROID-GO

134 stars 36 forks source link

Prebuild contains .ino.bin #4

Open s-hemer opened 6 years ago

s-hemer commented 6 years ago

Can you clarify why the preuild folder contains .ino.bin files instead of .fw files ? Just asking, I sure can build them myself but beginners may be confused.

joshua-yang commented 6 years ago

Hi.

The prebuild folder only contains .ino.bin files since they designed for those who doesn't use on device launcher. :)

s-hemer commented 6 years ago

Thanks for the reply. But then the description is misleading and, from my point of view, the "complicated" step is to build the .fw file. Some parameters are really not well documented at mkfw tool.

32teeth commented 5 years ago

I use a bash script to do this for me. might be of use to you

Folder Structure

On you desktop

Navigate to (in this example) and give bash file privelage

cd ESP32/scripts
chmod 777 arduino.sh
./arduino.sh
Bash File

```shell #!/bin/zsh SRC_PATH=`pwd` #--------------------------------- # EDIT SKECTH NAME #--------------------------------- REPO=$(dirname $PWD) MKFW_PATH="$REPO/Odroid/odroid-go-firmware/tools/mkfw" # <-- change to wherever you put mkfw ARDUINO_PATH="$REPO/Arduino" SKETCH="Buttons" # <-- change the name and leave out .ino.bin #--------------------------------- # DON'T TOUCH START #--------------------------------- REPO=$(dirname $PWD) #--------------------------------- # FANCY STUFF #--------------------------------- export nc='\e[0m' # No Color export red='\e[1;31m' export green='\e[1;32m' export yellow='\e[1;33m' export blue='\e[1;34m' export magenta='\e[1;35m' export cyan='\e[1;36m' export white='\e[1;37m' export today=`date +%A\ %B\ %d\ %Y\ %T` export squid=🐙 export robot=🤖 export unicorn=đŸĻ„ export fox=đŸĻŠ export lion=đŸĻ export monkey=đŸĩ export chicken=🐔 export panda=đŸŧ export whale=đŸŗ export game=🕹ī¸ echo "\n--------------------------------------------------------------------------" echo "\n${panda} ${green}Creating ${cyan}Arduino${nc} Firmware" echo "\n--------------------------------------------------------------------------" cd $SRC_PATH echo "Building mkfw" cd $MKFW_PATH make cd $SRC_PATH ffmpeg -i $ARDUINO_PATH/assets/$SKETCH.png -f rawvideo -pix_fmt rgb565 $ARDUINO_PATH/raw/$SKETCH.raw -y $MKFW_PATH/mkfw $SKETCH $ARDUINO_PATH/raw/$SKETCH.raw \ 0 16 1048576 $SKETCH $ARDUINO_PATH/bin/$SKETCH.ino.bin mv firmware.fw $ARDUINO_PATH/firmware/$SKETCH.fw clear echo "\n--------------------------------------------------------------------------" echo "\n${unicorn} ${green}Copmleted ${cyan}Gaboze Express${nc}" echo "\n--------------------------------------------------------------------------" exit #--------------------------------- # DON'T TOUCH END #--------------------------------- ```

Be sure to check out Gaboze Express for more information

hagen-git commented 3 years ago

Can you clarify why the preuild folder contains .ino.bin files instead of .fw files ? Just asking, I sure can build them myself but beginners may be confused.

For now, I added an explanation in the README.md file, hope that improves things a bit.