• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: Recover after u-boot erase  (Read 4762 times)
ella
Newbie
*

Karma: 0
Posts: 9


View Profile
« on: January 25, 2012, 12:01:15 PM »

How to recover u-boot?

After doing following I've lost the SheevaPlug. What can be done?

TFTP from server 192.168.1.100; our IP address is 192.168.1.110
Filename 'u-boot.kwb'.
Load address: 0x8000000
Loading: #################################################################
         ########
done
Bytes transferred = 372512 (5af20 hex)
Marvell>> nand erase 0x0 0xa0000

NAND erase: device 0 offset 0x0, size 0xa0000
Erasing at 0x80000 -- 100% complete.
OK
Marvell>> nand write 0x0800000 0x0 0xa0000

NAND write: device 0 offset 0x0, size 0xa0000
 655360 bytes written: OK
Marvell>> reset

NOTHING
Logged

pacolm
Full Member
***

Karma: 1
Posts: 102


View Profile
« Reply #1 on: January 25, 2012, 12:24:31 PM »

Hi,

 Here's the method I use for my guruplug, change the addresses if needed, but I believe they are the same (?):
Code:
#change uboot
tftp 0x6400000 u-boot.3.4.27.bin
nand erase 0x0 0x100000
nand write.e 0x6400000 0x0 0x100000

 And here you have the needed file -> http://dl.dropbox.com/u/14178571/u-boot.3.4.27.bin. Copy it to your tftp server directory (in ubuntu /var/lib/tftpboot)

 Hope it helps,
 
 PacoLM
Logged

spinifex
Full Member
***

Karma: 8
Posts: 167



View Profile WWW
« Reply #2 on: January 25, 2012, 06:11:15 PM »

http://plugcomputer.org/plugwiki/index.php/Flashing_an_Operating_System_onto_the_Plug
http://www.plugcomputer.org/405/us/plug-basic/tools/sheevaplug-installer-v1.0.tar.gz

The sheevaplug installer should solve all you problems.
Logged

punaniac
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #3 on: January 26, 2012, 03:36:31 AM »

How to recover u-boot?

After doing following I've lost the SheevaPlug. What can be done?

...
Marvell>> reset

NOTHING


The OP obviously has no access to the u-boot command line any more. So it's impossible to recover the Sheevaplug using the posted answers.
But this should help: http://plugcomputer.org/plugwiki/index.php/Setting_Up_OpenOCD_Under_Linux#Example_2:_Reflashing_a_Bricked_U-Boot_.28Method_1.29

Follow the wiki article to setup OpenOCD before using described method 1 or 2 to reflash u-boot. u-boot images can be obtained at http://www.downloadsnewit.co.uk/CD-images/Sheeva_CD or http://www.plugcomputer.org/index.php/us/resources/downloads?func=select&id=6.

good luck!
Logged

ella
Newbie
*

Karma: 0
Posts: 9


View Profile
« Reply #4 on: January 28, 2012, 12:18:56 AM »

HI,
I have recovered with SheevaPlug Installer.
I was able to run it only under my Linux because FTDI driver for Windows did not work.

But I have to say that support level and code quality from Globalscale (or Marvell not sure who did it) is under any expectations.
- There is no documentation.
- I had to fix PHP script
- In README no mention about requirements to preinstall libusb-0.1 and ftdilib. I had to do it before I was able to reflash bootloader with JTAG via USB.
- On Windows drivers set is not working. I've seen thread where people managed to run I, I could not and has passed to Linux.
 
Logged

spinifex
Full Member
***

Karma: 8
Posts: 167



View Profile WWW
« Reply #5 on: January 28, 2012, 03:34:17 AM »

Good to hear its working.
There is documentation, its just hard to find and then you forget where it was.
Avoiding Windows is good, I have flashed once or twice from Windows, but it's hard to reproduce.
Windoze/Putty for a console is OK.
Logged

brettski
Newbie
*

Karma: 0
Posts: 1


View Profile
« Reply #6 on: May 07, 2012, 05:47:29 PM »

I have the same problem, caused by flashing the wrongly named uboot image from USB drive. Saw the loading happen then no console, and no blue light. (Oh how i miss the blue light Cry)

I won't take up space here, a complete description is on plugpbx.org at: http://forums.plugpbx.org/index.php/topic,298.0.html

I've tried with Windows 7 and then with Ubuntu 11.10, but running the script (runme.exe or runme.php) to reflash, gives an error:

brett@eeeBox:~/sheevaplug-installer-v1.0/uboot/openocd/config$ openocd -f sheevaplug.cfg -c init -c sheevaplug_reflash_uboot -c exit
Open On-Chip Debugger 0.5.0 (2011-08-26-10:27)
Licensed under GNU GPL v2
For bug reports, read
   http://openocd.berlios.de/doc/doxygen/bugs.html
Info : only one transport option; autoselect 'jtag'
2000 kHz
trst_and_srst separate srst_gates_jtag trst_push_pull srst_open_drain
adapter_nsrst_delay: 200
jtag_ntrst_delay: 200
dcc downloads are enabled
Warn : use 'feroceon.cpu' as target identifier, not '0'
sheevaplug_load_uboot
Info : clock speed 2000 kHz
Info : JTAG tap: feroceon.cpu tap/device found: 0x20a023d3 (mfg: 0x1e9, part: 0x0a02, ver: 0x2)
Info : Embedded ICE version 0
Info : feroceon.cpu: hardware has 1 breakpoint/watchpoint unit
target state: halted
target halted in ARM state due to debug-request, current mode: Supervisor
cpsr: 0x000000d3 pc: 0xffff0000
MMU: disabled, D-Cache: disabled, I-Cache: disabled
  feroceon.cpu mww address data [count]
mww ['phys'] address value [count]
Runtime Error: sheevaplug.cfg:34:
in procedure 'sheevaplug_reflash_uboot'
in procedure 'sheevaplug_init' called at file "sheevaplug.cfg", line 106
in procedure 'mww' called at file "sheevaplug.cfg", line 34

Any ideas on what might be up with the sheevaplug.cfg file?
Logged

mabuhay
Newbie
*

Karma: 0
Posts: 22


View Profile WWW
« Reply #7 on: May 18, 2012, 06:42:37 AM »

Hi

Could you post the "sheevaplug.cfg" file? I don't know much about it, but maybe there is a hint when seeing the corresponding lines

mfg
Logged

My low-power homeserver with the GuruPlug Server Plus: www.myownhomeserver.ch

Pages: [1]
Print
Jump to: