PDA

View Full Version : Patched twice, missed something!


jhauser77
10-20-2006, 09:50 AM
I repatched and then now ti says all this.
I must have missed something. any help?

joshs-powerbook-g4-12:~/Desktop/flasher Josh$ patch < patch
patching file flasher.c
Reversed (or previously applied) patch detected! Assume -R? [n] y
joshs-powerbook-g4-12:~/Desktop/flasher Josh$ make
gcc flasher.c p2kmoto.c -I./ -DUNIX_API -lusb -o flasher
flasher.c: In function 'reboot':
flasher.c:310: error: number of arguments doesn't match prototype
/usr/include/unistd.h:526: error: prototype declaration
flasher.c: In function 'flashPhone':
flasher.c:363: error: too few arguments to function 'reboot'
p2kmoto.c: In function 'flash_close':
p2kmoto.c:1643: warning: 'return' with a value, in function returning void
make: *** [all] Error 1
joshs-powerbook-g4-12:~/Desktop/flasher Josh$ ./flasher
-bash: ./flasher: No such file or directory
joshs-powerbook-g4-12:~/Desktop/flasher Josh$ sudo mv flasher /usr/bin/
mv: rename flasher to /usr/bin/flasher: No such file or directory

poetic_folly
10-20-2006, 11:37 AM
Type n not y, then it will give another prompt, hit n again. Then continue with the installation.

MotoMoses
10-20-2006, 11:52 AM
ugh. looks scarily familiar to my screens yesterday. :P

poetic_folly
10-20-2006, 01:02 PM
Yup.

jhauser77
10-20-2006, 01:51 PM
ok new problem.

Welcome to Darwin!
joshs-powerbook-g4-12:~ Josh$ ls -la /dev > temp
joshs-powerbook-g4-12:~ Josh$ ls -la /dev > temp2
joshs-powerbook-g4-12:~ Josh$ diff temp temp2 | grep cu
> crw-rw-rw- 1 root wheel 9, 27 Oct 20 15:40 cu.usbmodem5B121
joshs-powerbook-g4-12:~ Josh$ flasher -d /dev/cu.usbmodem5B121/Users/Josh/Deskt
op/OSXTigerCG15.shx
USE: flasher [-d DEVICE] [-e ERASEARG] SHXFILE
joshs-powerbook-g4-12:~ Josh$

poetic_folly
10-20-2006, 02:08 PM
You didn't put the space between your device name and your path to the .shx file. You should be typing this:
flasher -d /dev/cu.usbmodem5B121 /Users/Josh/Deskt
op/OSXTigerCG15.shx

Thats easy enough to fix. :D

jhauser77
10-20-2006, 02:18 PM
Correct again Poetic!
However,

Welcome to Darwin!
joshs-powerbook-g4-12:~ Josh$ flasher -d /dev/cu.usbmodem5B121 /Users/Josh/Desk
t
Device: /dev/cu.usbmodem5B121
SHX file: /Users/Josh/Deskt
Erase cmd: 128

Parsing file /Users/Josh/Deskt
Unable to open file
No error
joshs-powerbook-g4-12:~ Josh$ op/OSXTigerCG15.shx

jhauser77
10-20-2006, 02:19 PM
hang on
let me type it and correct the pasteing.

jhauser77
10-20-2006, 02:22 PM
ok, after I stopped being lazy and typed it. I got it to work.
Thank you POETIC

poetic_folly
10-20-2006, 02:31 PM
I do what I can. :D