rcplay / snake-os

Automatically exported from code.google.com/p/snake-os
1 stars 0 forks source link

Have access to u-boot but cannot unbrick! #206

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I don't know how and what I need to upload to unbrick my NAS.
2.
3.

What is the expected output? What do you see instead?
U-Boot 1.1.4 (Mar  3 2008 - 16:51:36)

U-Boot code: 00000000 -> 0001A410  BSS: -> 0001F354
IRQ Stack: 00e6ff7c
FIQ Stack: 00e6ef7c
RAM Configuration:
Bank #0: 00000000 32 MB
Flash Manufacturer: Unknown(0xef)
Flash:  0 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
PLL clock at 250MHz
CPU clock at 250MHz
AHB clock at 125MHz
APB clock at 62MHz
Hit any key to stop autoboot:  3
kernel:30060000-301e0000
 0
## Starting application at 0x00600000 ...
Uncompressing Linux.............................................................
..... done, booting the kernel.
Linux version 2.6.16-gazineu (neo@ubuntu) (gcc version 3.4.6) #17 Wed Sep 21 22:
33:45 CEST 2011
CPU: FA526id(wb) [66015261] revision 1 (ARMv4)
Machine: STAR STR8100
Warning: bad configuration page, trying to continue
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets
CPU0: D cache: 8192 bytes, associativity 2, 16 byte lines, 256 sets
PLL clock at 250MHz
CPU clock at 250MHz
AHB clock at 125MHz
APB clock at 62MHz
Built 1 zonelists
Kernel command line: mtdparts=m25p80:256k(boot)ro,128k(config),960k(kernel)ro,26
88k(initrd)ro,4032k@0x0000(web),4032k@0x0000(flash) root=31:03 ro rootfstype=jff
s2
PID hash table entries: 256 (order: 8, 4096 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 32MB = 32MB total
Memory: 30348KB available (1808K code, 160K data, 76K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
PCI clock at 33M
PCI: bus0: Fast back to back transfers disabled
PCI Bridge not found
PCI map irq: 00:00.00 slot 0, pin 1, irq: 0
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
str8100_led_init: <6>Registered NAS 652 led device driver.
NetWinder Floating Point Emulator V0.97 (extended precision)
JFFS2 version 2.2. (NAND) (C) 2001-2003 Red Hat, Inc.
fuse init (API version 7.8)
fuse distribution version: 2.7.4
io scheduler noop registered
io scheduler cfq registered (default)
str8100_rtc.o: rtc module version 1.0.0
str8100_wdt.o: watchdog module version 1.0.1
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x78000000 (irq = 9) is a 16550A
serial8250: ttyS1 at MMIO 0x78800000 (irq = 10) is a 16550A
loop: loaded (max 8 devices)
Star NIC Driver(for Linux Kernel 2.6) - Star Semiconductor
    rxring.vir_addr=0xFFC00000 rxring.phy_addr=0x00391000
    txring.vir_addr=0xFFC01000 txring.phy_addr=0x003C6000
Star Internal PHY
MAC Addr: 08:0a:0b:0c:0d:0e

star_nic_init_module: internal phy patch included.
star_nic_init_module: scatter/gather enabled.

STR8100 SPI: init
m25p80 spi1.0: m25p64 (8192 Kbytes)
Creating 6 MTD partitions on "m25p80":
0x00000000-0x00040000 : "BOOT"
0x00040000-0x00060000 : "CFG"
0x00060000-0x00150000 : "KERNEL"
0x00150000-0x003f0000 : "INITRD"
0x00000000-0x003f0000 : "WEB"
0x00000000-0x003f0000 : "ALL"
str8100-ehci str8100-ehci: str8100-ehci
str8100-ehci str8100-ehci: new USB bus registered, assigned bus number 1
str8100-ehci str8100-ehci: irq 24, io mem 0xcc000000
str8100-ehci str8100-ehci: USB 0.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: 2005 April 22 USB 1.1 'Open' Host Controller (OHCI) Driver (STR8100)
str8100-ohci str8100-ohci: str8100-ohci
str8100-ohci str8100-ohci: new USB bus registered, assigned bus number 2
str8100-ohci str8100-ohci: irq 23, io mem 0xc4000000
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
NET: Registered protocol family 2
IP route cache hash table entries: 512 (order: -1, 2048 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029fff0: 0xdea8 in
stead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029fff4: 0x92c0 in
stead
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing init memory: 76K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

What version of the product are you using? On what operating system?

Try to make new version with transmission upgrage ( I was unlucky :( )
Please provide any additional information below.

Please let me know what i made wrong when try to recover with tftpboot, the log 
is below:

U-Boot 1.1.4 (Mar  3 2008 - 16:51:36)

U-Boot code: 00000000 -> 0001A410  BSS: -> 0001F354
IRQ Stack: 00e6ff7c
FIQ Stack: 00e6ef7c
RAM Configuration:
Bank #0: 00000000 32 MB
Flash Manufacturer: Unknown(0xef)
Flash:  0 kB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
PLL clock at 250MHz
CPU clock at 250MHz
AHB clock at 125MHz
APB clock at 62MHz
Hit any key to stop autoboot:  3
kernel:30060000-301e0000
 0
Star Equuleus # tftpboot
Check Link Status ...Up
Waiting 3 seconds ..
*** Warning: no boot file name; using 'C0A80001.img'
TFTP from server 192.168.0.100; our IP address is 192.168.0.1
Filename 'C0A80001.img'.
Load address: 0x800000
Loading: T T T T T T T T T

Also please let me know how can get the image file after the warning message. I 
looking with google but found only how can conect with serial interface nothing 
anyting after the conection is done. 
If I wrote here I also woud like to know how can download the files from your 
svn, because i've only read-only access.

Thank you for your kind support.

withe best regards

Attila

Original issue reported on code.google.com by aneme...@gmail.com on 22 Sep 2011 at 5:40

GoogleCodeExporter commented 8 years ago
oh lovely .. the page with the recovery steps is gone. It goes something like 
this:

Connect nas directly to computer via ethernet

Set ip of network card to 192.168.0.100

Launch tftp server

Drop this file into tftp directory: 
http://code.google.com/p/snake-os/downloads/detail?name=recovery.8132

At uboot prompt enter:
tftpboot 0x1000000 recovery.8132
go 0x1000000

Snake should now boot. After waiting a moment you should be able to access web 
interface at 192.168.0.240 and flash back a working image.

To check out the current svn source do "svn checkout 
http://snake-os.googlecode.com/svn/branches/1.3.2 snake-os". Build with "sh 
mk_snakeos_image.sh"

Interesting that uboot doesn't know about the flash. What device is this?

Original comment by stefansc...@googlemail.com on 22 Sep 2011 at 6:43

GoogleCodeExporter commented 8 years ago
Thank you for your fast reply.

The device is WLXKJ-652.

Tftps server is ok, file in the good folder, connection betwen the device and a 
pc is ok, still cannot copy the file. Several times try to loading the file but 
not happend anything. With Kermit mode can download the file looklike 
everything is nice but cannot list out and cannot start, of course I've only 
TFTP version.
Today Iwill try one more time with attached usb device if not work maybe  need 
to FLashing the memory.

Thanks again

A

Original comment by aneme...@gmail.com on 23 Sep 2011 at 6:44

GoogleCodeExporter commented 8 years ago
Try with crosslink cable also no communicatin, unfortunatelly on my motherboard 
nothing LPT :(. Until I got the extender card I cannot do anything.

A

Original comment by aneme...@gmail.com on 23 Sep 2011 at 9:11

GoogleCodeExporter commented 8 years ago
Can you try to load the file with a tftp client on the pc itself?
I don't know what os you are using but with tftp-hpa on linux run "tftp 
192.168.0.100" and enter "get recovery.8132" at the prompt.

I never tried to load an image via the serial connection before. 
Kermit doesn't seem to work for me.

With an s-record file this works:
in uboot:
loads 0x1000000

then on pc:
objcopy -I binary -O srec recovery.8132 recovery.srec
cat recovery.srec > /dev/ttyUSB0

It takes a very long time to transfer the image this way though.

Original comment by stefansc...@googlemail.com on 23 Sep 2011 at 12:41

GoogleCodeExporter commented 8 years ago
So now I recovered with my NAS, rewrote the Flash, and working it.
I've new issue: made a new release of the snake os trought the svn process.
Almost everything working on it, only the most important new feature is doesn't.
I cannot install any application, example transmission or anything.
Allways get a different error message:

For example:

Collected errors:
 * deb_extract: /opt/tmp//HhZ5gy.opk: invalid magic
 * pkg_init_from_file: Failed to extract control file from /opt/tmp//HhZ5gy.opk.

If I want to install v 2.33 or

Collected errors:
 * deb_extract: /opt/tmp//Nfku78.opk: invalid magic
 * pkg_init_from_file: Failed to extract control file from /opt/tmp//Nfku78.opk.

I want to install the 2.12. from svn version.

Also try to install the mediatomb and got an error message too.

Any opinion why happend it?

Please let me know.

Thx

A

Original comment by aneme...@gmail.com on 26 Sep 2011 at 3:25

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Sounds like what you tried to install aren't opkg packages. Where did you get 
them from? Did you create them yourself?

I was planning to add package creation for transmission into the snake os build 
soonish.

Original comment by stefansc...@googlemail.com on 27 Sep 2011 at 8:16

GoogleCodeExporter commented 8 years ago
I just try to install the downloaded .bz package :). But now I understand need 
to create opkg package, I read few things from it on the net but still look 
likes not easy to prepare the correct file.I hope soon will found the easy way 
of it :)

Original comment by aneme...@gmail.com on 28 Sep 2011 at 6:46

GoogleCodeExporter commented 8 years ago
Do you think that is working on the our nas?

https://community.openvpn.net/openvpn/wiki/OpenvpnDevelPackageForOpenWRT

Original comment by aneme...@gmail.com on 28 Sep 2011 at 6:48

GoogleCodeExporter commented 8 years ago
I've replied to your mail. 

http://groups.google.com/group/dealextreme-nas-/msg/f958ea171a2a5965

I think newer versions of transmission require a new libevent. It will be bit 
more effort than downloading the .bz and dropping it in.

Original comment by stefansc...@googlemail.com on 29 Sep 2011 at 11:48

GoogleCodeExporter commented 8 years ago
Hello, attila, el tudnád velem venni a kapcsolatot mail-en keresztül? 
Szükségem lenne segítegre ezzel a flash-eléssel kapcsolatban, sajnos 
elcsesztem a NAS-omat.

Köszi,

nándi
hgnandi@yahoo.com

Original comment by hgna...@gmail.com on 26 Feb 2013 at 3:44