From 3fd6d33ff076977de49f0d956b8516b3e39f329c Mon Sep 17 00:00:00 2001 From: Adam Engstrom Date: Fri, 6 Jan 2017 11:25:52 +0100 Subject: [PATCH] Linux dd does not support sizes specified in hex... Apparantly a BSD thing to support hex, failed on Linux when extracting isr vectors and data from original firmware. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index eacc1df..1f4c49d 100644 --- a/Makefile +++ b/Makefile @@ -13,11 +13,11 @@ build/orig_fw.bin: orig_fw.hex build/section_isr.bin: build/orig_fw.bin @echo "Create isr vectors binary..." - $(QUIET)dd if=$< of=$@ bs=1 skip=0x7fe0 count=0x20 2> /dev/null + $(QUIET)dd if=$< of=$@ bs=1 skip=32736 count=32 status=none build/section_data.bin: build/orig_fw.bin @echo "Create data section binary..." - $(QUIET)dd if=$< of=$@ bs=1 count=0x2780 2> /dev/null + $(QUIET)dd if=$< of=$@ bs=1 count=10112 status=none build/section_data_patch.bin: build/section_data.bin patch.py @echo "Patching data section..."