1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08:24:11 +01:00
Commit Graph

3566 Commits

Author SHA1 Message Date
elafargue
5b787272f5 OP-504 Attempt to fix the Rescue/Boot issue, and bugfix in firmware version display in UPloader gadget. 2011-05-24 08:15:57 +02:00
Stacey Sheldon
8bd08e381a build: add support for EE bank on pipx boards
The pipxtreme boards use a sector of the on-board flash
for configuration storage.  Adjust the memory maps to
reflect this.

The board_info_blob is also extended to include the EE
bank definitions.  This should be used by the pipxtreme
firmware rather than determining it based on chip size.
2011-05-24 01:10:40 -04:00
Stacey Sheldon
91cb294730 build: remove redundant PHONY for size target 2011-05-24 01:10:40 -04:00
Stacey Sheldon
0eb92fad91 build: refactor jtag program and add jtag wipe target
Macros for JTAG program and wipe for each target are now
provided in firmware-defs.mk.

The _wipe target for each firmware and bootloader image will
erase either the bootloader (bl_*_wipe) or firmware (fw_*_wipe)
bank.
2011-05-24 01:10:31 -04:00
Stacey Sheldon
9973fda23b build: define bootloader and firmware bank spans
The board-info.mk files now define the start and size
of the bootloader and the firmware banks.
2011-05-24 01:03:01 -04:00
Stacey Sheldon
504fe7a664 dfu: fix typo WRITABLA -> WRITABLE 2011-05-24 00:58:10 -04:00
Stacey Sheldon
076e5660fa build: Add all_<board> and all_<board>_clean targets
Building all_<board> will build all available embedded
images for <board>.  New targets:
  - all_ahrs
  - all_openpilot
  - all_coptercontrol
  - all_pipxtreme
  - all_ins
and their associated _clean targets to remove the build output.
2011-05-24 00:58:10 -04:00
Stacey Sheldon
96827eecff build: Make all flight sw use pios_board_info_blob
Now that every bootloader build has a board info blob,
make all fw and bl images use it.

The following MACROS are removed:
  BOARD_TYPE, BOARD_REVISION, BOOTLOADER_VERSION,
  START_OF_USER_CODE, HW_TYPE

These values are now ONLY available from the bootloader
flash via the pios_board_info_blob symbol.  These values
must not be #defined or otherwise hard-coded into the
firmware in any way.  The bootloader flash is the only
valid source for this information.

NOTE: To ensure that we have an upgrade path from an
      old bootloader (without board_info_blob) to a
      new bootloader (with board_info_blob), it is
      essential that the bu_* targets do not depend
      on (or validate) the board_info_blob being present
      in the bootloader flash.
2011-05-24 00:58:10 -04:00
Stacey Sheldon
2d47427b05 link: Use alternate declaration of pios_board_info_blob
Make use of a shorter notation to allow the linker to provide
the correct address for pios_board_info_blob.
2011-05-23 18:21:42 -04:00
Stacey Sheldon
6e406c0232 build: remove all remaining use of -DUSE_BOOTLOADER
The USE_BOOTLOADER compile flag was only being used
to determine where the ISR vector table was located.

Provide this explicitly from the linker since it knows
exactly where it is putting the ISR vector table.
2011-05-23 18:21:42 -04:00
Stacey Sheldon
9854c18c5d version-info: allow unannotated tags
Unannotated (ie. movable) tags will now influence the
tag/hash reported in the version info blob attached to
the firmware image (.opf).
2011-05-23 18:21:42 -04:00
Stacey Sheldon
0a67730d0f build: refactor fw, bl and bu rules
- New macros for fw, bl and bu rules in top-level make
- Per-board info factored into make/board/*/board-info.mk
- Per-board info now shared btw. fw, bl and blupd for each board
   - BOARD_TYPE, BOARD_REVISION, BOOTLOADER_VERSION, HW_TYPE
   - MCU, CHIP, BOARD, MODEL, MODEL_SUFFIX
   - START_OF_BL_CODE, START_OF_FW_CODE
- blupd_* goals renamed to bu_*
- all_blupd goal renamed to all_bu
- firmware goals renamed to fw_*, board name goals are preserved
- bu_*_program now writes updater to correct address for all boards
- BL updater firmware builds now produce .opf format including
  version info blob.
- BL updater firmware name now includes board name.
- INS makefile brought up to date w.r.t. linker scripts
2011-05-23 18:21:42 -04:00
zedamota
b69402b7ab This should fix the upload CLI tool. 2011-05-23 11:55:09 +01:00
James Cotton
af59cbfd2f Merge branch 'master' into osx_distributable 2011-05-22 12:27:14 -05:00
James Cotton
88463fd7db Small tweak to OSX packaging to get rid of error 2011-05-22 12:17:50 -05:00
Stacey Sheldon
6ec6425f5e build: build opf images including firmware + version blob 2011-05-22 10:55:13 -04:00
Oleg Semyonov
ebca7f6bac OP-483: add CLEAN_BUILD=NEVER make release option for test builds
CLEAN_BUILD=YES (default) - clean all, then build all
CLEAN_BUILD=NO - clean only multi-input targets (CC, OP), usually safe
CLEAN_BUILD=NEVER - no clean at all, invalid multi-input targes, but fast
2011-05-22 13:35:34 +03:00
Oleg Semyonov
f38d226007 OP-483: always update Windows installer info header 2011-05-22 13:28:04 +03:00
Oleg Semyonov
5c085550cb OP-483: include dirty state of repository into the version string 2011-05-22 12:00:49 +03:00
Oleg Semyonov
958807e4c3 Use Makefile variables for the OSX packaging 2011-05-22 01:43:13 +03:00
James Cotton
1c9cfe7740 Updated the OSX template file now additional libraries not required. 2011-05-21 15:30:26 -05:00
Oleg Semyonov
6f5f334818 OP-483: fallback to optparse to improve python script portability 2011-05-21 21:00:12 +03:00
James Cotton
dae6f15247 Added script that repackages the distributables into the .app file 2011-05-21 11:08:00 -05:00
Oleg Semyonov
caab3ce01a OP-305: fix default CodeSourcery location on Windows 2011-05-21 13:14:15 +03:00
James Cotton
9c96f9f4d5 Tweak again because the window layout wasn't saved 2011-05-20 18:00:41 -05:00
James Cotton
3dcdca2b59 Rename the volume from OpenPilot GCS to OpenPilot. Add script to package, but
need input from Os about integrating into the "make release" command.  Also
release name and OP path are hardcoded right now.
2011-05-20 17:51:16 -05:00
James Cotton
fa7e689e32 Add template for OSX distributable 2011-05-20 17:19:52 -05:00
James Cotton
460cc1adc9 Merge remote-tracking branch 'origin/stac_add-bootloader-info-blob' 2011-05-19 16:08:58 -05:00
Oleg Semyonov
cbdba940b5 OP-483: remove gcs/packaging subdirectory (not required anymore) 2011-05-19 13:08:54 +03:00
Oleg Semyonov
bb423e2520 OP-483: create a directory for NSIS header file built from template 2011-05-19 02:33:15 +03:00
Oleg Semyonov
a0fadf739b OP-483: add 'release' target to the top level Makefile
Now 'make release' on the top level will build release package.

For Windows it will build OpenPilot GCS Installer and all firmware
binaries which are now included into the GCS distribution and will
be installed into the <path>/OpenPilot/share/firmware-<version>
directory.

For other systems it will build all firmware files and the GCS, but
latter is not packaged yet.
2011-05-19 01:57:35 +03:00
Oleg Semyonov
460478fc71 OP-483: add firmware binaries to Windows installer package 2011-05-19 01:33:48 +03:00
Oleg Semyonov
285c429589 OP-483: add Windows installer target to 'make release' 2011-05-19 01:05:12 +03:00
Oleg Semyonov
5b1e45a8df OP-483: move Windows installer out of ground/gcs tree
In preparation for release build the Windows installer source is moved
out of ground/gcs source tree into release directory. It is also disabled
in the qmake source file and removed from top level Makefile.
2011-05-18 22:22:40 +03:00
Oleg Semyonov
8535ae52b8 OP-483: rename win32 to winx86 (it works on 64-bit too) 2011-05-18 22:03:10 +03:00
Oleg Semyonov
25c44d3d0d OP-483: polish comments in scripts 2011-05-18 21:48:55 +03:00
James Cotton
dd1e10a15d PiOS/Spektrum: Start swapping to using RTC and calls to PIOS_Spektrum_Get() to
monitor when call Spektrum watchdog
2011-05-18 01:46:00 -05:00
James Cotton
bdf862a712 PIOS/RTC: Add functions to get the rate. Also changed Start to Init to be more
consistent with pios.
2011-05-18 01:45:21 -05:00
Oleg Semyonov
68ac5a271c Merge branch 'OP-483_os_release-packaging' 2011-05-18 01:06:11 +03:00
elafargue
cc9fa772c0 Improvement: now the config output panel in the config gadget remains up to date all the time, no need to click on the "request" button after setting up the mixers. 2011-05-17 22:23:08 +02:00
Oleg Semyonov
8f30b89b17 OP-307: add template for firmware info blob C source
python $(TOP)/make/scripts/version-info.py \
	--path=$(TOP) \
	--template=$(TOP)/make/templates/firmwareinfotemplate.c \
	--outfile=$(TOP)build/$(FW)/firmwareinfo.c \
	--image=$(TOP)/build/$(FW)/$(FW_IMAGE_BIN) \
	--type=0x04 \
	--revision=0x01
2011-05-17 21:37:02 +03:00
Oleg Semyonov
bf9a3ef7d3 OP-483: add version-info.py script for software, firmware and release packaging 2011-05-17 21:29:22 +03:00
David Carlson
21213dd3c5 Merge branch 'master' into OP-495_CheBuzz_HelpButtons
Conflicts:
	ground/openpilotgcs/src/plugins/config/output.ui
2011-05-17 01:06:28 -07:00
David Carlson
b1ec27bd75 Add help buttons to the config gadget UI. Also connect all signals to its slot in configgadgetwidget.cpp. Also some very trivial .html help files. 2011-05-16 21:54:23 -07:00
elafargue
b2587a5b9f Improvement & bugfix: now the output config tab in the config gadget only shows the channel assignments as labels, not dropdowns, and more importantly does not try to save them when clicking on save/apply! 2011-05-17 00:34:25 +02:00
elafargue
98f286a682 Uploader gadget improvements 2011-05-16 22:05:33 +02:00
dankers
c6b6afa679 Merge branch 'master' of ssh://git.openpilot.org/OpenPilot 2011-05-17 04:17:00 +10:00
dankers
5f32803763 Changed accelKp = 1; in 3C filter when calibrating bias when arming. Increase default yaw by 0.005 2011-05-17 04:15:28 +10:00
elafargue
6dc6b45f1b Merge branch 'bugfix-ground' 2011-05-16 20:10:20 +02:00
elafargue
3129c10d05 Bugfix (uploader gadget) 2011-05-16 20:09:51 +02:00