Firmware tools for Samsung YP-R0/YP-R1 (and possibly others)

They have been rewritten for being completely free and
as fast as possible.
Successfully extracted, patched, repacked and flashed
original firmware (tested on device and it worked)

Change-Id: I74d47d13f2dc3a2832a0d6821d3c2182dfd4b33b
Reviewed-on: http://gerrit.rockbox.org/506
Reviewed-by: Thomas Martitz <kugel@rockbox.org>
Tested-by: Thomas Martitz <kugel@rockbox.org>
This commit is contained in:
Lorenzo Miori 2013-07-09 18:20:08 +02:00 committed by Thomas Martitz
parent cb27d4066a
commit da8a6a90c3
11 changed files with 621 additions and 318 deletions

View file

@ -1,13 +1,20 @@
DEFINES=
CC=gcc
LD=gcc
CFLAGS=-g -std=c99 -W -Wall $(DEFINES)
LDFLAGS=
BINS=fwcrypt fwdecrypt
.PHONY: all clean
PROGS = extract_section
CC = gcc
CFLAGS = -O1 -g -W -Wall
all: $(BINS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
all: $(PROGS)
$(MAKE) -C cramfs-1.1
fwdecrypt: fwdecrypt.o common.o ../../tools/fwpatcher/md5.o
$(LD) -o $@ $^ $(LDFLAGS)
fwcrypt: fwcrypt.o common.o ../../tools/fwpatcher/md5.o
$(LD) -o $@ $^ $(LDFLAGS)
clean:
$(MAKE) -C cramfs-1.1 clean
rm -f extract_section
rm -fr *.o $(BINS)