10-08-2013, 07:58 AM | #1 |
Zealot
Posts: 101
Karma: 34554
Join Date: Aug 2012
Device: none
|
To rupor: Enable ADB
Would you mind telling the commands necessary to create both new
It would be a time saver to me. Thanks in advance. EDIT: Just the commands to create newly after I've made changes. Last edited by ebmr; 10-08-2013 at 09:55 AM. |
10-09-2013, 01:59 PM | #2 |
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Making a ramdisk image:
Code:
# find . -print | cpio -o -H newc | gzip -v9 > ../ramdisk-adb.gz # mkimage -A ARM -O Linux -T ramdisk -C gzip -a 0x70308000 -e 0x70308000 -n "Normal Rootfs" -d ramdisk-adb.gz ramdisk-adb.uimg (for PRS-T2): Code:
# dd if=T2_NAND_dump_1.0.03.09110.dd of=ramdisk.uimg bs=1024 skip=5120 count=1024 # dd if=T2_NAND_dump_1.0.03.09110.dd of=nboote.bin bs=1024 skip=15360 count=128 # mkdir ramdisk # dd if=uramdisk.img of=ramdisk.gz bs=64 skip=1 2834+1 records in 2834+1 records out 181410 bytes (181 kB) copied, 0.0168186 s, 10.8 MB/s # cd ramdisk # gunzip -c ../ramdisk.gz | cpio -i -v |
10-09-2013, 05:39 PM | #3 | |
Zealot
Posts: 101
Karma: 34554
Join Date: Aug 2012
Device: none
|
Quote:
Hopefully you don't mind some further questions:
Is there a tool to make a new Boot Env nboote.bin? If not:
|
|
10-09-2013, 08:23 PM | #4 | ||
Fanatic
Posts: 556
Karma: 1057213
Join Date: Sep 2006
Location: North Eastern U.S.
Device: Sony Reader
|
Quote:
Quote:
|
||
10-09-2013, 08:37 PM | #5 |
meat popsicle
Posts: 225
Karma: 100000
Join Date: Jul 2007
Location: USA
Device: Kindles, Pixels, iPads
|
I was not able to use porkupan's method (modified fw_setenv) - so out of curiosity I simply used hex editor on my windows computer and verified that result is the same as he provided Second number (if I remember correctly) is number of blocks to be loaded and I believe checksum is CRC32 - I googled this.
|
10-10-2013, 07:42 AM | #6 |
Zealot
Posts: 101
Karma: 34554
Join Date: Aug 2012
Device: none
|
porkupan, rupor .
This information is what I was looking for. |
10-11-2013, 03:16 PM | #7 | ||
Zealot
Posts: 101
Karma: 34554
Join Date: Aug 2012
Device: none
|
Quote:
BTW, it is interesting that the compression type header entry of the original ramdisk is 0 (no compression) where it should be 1 (gzip) since, in fact, it is gzip compressed. |
||
10-16-2013, 05:06 PM | #8 | |
Zealot
Posts: 101
Karma: 34554
Join Date: Aug 2012
Device: none
|
Quote:
Sony probably had added 10 extra blocks so that they can increase the rootfs image without updating the u-boot environment data, but if anyone of us provides a new rootfs image he must provide a new and appropriate u-boot environment anyway, because he doesn't know what the current u-boot environment looks like. So there seems no point in adding extra blocks. |
|
Thread Tools | Search this Thread |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PRS-T1 Update rupor's AMR | SonyReaderT1 | Sony Reader Dev Corner | 29 | 06-27-2013 08:07 AM |
PRS-T2 Difference jailbreak.zip/rupor-jailbreak.7z & minimal-root-zeam.zip/rupor-minimal.7z? | hyperstruct | Sony Reader Dev Corner | 9 | 01-06-2013 02:05 PM |
Rupor GUI ? | Schauberger | Sony Reader Dev Corner | 2 | 09-10-2012 09:48 AM |
PRS-T1 Testmode / Enable ADB on stock (non-rooted) readers! | uboot | Sony Reader Dev Corner | 2 | 08-19-2012 07:00 AM |
Development Possible way to enable ADB during next update | kveroneau | enTourage Archive | 20 | 12-23-2010 09:32 AM |