1
0
Fork 0
forked from len0rd/rockbox

rknanoutils: add dfu tool

This tool can upload a firmware to the device in DFU mode. The
protocol is the same as the rk27xx devices except that it can
load a bigger (unlimited ?) firmware.

Change-Id: Ic9d4c5087629a9156f9d5d5cdc80767e6359c431
This commit is contained in:
Amaury Pouly 2013-03-21 18:59:56 +01:00
parent aa898d65fe
commit 6ea48cf92b
2 changed files with 239 additions and 0 deletions

View file

@ -0,0 +1,20 @@
DEFINES=
CC=gcc
LD=gcc
CFLAGS=-O3 -g -std=c99 -W -Wall `pkg-config --cflags libusb-1.0` $(DEFINES)
LDFLAGS=`pkg-config --libs libusb-1.0`
BINS=rkloader
all: $(BINS)
%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
sbtoelf: rkloader.o
$(LD) -o $@ $^ $(LDFLAGS)
clean:
rm -fr *.o
veryclean:
rm -rf $(BINS)