10-09-2011, 04:32 PM | #76 | ||
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
Quote:
Quote:
FYI, "printenv" shows some default IP stuff set. "u2o-eth" gets very few hits on google... This page is #1 now! The env variable "bootargs_nfs" shows ip=192.168.2.101:192.168.2.100::usb0:on" So... you must be able to do tftp over plain old USB. I wonder what the tftp server end looks like? The only tftp servers I know of talk to a real ethernet adapter. Last edited by toyz; 10-09-2011 at 04:34 PM. |
||
10-09-2011, 04:50 PM | #77 | |
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
Apparently I live in the dark ages. It looks like people do tftp over usb on embedded devices quite often.
http://osdir.com/ml/linux.distributi.../msg00023.html http://comments.gmane.org/gmane.linu....embedded/2436 Quote:
Well, the other alternative is seeing if u-boot can see a USB flash as some kind of memory range. Then you could copy X bytes from USB flash to a memory address and boot it. |
|
10-09-2011, 06:01 PM | #78 | ||||
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
(sorry for all the posts, I'm about to call it a day on this)
At the u-boot prompt this is interesting: Quote:
Dump with lots removed, see full dump attached Quote:
For people that are new to u-boot like me: Quote:
Quote:
Last edited by toyz; 10-09-2011 at 06:13 PM. |
||||
10-09-2011, 06:14 PM | #79 |
Guru
Posts: 733
Karma: 443
Join Date: May 2011
Location: UK
Device: Pocket Edgex2(1unborked), Alex, Nook B&W, Nook Color, Nook STR
|
any luck for a full recovery procedure over serial or other means?
|
10-09-2011, 06:43 PM | #80 | |
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
Quote:
- serial to u-boot, tell u-boot to tftp the kernel etc over usb - serial to u-boot, tell it to find a kernel or root/initrd on sdcard or usb flash (there is a boot option env variable to recover from sd) - I read someone was sending their kernel over serial/u-boot with kermit, but on a very different device. It's just a matter of time now in my opinion. Need some help. Once we understand stuff better and have easy recovery, we'll be able to experiment maybe with clockworkmod, homebrew kernels, android stuff... I'd like to get rid of crappy apps in the rom, get android market and friends happy, keep reader/journal capability. |
|
10-09-2011, 06:58 PM | #81 |
Addict
Posts: 285
Karma: 88
Join Date: May 2011
Device: Kobo eReader Wireless
|
Just in case you haven't seen this StarTech.com Compact Black USB 2.0 to 10/100 Mbps Ethernet Network Adapter (USB2106S) works on PE. If your 3Com is based on the same chipset it might work.
|
10-09-2011, 07:09 PM | #82 |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
@toyz, I noticed that after I did the run boot_recover, on that first reboot, pushing the menu/rotate buttons actually displayed output to the terminal indicating the buttons had been pressed. They don't while in the bad flashed firmware. After it does that first boot though, it goes back to the bad firmware, so it doesn't help us too much. I tried doing a flash during that first reboot while the "Pocket Edge" logo displayed, but it didn't take. So the button connections must be wired differently for the regular edge, which explains why those of us with the bad firmware are not able to reflash.
I agree that tftpboot over usb is probably the best option. I don't have the usb-ethernet cable, and have no experience with it, so I'm just sort of fumbling about. I know some folks who might, and have been looking around for an IRC room with people with experience usinb tftpboot with embedded devices. One thing to note - don't attempt to put in a microSD card with a partially disassembled edge (with the cover off the e-Ink screen). Mine fell into the board, so I'm going to have to completely remove the circuit board to get the card out. |
10-09-2011, 07:54 PM | #83 | |
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
Quote:
1. I think by running "boot_recover" we are running the same kernel maybe root/initrd that the tablet normally would when pressing menu+rotate. I think if we pass it the correct boot args (as it would have gotten some how by the menu+rotate method) then it would go through it's re-flash procedure. I think this approach has a lot of promise. I will have to tear apart my good PE and see if I can watch bootargs based on the key presses you mentioned. (tomorrow) 2. At first I thought you must have a usb-ethernet adapter, but I'm not so sure now. Check out sections "Smart USB Peripherals ("Gadgets")" and "Most Linux PDAs: iPaq, Yopy, ..." here: http://www.linux-usb.org/usbnet/ From a practical point of view, I think u-boot would have to have more effort to have a driver stack usb+nic+tcpip than it would usb+clevertcpip hack. |
|
10-09-2011, 09:35 PM | #84 | ||
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
Verified, we can tftp without a usb-ethernet adapter dongle. ptsentor, yay, we don't have to buy more hardware.
It turns out the PE and a lot of other devices have a CDC usb ethernet hardware in them. An example of this is the old cable modem, you can connect to a cable modem with USB, your cable modem acts like a usb ethernet nic into itself. nikkie, try this: Connect up your serial console cable. Plug a mini-usb cable from your computer into the PE. Boot PE, and "break" quickly with your terminal program as usual (at this point, in my linux box's messages I see that it sees a usb disk, but no partitions) Then type, "tftpboot" Quote:
Quote:
Almost there.......!!! I'm sure I could tftp boot a kernel at this point, but I'm already booting the recovery kernel it seems on the device, so tftp in itself is not helping me. I need the recovery root/initrd accessible to go through the reflash motions. Last edited by toyz; 10-09-2011 at 09:57 PM. |
||
10-10-2011, 04:53 AM | #85 | |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
Well, the environment variables suggest that you could also do it over nfs, which would be considerably more convenient than setting up a tftpboot server.
In any case, it looks like we will very soon be needing an image to actually drop on here. Can you make one from your good PE using BusyBox? We could probably drop the files via nfs or kermit if you've got an image ready. It's interesting - they clearly put a fair bit of effort into making it easy for *them* to fix broken edge software, but then failed to make it easy for anyone else to do so. The below variables suggest that they have a recovery SD image which can be used to do maintenance, as well as a tftpboot server and nfs file system set up for copying shit. If any of the real Edge devs are lurking here in the forums, you could toss us a bone and send us your maintenance image. Quote:
|
|
10-10-2011, 08:18 AM | #86 |
Gadget Freak
Posts: 1,169
Karma: 1043832
Join Date: Nov 2007
Location: US
Device: EE, Note 8
|
A quick note of appreciation to 'all' in this thread for your investigative work. It is this type of pro-activeness that makes a community "a community". Though I do not have any of the problems recently discussed, having this outstanding research documented benefits all!
Last edited by Gunnerp245; 10-10-2011 at 01:00 PM. |
10-10-2011, 05:58 PM | #87 | ||
Member
Posts: 23
Karma: 10
Join Date: Sep 2011
Location: Idaho USA
Device: Pocket Edge
|
Quote:
Nikkie try, Quote:
Last edited by toyz; 10-10-2011 at 09:04 PM. |
||
10-11-2011, 12:19 AM | #88 | |
Guru
Posts: 614
Karma: 73700
Join Date: Oct 2009
Location: WA, USA
Device: Android, Kindle Paperwhite, lots of ancient readers
|
IT'S ALIVE!!!!!!!!!!!!!!!!!!!
*dances a jig* Okay, So...toyz, I'm guessing you didn't watch while the flashing procedure was attempting to commence. In mine, the log indicated that there was a version mismatch since I was trying to flash a device that currently identified itself as an edge with the edgejr image. So, I downloaded the version of the firmware (Dingo) for the Pocket Edge that has the version commented out, slapped that on the usb drive, and ran run boot_user. It took, and my device was then working. Next, I updated to Ermine, and it took fine. So, sweet. *dances another jig* For those interested, here's what's necessary: Either 1) a motherboard with serial support or 2) a USB to Serial cable such as this one And 3) a Serial cord that you don't mind chopping the end off. We used a $6 cable from vetco. 4) 3 bricks worth of header from sparkfun To make the cable - chop the male end of the db9 cable (the one that doesn't fit into the usb to serial cable), and solder it to the header per the pin diagrams shown in the pics linked below, which for us was Red Brown Yellow - if you bought the same cables I did - otherwise you need a multimeter or some such to figure it out. Then for Windows 7, download Termite. Get your keyboard ready, and as soon as you've hit the boot button, start typing keys until the uboot prompt comes up. Use the settings in Envos post, except the parity bit should be NONE instead of odd. Then in Termite, type Quote:
Pics of the process and cabling are available here on flickr. Gotchas: I couldn't get the serial usb dongle to work on OSX Lion, which is why I ended up doing it in Windows. You might find differently. Last edited by nikkie; 10-11-2011 at 01:01 AM. |
|
10-11-2011, 06:24 AM | #89 |
Guru
Posts: 858
Karma: 1027478
Join Date: Aug 2010
Location: South of France
Device: kindle dx; eDGe
|
Congratulations nikkie!!
Now I think we should somehow collect together all the various firmwares and CLEARLY list them for what device they are for. |
10-11-2011, 07:48 AM | #90 |
Groupie
Posts: 198
Karma: 1118
Join Date: Jul 2011
Device: Pocket Edge
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Kindle DX-G serial console | ebs | Kindle Developer's Corner | 53 | 12-03-2018 12:04 PM |
PRS-600 Serial console (i.e. shell) over USB | Xaphiosis | Sony Reader Dev Corner | 6 | 08-22-2010 11:06 PM |
serial console goes to sleep - gated clock | darron | Kindle Developer's Corner | 2 | 12-19-2009 08:52 PM |
Serial console | BlackRat | iRex | 3 | 02-19-2007 04:35 AM |