Fix for DFU.

This commit is contained in:
NIIBE Yutaka
2010-10-22 17:18:06 +09:00
parent 9869d2c110
commit 4bafc809c4
3 changed files with 15 additions and 8 deletions

View File

@@ -1,5 +1,11 @@
2010-10-22 NIIBE Yutaka <gniibe@fsij.org>
* src/gnuk.ld.in (.gnuk_random): Fix description so that
padding with 0xffffffff will be in gnuk.hex.
* src/openpgp.c (file_selection): Change type (was: int).
(FILE_NONE..FILE_EF_SERIAL): Change the values.
* src/configure: Added STBee Mini support.
* boards/STBEE_MINI/mcuconf.h: New.
* boards/STBEE_MINI/board.mk: New.

View File

@@ -114,10 +114,11 @@ SECTIONS
PROVIDE(end = .);
_end = .;
.gnuk_random : ALIGN (1024)
.gnuk_random :
{
. = ALIGN (1024);
*(.gnuk_random)
} > flash
} > flash =0xffffffff
.gnuk_flash : ALIGN (1024)
{

View File

@@ -69,13 +69,13 @@ write_res_apdu (const uint8_t *p, int len, uint8_t sw1, uint8_t sw2)
res_APDU[len+1] = sw2;
}
#define FILE_NONE -1
#define FILE_DF_OPENPGP 0
#define FILE_MF 1
#define FILE_EF_DIR 2
#define FILE_EF_SERIAL 3
#define FILE_NONE 0
#define FILE_DF_OPENPGP 1
#define FILE_MF 2
#define FILE_EF_DIR 3
#define FILE_EF_SERIAL 4
static int file_selection = FILE_NONE;
static uint8_t file_selection = FILE_NONE;
static void
cmd_verify (void)