Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

warning make p1b - install failed #3

Open
danyboy666 opened this issue Jan 3, 2019 · 1 comment
Open

warning make p1b - install failed #3

danyboy666 opened this issue Jan 3, 2019 · 1 comment

Comments

@danyboy666
Copy link

danyboy666 commented Jan 3, 2019

The bcm libs havew compiles with no errors but I can't make the PiPROM binary.

hardware : rPi version 1 B
Distro : Raspian Linux raspberrypi 4.14.79+ #1159 Sun Nov 4 17:28:08 GMT 2018 armv6l GNU/Linux

pi@raspberrypi:~/PiPROM/PiPROM $ make p1b gcc -c -o obj/XboxI2C.o XboxI2C.c -I../include -DRASPI_BPLUS gcc -c -o obj/PiPROM.o PiPROM.c -I../include -DRASPI_BPLUS PiPROM.c: In function ‘FindCommendLineArg’: PiPROM.c:54:7: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration] if (strcmp(argv[i], psArgument) == 0) ^~~~~~ PiPROM.c: In function ‘main’: PiPROM.c:117:14: warning: implicit declaration of function ‘strtol’ [-Wimplicit-function-declaration] address = strtol(psAddress, NULL, 16); ^~~~~~ PiPROM.c:228:3: warning: implicit declaration of function ‘memset’ [-Wimplicit-function-declaration] memset(pbEEPROM, 0, XBOX_EEPROM_SIZE); ^~~~~~ PiPROM.c:228:3: warning: incompatible implicit declaration of built-in function ‘memset’ PiPROM.c:228:3: note: include ‘<string.h>’ or provide a declaration of ‘memset’ gcc -o PiPROM.a obj/XboxI2C.o obj/PiPROM.o -I../include -DRASPI_BPLUS -lbcm2835

The EEPROM is detected

pi@raspberrypi:~ $ sudo i2cdetect -y 1 0 1 2 3 4 5 6 7 8 9 a b c d e f 00: -- -- -- -- -- 08 -- -- -- -- -- -- -- 10: 10 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 50: -- -- -- -- 54 -- -- -- -- -- -- -- -- -- -- -- 60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 70: 70 -- -- -- -- -- -- --

@danyboy666
Copy link
Author

Oh nevermind I think I got it now.

` sudo ./PiPROM.a -r ./eeprom.bin
PiPROM v1.0 by Grimdoomer

Reading EEPROM data from address 0x54...
Writing EEPROM data to file...
Successfully dumped EEPROM!
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant