#38 ✓resolved
muhaaa

libiphone-initconf is missing

Reported by muhaaa | April 21st, 2009 @ 03:05 PM | in 1.0 Release

Hi, I tried to run " mount.fuse.ifuse none mnt/iPod/ "

Something went in lockdown handshake. Did you run libiphone-initconf as the current user? I tried to run libiphone-initconf but it is not on my system. I reistalled libiphone and logged the output of make install (git repo: git://github.com/MattColyer/libiphone.git)


Making install in src                                                
make[1]: Entering directory `/home/muhaaa/tmp/libiphone/src'         
make[2]: Entering directory `/home/muhaaa/tmp/libiphone/src'         
test -z "/usr/local/lib" || /bin/mkdir -p "/usr/local/lib"           
 /bin/bash ../libtool   --mode=install /usr/bin/install -c  'libiphone.la' '/usr/local/lib/libiphone.la'
libtool: install: /usr/bin/install -c .libs/libiphone.so.0.0.0 /usr/local/lib/libiphone.so.0.0.0        
libtool: install: (cd /usr/local/lib && { ln -s -f libiphone.so.0.0.0 libiphone.so.0 || { rm -f libiphone.so.0 && ln -s libiphone.so.0.0.0 libiphone.so.0; }; })                                                                                                                          
libtool: install: (cd /usr/local/lib && { ln -s -f libiphone.so.0.0.0 libiphone.so || { rm -f libiphone.so && ln -s libiphone.so.0.0.0 libiphone.so; }; })                                                                                                                                
libtool: install: /usr/bin/install -c .libs/libiphone.lai /usr/local/lib/libiphone.la                                                        
libtool: install: /usr/bin/install -c .libs/libiphone.a /usr/local/lib/libiphone.a                                                           
libtool: install: chmod 644 /usr/local/lib/libiphone.a                                                                                       
libtool: install: ranlib /usr/local/lib/libiphone.a                                                                                          
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/local/lib         
----------------------------------------------------------------------                                                                       
Libraries have been installed in:                                                                                                            
   /usr/local/lib                                                                                                                            

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:      
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable  
     during execution                                          
   - add LIBDIR to the `LD_RUN_PATH' environment variable      
     during linking                                            
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag               
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.   
----------------------------------------------------------------------
make[2]: Nothing to be done for `install-data-am'.                    
make[2]: Leaving directory `/home/muhaaa/tmp/libiphone/src'           
make[1]: Leaving directory `/home/muhaaa/tmp/libiphone/src'           
Making install in include                                             
make[1]: Entering directory `/home/muhaaa/tmp/libiphone/include'      
make[2]: Entering directory `/home/muhaaa/tmp/libiphone/include'      
make[2]: Nothing to be done for `install-exec-am'.                    
test -z "/usr/local/include" || /bin/mkdir -p "/usr/local/include"    
 /bin/bash /home/muhaaa/tmp/libiphone/install-sh -c -m 644 'libiphone/libiphone.h' '/usr/local/include/libiphone/libiphone.h'
make[2]: Leaving directory `/home/muhaaa/tmp/libiphone/include'                                                              
make[1]: Leaving directory `/home/muhaaa/tmp/libiphone/include'                                                              
Making install in fdi                                                                                                        
make[1]: Entering directory `/home/muhaaa/tmp/libiphone/fdi'                                                                 
make[2]: Entering directory `/home/muhaaa/tmp/libiphone/fdi'                                                                 
make[2]: Nothing to be done for `install-exec-am'.                                                                           
test -z "/usr/local/share/hal/fdi/information/20thirdparty/" || /bin/mkdir -p "/usr/local/share/hal/fdi/information/20thirdparty/"
 /usr/bin/install -c -m 644 '31-apple-mobile-device.fdi' '/usr/local/share/hal/fdi/information/20thirdparty//31-apple-mobile-device.fdi'
make[2]: Leaving directory `/home/muhaaa/tmp/libiphone/fdi'                                                                             
make[1]: Leaving directory `/home/muhaaa/tmp/libiphone/fdi'                                                                             
Making install in swig                                                                                                                  
make[1]: Entering directory `/home/muhaaa/tmp/libiphone/swig'                                                                           
make  install-am                                                                                                                        
make[2]: Entering directory `/home/muhaaa/tmp/libiphone/swig'                                                                           
make[3]: Entering directory `/home/muhaaa/tmp/libiphone/swig'                                                                           
test -z "/usr/lib/python2.6/dist-packages/libiphone" || /bin/mkdir -p "/usr/lib/python2.6/dist-packages/libiphone"                      
 /bin/bash ../libtool   --mode=install /usr/bin/install -c  '_iPhone.la' '/usr/lib/python2.6/dist-packages/libiphone/_iPhone.la'        
libtool: install: (cd /home/muhaaa/tmp/libiphone/swig; /bin/bash /home/muhaaa/tmp/libiphone/libtool  --tag CC --mode=relink gcc -I/usr/include/python2.6 -I../src -g -O2 -module -L/usr/lib/python2.6 -lpython2.6 -o _iPhone.la -rpath /usr/lib/python2.6/dist-packages/libiphone _iPhone_la-iphone_wrap.lo ../src/libiphone.la )                                                                                                      
libtool: relink: gcc -shared  .libs/_iPhone_la-iphone_wrap.o   -L/usr/lib/python2.6 -lpython2.6 -L/usr/local/lib -liphone -L/usr/lib -L/lib -lusb -lgnutls -lz -lgcrypt -ltasn1 -lgthread-2.0 -lrt -lplist -lxml2 -lglib-2.0    -pthread -Wl,-soname -Wl,_iPhone.so.0 -o .libs/_iPhone.so.0.0.0                                                                                                                                        
libtool: install: /usr/bin/install -c .libs/_iPhone.so.0.0.0T /usr/lib/python2.6/dist-packages/libiphone/_iPhone.so.0.0.0                    
libtool: install: (cd /usr/lib/python2.6/dist-packages/libiphone && { ln -s -f _iPhone.so.0.0.0 _iPhone.so.0 || { rm -f _iPhone.so.0 && ln -s _iPhone.so.0.0.0 _iPhone.so.0; }; })                                                                                                        
libtool: install: (cd /usr/lib/python2.6/dist-packages/libiphone && { ln -s -f _iPhone.so.0.0.0 _iPhone.so || { rm -f _iPhone.so && ln -s _iPhone.so.0.0.0 _iPhone.so; }; })                                                                                                              
libtool: install: /usr/bin/install -c .libs/_iPhone.lai /usr/lib/python2.6/dist-packages/libiphone/_iPhone.la                                
libtool: install: /usr/bin/install -c .libs/_iPhone.a /usr/lib/python2.6/dist-packages/libiphone/_iPhone.a                                   
libtool: install: chmod 644 /usr/lib/python2.6/dist-packages/libiphone/_iPhone.a                                                             
libtool: install: ranlib /usr/lib/python2.6/dist-packages/libiphone/_iPhone.a                                                                
libtool: finish: PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/X11R6/bin:/sbin" ldconfig -n /usr/lib/python2.6/dist-packages/libiphone                                                                                                                          
----------------------------------------------------------------------                                                                       
Libraries have been installed in:                                                                                                            
   /usr/lib/python2.6/dist-packages/libiphone                                                                                                

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:      
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable  
     during execution                                          
   - add LIBDIR to the `LD_RUN_PATH' environment variable      
     during linking                                            
   - use the `-Wl,-rpath -Wl,LIBDIR' linker flag               
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.   
----------------------------------------------------------------------
test -z "/usr/lib/python2.6/dist-packages/libiphone" || /bin/mkdir -p "/usr/lib/python2.6/dist-packages/libiphone"
 /usr/bin/install -c -m 644 'iPhone.py' '/usr/lib/python2.6/dist-packages/libiphone/iPhone.py'
 /usr/bin/install -c -m 644 '__init__.py' '/usr/lib/python2.6/dist-packages/libiphone/__init__.py'
Byte-compiling python modules...
iPhone.py __init__.py
Byte-compiling python modules (optimized versions) ...
iPhone.py __init__.py
test -z "/usr/local/include/libiphone/swig" || /bin/mkdir -p "/usr/local/include/libiphone/swig"
 /usr/bin/install -c -m 644 'iphone.i' '/usr/local/include/libiphone/swig/iphone.i'
make[3]: Leaving directory `/home/muhaaa/tmp/libiphone/swig'
make[2]: Leaving directory `/home/muhaaa/tmp/libiphone/swig'
make[1]: Leaving directory `/home/muhaaa/tmp/libiphone/swig'
Making install in udev
make[1]: Entering directory `/home/muhaaa/tmp/libiphone/udev'
make[2]: Entering directory `/home/muhaaa/tmp/libiphone/udev'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/etc/udev/rules.d/" || /bin/mkdir -p "/usr/local/etc/udev/rules.d/"
 /usr/bin/install -c -m 644 '89-libiphone.rules' '/usr/local/etc/udev/rules.d//89-libiphone.rules'
make[2]: Leaving directory `/home/muhaaa/tmp/libiphone/udev'
make[1]: Leaving directory `/home/muhaaa/tmp/libiphone/udev'
make[1]: Entering directory `/home/muhaaa/tmp/libiphone'
make[2]: Entering directory `/home/muhaaa/tmp/libiphone'
make[2]: Nothing to be done for `install-exec-am'.
test -z "/usr/local/lib/pkgconfig" || /bin/mkdir -p "/usr/local/lib/pkgconfig"
 /usr/bin/install -c -m 644 'libiphone-1.0.pc' '/usr/local/lib/pkgconfig/libiphone-1.0.pc'
make[2]: Leaving directory `/home/muhaaa/tmp/libiphone'
make[1]: Leaving directory `/home/muhaaa/tmp/libiphone'

I refer to this bug report: http://libiphone.lighthouseapp.c... and his make install. The following lines are missing in my make install log.


test -z "/usr/local/bin" || /bin/mkdir -p "/usr/local/bin"
  /bin/bash ../libtool   --mode=install /usr/bin/install -c
'libiphone-initconf' '/usr/local/bin/libiphone-initconf'
/usr/bin/install -c libiphone-initconf /usr/local/bin/libiphone-initconf

PS: The stupidest thing is that ifuse ran on my system before I installed virtual box 2.2 to jailbreak my iPod Touch... damn it

Comments and changes to this ticket

  • muhaaa

    muhaaa April 21st, 2009 @ 03:07 PM

    • Tag set to handshake, install, libiphone-initconf, lockdown
  • Jonathan Beck

    Jonathan Beck April 21st, 2009 @ 04:10 PM

    • Assigned user set to “Jonathan Beck”
    • State changed from “new” to “open”
    • Milestone set to 1.0 Release

    libiphone-initconf does not exists and is not needed anymore. So the first thing is we should remove any reference to it.

    However it seems something goes wrong in your pairing process.

    I believe it is because your device id is already known, but your device forgot about this host (since you restored it while jailbreak).

    could you post the log of

    ./dev/iphoneclient --debug
    
    

    please do this before what follows, since it will help us find out what is the proper error msg to handle.

    Now to make it work, remove the following file:

    ~/.config/libiphone/YOUR_UID.pem
    
    

    then try to connect again.

    If that works, it means we should detect lockdown failure to start and try pairing if it has not been done in the session.

  • Martin S.

    Martin S. April 21st, 2009 @ 04:34 PM

    • Assigned user cleared.

    The "libiphone-initconf" utility is not missing, it was removed from libiphone and is no longer needed.

    Retry after removing what you have in "~/.config/libiphone/".

  • muhaaa

    muhaaa April 22nd, 2009 @ 11:01 AM

    Problem solved :) THX libiphone team!!!

    Removing ~/.config/libiphone/YOUR_UID.pem worked.

    ./dev/iphoneclient --debug

    
    setting configuration... done.                                  
    claiming interface... done.                                     
    get_iPhone() success                                            
    send_to_phone: Attempting to send datalen = 28 data = 0x88d12f8 
    recv_from_phone(): attempting to receive 28 bytes               
    mux_connect: connection success                                 
    lockdownd_hello() called                                        
    Send msg :                                                      
    size : 245                                                      
    buffer :                                                        
    <?xml version="1.0" encoding="UTF-8"?>                          
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">                                                                                          
    <dict>                                                                                                         
            <key>Request</key>                                                                                     
            <string>QueryType</string>                                                                             
    </dict>                                                                                                        
    </plist>                                                                                                       
    
    lockdownd_send(): made the query, sending it along
    mux_send(): client wants to send 249 bytes        
    actually sending 277 bytes of data at 0x88d9e00   
    send_to_phone: Attempting to send datalen = 277 data = 0x88d9e00
    mux_send: sent 277 bytes!                                       
    Wrote SSL packet to drive, too.                                 
    lockdownd_send(): sent it!                                      
    mux_recv: datalen == 4                                          
    recv_from_phone(): attempting to receive 131072 bytes           
    mux_recv: datalen == 342                                        
    recv_from_phone(): attempting to receive 131072 bytes           
    Recv msg :                                                      
    size : 342                                                      
    buffer :                                                        
    <?xml version="1.0" encoding="UTF-8"?>                          
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">                                                                                 
    <dict>                                                                                                
            <key>Request</key>                                                                            
            <string>QueryType</string>                                                                    
            <key>Result</key>                                                                             
            <string>Success</string>                                                                      
            <key>Type</key>                                                                               
            <string>com.apple.mobile.lockdown</string>                                                    
    </dict>                                                                                               
    </plist>                                                                                              
    �                                                                                                     
    lockdownd_hello(): success                                                                            
    Send msg :                                                                                            
    size : 293                                                                                            
    buffer :                                                                                              
    <?xml version="1.0" encoding="UTF-8"?>                                                                
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">                                                                                          
    <dict>                                                                                                         
            <key>Key</key>                                                                                         
            <string>UniqueDeviceID</string>                                                                        
            <key>Request</key>                                                                                     
            <string>GetValue</string>                                                                              
    </dict>                                                                                                        
    </plist>                                                                                                       
    
    lockdownd_send(): made the query, sending it along
    mux_send(): client wants to send 297 bytes        
    actually sending 325 bytes of data at 0x88e1898   
    send_to_phone: Attempting to send datalen = 325 data = 0x88e1898
    mux_send: sent 325 bytes!                                       
    Wrote SSL packet to drive, too.                                 
    lockdownd_send(): sent it!                                      
    mux_recv: datalen == 4                                          
    recv_from_phone(): attempting to receive 131072 bytes           
    mux_recv: datalen == 406                                        
    recv_from_phone(): attempting to receive 131072 bytes           
    Recv msg :                                                      
    size : 406                                                      
    buffer :                                                        
    <?xml version="1.0" encoding="UTF-8"?>                          
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">                                                                                 
    <dict>                                                                                                
            <key>Key</key>                                                                                
            <string>UniqueDeviceID</string>                                                               
            <key>Request</key>                                                                            
            <string>GetValue</string>                                                                     
            <key>Result</key>                                                                             
            <string>Success</string>                                                                      
            <key>Value</key>                                                                              
            <string>95adccea85c85ab7019744e6e345df8dc6fabecc</string>                                     
    </dict>                                                                                               
    </plist>                                                                                              
    
    lockdownd_generic_get_value(): success
    lockdownd_generic_get_value(): success
    Device uid: 95adccea85c85ab7019744e6e345df8dc6fabecc
    get_host_id(): Using 23DB998A-65EB-7BEB-4070-482E7DC4647E as HostID
    Send msg :                                                         
    size : 322                                                         
    buffer :                                                           
    <?xml version="1.0" encoding="UTF-8"?>                             
    <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">                                                                                          
    <dict>                                                                                                         
            <key>HostID</key>                                                                                      
            <string>23DB998A-65EB-7BEB-4070-482E7DC4647E</string>                                                  
            <key>Request</key>                                                                                     
            <string>StartSession</string>                                                                          
    </dict>                                                                                                        
    </plist>                                                                                                       
    
    lockdownd_send(): made the query, sending it along
    mux_send(): client wants to send 326 bytes        
    actually sending 354 bytes of data at 0x88e5788   
    send_to_phone: Attempting to send datalen = 354 data = 0x88e5788
    mux_send: sent 354 bytes!                                       
    Wrote SSL packet to drive, too.                                 
    lockdownd_send(): sent it!                                      
    mux_recv: datalen == 4                                          
    recv_from_phone(): attempting to receive 131072 bytes           
    mux_recv: datalen == 334                                        
    recv_from_phone(): attempting to receive 131072 bytes           
    Recv msg :                                                      
    size : 334                                                      
    buffer :                                                        
    <?xml version="1.0" encoding="UTF-8"?>                          
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
            <key>Error</key>
            <string>InvalidHostID</string>
            <key>Request</key>
            <string>StartSession</string>
            <key>Result</key>
            <string>Failure</string>
    </dict>
    </plist>
    
    Failed to get SessionID!
    Apparently failed negotiating with lockdownd.
    SSL Session opening failed.
    
  • Jonathan Beck

    Jonathan Beck April 22nd, 2009 @ 05:41 PM

    Here is a patch that detect unknown hostid and force pairing before continuing. This should remove errors after reseting device.

    warning : update dependency to libplist-0.11

  • Jonathan Beck

    Jonathan Beck April 22nd, 2009 @ 05:42 PM

    • Assigned user set to “Matt Colyer”
    • Tag changed from handshake, install, libiphone-initconf, lockdown to handshake, ifuse, libiphone-initconf, lockdown

    Here is another one that remove references to libiphone-inticonf in ifuse.

  • Matt Colyer

    Matt Colyer April 24th, 2009 @ 02:07 AM

    • State changed from “open” to “resolved”

    (from [9e0a9765d586ec5207111e35cceb3a705309aece]) Remove libiphone-initconf reference in the README.

    [#38 state:resolved] http://github.com/MattColyer/lib...

  • Matt Colyer

    Matt Colyer April 24th, 2009 @ 02:09 AM

    Opps, I closed that one prematurely. Jonathan I added both of your patches.

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

A project around supporting the iPhone in Linux.

See http://libimobiledevice.org

People watching this ticket

Referenced by

Pages