Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 10-15-2012, 12:05 PM   #151
geekmaster
Всё гениальное просто.
geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.geekmaster ought to be getting tired of karma fortunes by now.
 
geekmaster's Avatar
 
Posts: 5,066
Karma: 6789001
Join Date: Nov 2011
Location: Щедрость не имеет пределов.
Device: *.*
Quote:
Originally Posted by twobob View Post
... and the GM as it was his 0 Day that made the testing in-the-end a bearable process...
Unpublished 0-day exploit (until we need it). You are welcome! And congratulations!

EDIT: My 0-day exploit works on the Paperwhite too. I remember running diags, and I thought I tested my exploit, but I do not remember how I got my Paperwhite into diags. ???

Last edited by geekmaster; 10-15-2012 at 01:58 PM.
geekmaster is offline   Reply With Quote
Old 10-15-2012, 12:06 PM   #152
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,152
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Now see if chattr +/- i ... works on your K5
Not even 'root' can deleted a file or directory with 'i' set on it.

Note:
Best that I know, mmcblk0p3 (a.k.a: /var/local) is mounted at the same point in the file system in both 'main' and 'diags'.
I.E: It is common to both of them.
So if we take over an increased size /var/local for end-user applications . . .
knc1 is offline   Reply With Quote
Old 10-15-2012, 01:12 PM   #153
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
yeah...
Quote:
[root@[192_168_15_244] root]# df
Code:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/root                63671     55007      5464  91% /
tmpfs                   127832         4    127828   0% /dev
tmpfs                   127832         0    127832   0% /dev/shm
/dev/mmcblk0p3           31729     15634     14457  52% /var/local
fsp                    3323544   1559144   1764400  47% /mnt/us
/dev/loop/0            3323544   1559144   1764400  47% /mnt/base-us
5.5 Mb is a bit buttock clenching already.
twobob is offline   Reply With Quote
Old 10-15-2012, 01:49 PM   #154
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,152
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by twobob View Post
yeah...

5.5 Mb is a bit buttock clenching already.
Yup, that eMMC could do with more than just a bit of tender, loving care.

When I get that broken DX(G) to network boot . . .
Then the eMMC will be just another piece of hardware that we can diddle with as we please.
Starting with sym-linking that OTA updater's name to /bin/true.

The network booting only depends on u-boot, one "HowTo" should (mostly) fit all K's
knc1 is offline   Reply With Quote
Old 10-15-2012, 02:47 PM   #155
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post
Now see if chattr +/- i ... works on your K5
Not even 'root' can deleted a file or directory with 'i' set on it.

Note:
Best that I know, mmcblk0p3 (a.k.a: /var/local) is mounted at the same point in the file system in both 'main' and 'diags'.
I.E: It is common to both of them.
So if we take over an increased size /var/local for end-user applications . . .
[root@[192_168_15_244] root]# chattr -h
Quote:
Usage: chattr [-RVf] [-+=AacDdeijsSu] [-v version] files...
[root@[192_168_15_244] root]# lsattr -h
Quote:
Usage: lsattr [-RVadlv] [files...]

: ) yep workers
twobob is offline   Reply With Quote
Old 10-15-2012, 02:49 PM   #156
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,152
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Ah, maybe you missed it during all of the excitement:
http://www.mobileread.com/forums/sho...&postcount=138
knc1 is offline   Reply With Quote
Old 10-15-2012, 02:59 PM   #157
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post
Ah, maybe you missed it during all of the excitement:
http://www.mobileread.com/forums/sho...&postcount=138
ah sorry. : )

[root@[192_168_15_244] root]# touch /var/local/something_new
[root@[192_168_15_244] root]# chattr +i /var/local/something_new
[root@[192_168_15_244] root]# lsattr /var/local/something_new
Quote:
----i---------- /var/local/something_new
[root@[192_168_15_244] root]# chattr -i /var/local/something_new
[root@[192_168_15_244] root]# rm /var/local/something_new
twobob is offline   Reply With Quote
Old 10-15-2012, 03:13 PM   #158
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,152
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Quote:
Originally Posted by twobob View Post
ah sorry. : )

[root@[192_168_15_244] root]# touch /var/local/something_new
[root@[192_168_15_244] root]# chattr +i /var/local/something_new
[root@[192_168_15_244] root]# lsattr /var/local/something_new

[root@[192_168_15_244] root]# chattr -i /var/local/something_new
[root@[192_168_15_244] root]# rm /var/local/something_new
And if you had tried to rm /var/local/something_new after setting the 'i' (immutable) attribute you would have gotten a "permission denied" - even as 'root'.
Works for directories also, but I don't know what would happen if the start-up script got a "permission denied" error code.
I didn't see much error checking in that lab126 script you posted.
knc1 is offline   Reply With Quote
Old 10-15-2012, 03:23 PM   #159
eureka
but forgot what it's like
eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.eureka ought to be getting tired of karma fortunes by now.
 
Posts: 710
Karma: 2290994
Join Date: Dec 2011
Location: north (by northwest)
Device: Kindle Touch
Isn't it (chattr) was explored in purposes of securing /usr/local at diags partition? I'm just confused with example of setting attrubute on /var/local...
eureka is offline   Reply With Quote
Old 10-15-2012, 03:30 PM   #160
qlob
Horse
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,046
Karma: 7096675
Join Date: Apr 2012
Device: Kindle3G+WiFi
Quote:
Originally Posted by eureka View Post
Isn't it (chattr) was explored in purposes of securing /usr/local at diags partition? I'm just confused with example of setting attrubute on /var/local...
I think the above was a test of chattr....
qlob is offline   Reply With Quote
Old 10-15-2012, 03:31 PM   #161
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Quote:
Originally Posted by knc1 View Post
And if you had tried to rm /var/local/something_new after setting the 'i' (immutable) attribute you would have gotten a "permission denied" - even as 'root'.
Works for directories also, but I don't know what would happen if the start-up script got a "permission denied" error code.
I didn't see much error checking in that lab126 script you posted.
[root@[192_168_15_244] /dev]# rm /var/local/something_new
rm: remove '/var/local/something_new'? y
rm: can't remove '/var/local/something_new': Operation not permitted

heh. classic.

Quote:
Originally Posted by eureka View Post
Isn't it (chattr) was explored in purposes of securing /usr/local at diags partition? I'm just confused with example of setting attrubute on /var/local...
just a "for example".
twobob is offline   Reply With Quote
Old 10-15-2012, 03:34 PM   #162
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
so - how does one "shutdown" from diags?

init level?

Quote:
[root@[192_168_15_244] /dev]# shutdown -r now
-sh: shutdown: not found
twobob is offline   Reply With Quote
Old 10-15-2012, 03:36 PM   #163
qlob
Horse
qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.qlob ought to be getting tired of karma fortunes by now.
 
qlob's Avatar
 
Posts: 1,046
Karma: 7096675
Join Date: Apr 2012
Device: Kindle3G+WiFi
poweroff maybe?
qlob is offline   Reply With Quote
Old 10-15-2012, 03:44 PM   #164
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Tır
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,552
Karma: 6015922
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
I'll sync first. and tidy up /etc/fstab

just to be on the same side.

[root@[192_168_15_244] /dev]# poweroff -h
Quote:
BusyBox v1.17.1 (2012-04-16 16:44:42 PDT) multi-call binary.

Usage: poweroff [-d DELAY] [-n] [-f]

Halt and shut off power

Options:
-d Delay interval for halting
-n Do not sync
-f Force power off (don't go through init)
twobob is offline   Reply With Quote
Old 10-15-2012, 03:46 PM   #165
knc1
Embedded Cheerleader
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 6,152
Karma: 5830426
Join Date: Feb 2012
Device: Too many.
Remove battery?

OR do a "geekmaster" -
leave this one in 'diags', buy another, then leave that one in 'main'
At least I think that is why he has dozens of them.
knc1 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
H.264 clip running on standard E Ink panel Alexander Turcic News 95 03-19-2011 01:19 PM
Death of E-Ink display? DD1509 News 181 01-06-2010 04:48 PM
Anybody knows the cost of E-Ink Display jeffreylamster OpenInkpot 7 04-24-2009 01:49 PM
Motorola has the first example of Android running on a E-Ink display. Kris777 News 1 02-17-2009 11:09 PM
Paperlike display running for 12 years and still going strong Alexander Turcic News 3 06-08-2006 10:25 PM


All times are GMT -4. The time now is 10:51 PM.


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