mirror of https://github.com/ArduPilot/ardupilot
AP_HAL_F4Light: board AirbotV2: fixed build scripts
This commit is contained in:
parent
b479f3760a
commit
3830cebddc
|
@ -3,9 +3,5 @@
|
||||||
#production binary for bootloader
|
#production binary for bootloader
|
||||||
dfu-util -a 0 --dfuse-address 0x08010000:unprotect:force -D ../../../../../ArduCopter/f4light_AirbotV2.bin -R
|
dfu-util -a 0 --dfuse-address 0x08010000:unprotect:force -D ../../../../../ArduCopter/f4light_AirbotV2.bin -R
|
||||||
|
|
||||||
# bare metal binary
|
|
||||||
|
|
||||||
#dfu-util -a 0 --dfuse-address 0x08000000:unprotect:force -D /tmp/ArduCopter.build/f4light_Revolution.bin
|
|
||||||
#dfu-util -a 0 --dfuse-address 0x08000000:leave -D ../../../../../ArduCopter/f4light_Revolution.bin -R
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -5,7 +5,5 @@
|
||||||
|
|
||||||
#bare metal binary
|
#bare metal binary
|
||||||
|
|
||||||
/usr/local/stlink/st-flash --reset read eeprom.bin 0x08004000 0xc000 && \
|
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_AirbotV2.bin 0x08010000 && \
|
||||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduCopter/f4light_AirbotV2_bl.bin 0x08000000 && \
|
|
||||||
/usr/local/stlink/st-flash --reset write eeprom.bin 0x08004000 && \
|
|
||||||
/usr/local/stlink/st-util -m
|
/usr/local/stlink/st-util -m
|
||||||
|
|
|
@ -5,7 +5,5 @@
|
||||||
|
|
||||||
#bare metal binary
|
#bare metal binary
|
||||||
|
|
||||||
/usr/local/stlink/st-flash --reset read eeprom.bin 0x08004000 0xc000 && \
|
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/f4light_AirbotV2.bin 0x08010000 && \
|
||||||
/usr/local/stlink/st-flash --reset write ../../../../../ArduPlane/f4light_AirbotV2_bl.bin 0x08000000 && \
|
|
||||||
/usr/local/stlink/st-flash --reset write eeprom.bin 0x08004000 && \
|
|
||||||
/usr/local/stlink/st-util -m
|
/usr/local/stlink/st-util -m
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# production binary without bootloader
|
||||||
|
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000
|
||||||
|
|
||||||
|
#bare metal binary or binary with bootloader
|
||||||
|
/usr/local/stlink/st-flash --reset read eeprom.bin 0x08004000 0xc000 && \
|
||||||
|
/usr/local/stlink/st-flash --reset write ../../../../../../ArduCopter/f4light_AirbotV2_bl.bin 0x08000000 && \
|
||||||
|
/usr/local/stlink/st-flash --reset write eeprom.bin 0x08004000 && \
|
||||||
|
/usr/local/stlink/st-util -m
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# production binary without bootloader
|
||||||
|
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000
|
||||||
|
|
||||||
|
#bare metal binary or binary with bootloader
|
||||||
|
/usr/local/stlink/st-flash --reset write ../../../../../../ArduCopter/f4light_AirbotV2_bl.bin 0x08000000 && \
|
||||||
|
/usr/local/stlink/st-util -m
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,12 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# production binary with bootloader
|
||||||
|
#/usr/local/stlink/st-flash --reset write /tmp/ArduCopter.build/f4light_Revolution.bin 0x08010000
|
||||||
|
|
||||||
|
#bare metal binary
|
||||||
|
/usr/local/stlink/st-flash --reset read eeprom.bin 0x08004000 0xc000 && \
|
||||||
|
/usr/local/stlink/st-flash --reset write ../../../../../../ArduPlane/f4light_AirbotV2_bl.bin 0x08000000
|
||||||
|
/usr/local/stlink/st-flash --reset write eeprom.bin 0x08004000
|
||||||
|
/usr/local/stlink/st-util -m
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
git checkout master
|
git checkout master && \
|
||||||
git pull --rebase git://github.com/ArduPilot/ardupilot.git master
|
git pull --rebase git://github.com/ArduPilot/ardupilot.git master
|
||||||
|
|
||||||
# Step 2: Merge the changes and update on GitHub.
|
# Step 2: Merge the changes and update on GitHub.
|
||||||
|
|
||||||
git checkout Revo
|
git checkout Revo && \
|
||||||
git rebase master && git push origin Revo
|
git rebase master && git push --force origin Revo
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue