New IT forum
26 June 2022, 06:04:47 pm *
Welcome, %1$s. Please login or register.

: GertDuino now in stock.
 
Pages: 1 [2]

Author Topic: Restoring the Factory jffs2 image using a Usb stick  (Read 25444 times)

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #15 on: 04 January 2012, 08:36:58 pm »

Ulrith,

Try these instructions to get your bricked plug back to a temporary uboot running in memory.

http://www.newit.co.uk/forum/index.php/topic,2835.0.html

then you can use these instruction to write the uboot-sata-090903.bin

http://www.newit.co.uk/forum/index.php/topic,1810.0.html

Don't forget to 'set arcNumber 2678' in the uboot variables.

Logged
NewITJames

ulrith

  • Newbie
  • *
  • Posts: 23
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #16 on: 05 January 2012, 01:23:17 pm »

Thank you. I nave restored my SheevaPlug to factory defaults but now when I boot I've got thousands of errors like that:

Code: [Select]
jffs2_scan_inode_node(): CRC failed on node at 0x00846f20: Read 0xea232b0d, calculated 0xb682b80d
jffs2_scan_inode_node(): CRC failed on node at 0x00853fcc: Read 0xb15ee1e7, calculated 0x7ec0f62f
jffs2_scan_inode_node(): CRC failed on node at 0x00855f18: Read 0x9fd8125f, calculated 0x24f589a6
jffs2_scan_inode_node(): CRC failed on node at 0x0085aea0: Read 0x39b35e17, calculated 0xc49909bd
mtd->read(0x400 bytes from 0x860000) returned ECC error
mtd->read(0x1f79c bytes from 0x860864) returned ECC error
jffs2_scan_inode_node(): CRC failed on node at 0x0086363c: Read 0xa89db242, calculated 0x37693ad4
jffs2_scan_inode_node(): CRC failed on node at 0x00878e50: Read 0xd5139643, calculated 0x64f526d1
mtd->read(0x400 bytes from 0x880000) returned ECC error
mtd->read(0x1f7ac bytes from 0x880854) returned ECC error

Why it does not just work? ???
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #17 on: 05 January 2012, 01:33:02 pm »

I don't think your uboot variables are correct

This link shows what they should look like for a factory restore.

http://www.newit.co.uk/forum/index.php/topic,134.0.html

Logged
NewITJames

ulrith

  • Newbie
  • *
  • Posts: 23
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #18 on: 05 January 2012, 01:47:32 pm »

But I did what you advised in this post (http://www.newit.co.uk/forum/index.php/topic,2427.msg6876.html#msg6876), isn't this enough? Should I now set all variables manually? :o
Logged

ulrith

  • Newbie
  • *
  • Posts: 23
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #19 on: 06 January 2012, 05:09:59 pm »

Oh my god, I played with the variables but I still get errors

Code: [Select]
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006b47c0: 0x1a3b instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006b47c4: 0xd55f instead
Further such events for this erase block will not be printed
mtd->read(0x400 bytes from 0x6c0000) returned ECC error
mtd->read(0x1f9ec bytes from 0x6c0614) returned ECC error
jffs2_scan_inode_node(): CRC failed on node at 0x006ce794: Read 0x9e1e34a7, calculated 0xe6dff2b7
mtd->read(0x400 bytes from 0x6e0000) returned ECC error
mtd->read(0x1fc38 bytes from 0x6e03c8) returned ECC error
jffs2_scan_inode_node(): CRC failed on node at 0x006e6f50: Read 0xf675aed4, calculated 0x61bd8b0c

...

mtd->read(0x34 bytes from 0x6f7cc) returned ECC error
mtd->read(0x528 bytes from 0x6bad8) returned ECC error
mtd->read(0x41c bytes from 0x6b3e4) returned ECC error
mtd->read(0x644 bytes from 0x6a9bc) returned ECC error
mtd->read(0x2e4 bytes from 0x6a51c) returned ECC error
mtd->read(0x54 bytes from 0x667ac) returned ECC error
mtd->read(0x548 bytes from 0x62ab8) returned ECC error
mtd->read(0x6d8 bytes from 0x928) returned ECC error
mtd->read(0x70c bytes from 0xf4) returned ECC error
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

I believe my vars are ok:

Code: [Select]
arcNumber=2678
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 mtdparts=nand_mtd:[email protected](uImage),[email protected](rootfs) rw root=/dev/mtdblock1 rw
bootargs_end=:::DB88FXX81:eth0:none
bootargs_root=root=/dev/mtdblock2=ro
bootcmd=nand read.e 0x800000 0x100000 0x400000; bootm 0x800000
bootdelay=3
CASset=min
console=console=ttyS0,115200 mtdparts=nand_mtd:[email protected](uboot)ro,[email protected](root)
disaMvPnp=no
disL2Cache=no
disL2Prefetch=yes
enaAutoRecovery=yes
enaCpuStream=no
enaDCPref=yes
enaICPref=yes
enaMonExt=no
enaWrAllo=no
ethact=egiga0
ethaddr=f0:ad:4e:00:41:83
ethmtu=1500
ethprime=egiga0
image_name=uImage
ipaddr=10.4.50.165
loadaddr=0x02000000
loads_echo=0
mainlineLinux=no
MALLOC_len=1
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
nandEcc=1bit
netbsd_en=no
netmask=255.255.255.0
netretry=no
pexMode=RC
rcvrip=169.254.100.100
rootpath=/mnt/ARM_FS/
sata_dma_mode=yes
serverip=10.4.50.5
setL2CacheWT=yes
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
« Last Edit: 06 January 2012, 05:20:35 pm by ulrith »
Logged

ulrith

  • Newbie
  • *
  • Posts: 23
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #20 on: 09 January 2012, 03:27:29 pm »

ping
Logged

NewITMalcolm

  • Administrator
  • Sr. Member
  • *****
  • Posts: 394
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #21 on: 09 January 2012, 03:38:37 pm »

I think you need to redo the kernel and rootfs restore from the top of the thread.

Quote
usb start
 fatload usb 0:1 0x6400000 /uImage.6plug
 nand erase 0x100000 0x400000
 nand write.e 0x6400000 0x100000 0x400000

Quote
usb start
fatload usb 0:1 0x6400000 /ubuntu_sheevaplug_9.0.4.jffs2
nand erase 0x500000 0x1fb00000
nand write.jffs2 0x6400000 0x500000 0x0656d64c

Logged
NewITJames

ulrith

  • Newbie
  • *
  • Posts: 23
Re: Restoring the Factory jffs2 image using a Usb stick
« Reply #22 on: 29 February 2012, 03:45:20 pm »

Hi James. Now I have time to continue my experiments.

I have done kernel and rootfs restore as it mentioned on the top of the thread and, also, I restored uboot variables.

But I stiil get errors like this:

Code: [Select]
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0062479c: 0x3979 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247a0: 0x0849 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247a4: 0x085d instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247a8: 0x085f instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247ac: 0xc0ea instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247b0: 0x0813 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247b4: 0x7ac2 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x006247b8: 0x69a1 instead
Further such events for this erase block will not be printed
jffs2_scan_inode_node(): CRC failed on node at 0x0062a758: Read 0xe7f02a02, calculated 0x66d54f25
jffs2_scan_inode_node(): CRC failed on node at 0x0062cdf8: Read 0x3b61c5e6, calculated 0x3b60c5e6
jffs2_scan_inode_node(): CRC failed on node at 0x0062e6d0: Read 0xce6423a5, calculated 0x48acaea0
mtd->read(0x400 bytes from 0x640000) returned ECC error
mtd->read(0x1fbfc bytes from 0x640404) returned ECC error
jffs2_scan_inode_node(): CRC failed on node at 0x006457a4: Read 0x9c60987c, calculated 0x9ce0987c
jffs2_scan_dirent_node(): Node CRC failed on node at 0x00646f58: Read 0x53d96561, calculated 0x1d348e38
jffs2_scan_inode_node(): CRC failed on node at 0x00649df8: Read 0x5fdf9cb2, calculated 0x3de3c00f
jffs2_scan_eraseblock(): Node at 0x00657668 {0x1985, 0xe002, 0x00000477) has invalid CRC 0x7de0048e (calculated 0x7d60048e)
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0065766c: 0x0477 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00657670: 0x048e instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00657674: 0x08af instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00657678: 0x0030 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0065767c: 0x81a4 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00657684: 0xbca0 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00657688: 0x0264 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0065768c: 0x0264 instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00657690: 0x0264 instead
Further such events for this erase block will not be printed
mtd->read(0x400 bytes from 0x660000) returned ECC error
mtd->read(0x1f428 bytes from 0x660bd8) returned ECC error
mtd->read(0x80 bytes from 0x67ff80) returned ECC error
Empty flash at 0x0067ff7c ends at 0x0067fff8
mtd->read(0x400 bytes from 0x680000) returned ECC error

What do they mean?
Logged
Pages: 1 [2]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!