Skip to content

[MP1] Add upload tools for MP1: run_arduino_gen.sh and busybox-w32 #47

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 15, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
!fixup fix $BOARD to match variant. Add a generic board name.
  • Loading branch information
kbumsik committed Nov 14, 2019
commit 14b6e25aeeeb43082b346ff04deb8e723bc91104
12 changes: 8 additions & 4 deletions run_arduino_gen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ RPMSG_DIR="/dev/ttyRPMSG0"
ELF_NAME="arduino.ino.elf"
ELF_INSTALL_PATH="/lib/firmware/$ELF_NAME"
INSTALL_PATH="/usr/local/arduino/run_arduino.sh"
# systemd path should be same as ${systemd_unitdir}/system/ in the yoctdo distro
# systemd path should be same as ${systemd_unitdir}/system/ in the yocto distro
SYSTEMD_SERVICE_PATH="/lib/systemd/system/$(basename $INSTALL_PATH .sh).service"
# Will be defined in autodetect_board()
BOARD=""
Expand All @@ -27,11 +27,15 @@ autodetect_board() {

#search on device tree compatible entry the board type
if $(grep -q "stm32mp157c-ev" /proc/device-tree/compatible) ; then
BOARD="STM32MP15_M4_EVAL"
BOARD="STM32MP157_EVAL"
elif $(grep -q "stm32mp157c-dk" /proc/device-tree/compatible) ; then
BOARD="STM32MP15_M4_DISCO"
BOARD="STM32MP157_DK"
elif $(grep -q "stm32mp157a-dk" /proc/device-tree/compatible) ; then
BOARD="STM32MP157_DK"
elif $(grep -q "stm32mp157" /proc/device-tree/compatible) ; then
BOARD="STM32MP157_GENERIC"
else
echo "Board is not an EVAL or a DISCO BOARD" > /dev/kmsg
echo "Board is not an STM32MP157 BOARD" > /dev/kmsg
exit 1
fi
}
Expand Down