New IT forum Follow us on Twitter
04 February 2012, 03:58:09 pm *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: EFIKA MX now in stock!
 
   Home   SHOP Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Recover NAND Flash  (Read 1264 times)
yustas
Newbie
*
Posts: 6


« on: 21 July 2010, 10:47:36 pm »

Hello friends,
I am stuck trying recover nand flash in my SheevaPlug UBIFS.
After rcvr command finally i see the next lines:
Code:
...

72011776 bytes read
Update bootcmd
Erasing Nand...Writing to Nand... done

bootcmd: setenv bootargs $(console) root=/dev/ram0 rootfstype=squashfs initrd=0x2200000,0x41ad000 ramdisk_size=67252 recovery=usb serverip=0.0.0.0  ethact=$(ethact) ethaddr=00:50:43:01:df:12 eth1addr=<NULL>; bootm 0x2000000;
Booting the image (@ 0x2000000)...
## Booting image at 02000000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-03-30  15:30:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2148292 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

and nothing happens after this.

What I did before:
1. I've upgraded U-Boot via tftp from my local Linux machine:
U-boot binary: http://www.newit.co.uk/u-boot/uboot-3.4.19.bin

Code:
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: SHEEVA PLUG LE

U-Boot 1.1.4 (Sep 14 2009 - 15:36:37) Marvell version: 3.4.19

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM CS[1] base 0x10000000   size 256MB
DRAM Total size 512MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:512 MB
Flash:  0 kB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Marvell>>

2. All u-boot environment variables for UBIFS were changed to defaults. Variables values I got here:
https://www.newit.co.uk/forum/index.php/topic,135.0.html

Code:
Marvell>> printenv
run_diag=yes
baudrate=115200
loads_echo=0
ipaddr=192.168.1.131
serverip=192.168.1.102
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
e=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1ff00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
autoload=no
ethact=egiga0
bootargs_root=ubi.mtd=1 root=ubi0:rootfs rootfstype=ubifs
mtdpartitions=mtdparts=orion_nand:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs)
ethaddr=00:50:43:01:df:12
real_bootcmd=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
bootargs_console=console=ttyS0,115200
recover1=setenv mainlineLinux yes; setenv arcNumber 2097; setenv bootcmd run recover2; saveenv; reset
recover4=usb start; fatload usb 0 0x00800000 uImage; fatload usb 0 0x01100000 initrd
arcNumber=2097
disL2P=refetch yes
loadaddr=0x2000000
mtd1Size=0x300000
e=ttyS0,115200 mtdparts=nand_mtd:0x100000@0(uboot)ro,0x300000@0x100000(uImage),0x1fc00000@0x400000(rootfs)rw
recover2=run recover3;setenv bootcmd $(real_bootcmd);saveenv;setenv bootargs $(bootargs_console) $(mtdpartitions) root=/dev/ram0 rw ramdisk=0x01100000,8M install_type=nand;bootm 0x00800000 0x01100000
recover3=run recover4; nand erase clean 0x00100000 0x00400000; nand write.e 0x00800000 0x00100000 0x00400000
filesize=44AD000
bootcmd=setenv bootargs $(console) rootfstype=squashfs root=/dev/mtdblock2 $(mvNetConfig) $(mvPhoneConfig; nand read.e $(loadaddr) 0x100000 0x200000; bootm $(loadaddr);
console=a0000
e=ttyS0,115200
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=a0000
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

Environment size: 2267/131068 bytes
Marvell>>

3. I've prepared flash stick with ext3 filesystem and all required files:
flashware.img
uImage.sheeva.040309
ubuntu-9.0.5.Release.jffs2

and tried to run rcvr, but system still not recovered.
Help me please to solve this problem.
Thank you.
Logged
darek
Jr. Member
**
Posts: 58


« Reply #1 on: 22 July 2010, 06:30:06 am »

http://plugcomputer.org/plugwiki/index.php/Reflashing_images_on_the_GuruPlug
Logged
yustas
Newbie
*
Posts: 6


« Reply #2 on: 22 July 2010, 07:27:37 am »

Thanks darek,
Actually I'm not sure... is this GuruPlug steps is appropriate for SheevaPlug? But I'll will try. Thanks!
Logged
NewIT_Marcus
Administrator
Hero Member
*****
Posts: 960


« Reply #3 on: 22 July 2010, 07:38:35 am »

Hello friends,
I am stuck trying recover nand flash in my SheevaPlug UBIFS.
After rcvr command finally i see the next lines:

<snip>

2. All u-boot environment variables for UBIFS were changed to defaults. Variables values I got here:
https://www.newit.co.uk/forum/index.php/topic,135.0.html

Code:
Marvell>> printenv

<snip>

real_bootcmd=setenv bootargs $(bootargs_console) $(mtdpartitions) $(bootargs_root); nand read.e 0x00800000 0x00100000 0x00400000; bootm 0x00800000
<snip>


3. I've prepared flash stick with ext3 filesystem and all required files:
flashware.img
uImage.sheeva.040309
ubuntu-9.0.5.Release.jffs2

and tried to run rcvr, but system still not recovered.
Help me please to solve this problem.
Thank you.

You pointed at the environment variable settings for UBIFS and yet the filesystem you refer to is the jffs2 version and the environment variables you list are for jffs2. My guess is that you are confusing the recovery instructions on the CD with the UBIFS settings, and maybe you forgot to do saveenv after changing your environment variables.

  • If you are trying to remove UBIFS and restore the original jffs2 version using the recovery procedure on the CD, I have tried that procedure and never got it to work
  • If you are trying to restore UBIFS on your NAND, use the installer instead. Actually, just try setting the environment variables (manually) before you use the installer, that may be your only problem.
Logged
yustas
Newbie
*
Posts: 6


« Reply #4 on: 22 July 2010, 08:07:56 am »

Thanks for support Marcus! I'll try installer tonight.
Logged
yustas
Newbie
*
Posts: 6


« Reply #5 on: 22 July 2010, 08:15:14 pm »

Marcus was absolutely right - using the installer is the simplest way to recover a system.
Thanks to all.
« Last Edit: 22 July 2010, 08:16:45 pm by yustas » Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!