![]() |
#391 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Yeah, my main issue is that it's a bitch to do in a safe/sane way on FW 4.x & 5.x, because the modprobe call is (and has to be, to avoid a host of weird shit) handled by volumd, and can only be tweaked through kdb, whose db lives in a ro cramfs... So I'm open to ideas on how to handle that safely, in a not too ugly way...
Aside from that, knc1 mentioned building the mac address based on the s/n, which is a pretty neat idea. Last edited by NiLuJe; 08-08-2013 at 05:22 PM. |
![]() |
![]() |
![]() |
#392 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
@hawhill, NiLuJe, others:
OK, mac address ball is in my court now. Let's see if I fumble it. Last edited by knc1; 08-08-2013 at 06:47 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#393 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Will steal an OUI from the reserved field CF:00:00 ... CF:FF:FF (some PPP registrations - as long as we don't collide with Amazon's 3G MACS - will make my choice carefully to avoid the registered 3G carriers). (CF:DE:AD jumps to mind) Ref: http://tools.ietf.org/html/rfc5342 section 2.3.2 Edit: Looks like that is workable: http://www.macvendorlookup.com/ Last edited by knc1; 08-09-2013 at 10:04 AM. |
|
![]() |
![]() |
![]() |
#394 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Kindle unique MAC addresses
The unique USB networking MAC addresses plan.
Both ends of the cable **should** have a globally unique MAC address. Code:
[root@kindle root]# cat /proc/usid ; echo B0241604311703FA Code:
B024 - 5 bits 1604311703 - 10 * 3 == 30 bits FA - 2 * 4 == 8 bits Code:
[root@kindle root]# cat /proc/board_id ; echo 00A1607131130CYG ![]() Code:
[root@kindle root]# cat /proc/usid /proc/board_id ; echo B0241604311703FA00A1607131130CYG Now, not to disclose device private information, take a one-way hash sum: Code:
[root@kindle root]# cat /proc/usid /proc/board_id | md5sum af75bab85599c7cc2abb95a248da709b - af:75:ba b85599c7cc2abb95a248 da:70:9b Plus the prior post OUI, yields (on the Kindle): Code:
g_ether dev_addr="cf:de:ad:af:75:ba" host_addr="cf:de:ad:da:70:9b" Code:
ACTION!="add", GOTO="net-end" SUBSYSTEM!="net", GOTO="net-end" # Kindle USB network interface name(s) # My first paperwhite's persistent USBnetwork interface name: ATTR{address}=="cf:de:ad:da:70:9b", KERNEL="usb*", NAME="kpw0" # Others LABEL="net_end" Next - Figure out how to automate that in the Kindle's firmware image. Last edited by knc1; 08-09-2013 at 11:40 AM. |
![]() |
![]() |
![]() |
#395 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Okay, got something working on the unique MAC addresses front. For the K2/3/4 for now, will port it to FW 5.x in a bit. Hopefully will be less painful.
As I feared, the volumd handling is terribly awful, so it's hidden behind a config switch, but it appears to work, and handles both sides. EDIT: K5 port done. (Everything's on SVN, if someone wants to take the plunge). Last edited by NiLuJe; 08-09-2013 at 08:45 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#396 |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
|
![]() |
![]() |
![]() |
#397 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Legacy: https://svn.ak-team.com/svn/Configs/trunk/Kindle/Hacks/
K5: https://svn.ak-team.com/svn/Configs/...e/Touch_Hacks/ Needs to be checked out side by side or the buildscripts will shout at you ![]() |
![]() |
![]() |
![]() |
#398 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
|
|
![]() |
![]() |
![]() |
#399 | |
Addict
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 229
Karma: 136002
Join Date: Apr 2013
Device: PW
|
Quote:
thank you very much! |
|
![]() |
![]() |
![]() |
#400 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Looks like you have the unique MAC address problem solved for the next release. A big: Thanks for that. In the mean time, I will just plug in my kindles one at a time. **AND** Work on fixing the various problems of my own posted buttons. ![]() |
|
![]() |
![]() |
![]() |
#401 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: Great, thanks for taking a look at it
![]() That said, if someone has a better method to trick volumd, I'm all ears, because the current workaround isn't terribly pretty... ![]() |
![]() |
![]() |
![]() |
#402 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
Released USBNet 0.10.N, which includes, besides updated binaries, the unique MAC address stuff discussed before.
As mentioned previously and in the comments of the config file, I wouldn't recommending enabling this unless you really need it, the way it's implemented isn't really pretty ![]() It's hidden behind a config switch, so you will need to update your config file manually if you have customized it. There's now a KUAL button that restores the default config, and the default config is available in usbnet/etc to ease manual merging. |
![]() |
![]() |
![]() |
#403 | |
Going Viral
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
|
Quote:
Since it is a "development environment" sort of thing, a developer should be able to deal with a hidden option. And/Or with reading the directions. |
|
![]() |
![]() |
![]() |
#404 |
BLAM!
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
|
@knc1: True, but the behavior isn't specific to this switch, it's just how the installer behaves to try to preserve non-default config files. This was just the perfect example to explain this again, and introduce some stuff to help managing custom configs (hence the KUAL button)
![]() |
![]() |
![]() |
![]() |
#405 | |
Evangelist
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 477
Karma: 445678
Join Date: Feb 2010
Device: Too many..
|
Quote:
![]() How do i upgrade from v0.9.N..? uninstall, re-install..? |
|
![]() |
![]() |
![]() |
Tags |
5.1.0, 5.2.0, jailbreak, kindle touch hacks, paperwhite, touch |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle Touch 5.0 Jailbreak | yifanlu | Kindle Developer's Corner | 246 | 01-03-2013 04:57 PM |
Is a Kindle Touch for a PaperWhite a good trade? | route66 | Amazon Kindle | 7 | 09-29-2012 03:21 PM |
Kindle Touch with 'Paperwhite' backlit display | JoHunt | Amazon Kindle | 2 | 08-31-2012 04:33 AM |
[Kindle Touch] Firmware 5.1.0 and jailbreak | ixtab | Kindle Developer's Corner | 85 | 06-28-2012 04:43 AM |
How to Kindle touch - jailbreak, screensaver | morgun | Kindle Developer's Corner | 3 | 05-21-2012 06:39 PM |