From 880a1679d83096a7d2f864b01b0d873132d84411 Mon Sep 17 00:00:00 2001 From: Stefan `Sec` Zehl Date: Fri, 5 Aug 2011 14:48:36 +0200 Subject: [PATCH] Fix lpcfix -h, also protect firmware --- firmware/release-all | 3 ++- tools/bootloader/lpcfix.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/firmware/release-all b/firmware/release-all index 5c46184..76afd1e 100755 --- a/firmware/release-all +++ b/firmware/release-all @@ -32,7 +32,6 @@ echo "###" echo "### Building initial" echo "###" -export FINAL=y git checkout filesystem/ffconf.h make clean make APP=initial @@ -41,10 +40,12 @@ cp firmware.bin $TARG/initial.bin echo "###" echo "### Building final" echo "###" +export FINAL=y cp filesystem/ffconf.h-final ffconf.h make clean ./l0dable/mktable.pl make APP=final +make protect cp firmware.elf $TARG/final.elf cp firmware.bin $TARG/final.bin diff --git a/tools/bootloader/lpcfix.c b/tools/bootloader/lpcfix.c index 3e10ad2..12a585e 100644 --- a/tools/bootloader/lpcfix.c +++ b/tools/bootloader/lpcfix.c @@ -64,8 +64,9 @@ int main(int argc, char *argv[]) { "enables/disables the content read protection flags\n" "\n\n" "-n Do not change CRC information\n" +"-c Fix CRC\n" "-v Be verbose (-v -v = even more)\n" -"-c mode Enable CRP (Content read protection) mode\n" +"-p mode Enable CRP (Content read protection) mode\n" "-h This help\n\n" "CRP modes valid:\n" "0 Disable CRP\n"