10-20-2011, 03:49 AM | #1 | |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
A Thread for Vicinc's Device
So, I've been thinking about this problem a lot. Here's how I see it:
1) At least one of the filesystems is [language edit]. It sounds like (at least) the filesystem with the backup kernel. 2) I'm guessing it's the recovery kernel because the device DOES boot. 3) ADB works. 4) Trying to reflash doesn't work because it's trying to boot from the recovery kernel. 5) I've been digging through update.zip and it absolutely does rewrite the whole damn thing, so it shouldn't have any problem fixing any existing software problems if it can get a shot at running. 6) There's options in update.sh that indicate it can be run from the device, something probably like: Quote:
So, you should be update WHILE in the OS, using the procedure that was originally designed for updating. You just need to dig through all the source code to figure out how to properly call it. Last edited by dreams; 11-14-2011 at 01:06 AM. Reason: [language edit] by moderation |
|
10-20-2011, 05:06 AM | #2 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
THIS IS SOLVED NOW VIA SERIAL INTERFACE THANKS TO JIM:
WHAT I HAVE DONE: 1) Set a serial interface, see the hardware post. 2) my nand had bad block so had to repair it: in terminal with serial connection on 1. bbt init nand It will scan the blocks for bad read / writes. 2. bbt mark nand This should mark any bad blocks in the file system. 3) setup a ubuntu machine with hardware serial port and connected it to the serial port on PE 4) Ubuntu procedure in terminal 1. sudo apt-get install xinetd tftpd tftp xinetd 2. Create /etc/xinetd.d/tftp and put this entry: service tftp { protocol = udp port = 69 socket_type = dgram wait = yes user = nobody server = /usr/sbin/in.tftpd server_args = /tftpboot disable = no } 3. Make /tftpboot directory sudo mkdir /tftpboot sudo chmod -R 777 /tftpboot sudo chown -R nobody /tftpboot 4. Start tftpd through xinetd sudo /etc/init.d/xinetd start Extract the update.zip and copy the files ramdisk.maint.gz.crc and ramdisk.android.gz.crc into the /tftpboot folder 5) you need a serial terminal for ubuntu sudo apt-get install screen and than screen /dev/ttyS0 115200 6) now start edge, press enter 2x on starting. than connect the usb cable. you will need to setup the ip for the new server to PE connection to 192.168.2.100 otherwise will not work 5) than restoring the ramdisk to the repaired partition and //Restore regular boot tftp 0x7D00000 ramdisk.android.gz.crc nand erase 0x1200000 0x140000 nand write 0x7D00000 0x1200000 0x100000 //Restore boot_user (PE Restore Mode) tftp 0x7D00000 ramdisk.maint.gz.crc nand erase 0x1300000 0x700000 nand write 0x7D00000 0x1300000 0x6C0000 run boot_user 6) dingo golden hellbent modified with jim update.sh (coming soon here) on usb and updated nicely back to dingo Last edited by vicinc; 11-17-2011 at 10:54 PM. |
Advert | |
|
10-20-2011, 07:21 AM | #3 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
tried ktw run but same results regarding ext2.
running updater user /sdcard/update.zip gives me unexpected number of arguments. tried variations, same. updater help or ? does not give any syntax |
10-20-2011, 10:45 AM | #4 |
Connoisseur
Posts: 51
Karma: 32
Join Date: Sep 2011
Device: pocket edge
|
try this
Code:
mount (big list prints out) umount /mnt/extsdcard update.sh user /dev/mmcblk01p1 |
10-20-2011, 02:08 PM | #5 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
i suppose this is adb not serial recovery?
|
Advert | |
|
10-20-2011, 02:26 PM | #6 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
|
10-20-2011, 06:19 PM | #7 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
mount produces the following results
su # mount mount rootfs / rootfs rw 0 0 /dev/root / ext2 ro,relatime,errors=continue 0 0 tmpfs /dev tmpfs rw,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,mode=600 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 ubi:system /system ubifs ro,relatime 0 0 ubi:userdata /data ubifs rw,nosuid,nodev,relatime 0 0 ubi:cache /cache ubifs rw,nosuid,nodev,relatime 0 0 ubi:storage /intstorage ubifs rw,nosuid,nodev,relatime 0 0 tmpfs /tmp tmpfs rw,relatime,size=16384k 0 0 varrun /var/run tmpfs rw,relatime 0 0 varlock /var/lock tmpfs rw,relatime 0 0 none /proc/bus/usb usbfs rw,relatime 0 0 /dev/block/vold/7:0 /mnt/sdcard vfat rw,nosuid,nodev,noexec,relatime,fmask=0000, dmask=0000,allow_utime=0022,codepage=cp437,iochars et=iso8859-1,shortname=mixed,u tf8,errors=remount-ro 0 0 /dev/block/vold/7:0 /mnt/secure/asec vfat rw,nosuid,nodev,noexec,relatime,fmask= 0000,dmask=0000,allow_utime=0022,codepage=cp437,io charset=iso8859-1,shortname=mi xed,utf8,errors=remount-ro 0 0 tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0 /dev/block/vold/8:1 /mnt/usb0 vfat rw,dirsync,nosuid,nodev,noexec,relatime,uid=1 000,gid=1015,fmask=0702,dmask=0702,allow_utime=002 0,codepage=cp437,iocharset=iso 8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 # umount /mnt/extsdcard produces failed. I do not think it can be unmounted. |
10-20-2011, 06:36 PM | #8 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
the usb device is called /usb0
tried sh update.sh user /dev/usb0 under adb shell # with dingo on usb as update.zip but without a working unmount however this is what I get: # sh update.sh user /dev/usb0 sh update.sh user /dev/usb0 fn=update.zip, dev=/dev/usb0, fs=auto update.sh: cannot create /sys/devices/platform/pxa168-pwm.0/pwm-backlight.0/bac light/pwm-backlight/brightness: directory nonexistent mkdir failed for -p, File exists mkdir failed for -p, File exists mkdir failed for -p, File exists start: Thu Oct 20 22:40:28 GMT 2011 (user) executing update script... removing reboot_cmd from env... update.sh: fw_setenv: permission denied do_mount: do_mount: dev /dev/usb0 dir /srcmnt type auto flags 0x8000 loop 0 do_mount: calling mount: dev /dev/usb0 dir /srcmnt s auto rwflag 0x8000 mount: No such file or directory update.zip does not exist on /dev/usb0 rm failed for -rf, No such file or directory failed. it is trying to do something but reboots in the end. I think the script unmounts the usb0? as update.zip is not found on usb0 ? Last edited by vicinc; 10-20-2011 at 08:10 PM. |
10-20-2011, 08:01 PM | #9 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
Yes, I think we're going to need to write you a special script that doesn't try to reboot into the maintenance kernel, and only overwrites that partition. Then you should be able to flash as usual. Still, this is a very good start, since we now know we can definitely initiate the flashing process from within the normal kernel without the buttons or booting into uboot.
|
10-20-2011, 08:06 PM | #10 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
I am happy if any of my novice futile attempts are of any good. sorry i can not help more.
I will test whatever you need me to. |
10-21-2011, 06:31 PM | #11 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
any more ideas for testing?
|
10-22-2011, 06:47 PM | #12 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
|
10-23-2011, 11:15 AM | #13 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
nikki, i really appreciate your efforts and the community effort to get this device to a standard.
|
10-24-2011, 02:47 PM | #14 | |
Connoisseur
Posts: 51
Karma: 32
Join Date: Sep 2011
Device: pocket edge
|
Quote:
|
|
10-24-2011, 02:53 PM | #15 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
the official "see a device in a café near you" hookup thread | zelda_pinwheel | Which one should I buy? | 259 | 03-08-2013 09:43 AM |
[Old Thread] Slow to 'get list of books on device' for Kindle DX | tklaus | Devices | 4 | 03-10-2011 12:11 PM |
MobileRead Official MobileRead Book Club: Welcome thread/November's book choice thread | PsyDocJoanne | Book Clubs | 151 | 02-08-2009 08:42 PM |