Software von hackdabetty
From Bettyhacks.com - Hack BettyTV-Remote
		
		
		
| Line 1: | Line 1: | ||
| − | + | {{Veraltet|[[LPCTool]]|, welche aktueller, schneller und wesentlich sauberer ist, als die von hackdabetty}} | |
| − | |||
| − | + | '''Benoetigte Software''' | |
| + | |||
| + | Benoetigt werden die arm-linux-tools [http://opensrc.sec.samsung.com/download/arm-uclinux-tools-base-gcc3.4.0-20040713.sh] und lpcprog + Die Firmware Files [http://www.hackdaworld.org/cgi-bin/gitweb.cgi?p=my-code/arm.git;a=tree;f=betty]. | ||
| '''Software vorbereiten''' | '''Software vorbereiten''' | ||
| + | Als erstes entpackt ihr die Dateien vom Hackdaworld-Wiki[http://www.hackdaworld.org/cgi-bin/gitweb.cgi?p=my-code/arm.git;a=snapshot;h=1df785469a4cf54778b37de7b976e7e703693d1b], danach habt ihr folgende Dateien: | ||
| + | <pre> | ||
| + | Makefile | ||
| + | lpcload.c | ||
| + | lpc2xxx.h | ||
| + | fwbc.c | ||
| + | fwdump.c | ||
| + | betty.c | ||
| + | </pre> | ||
| + | Jetzt muesst ihr die Makefile Datei noch editieren z.b. mit NANO (theborg@TBM:~/Desktop/betty/flash$ nano Makefile) da aendert ihr  | ||
| + | <pre> | ||
| + | 4 ARMCC = /scratch/arm-elf/bin/arm-elf-gcc | ||
| + | 5 ARMCFLAGS = -Wall -mcpu=arm7tdmi-s  | ||
| + | 6 ARMOBJCOPY = /scratch/arm-elf/bin/arm-elf-objcopy | ||
| + | </pre> | ||
| + | in | ||
| + | <pre> | ||
| + | 4 ARMCC = arm-elf-gcc | ||
| + | 5 ARMCFLAGS = -Wall -mcpu=arm7tdmi-s  | ||
| + | 6 ARMOBJCOPY = arm-elf-objcopy | ||
| + | </pre> | ||
| + | Wenn ihr das gemacht habt reicht ein einfaches make um die benoetigten Programme und Dateien zu erstellen. | ||
| + | Das sieht in etwa dann so aus. | ||
| + | <pre> | ||
| + | theborg@TBM:~/Desktop/betty/flash$ make | ||
| + | gcc -Wall    lpcload.c   -o lpcload | ||
| + | arm-elf-gcc -Wall -mcpu=arm7tdmi-s  -c fwbc.c -o fwbc | ||
| + | arm-elf-objcopy -O ihex fwbc fwbc.hex | ||
| + | </pre> | ||
| '''Dateien Flashen''' | '''Dateien Flashen''' | ||
| + | <pre> | ||
| + | ./lpcload -d /dev/ttyUSB0 -f fwbc.hex -c 10000000 | ||
| + | </pre> | ||
| + | Die Ausgabe sollte dann wie folgt aussehen(wer etwas mehr sehen moechte kann -v noch hinten anhaengen). | ||
| + | <pre> | ||
| + | theborg@TBM:~/Desktop/betty/flash$ ./lpcload -d /dev/ttyS0 -f fwbc.hex | ||
| + | boot loader init ... | ||
| + | write firmware to ram ... | ||
| + | unlock go command ... | ||
| + | go ... | ||
| + | txrx bad return code! | ||
| + | |||
| + | the above error might be due to the jump! | ||
| − | ''' | + | continue listening on serial port? (ctrl+c to quit) [y|n]: n | 
| + | </pre> | ||
| + | '''Original Software Auslesen''' | ||
| + | <pre> | ||
| + | ./fwdump /dev/ttyS0 flash_content | ||
| + | </pre> | ||
| + | Dieses dauert sehr lange | ||
