Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 11-11-2010, 03:15 AM   #181
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Oh, morning already

@curstpriest: I have worked hard for you, but you sure seem to have been busy yourself too ! more on that in a sec. Explained the issues, and hope for some reply later.

@montalex: I think we more or less share the same things you mentioned. Sure, some have more computer skills then others, but you contributions is of great value - not to worry. And it is some serious people we are dealing with. They will not let us brick anything if they can help it.

I think Duokan is going to be very nice, and that we will be pleased. It perfectly normal with some hickups during development.
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 03:50 AM   #182
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
wrote:

I don't quite get how the bootloader even works, it looks like option 3 boots into USBnet mode + telnet server? Looks like it, they also provide usb net driver in their install package:

echo "sub Lan"
mntroot rw
rmmod g_file_storage
rmmod g_ether
modprobe g_ether
ifconfig usb0 192.168.0.88
route add default gw 192.168.0.1
echo nameserver 208.67.222.222 > /etc/resolv.d/resolv.conf.default
echo nameserver 208.67.220.220 >> /etc/resolv.d/resolv.conf.default
cp /etc/resolv.d/resolv.conf.default /var/run/resolv.conf
/mnt/us/DK_System/bin/busybox telnetd
display_logo_screen
mntroot ro
return 0;

-------- It is for the stores, and we may perhaps come up with some modification ourselves ?

It does a check for mv /etc/rc5.d/S96rundk /etc/rc5.d/s96rundk constantly, I assume it's because the partition is fat32 and it has to make sure it's lowercase, and they copied it over directly rather than extracting it from a tarball.

--------- They have updates which would remove old stuff, install new, and their focus were for their own books, not Amazon - perhaps they did not think to much about uninstall ?

dkswitchmenu.bin seems to take the input for the 3 menu choices?
dkswitch.bin seems to boot into the os

Yes, in settings you can choose to have it boot up the last system it used - it will timeout and boot the 3rd option without intervention. I think it is very nice.

From reading the scripts, here are the files it appears to install:

(these are generated + removed by install.sh)

/etc/rcS.d/S79switch
/etc/rc5.d/s96rundk
/etc/rc5.d/S96rundk
/etc/rc5.d/rundk.sh
/dev/DK_Debug.log

--------------- yes, I don't see anything that is not normal on a multiuser, but wonder if
Amazon's could use runlevel 3 ?

(debug log is probably not even created I think debugging is disabled, should see file in DK_SYSTEM folder cat /dev/DK_Debug.log >> /mnt/us/DK_System/DK_Debug.log)

---------------- yes...

It removes these 2 files all on its own for some reason, since they are in /dev i assume they are also generated by it because usually stuff should not be in /dev:
/dev/viewinfodat.txt
/dev/viewinfodat1.txt

----------------- the TTS system comes from Microsoft, and is proprietary. May explain something.

What is the kindle's normal rc script?
What happens if these 4 are simply removed?

------------------ First one, - I don't know. Second one - I believe nothing. There are some check of a file in /mnt/us/DK_system...... that it exist and that it has not changed size, else it will not run, and it will bootup Amazon. There need to be input and output for those 4 startup scripts. I don't seek any harm. But I do expect they will supply an uninstall script.


That was very good curstpriest ! Thank you !
ha, so you do have some of that powder that makes things light up ?
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 04:05 AM   #183
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Quote:
Originally Posted by NiLuJe View Post
Yep, that's a somewhat bloated (ie. don't need the gw & ns setup when you're not doing tethering, AFAIK) usbnet+telnet (without tethering) setup.

Most of the .bin files (those ~245K anyway) are fb dumps (ie. the bootup screen).

The S <=> s switch is probably the horrible way by which they enable/disable their startup script. (rc is very anal, it has to be (S|K)[:digit:]{2}[:alnum:]* (case sensitive) or the script is skipped).

The original framework is started from S95framework @ rc5.

Removing those four init scripts should be enough to stop duokan from starting, but there may be some other non critical stuff to delete for a proper uninstall. There's a usb_switch dropped in init.d from somewhere if I remember correctly for example. And the mess in /dev (WTH?!).
Yes, the .bin is mostly fb dumps? ( not sure why you called them that ) but I had trouble to figure out what they said. Google-translate would not accept them
Anyway, would need to replace those menus with something nice. A couple of their symbols make up a sentence. One is the search on top of the home directory. But only keeping the looking glass may be enough, I reckon. But they are many places.
If text, then it should be some very nice looking ones.

Would like some extra menus, for example - quickly setting up remote desktop or something. Ftp, and the like. Would like several apps, unit convertions, and such things.

But I think it will happen, ....


I think it look promising.
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 07:40 AM   #184
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
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
@FethryDuck: Well, because they are, uh... framebuffer dumps . (Cf. https://www.mobileread.com/forums/sho...22&postcount=2).

rc3 is the update runlevel, so, yeah, it *is* used by the original framework .
NiLuJe is offline   Reply With Quote
Old 11-11-2010, 10:02 AM   #185
curstpriest
Confused
curstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toyscurstpriest shares his or her toys
 
curstpriest's Avatar
 
Posts: 402
Karma: 5538
Join Date: Oct 2010
Location: Bay Area
Device: Kindle DXG
If anyone knows a lot about the kindle and installed files I'm betting they could easily write an uninstall script for this. I think that the easiest way would be to make use of the DK_update script that it checks for every time it boots at
DK_System/bin/DK_update

This is the first few lines of the S79switch:
Code:
#DK Update
if [ -x /mnt/us/DK_System/bin/DK_update ]
then
	chmod +x /mnt/us/DK_System/bin/DK_update
	/mnt/us/DK_System/bin/DK_update
	rm /mnt/us/DK_System/bin/DK_update -f
fi
possible contents of DK_update:

Code:
#!/bin/sh

mntroot rw
rm -f /etc/rcS.d/S79switch
rm -f /etc/rc5.d/s96rundk
rm -f /etc/rc5.d/S96rundk
rm -f /etc/rc5.d/rundk.sh
rm -f /dev/DK_Debug.log
mntroot ro
I think this would work, but it could only be ran once, and I don't know what all is added to the system. Also, it may be wise to ensure that the DK_system folder be removed so that the kindle does not fail the following checks as S79switch continues to be executed after the DK_update deletes the other scripts. I assume that the fs is mounted as readonly..

Code:
rm -rf /mnt/us/DK_System
should do the trick, causing the rest of the script to behave as if DK is not installed, resulting in a boot into the normal kindle system. The user could then migrate their documents out of DK_documents, DK_pictures, and manually remove DK_MDB

Anyways, I'd prefer somone who has a serial interface // more experience with linux // DK developers come up with a solution themselves, as I'm not confident as to what they installed on the system (clean uninstall should be possible so that future amazon updates/etc can happen) and am not sure that my uninstall method would work properly.

Anyways:

Code:
#!/bin/sh

mntroot rw
rm -f /etc/rcS.d/S79switch
rm -f /etc/rc5.d/s96rundk
rm -f /etc/rc5.d/S96rundk
rm -f /etc/rc5.d/rundk.sh
rm -f /dev/DK_Debug.log
rm -rf /mnt/us/DK_System
mntroot ro
I realize you will be deleting the scripts as they are running (but I don't think that will be a problem, I could be wrong, like I said, I don't know THAT much about shell scripts =X)

Last edited by curstpriest; 11-11-2010 at 10:07 AM.
curstpriest is offline   Reply With Quote
Old 11-11-2010, 11:28 AM   #186
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Quote:
Originally Posted by curstpriest View Post
-------<snip>------------

Anyways, I'd prefer somone who has a serial interface // more experience with linux // DK developers come up with a solution themselves, as I'm not confident as to what they installed on the system.....
I think the "Duokan-team" may help us, and you are pretty much in the process of starting "YesYoCan-team" We may whip up some tools too.

Quote:
Originally Posted by curstpriest View Post
-------<snip>------------
I realize you will be deleting the scripts as they are running (but I don't think that will be a problem, I could be wrong, like I said, I don't know THAT much about shell scripts =X)
It looks promising, and compared to me with a broken wing and how I trip on things ..need I say more ?
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 11:59 AM   #187
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
PrintScreen ?

The command is alt-shift-G and I expect Duokan will correct this. The error has sneaked in on some of their own documentation.

Update:

Have opened a couple of other threads - ( yup, I probably don't know what I am doing )

- anyway, the idea is to see if it is possible to report some bug-info in Duokan Bugs Discuss

- the Duokan Bugs is however somewhere I hope to attract some attention from Duokan people.

yup, may ideas may be flakey - but - it is an attempt. :big grin:

Last edited by FethryDuck; 11-11-2010 at 07:11 PM.
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 01:46 PM   #188
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Am I stupid or just silly - I don't know..

Some reasons for my actions lately, is that it is sort of madness to try to do anything at the doukan site, when even google-translate and other tools leave you stranded. They don't function there. Then someone there felt ashamed of some English grammar mistake she did, and would not say more in English. And among a million people, who do you stop and ask ?

So, I spent most of the night in frustration - but, .. ah, well...

Last edited by FethryDuck; 11-11-2010 at 07:12 PM.
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 03:58 PM   #189
montalex
Fanatic
montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.
 
Posts: 556
Karma: 1283268
Join Date: Mar 2010
Device: KindleDX,Kindle 4, Kindle Keyboard 3G
Quote:
Originally Posted by FethryDuck View Post
Am I stupid or just silly - I don't know..

Some reasons for my actions lately, is that it is sort of madness to try to do anything at the doukan site, when even google-translate and other tools leave you stranded. They don't function there. Then someone there felt ashamed of some English grammar mistake she did, and would not say more in English. And among a million people, who do you stop and ask for direction ?

So, I spent most of the night in frustration - but, .... ah, well...
I have spent an inordinate amount of time pasting Google-translated Chinese into search windows on the Duokan site. I have yet to find anything new, or at least anything that I understand. It is strange, clicking on what seems to correspond to how buttons are arranged in Forums in English.

Also, there are things that are really inscrutable, like if I search for Alt-SHIFT-G, for example. What is their name for the shift button?

But, like you, I am enjoying myself, wasting time.

I'll bet there is someone from Duokan now monitoring this thread, don't you think? Another good reason for being constructive with criticism.

Best,

M.
montalex is offline   Reply With Quote
Old 11-11-2010, 04:20 PM   #190
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Guys - this you have to see !

Keyboard localization (hack)

Check the screenshot !

FethryDuck is offline   Reply With Quote
Old 11-11-2010, 05:20 PM   #191
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Quote:
Originally Posted by montalex View Post
I have spent an inordinate amount of time pasting Google-translated Chinese into search windows on the Duokan site. I have yet to find anything new, or at least anything that I understand. It is strange, clicking on what seems to correspond to how buttons are arranged in Forums in English.

Also, there are things that are really inscrutable, like if I search for Alt-SHIFT-G, for example. What is their name for the shift button?

But, like you, I am enjoying myself, wasting time.

I'll bet there is someone from Duokan now monitoring this thread, don't you think? Another good reason for being constructive with criticism.

Best,

M.
I don't know their name for the shift button, but when you mention it, they seem to use several of the English words as what is present by symbol or practise from keyboard.

I cannot say I enjoy it, when I don't understand. Some characters are not possible to mark or copy,
so you cannot use translation tools.

Last edited by FethryDuck; 11-11-2010 at 06:59 PM. Reason: unclear
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 05:43 PM   #192
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
"The message you have entered is too short. Please lengthen your message to at least 5 characters." Why ? - I had nothing to say !

Last edited by FethryDuck; 11-11-2010 at 07:07 PM.
FethryDuck is offline   Reply With Quote
Old 11-11-2010, 08:51 PM   #193
montalex
Fanatic
montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.
 
Posts: 556
Karma: 1283268
Join Date: Mar 2010
Device: KindleDX,Kindle 4, Kindle Keyboard 3G
Thumbs up

Quote:
Originally Posted by FethryDuck View Post
Very, very cool! I guess that Kindle has established itself as the e-reader of choice for the masses. All of this is good news for me and my outdated Kindle 2.
montalex is offline   Reply With Quote
Old 11-11-2010, 10:17 PM   #194
FethryDuck
Addict
FethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enoughFethryDuck will become famous soon enough
 
FethryDuck's Avatar
 
Posts: 281
Karma: 520
Join Date: Nov 2010
Location: sometimes Norway, planet Earth
Device: Kindle3, DXG
Quote:
Originally Posted by montalex View Post
Very, very cool! I guess that Kindle has established itself as the e-reader of choice for the masses. All of this is good news for me and my outdated Kindle 2.
You can even modify it yourself !

NOW - here is some CRAZY story:

As you all probably know by know, I have been on the Chinese site, doing stuff.
How would like if you no longer can get in touch with your decade old friends.
Reason, their ISP has blocked your IP because of irregular usages and
intermingled IP addresses outside of bounds ? And when you try some other
secondary ISP over http - you suddenly pickup a conversation in Chinese ?
IP addresses seem hijacked in other words. IT JUST OCCURED !

Well, I have figured it out, but it will take time to lift the my blocked
IP addresses. And somehow negotiate an exception. It was somewhat
understandable. But what about the voice over IP ? I only had the voices,
but it turned out to belong to a Chinese introduction of Duokan-Kindle on
YouTube from a burried browser window !! Talk about odd mix of
circumstances ! But odd things happen.

I am clever in fooling myself
FethryDuck is offline   Reply With Quote
Old 11-12-2010, 08:09 AM   #195
montalex
Fanatic
montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.montalex ought to be getting tired of karma fortunes by now.
 
Posts: 556
Karma: 1283268
Join Date: Mar 2010
Device: KindleDX,Kindle 4, Kindle Keyboard 3G
Quote:
Originally Posted by FethryDuck View Post
That's brilliant, Duck. I guess you took that screen shot from Duokan, because you can't get that big text window in Kindle.
montalex is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
English-English Dictionary for 301 LevAizik PocketBook 6 12-03-2013 09:42 PM
Macro: Old English to New english ProDigit Workshop 19 09-15-2011 10:10 PM
PB302 - How to replace English->Russian dictionary with English only (with defin.)? guyanonymous PocketBook 29 08-03-2010 06:05 PM
Best way to sort files? Meowchi Sony Reader 6 09-23-2009 04:05 PM
Hi there and I am sort of new here! PhoneGuy Introduce Yourself 4 07-02-2008 09:33 PM


All times are GMT -4. The time now is 07:42 PM.


MobileRead.com is a privately owned, operated and funded community.