learntofly83 / iphone-dataprotection

Automatically exported from code.google.com/p/iphone-dataprotection
0 stars 0 forks source link

Ramdisk building issue #73

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Fix iPhone SDK path in the makefile due to new Xcode folder
2.run make_ramdisk_n88ap.sh

What is the expected output? What do you see instead?

I expect getting a working ramdisk, but i get this instead:

Found iOS SDK 4.2
Wall -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk/ 
-DHGVERSION="\"3bd0f8f80b8f\"" -framework IOKit -framework CoreFoundation 
-framework Security -O3 -I. -o device_infos device_infos.c device_info.c 
IOAESAccelerator.c AppleEffaceableStorage.c AppleKeyStore.c bsdcrypto/pbkdf2.c 
bsdcrypto/sha1.c bsdcrypto/key_wrap.c bsdcrypto/rijndael.c util.c IOKit.c 
registry.c ioflash/ioflash.c kernel_patcher.c
Wall: illegal option -- i
usage: wall [-g group] [file]
make: [device_infos] Error 1 (ignored)
ldid -Stfp0.plist device_infos
./minimal/mapping.h(54): _assert(2:false)
make: *** [device_infos] Trace/BPT trap: 5
ramdisk_tools/restored_external not found, check compilation output for errors

What version of the product are you using? On what operating system?

OS X 10.7.4

Please provide any additional information below.

I fixed the iOS SDK path in 2 places.
In the #fix if unix tools were not installed with Xcode path and in the makefile

Original issue reported on code.google.com by WilhelmT...@googlemail.com on 31 Aug 2012 at 8:50

GoogleCodeExporter commented 9 years ago
Can you run the following command and post the output :
ls  /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-*

Thanks

Original comment by jean.sig...@gmail.com on 1 Sep 2012 at 11:43

GoogleCodeExporter commented 9 years ago
Sorry, there is no output, because that folder didn't exist in Xcode 4.3.x +
Since the 4.3.x update, Xcode is located in the /Applicationns folder, but you 
require the /Developer path to locate those frameworks.
See the make_ramdisk script. So I'm looking forward to fix this issue and use 
your tools on those newer xcode versions.

Thanks,
iTell

And sorry for my bad english

Original comment by WilhelmT...@googlemail.com on 1 Sep 2012 at 2:46

GoogleCodeExporter commented 9 years ago
ok, then just run this command to create a symbolic link from /Developer to 
/Applications/Xcode.App/Contents/Developer :

#create symlink to the new xcode folder
sudo ln -s /Applications/Xcode.App/Contents/Developer /

Original comment by jean.sig...@gmail.com on 1 Sep 2012 at 2:51

GoogleCodeExporter commented 9 years ago
Thank you very much, I totally misread the instruction :/
I will reverse my changes and do it again!

Thank you very much!

Kind regards,
iTell

Original comment by WilhelmT...@googlemail.com on 3 Sep 2012 at 6:08

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
I edited my make make_ramdisk_n92ap.sh from:

"/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS$VER.sdk/System/L
ibrary/Frameworks/IOKit.framework/IOKit" ];

to:

change line to:  if [ -f 
"Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer
/SDKs/iPhoneOS6.0.sdk/System/Library/Frameworks/IOKit.framework/IOKit" ];

I also changed the line:

from:

./build_ramdisk.sh iPhone3,3_5.1.1_9B206_Restore.ipsw 038-4361-021.dmg 
28db49d00990ced317a7bcd24755b3426bb246cb135111126d8b3f7bb8ba9252 
c248e221c08ece5862fea42a58dad552 myramdisk_n92ap.dmg

to:

./build_ramdisk.sh iPhone3,3_5.1.1_9B206_Restore.ipsw 038-4361-021.dmg 
28db49d00990ced317a7bcd24755b3426bb246cb135111126d8b3f7bb8ba9252 
c248e221c08ece5862fea42a58dad552 myramdisk_n92ap.dmg

(I am testing on Verizon CDMA iPhone 4 so downloaded the correct ipsw)

I also created a new symbolic link for Xcode using the following command:

sudo ln -s /Applications/Xcode.App/Contents/Developer /

However, I still get the following errors (any help with e extremely 
appreciated):

sh ./make_ramdisk_n92ap.sh
Found iOS SDK 4.2
/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin10-llvm
-gcc-4.2 -Wall -isysroot 
/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.2.sdk/ 
-DHGVERSION="\"930139479d08\"" -framework IOKit -framework CoreFoundation 
-framework Security -O3 -I. -o device_infos device_infos.c device_info.c 
IOAESAccelerator.c AppleEffaceableStorage.c AppleKeyStore.c bsdcrypto/pbkdf2.c 
bsdcrypto/sha1.c bsdcrypto/key_wrap.c bsdcrypto/rijndael.c util.c IOKit.c 
registry.c ioflash/ioflash.c kernel_patcher.c
device_infos.c:1:19: error: stdio.h: No such file or directory
device_infos.c:2:20: error: stdint.h: No such file or directory
device_infos.c:3:43: error: CoreFoundation/CoreFoundation.h: No such file or 
directory
In file included from device_infos.c:4:
device_info.h:5: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘device_info’
In file included from device_infos.c:5:
util.h:2: error: expected specifier-qualifier-list before ‘uint64_t’
util.h:8: error: expected specifier-qualifier-list before ‘uint16_t’
util.h:46: error: expected specifier-qualifier-list before ‘uint64_t’
util.h:55: error: expected specifier-qualifier-list before ‘uint64_t’
util.h:69: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or 
‘__attribute__’ before ‘CreateHexaCFString’
util.h:71: warning: type defaults to ‘int’ in declaration of ‘uint8_t’
util.h:71: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
kernel_patcher.c:63: warning: incompatible implicit declaration of built-in 
function ‘fprintf’
make: *** [device_infos] Error 1
ramdisk_tools/restored_external not found, check compilation output for errors
mars:iphone-dataprotection alakhani$ 

Original comment by weis...@gmail.com on 23 Nov 2012 at 11:02

GoogleCodeExporter commented 9 years ago
Try changing this line in make_ramdisk_n92ap.sh
for VER in 4.2 4.3 5.0 5.1
to 
for VER in 6.0

Original comment by jean.sig...@gmail.com on 25 Nov 2012 at 2:49

GoogleCodeExporter commented 9 years ago
closing old issues

Original comment by jean.sig...@gmail.com on 11 Feb 2014 at 10:38