giammin

kindle dx custom sim

Apr 12th, 2012
269
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 5.72 KB | None | 0 0
  1. http://www.mobileread.com/forums/archive/index.php/t-60006.html
  2.  
  3. Hi. Today I decided to lose my warrant and opened my DXi.
  4.  
  5. Changed SIM card to a Claro-3G (Brazil).
  6. After some trying, mounted --bind the /etc/ppp and successfully made a PPP connection.
  7.  
  8.  
  9. 100206:153750 pppd[19919]: pppd 2.4.4 started by root, uid 0
  10. 100206:153751 chat[19925]: timeout set to 60 seconds
  11. 100206:153751 chat[19925]: abort on (BUSY)
  12. 100206:153751 chat[19925]: abort on (ERROR)
  13. 100206:153751 chat[19925]: abort on (NO ANSWER)
  14. 100206:153751 chat[19925]: abort on (NO CARRIER)
  15. 100206:153751 chat[19925]: send (AT^M)
  16. 100206:153751 chat[19925]: expect (OK)
  17. 100206:153751 chat[19925]: AT^M^M
  18. 100206:153751 chat[19925]: OK
  19. 100206:153751 chat[19925]: -- got it
  20. 100206:153751 chat[19925]: send (AT+CGDCONT=1,"IP","claro.com.br","",0,0^M)
  21. 100206:153751 chat[19925]: expect (OK)
  22. 100206:153751 chat[19925]: ^M
  23. 100206:153751 chat[19925]: AT+CGDCONT=1,"IP","claro.com.br","",0,0^M^M
  24. 100206:153751 chat[19925]: OK
  25. 100206:153751 chat[19925]: -- got it
  26. 100206:153751 chat[19925]: send (ATD*99***1#^M)
  27. 100206:153751 chat[19925]: expect (CONNECT)
  28. 100206:153751 chat[19925]: ^M
  29. 100206:153751 chat[19925]: ATD*99***1#^M^M
  30. 100206:153751 chat[19925]: CONNECT
  31. 100206:153751 chat[19925]: -- got it
  32. 100206:153751 chat[19925]: send (\d)
  33. 100206:153752 pppd[19919]: Serial connection established.
  34. 100206:153752 pppd[19919]: Using interface ppp0
  35. 100206:153752 pppd[19919]: Connect: ppp0 <--> /dev/tts/USB0
  36. 100206:153753 pppd[19919]: Warning - secret file /etc/ppp/pap-secrets has world and/or group access
  37. 100206:153753 pppd[19919]: Warning - secret file /etc/ppp/chap-secrets has world and/or group access
  38. 100206:153753 pppd[19919]: CHAP authentication succeeded
  39. 100206:153753 pppd[19919]: CHAP authentication succeeded
  40. 100206:153756 pppd[19919]: Could not determine remote IP address: defaulting to xxx.xxx.64.64
  41. 100206:153756 pppd[19919]: local IP address xxx.xxx.1.236
  42. 100206:153756 pppd[19919]: remote IP address xxx.xxx.64.64
  43. 100206:153756 system: I ip-up:def: PPP interface up ppp0 /dev/tts/USB0 230400 xxx.xxx.1.236 xxx.xxx.64.64
  44. 100206:153757 wand[18963]: I lipc:evts:name=dataStateChanged, origin=com.lab126.wan, fparam=1:Event sent
  45. 100206:153757 wand[18963]: I def:wdstate:state=dataStateAvailable:wan data state change
  46. 100206:153757 wand[18963]: I def:pctim:numSecs=8,retries=0:ppp connect info
  47. 100206:153757 cvm[18325]: I LipcService:EventArrived:source=com.lab126.wan,nam e=dataStateChanged,arg0=1:
  48.  
  49.  
  50. It's pinging any valid host.
  51. Also mounted /opt/amazon/ebook/config to change the proxy settings.
  52.  
  53. Now I got web-browsing.
  54. It also downloads amazon converted files from [email protected] the same way. And still charging 99 cents per mb.
  55.  
  56. The reason i'm doing this is because amazon don't even offer a paid option to use web browser in my country.
  57.  
  58.  
  59.  
  60. #############################
  61. Timestorm
  62. 02-15-2010, 07:56 PM
  63. You must have shell access to the kindle to preform these steps.
  64. You should also backup all files before you edit them!
  65.  
  66. 1.) Open your Kindle and switch with your own SIM card.
  67. 2.) Open '/etc/ppp/chatscripts/att-connect' with your favorite text editor.
  68. 3.) Edit the amazon APN to your service providers APN
  69. 4.) Save and Close
  70. 5.) Move the symbolic link '/etc/resolv.conf' to '/etc/resolv.conf.bk'
  71. 6.) Copy '/var/run/resolv.conf' to '/etc/resolv.conf'
  72. 7.) Open '/etc/resolv.conf' and replace the nameserver IPs with those from your service providers.
  73. 8.) Save and Close
  74. 9.) Open '/opt/amazon/ebook/config/browser_prefs'
  75. 10.) Place a # in from of the three proxy lines.
  76. 11.) Save and Close
  77. 12.) Restart your kindle.
  78.  
  79. Im sorry theres not more detail as I am currently at work and am repeating from memory as I do not have access to my Kindle. In about 10 hours I will post more elaborate directions.
  80.  
  81.  
  82.  
  83. Netroman
  84. 02-18-2010, 01:12 PM
  85. @ Timestorm: Good work!:D
  86.  
  87. I additionally removed the Startup-Sequence "S50wan" at /etc/rc5.d because I killed a SIM-Card - after a time it stopped working and had to be replaced.
  88. I guess the reason could be that S50wan (resp. /etc/init.d/wan) starts and stops the modem - maybe the SIM was killed by often switching on and off.
  89. Also this removed the modem-update sequence as the firmware of the modem is up to date and no need for further updates this time for me.
  90.  
  91. Additional removed S50updater at runlevel 3 (/etc/rc3.d) - because at this time I made a lot of modifications to the filesystem and updates would fail anyway.
  92. Why?
  93. Updates check the md5-hash and there is a very good reason for this: Not because of secrets or similar - no - the solution is that updates are made mostly by patching. An if you would patch modified files they could become unusable...
  94.  
  95. At least today I mounted a plug at the top of the kindle to easily access the serial-port for debugging purposes ;-)
  96.  
  97. Well as far as good - have fun!
  98.  
  99. Best regards Josh:cool:
  100.  
  101. #########################
  102.  
  103. 10-26-2010, 02:44 PM
  104. I succeeded changing amazon's SIM card in my kindle dx graphite to my local GSM provider's sim and getting online :)
  105.  
  106. this is what I did:
  107. 1. changed sim card in kindle
  108. 2. commented these lines in /opt/amazon/ebook/config/browser_prefs
  109. #settings.proxy.hostname = fints-g7g.amazon.com
  110. #settings.proxy.portnumber = 80
  111. #settings.proxy.sslportnumber = 80
  112. btw, if you don't want your kindle to be recognized online as mobile device, change browser identification string in the same file to smt like this:
  113. user_agent.base = Mozilla/4.0 (compatible; Linux 2.6.22)
  114. 3. changed DNS server's ip addresses to my GSM provider's in /etc/resolv.d/resolf.conf.3
  115. 4. changed some settings in /etc/ppp/chat/connect-3 to be compagtible with my GSM provider's settings (dialing number and AT+CGDCONT connection string)
  116. 5. rebooted kindle and thats it! internet worked :)
Advertisement
Add Comment
Please, Sign In to add comment