danpedron / snake-os

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

Device does not respond after FW upgrade attempt #218

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hello,

My device NS-K330 does not respond anymore after FW upgrade, here is the story;
I have made a build from trunk and tried to download it to NS-K330.
In firmware upgrade screen, after I click go, it didn't do anything and just 
hanged. I waited some time to let it finish but it didn't. At the end I 
switched off and on the power and checked connection to the box over network 
but never reached the device, It seems does not have ip in my network, I tried 
hard resetting but it didn't help. 

My questions in this point:
1. In kernel configuration menu before the build, I used default settings, is 
it OK or I should have changed something special?
2. Before starting the upgrade, I had connected 8GB micro SD card as usb disk 
to box and formatted it with using web interface format section , but in the 
previous upgrade which was successful, there was normal usb flash disk 
connected and it was formatted as FAT32 on a windows machine, may this cause 
any issue ? 
3. I will try to reach console via rs-232, once I successfully set this up what 
are the next steps to upgrade new FW to recover the system?

Waiting for your comments.. thanks..

Original issue reported on code.google.com by olg...@gmail.com on 20 Oct 2011 at 8:09

GoogleCodeExporter commented 8 years ago
How do you know you build was ok?
Any specific reason you built it on your own?
I am afraid, the device may be bricked.

Original comment by onenanom...@gmail.com on 20 Oct 2011 at 2:27

GoogleCodeExporter commented 8 years ago
I don't know if the build is OK but I believe I followed the build procedure 
correctly.
I wanted to build my own due to getting latest fixes, especially for ftp. 

Any idea about my questions?

Original comment by olg...@gmail.com on 20 Oct 2011 at 2:40

GoogleCodeExporter commented 8 years ago
1: 
Going thjrough the kernel configuration isn'T required. Maybe that screwed 
something up.

2: 
Unlikely. The firmware verification would have probably failed if something was 
wrong with the filesystem.

3. 
The snake os updater doesn't touch the bootloader so you should still be able 
to get a serial console. Instructions for setting it up are in the manual.
From the console you can try this: 
http://code.google.com/p/snake-os/issues/detail?id=206#c1

Original comment by stefansc...@googlemail.com on 20 Oct 2011 at 3:08

GoogleCodeExporter commented 8 years ago
Thank you Stefan for the answer.
Will try recovering via serial console, 
I hope it will work..

Original comment by olg...@gmail.com on 20 Oct 2011 at 8:28

GoogleCodeExporter commented 8 years ago
Hi Stefan,
I can now recover by running tftp boot over serial console.
Thanks for your help..

On the other hand, my own build still fails with kernel panic even if I don't 
touch kernel settings before the build this time. 
Please see below logs..

Any idea?

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: ST
Flash:  4 MB
DataFlash: ST M25P32
Page Count: 16384
Page Size: 256
Size: 4194304 bytes
Logical Address: 0x30000000
Area 0: 30000000 to 3002FFFF
Area 1: 30030000 to 3003FFFF
Area 2: 30040000 to 3023FFFF
Area 3: 30240000 to 303FFFFF
*** 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 (root@vboxubnt) (gcc version 3.4.6) #5 Fri Oct 21 
11:00:34 EEST 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,2688k(initrd)ro,4032k@0
x0000(web),4032k@0x0000(flash) root=31:03 ro rootfstype=jffs2
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=0x002AB000
    txring.vir_addr=0xFFC01000 txring.phy_addr=0x003B2000
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
Empty flash at 0x0029afa0 ends at 0x0029fff0
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029fff0: 0x5e35 
instead
jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0029fff4: 0xfafe 
instead
VFS: Mounted root (jffs2 filesystem) readonly.
Freeing init memory: 76K
Kernel panic - not syncing: No init found.  Try passing init= option to kernel.

Original comment by olg...@gmail.com on 21 Oct 2011 at 8:39

GoogleCodeExporter commented 8 years ago
I've never seen this one before: Empty flash at 0x0029afa0 ends at 0x0029fff0
If this applies it's probably harmless. 
http://armlinux.simtec.co.uk/faq.html#faqquestion_73

The "No init found" can mean that busybox is missing, wasn't built properly or 
that some libraries didn't get copied to the rootfs. That one is sadly one of 
the less helpful error messages.

If you haven't done so time time try to build again from a clean checkout.

Also plaese post a full build log.

Original comment by stefansc...@googlemail.com on 21 Oct 2011 at 12:39

GoogleCodeExporter commented 8 years ago
Hi,

Build with a clean checkout from latest revision works fine now, no idea what 
was the difference with older, it was revision 300 which looks a bit old. I see 
in svn logs makefile and build script has been updated afterward.

Anyway, all the issues are solved.. Thanks a lot for your supreme help...

Best Regards.

Original comment by olg...@gmail.com on 21 Oct 2011 at 2:20

GoogleCodeExporter commented 8 years ago
Ah yeah.. trunk was pretty out of date until recently.

Original comment by stefansc...@googlemail.com on 21 Oct 2011 at 6:20

GoogleCodeExporter commented 8 years ago
Hi I am having an experience of failure to update wlx 652 Os Snake. I think I 
update my USB device for connecting the power light is now outside the lamp was 
lit, and does not respond at all to recover a help!!

Original comment by serkandi...@gmail.com on 30 Oct 2011 at 4:32