|
|
 |
« on: November 16, 2010, 05:02:30 AM » |
|
After adding a bunch of junk to my new SheevaPlug, I decided to restore it back to factory default. Easier said then done!!!  Following instructions on the Internet , I managed to Brick it. Got the uboot with the garbage screen. So bringing it back from the brick, I used a VMware virtual Windows XP machine and VMware Workstation to make a video of how I got it back. After I figured it out I decided, with some trial and error, to upgrade it to Kernel 2.6.36 & Ubuntu 9.0.4 at the same time. The video is on YouTube: http://www.youtube.com/watch?v=MlgQAOExZS4and here are the Instructions:
1. Go to http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer In the Alpha 6 section, click on "get tarball here" should send you to http://www.plugcomputer.org/index.php/us/resources/downloads?func=fileinfo&id=53 Get the SheevaPlug Installer
2. Go to http://www.plugcomputer.org/plugforum/index.php?topic=1134.30 Get u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01, it's a link about half way down the page: http://plugcomputer.org/plugforum/index.php?action=dlattach;topic=1134.0;attach=201
3. Go to http://www.plugcomputer.org/plugwiki/index.php/Serial_terminal_program Click on link: SheevaPlug_Host_SWsupportPackageWindowsHost1.2.zip
4. Go to http://sourceforge.net/projects/libusb-win32/files/ Click on link: libusb-win32-bin-1.2.2.0.zip
5. Go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Get PuTTY installer if you don't already use PuTTY
6. Go to http://www.plugcomputer.org/plugwiki/index.php/Install_Prebuilt_Kernels_From_sheeva.with-linux.com Click on link: sheeva.with-linux.com, which takes you to: http://sheeva.with-linux.com/sheeva/ Click on link 2.6.36 Click on link: sheeva-2.6.36-Modules.tar.gz Click on link: sheeva-2.6.36-uImage Right click on sheeva-2.6.36-System.map and do "save link as"
7. Unzip libusb-win32-bin-1.2.2.0.zip, save to Sheevaplug directory. Unzip SheevaPlug_Host_SWsupportPackageWindowsHost1.2.zip, drill down to CDM 2.04.16_SHEEVA, save to Sheevaplug directory. Untar sheevaplug-installer-v1.0.tar.gz, drill down into sheevaplug-installer, save sheevaplug-installer-v1.0 to Sheevaplug directory
8. Open sheevaplug-installer directory, open another explore window where all files were downloaded Move sheeva-2.6.36-Modules.tar.gz, sheeva-2.6.36-uImage, sheeva-2.6.36-System.maps & u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 to the Installer directory
9. Delete modules.tar.gz, rename sheeva-2.6.36-Modules.tar.gz to modules.tar.gz
10. Delete uImage, rename sheeva-2.6.36-uImage to uImage
11. Right click on u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 and Cut Go to uboot directory, right click and Paste delete uboot.bin, rename u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 to uboot.bin.
12. Install PuTTY
13. Edit the 3 text files in the uboot-env directory, change the ethaddr entry in each to the MAC address from the sticker on the bottom of the SheevaPlug
14. Insert USB Stick, copy the files in the installer directory: modules.tar.gz, initrd, rootfs.tar.gz, uImage, modules,tar.gz & sheeva-2.6.36-System.map to the USB Stick, Eject the USB Stick and put into the SheevaPlug.
15. Install the FTDI drivers: This step took longer to figure out, then all the other steps, so that I could use the CMD to upgrade the uboot and connect to the Serial port, I mean it was like a day or two  Open "Device Manager". Plug USB Serial cable from SheevaPlug to the computer. Hardware will be found. Open the libusb-win32-bin-1.2.2.0\bin\ directory. Run INF-Wizard. Choose the device with "interface 0" in the description. Install driver. Right click on "SheevaPlug JTAGKey FT2332D B" in the Device Manager. Update driver, Point it to the CDM 2.04.16_SHEEVA directory. Right click on "USB Serial Port" in Device Manager, Update driver, Point it to the CDM 2.04.16_SHEEVA directory.
16. Right click on "COM & LPT" in the Device Manager, Note the number of the new Com port.
17. Open Putty, Click on Serial at the bottom of Left pane. Change number of COM to new Com port number change Speed to 115200, Flow control to None. Click on Session, select Serial Option. change Serial line to new Com port, Put a name in the Saved Sessions, click Save, click open.
18. Open a CMD window and CD to the sheevaplug-installer\installer\ directory. Enter "runme nand", you should see the new uboot being installed. after it's installed you should see the SheevaPlug being upgraded in the PuTTY window.
19. Login into the SheevaPlug, root password is the default "nosoup4u" mount the USB Stick, Enter: mkdir /boot; cp sheeva-2.6.36-System.map /boot/,; depmod -eF /boot/sheeva-2.6.36-System.map 2.6.36
20. Your SheevaPlug should be back from the Dead My next project is to make a Linux VM, Yeah!! no licensing problemsand/or a Live CD with everything installed and ready to go. Should just need to load the USB Stick and unbrick. Hope this helps, BigBear59
|
|
|
|
« Last Edit: November 16, 2010, 09:00:15 AM by bigbear59 »
|
Logged
|
Give me a fish, I eat for a day. Teach me to fish, I eat for a lifetime. "Do you have any spades?"
|
|
|
|
|
|
 |
« Reply #1 on: November 18, 2010, 09:09:36 AM » |
|
Has anybody tried these instructions? Did it work for you?
Thanks, BigBear59
|
|
|
|
|
Logged
|
Give me a fish, I eat for a day. Teach me to fish, I eat for a lifetime. "Do you have any spades?"
|
|
|
|
|
|
 |
« Reply #2 on: November 18, 2010, 06:54:50 PM » |
|
It worked for me the first time around. I had been pulling my hair out trying to get openocd to correctly connect to my plug. I had tried everything you had in this post except step 15. This was the first time anyone said anything different than "download and install the drivers". After I did step 15, everything just seemed to fall into place. Now I just have to do it two more times (re-screwed up the plug I had been working on (bad uboot.bin) and I have another bricked plug). After the initial "resurrection" I'm still occasionally getting: Info : clock speed 2000 kHz Info : JTAG tap: feroceon.cpu tap/device found: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf) Warn : JTAG tap: feroceon.cpu UNEXPECTED: 0xfc0000e3 (mfg: 0x071, part: 0xc000, ver: 0xf) Error: JTAG tap: feroceon.cpu expected 1 of 1: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2) Warn : Unexpected idcode after end of chain: 32 0x00000007 Warn : Unexpected idcode after end of chain: 64 0x0000007f Warn : Unexpected idcode after end of chain: 96 0x0000007f Warn : Unexpected idcode after end of chain: 128 0x0000007f Warn : Unexpected idcode after end of chain: 160 0x0000007f Warn : Unexpected idcode after end of chain: 192 0x0000007f Warn : Unexpected idcode after end of chain: 224 0x0000007f Warn : Unexpected idcode after end of chain: 256 0x0000007f Warn : Unexpected idcode after end of chain: 288 0x0000007f Warn : Unexpected idcode after end of chain: 320 0x0000007f Warn : Unexpected idcode after end of chain: 352 0x0000007f Warn : Unexpected idcode after end of chain: 384 0x0000007f Warn : Unexpected idcode after end of chain: 416 0x0000007f Warn : Unexpected idcode after end of chain: 448 0x0000007f Warn : Unexpected idcode after end of chain: 480 0x0000007f Warn : Unexpected idcode after end of chain: 512 0x0000007f Warn : Unexpected idcode after end of chain: 544 0x0000007f Warn : Unexpected idcode after end of chain: 576 0x0000007f Warn : Unexpected idcode after end of chain: 608 0x0000007f Error: double-check your JTAG setup (interface, speed, missing TAPs, ...) Error: Trying to use configured scan chain anyway... Warn : Bypassing JTAG setup events due to errors Info : Embedded ICE version 0 Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit Error: unexpected Feroceon EICE version signature
but I'm going to keep at it. I got it once (with help from your post) and I'll get it again!  Thanks
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #3 on: November 18, 2010, 07:21:38 PM » |
|
Remember all the advise on the Internet is free and some of it is worth less than that.  Like I said getting the Serial port and the openocd to connect at the same time was a bear. I would get it working but after trying a million things it took me forever to figure out which one of the million fixed it. From some post I read on slowing things down, So I messed around with: # # Marvel SheevaPlug Development Kit # # http://www.marvell.com/products/embedded_processors/developer/kirkwood/sheevaplug.jsp# interface ft2232 ft2232_layout sheevaplug ft2232_vid_pid 0x9e88 0x9e8f ft2232_device_desc "SheevaPlug JTAGKey FT2232D B" jtag_khz 2000in \sheevaplug-installer-v1.0\uboot\openocd\config\interface\sheevaplug.cfg"jtag_khz represent the speed openocd communicate with your microcontroller" from http://forum.sparkfun.com/viewtopic.php?p=57181&sid=782151095866e5215fed113b29de30eeand ###################################### # Target: Marvell Feroceon CPU core ###################################### if { [info exists CHIPNAME] } { set _CHIPNAME $CHIPNAME } else { set _CHIPNAME feroceon } if { [info exists ENDIAN] } { set _ENDIAN $ENDIAN } else { set _ENDIAN little } if { [info exists CPUTAPID ] } { set _CPUTAPID $CPUTAPID } else { set _CPUTAPID 0x20a023d3 } jtag newtap $_CHIPNAME cpu -irlen 4 -ircapture 0x1 -irmask 0xf -expected-id $_CPUTAPID set _TARGETNAME [format "%s.cpu" $_CHIPNAME] target create $_TARGETNAME feroceon -endian $_ENDIAN -chain-position $_TARGETNAME reset_config trst_and_srst jtag_nsrst_delay 1000jtag_ntrst_delay 1000in sheevaplug-installer-v1.0\uboot\openocd\config\target\feroceon.cfg10.1 jtag_nsrst_delay <ms>
How long (in milliseconds) OpenOCD should wait after deasserting nSRST before starting new JTAG operations. from http://www.amontec.com/openocd/doc/Reset-Configuration.htmlGood Luck, BigBear59
|
|
|
|
|
Logged
|
Give me a fish, I eat for a day. Teach me to fish, I eat for a lifetime. "Do you have any spades?"
|
|
|
|
|
|
 |
« Reply #4 on: November 20, 2010, 01:04:43 AM » |
|
Gonna try this out too. But the main problem is that I can't even connect to it via serial. I mean Windows XP, Ubuntu or Windows Vista doesn't even detect that I connected a USB device
|
|
|
|
|
Logged
|
|
|
|
|
|
|
 |
« Reply #5 on: December 05, 2011, 04:19:40 PM » |
|
ADDED step so OPENOCD will work with WINDOWS 7 and not get: Open On-Chip Debugger 0.2.0 (2009-07-27-16:41) Release $URL: http://svn.berlios.de/svnroot/repos/openocd/tags/openocd-0.2.0/src/openocd.c $ For bug reports, read http://svn.berlios.de/svnroot/repos/openocd/trunk/BUGS 2000 kHz jtag_nsrst_delay: 200 jtag_ntrst_delay: 200 dcc downloads are enabled 2 [main] openocd 3404 _cygtls::handle_exceptions: Exception: STATUS_ACCESS_VIOLATION 1560 [main] openocd 3404 open_stackdumpfile: Dumping stack trace to openocd.exe.stackdump **** openocd FAILED **** Is the mini USB cable connected? **** Try powering down, then replugging the Sheevaplug 1. Go to http://www.plugcomputer.org/plugwiki/index.php/SheevaPlug_Installer In the Alpha 6 section, click on "get tarball here" should send you to http://www.plugcomputer.org/index.php/us/resources/downloads?func=fileinfo&id=53 Get the SheevaPlug Installer
2. Go to http://www.plugcomputer.org/plugforum/index.php?topic=1134.30 Get u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01, it's a link about half way down the page: http://plugcomputer.org/plugforum/index.php?action=dlattach;topic=1134.0;attach=201
3. Go to http://www.plugcomputer.org/plugwiki/index.php/Serial_terminal_program Click on link: SheevaPlug_Host_SWsupportPackageWindowsHost1.2.zip
4. Go to http://sourceforge.net/projects/libusb-win32/files/ Click on link: libusb-win32-bin-1.2.5.0.zip
5. Go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Get PuTTY installer if you don't already use PuTTY
6. Go to http://www.plugcomputer.org/plugwiki/index.php/Install_Prebuilt_Kernels_From_sheeva.with-linux.com Click on link: sheeva.with-linux.com, which takes you to: http://sheeva.with-linux.com/sheeva/ Click on link 3.1.14 Click on link: sheeva-3.1.14-Modules.tar.gz Click on link: sheeva-3.1.14-uImage Right click on sheeva-3.1.14-System.map and do "save link as"
7. Unzip libusb-win32-bin-1.2.5.0.zip, save to Sheevaplug directory. Unzip SheevaPlug_Host_SWsupportPackageWindowsHost1.2.zip, drill down to CDM 2.04.16_SHEEVA, save to Sheevaplug directory. Untar sheevaplug-installer-v1.0.tar.gz, drill down into sheevaplug-installer, save sheevaplug-installer-v1.0 to Sheevaplug directory
8. Open sheevaplug-installer directory, open another explore window where all files were downloaded Move sheeva-3.1.14-Modules.tar.gz, sheeva-3.1.14-uImage, sheeva-3.1.14-System.maps & u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 to the Installer directory
9. Delete modules.tar.gz, rename sheeva-3.1.14-Modules.tar.gz to modules.tar.gz
10. Delete uImage, rename sheeva-3.1.14-uImage to uImage
11. Right click on u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 and right click and Cut Go to uboot directory, right click and Paste delete uboot.bin, rename u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 to uboot.bin.
12. Install PuTTY
13. Edit the 3 text files in the uboot-env directory, change the ethaddr entry in each to the MAC address from the sticker on the bottom of the SheevaPlug
14. Insert USB Stick, copy the files in the installer directory: modules.tar.gz, initrd, rootfs.tar.gz, uImage & sheeva-3.1.14-System.map to the USB Stick, Eject the USB Stick and put into the SheevaPlug.
15. Install the FTDI drivers: This step took longer to figure out, then all the other steps, so that I could use the CMD to upgrade the uboot and connect to the Serial port, I mean it was like a day or two  Open "Device Manager". Plug USB Serial cable from SheevaPlug to the computer. Hardware will be found. Open the libusb-win32-bin-1.2.5.0\bin\ directory. Run INF-Wizard. Choose the device with "interface 0" in the description. Install driver. Right click on "SheevaPlug JTAGKey FT2332D B" in the Device Manager. Update driver, Point it to the CDM 2.04.16_SHEEVA directory. Right click on "USB Serial Port" in Device Manager, Update driver, Point it to the CDM 2.04.16_SHEEVA directory.
16. Right click on "COM & LPT" in the Device Manager, Note the number of the new Com port.
17. Open Putty, Click on Serial at the bottom of Left pane. Change number of COM to new Com port number change Speed to 115200, Flow control to None. Click on Session, select Serial Option. change Serial line to new Com port, Put a name in the Saved Sessions, click Save, click open.
ADDITION FOR WINDOWS 7 Go to sheevaplug-installer directory, cd to \uboot\openocd\ Download http://nil.rpc1.org/files/sheeva/OpenOCD-Win64.zip drill down into the zip file to \0.3.0-dev\bin\ replace OPENOCD in the installer directory with the 64BIT version from this zip archive
18. Open a CMD window and CD to the sheevaplug-installer\ directory. Enter "runme nand", you should see the new uboot being installed. after it's installed you should see the SheevaPlug being upgraded in the PuTTY window.
19. Login into the SheevaPlug, root password is the default "nosoup4u" mount the USB Stick, Enter: mkdir /boot; cp sheeva-3.1.14-System.map /boot/ depmod -eF /boot/sheeva-3.1.14-System.map 3.1.14
20. Your SheevaPlug should be back from the Dead
|
|
|
|
|
Logged
|
Give me a fish, I eat for a day. Teach me to fish, I eat for a lifetime. "Do you have any spades?"
|
|
|
|
|
|
 |
« Reply #6 on: December 13, 2012, 04:04:29 PM » |
|
I see that this message is still being refereed to & looked at, I've been busy with my Dream & D2. Today, I pulled out an old Sheevaplug that use to boot off of a SD card that must have been re-purposed for something else. So I came back here to get it up and running, but I found a lot of the links are dead, so I have updated with LIVE links. 1. Go to http://www.plugcomputer.org/downloads/plug-basic/ In the Tools / Drivers section, click on "Sheeva Plug Installer" to get the SheevaPlug Installer http://www.plugcomputer.org/405/us/plug-basic/tools/sheevaplug-installer-v1.0.tar.gz 2. Go to http://www.plugcomputer.org/plugforum/index.php?topic=1134.30 Get u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01, it's a link about half way down the page: http://plugcomputer.org/plugforum/index.php?action=dlattach;topic=1134.0;attach=201
3. Go to http://www.plugcomputer.org/downloads/plug-basic/ In the Plug Computer Software & Design Info v1.2 section, click on "Plug SW Support Package Windows Host" to get Plug_Host_SWsupportPackageWindowsHost1.2.zip
4. Go to http://sourceforge.net/projects/libusb-win32/files/ Click on link: Download libusb-win32-bin-1.2.6.0.zip (913.2 kB)
5. Go to http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html Get PuTTY installer if you don't already use PuTTY
6. Go to http://www.xilka.com/sheeva/ Click on links: 3/ --> 3.6/ --> 3.6.10/ --> release/ --> 1/, which takes you to: http://www.xilka.com/sheeva/kernel/3/3.6/3.6.10/release/1/ Click on link: sheeva-3.6.10-Modules.tar.gz Click on link: sheeva-3.6.10-uImage Right click on sheeva-3.6.10-System.map and do "save link as"
7. Unzip libusb-win32-bin-1.2.6.0.zip, save to Sheevaplug directory. Unzip SheevaPlug_Host_SWsupportPackageWindowsHost1.2.zip, drill down to CDM 2.04.16_SHEEVA, save to Sheevaplug directory. Untar sheevaplug-installer-v1.0.tar.gz, drill down into sheevaplug-installer, save sheevaplug-installer-v1.0 to Sheevaplug directory
8. Open sheevaplug-installer directory, open another explore window where all files were downloaded Move sheeva-3.6.10-Modules.tar.gz, sheeva-3.6.10-uImage, sheeva-3.6.10-System.maps & u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 to the Installer directory
9. Delete modules.tar.gz, rename sheeva-3.6.10-Modules.tar.gz to modules.tar.gz
10. Delete uImage, rename sheeva-3.6.10-uImage to uImage
11. Right click on u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 and right click and Cut Go 1 directory up and into the uboot directory, right click and Paste delete uboot.bin, rename u-boot-rd88f6281Sheevaplug_400db_nand.bin-pingtoo-patch.01 to uboot.bin.
12. Install PuTTY
13. Edit the 3 text files in the uboot-env directory, change the ethaddr entry in each to the MAC address from the sticker on the bottom of the SheevaPlug
14. Insert USB Stick, copy the files in the installer directory: modules.tar.gz, initrd, rootfs.tar.gz, uImage & sheeva-3.6.10-System.map to the USB Stick, Eject the USB Stick and put into the SheevaPlug.
15. Install the FTDI drivers: This step took longer to figure out, then all the other steps, so that I could use the CMD to upgrade the uboot and connect to the Serial port, I mean it was like a day or two  Open "Device Manager". Plug USB Serial cable from SheevaPlug to the computer. Hardware will be found. Open the libusb-win32-bin-1.2.6.0\bin\ directory. Run INF-Wizard. Choose the device with "interface 0" in the description. Install driver. Right click on "SheevaPlug JTAGKey FT2332D B" in the Device Manager. Update driver, Point it to the CDM 2.04.16_SHEEVA directory. Right click on "USB Serial Port" in Device Manager, Update driver, Point it to the CDM 2.04.16_SHEEVA directory.
16. Right click on "COM & LPT" in the Device Manager, Note the number of the new Com port.
17. Open Putty, Click on Serial at the bottom of Left pane. Change number of COM to new Com port number change Speed to 115200, Flow control to None. Click on Session, select Serial Option. change Serial line to new Com port, Put a name in the Saved Sessions, click Save, click open.
ADDITION FOR WINDOWS 7 Go to sheevaplug-installer directory, cd to \uboot\openocd\ Download http://nil.rpc1.org/files/sheeva/OpenOCD-Win64.zip drill down into the zip file to \0.3.0-dev\bin\ replace OPENOCD in the installer directory with the 64BIT version from this zip archive
18. Open a CMD window and CD to the sheevaplug-installer\ directory. Enter "runme nand", you should see the new uboot being installed. after it's installed you should see the SheevaPlug being upgraded in the PuTTY window.
In case you your uboot isn't hosed but not set to boot off this USB, cut and paste the following then reset setenv bootargs_root 'ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs' setenv mtdpartitions 'mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)' setenv ethaddr 00:50:43:02:b2:ce setenv real_bootcmd 'setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000' setenv bootargs_console 'console=ttyS0,115200' setenv bootcmd 'run recover1' setenv recover1 'setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2a; saveenv; reset' setenv recover2a 'run recover3; setenv bootcmd $(real_bootcmd); saveenv; run recover2b' setenv recover2b 'setenv bootargs $(bootargs_console) $(mtdpartitions) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand; bootm 0x00800000 0x01100000' setenv recover3 'run recover4; nand erase clean 0x00100000 0x00400000; nand write.e 0x00800000 0x00100000 0x00400000' setenv recover4 'usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd' savenv
19. Login into the SheevaPlug, root password is the default "nosoup4u" mount the USB Stick, Enter: mkdir /boot; cp sheeva-3.6.10-System.map /boot/ depmod -eF /boot/sheeva-3.6.10-System.map 3.6.10
20. Your SheevaPlug should be back from the Dead
Good Luck, BigBear59
|
|
|
|
|
Logged
|
Give me a fish, I eat for a day. Teach me to fish, I eat for a lifetime. "Do you have any spades?"
|
|
|
|
|