![]() |
#1 |
Connoisseur
![]() ![]() Posts: 78
Karma: 103
Join Date: Aug 2006
Location: Ipswich, UK
Device: Irex Iliad
|
I survived 2.7.1
I entered the following in the file /etc/rc5.d/S99z
then chmod to 755. Code:
#!/bin/sh if test -f /mnt/card/startup.sh then /bin/sh /mnt/card/startup.sh fi : exit 0 No problems afterwards - iliad executed startup.sh on my card fine and I'm back in again. This is also a very safe way of executing stuff on normal boot after /home/root/start.sh has completed. Last edited by design256; 10-25-2006 at 10:38 AM. |
![]() |
![]() |
![]() |
#2 |
Uebermensch
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,583
Karma: 1094606
Join Date: Jul 2003
Location: Italy
Device: Kindle
|
Well done! This should be a sticky to everyone who wants to keep the door open to his iLiad.
![]() |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
That will only survive a patch update. On their full updates they dd a new file system into the disk on chip.
I hope that wasn't the real name you used for your rc script, I'm sure they'll have a patch for that in 2.7.2. ![]() Still though, a worthy hack. BTW I'm not some cowboy with my start.sh hack for the clock. Once their panel starts you have to kill out and restart the icon container, which is a central nexus in how the iLiad routes things like the keyboard events. I've done it by hand but its cleaner to just mod the actual start. What is scary is how iRex doesn't understand rc scripting. That start.sh script should be broken up into several rc scripts. ![]() |
![]() |
![]() |
![]() |
#4 | |||
Connoisseur
![]() ![]() Posts: 78
Karma: 103
Join Date: Aug 2006
Location: Ipswich, UK
Device: Irex Iliad
|
Quote:
Quote:
Quote:
Perhaps we could post an exploit to update er_registry (harmless), then supply clickable sed or shell scripts to do the rest... On a related topic, have you any idea where the kernel boot image lives? Its symlink in /boot doesn't exist and it's not on /dev/tffsa1 where I might have expected to find it. I can only assume that there's another paged boot flash that we don't have access to... If we could find that, then we'd be on the first steps to brick-protection.. |
|||
![]() |
![]() |
![]() |
#5 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
Their code for flashing the kernel and user filesystem is all out in the public there in /old-root/linuxrc.
I know how to flash the iLiad what I'm working on is the buttons. I'd like to write something that sniffs the connection button on startup, if it's pressed then mount the MMC/CF and flash off it. Of course if you brick your kernel... we'd need access to the boot loader to make a truly brick free iLiad. But we nearly have all the tools needed to brick protect from user file system problems such as a bad start.sh. Of course we could also post a start.sh upgrade that uses rc.d properly. |
![]() |
![]() |
Advert | |
|
![]() |
#6 | |
Connoisseur
![]() ![]() Posts: 78
Karma: 103
Join Date: Aug 2006
Location: Ipswich, UK
Device: Irex Iliad
|
Quote:
Poking around inside /bin/firmupdate makes it look like it searches through /dev/tffsa for a hidden partition, then puts the kernel there. If we can find that, then we may also find any pre-kernel loading code that also runs. |
|
![]() |
![]() |
![]() |
#7 |
eink fanatic
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 2,022
Karma: 4924
Join Date: Mar 2006
Location: Germany
Device: STAReBOOK, iRex Iliad, Sony 505, Kindle 2
|
Well, then I hope you get lucky and find that as wel...:-)
I'm moving this one to the dev. section as well...I hope you don't mind. |
![]() |
![]() |
![]() |
#8 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
tffsa1 looks like the winner...
Code:
root@ereader:/proc# cat partitions major minor #blocks name 100 0 239616 tffsa 100 1 3094 tffsa1 100 2 74256 tffsa2 100 3 1 tffsa3 100 5 29926 tffsa5 100 6 131326 tffsa6 100 7 910 tffsa7 root@ereader:/proc# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/tffsa2 3040 2368 672 78% /old-root /dev/tffsa2 73045 60249 12796 82% / /dev/tffsa5 28973 885 26592 3% /mnt/protected /dev/tffsa6 131180 122848 8332 94% /mnt/free /dev/tffsa7 888 179 664 21% /mnt/settings |
![]() |
![]() |
![]() |
#9 | |
Connoisseur
![]() ![]() Posts: 78
Karma: 103
Join Date: Aug 2006
Location: Ipswich, UK
Device: Irex Iliad
|
Quote:
Last edited by design256; 10-26-2006 at 03:43 AM. |
|
![]() |
![]() |
![]() |
#10 | |
Addict
![]() ![]() Posts: 222
Karma: 110
Join Date: Jun 2006
Location: Malmo, Sweden
Device: iLiad, Sony PRS-505, Kindle Paperwhite & Oasis
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 |
Banned
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,300
Karma: 1479
Join Date: Jul 2006
Location: Peoples Republic of Washington
Device: Reader / iPhone / Librie / Kindle
|
You're right:
Code:
root@ereader:/mnt/cf# file zImage zImage: Linux rev 0.0 ext2 filesystem data (mounted or unclean) Strange. |
![]() |
![]() |
![]() |
#12 |
Groupie
![]() ![]() ![]() ![]() ![]() ![]() Posts: 199
Karma: 666
Join Date: Oct 2006
Location: Eindhoven, the Netherlands
Device: iLiad, DR1000S, DR800SG
|
You really shouldn't try to flash any kernel to a TFFS# partition, that will certainly brick your iLiad. You'd better have a look at the contents of the tffsa1 partition...
The kernel is not located on any of these TFFS partitions. Also: if you flash your own kernel, you most certainly won't have a working iLiad anymore: no wired ethernet, no filesystem -> brick. Last edited by Matthijs; 10-26-2006 at 06:40 AM. |
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How I survived my iLiad | Hisko | iRex | 3 | 09-11-2008 10:11 PM |