General NAS-Central Forums

Welcome to the NAS community
It is currently Sat Nov 25, 2017 12:16 am

All times are UTC




Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next
Author Message
 Post subject: Re: LG n2r1d unbrick
PostPosted: Sat Nov 09, 2013 10:06 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
Hmm. Obviously it's doing *something*, and there is communication between the firmware installer and the NAS. It's failing on TFTP
Code:
firmware: firmware-nc1_10094rfke.bin
Using egiga0 device
TFTP from server 192.168.1.10; our IP address is 192.168.1.200
Filename 'uImage'.
Load address: 0x1000000
Loading: T T T T T T T T T T
The firmware installer has 'told' the NAS it should download uImage from TFTP server 192.168.1.10. That fails. The 'T T T' stands for 'Try Try Try'.

I guess 192.168.1.10 is the address of your PC. The NAS has assigned itself an address in the same range, or maybe the firmware loader did.

TFTP is a lowlevel protocol based on UDP. The firmware installer launches a TFTP server, but it seems to be not reachable. There can be several reasons:
1) A firewall. Make sure that you switched off the firewall on your PC during the firmware upload.
2) A router. If the NAS and the PC are both connected to a router, it is possible that the router won't forward UDP. This should not be a problem when the boxes are both connected to a switch.
3) Wireless. If your PC is wireless, it is possible UDP won't be able to pass the wireless/wired transition
4) Multiple network interfaces. If your PC has more than one network interface, it is possible that it confuses the TFTP server. Switch off all interfaces except the port to the NAS.

The best arrangement is a PC having only one network interface (active), wired directly to the NAS, without switch/router in between. Static IP on the PC, firewall down.


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Sun Nov 10, 2013 7:21 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
i have tried to change the firmware with my laptop direct connect to the nas, but my laptop uses wifi for internet that's no problem i think or not?

but still no working no changes, is there not an method to read the chip directyl and programmed it?
or can i change the firmware with another not lg like tantalus?


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Sun Nov 10, 2013 8:38 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
Quote:
my laptop uses wifi for internet that's no problem i think or not?
Not unless the network ranges of the wifi adapter and wired network are equal or overlap. Did you switch off the firewall? Do you have a serial log?
Quote:
is there not an method to read the chip directyl and programmed it?
You don't need 'the chip'. U-boot will read a kernel from /boot/ on the first partition of the first harddisk, and boot it with /dev/md0 as rootfile system. So it's all about putting a decent prepared harddisk into the box. A 'Linux auto raid' type first partition. A single partition RAID1 partition on it, containing a compatible rootfilesystem, and a compatible kernel in /boot/ should do it.
Quote:
can i change the firmware with another not lg like tantalus?
AFAIK Tantalus *is* LG firmware, only a bit adapted to allow ssh access. But AFAIK it's supposed to be installed using the LG webinterface.


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Wed Nov 13, 2013 5:41 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
when i want to change the firmware with windows 7 it tells me there is no tftp program??
and with windows xp there is no problem but firmware doesn't load.


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Thu Nov 14, 2013 1:48 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
If the installation procedure is anything like that of the N2A2 (which I happen to have), than the 'main executable' extracts some firmware files (kernel, initrd, rootfs) in a subdirectory, and also puts a tftp server in it.
Then the tftp server is launched, and the main executable talks to u-boot, to let it fetch it.

If you run process explorer, or task manager, you can see that seperate program.

When it the tftp server isn't available in W7, I guess it's either removed by a virusscanner, or somehow the paths in W7 are incompatible.

Are you dual booting?


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Fri Nov 15, 2013 9:38 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
HI mijzelf,
this code you gived me i typed it wrong!!

nand read.e 2000000 100000 1d0000
setenv bootargs $(console) root=/dev/mtdblock2 ro lpj=3973120
bootm 0x2000000


this is the good log.


Hit any key to stop autoboot: 0
LGE-NAS>> nand read.e 2000000 100000 1d0000

NAND read: device 0 offset 0x100000, size 0x1d0000

Reading data from 0x2cf800 -- 100% complete.
1900544 bytes read: OK
LGE-NAS>> setenv bootargs $(console) root=/dev/mtdblock2 ro lpj=3973120
LGE-NAS>> bootm 0x2000000
## Booting image at 02000000 ..., header_size = 00000040, header_addr = 0069024c

image_header_t hdr contents
hdr->ih_magic = 56190527, hdr->ih_hcrc = b48fdb3d
hdr->ih_time = 358deb4c, hdr->ih_size = 001c4c6c
hdr->ih_load = 00800000, hdr->ih_ep = 00800000
hdr->ih_dcrc = c5261ba1
hdr->ih_os = 05, hdr->ih_arch = 02
hdr->ih_type = 02, hdr->ih_comp = 00
hdr->ih_name = Linux-2.6.22.18

Image Name: Linux-2.6.22.18
Created: 2010-11-23 9:45:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1854572 Bytes = 1.8 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.............................................................
......................................................... done, booting the kern
el.
[ 0.000000] Linux version 2.6.22.18 (root@anyong-desktop) (gcc version 4.2.0
20070413 (prerelease)) #4 Tue Nov 23 18:45:21 KST 2010
[ 0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] Machine: Feroceon-KW
[ 0.000000] Using UBoot passing parameters structure
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] CPU0: D VIVT write-back cache
[ 0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 s
ets
[ 0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 s
ets
[ 0.000000] Built 1 zonelists. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x100
000@0(uboot),0x400000@0x100000(kernel),0xb00000@0x500000(rootfs),0x5000000@0x100
0000(data) root=/dev/mtdblock2 ro lpj=3973120
[ 0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 128MB 0MB 0MB 0MB = 128MB total
[ 0.000000] Memory: 125952KB available (3436K code, 252K data, 104K init)
[ 0.000000] Calibrating delay loop (skipped)... 794.62 BogoMIPS preset
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] NET: Registered protocol family 16
[ 0.000000]
[ 0.000000] CPU Interface
[ 0.000000] -------------
[ 0.010000] SDRAM_CS0 ....base 00000000, size 128MB
[ 0.010000] SDRAM_CS1 ....disable
[ 0.010000] SDRAM_CS2 ....disable
[ 0.010000] SDRAM_CS3 ....disable
[ 0.010000] PEX0_MEM ....base e8000000, size 128MB
[ 0.010000] PEX0_IO ....base f2000000, size 1MB
[ 0.010000] INTER_REGS ....base f1000000, size 1MB
[ 0.010000] NFLASH_CS ....base fa000000, size 2MB
[ 0.010000] SPI_CS ....base f4000000, size 16MB
[ 0.010000] BOOT_ROM_CS ....no such
[ 0.010000] DEV_BOOTCS ....no such
[ 0.010000] CRYPT_ENG ....base f0000000, size 2MB
[ 0.010000]
[ 0.010000] Marvell Development Board (LSP Version KW_LSP_4.2.7_patch2)-- R
D-88F6192A-NAS Soc: 88F6192 A1 LE
[ 0.010000]
[ 0.010000] Detected Tclk 166666667 and SysClk 200000000
[ 0.010000] MV Buttons Device Load
[ 0.010000] Marvell USB EHCI Host controller #0: c052d600
[ 0.510000] PEX0 interface detected no Link.
[ 0.510000] PCI: bus0: Fast back to back transfers enabled
[ 0.510000] SCSI subsystem initialized
[ 0.510000] usbcore: registered new interface driver usbfs
[ 0.510000] usbcore: registered new interface driver hub
[ 0.510000] usbcore: registered new device driver usb
[ 0.510000] NET: Registered protocol family 2
[ 0.520000] Time: kw_clocksource clocksource has been installed.
[ 0.610000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.610000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[ 0.610000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.610000] TCP: Hash tables configured (established 4096 bind 4096)
[ 0.610000] TCP reno registered
[ 0.640000] TWSI: mvTwsiStartBitSet repeated start Bit
[ 0.680000] TWSI: mvTwsiStartBitSet repeated start Bit
[ 0.700000] RTC registered
[ 0.700000] Use the XOR engines (acceleration) for enhancing the following fu
nctions:
[ 0.700000] o RAID 5 Xor calculation
[ 0.700000] o kernel memcpy
[ 0.700000] o kenrel memzero
[ 0.700000] o copy user to/from kernel buffers
[ 0.700000] Number of XOR engines to use: 4
[ 0.700000] cesadev_init(c000c9a4)
[ 0.700000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[ 0.700000] Warning: TS unit is powered off.
[ 0.710000] VFS: Disk quotas dquot_6.5.1
[ 0.710000] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.710000] squashfs: version 3.4 (2008/08/26) Phillip Lougher
[ 0.710000] Starting Selective Mirror Daemon...
[ 0.710000] /proc/s_mirror created !!!!!!!!!!!!!!!!!!!
[ 0.710000] io scheduler noop registered
[ 0.710000] io scheduler anticipatory registered
[ 0.710000] io scheduler deadline registered
[ 0.710000] io scheduler cfq registered (default)
[ 0.730000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing
disabled
[ 0.730000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[ 0.740000] serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
[ 0.750000] Loading Marvell Ethernet Driver:
[ 0.750000] o Cached descriptors in DRAM
[ 0.760000] o DRAM SW cache-coherency
[ 0.760000] o Single RX Queue support - ETH_DEF_RXQ=0
[ 0.770000] o Single TX Queue support - ETH_DEF_TXQ=0
[ 0.770000] o TCP segmentation offload enabled
[ 0.780000] o Receive checksum offload enabled
[ 0.780000] o Transmit checksum offload enabled
[ 0.790000] o Network Fast Processing (Routing) supported
[ 0.790000] o Driver ERROR statistics enabled
[ 0.800000] o Driver INFO statistics enabled
[ 0.800000] o Proc tool API enabled
[ 0.800000] o Rx descripors: q0=128
[ 0.810000] o Tx descripors: q0=532
[ 0.810000] o Loading network interface(s):
[ 0.820000] o eth0, ifindex = 1, GbE port = 0
[ 0.820000]
[ 0.820000] Warning: Giga 1 is Powered Off
[ 0.830000]
[ 0.830000] mvFpRuleDb (c7c59000): 1024 entries, 4096 bytes
[ 0.840000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[ 0.840000] Copyright (c) 1999-2006 Intel Corporation.
[ 0.850000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[ 0.850000] e100: Copyright(c) 1999-2006 Intel Corporation
[ 0.860000] ipddp.c:v0.01 8/28/97 Bradford W. Johnson <johns393@maroon.tc.umn
.edu>
[ 0.870000] ipddp0: Appletalk-IP Encap. mode by Bradford W. Johnson <johns393
@maroon.tc.umn.edu>
[ 0.880000] Integrated Sata device found
[ 0.900000] scsi0 : Marvell SCSI to SATA adapter
[ 0.910000] scsi1 : Marvell SCSI to SATA adapter
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:0
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:2
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:3
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:4
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:1 status:0
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:2 status:2
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:2 status:3
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:2 status:4
[ 1.410000] [0 1] CHANNEL_PM_INIT_DEVICES port:3 status:0
[ 1.420000] scsi 1:0:0:0: Direct-Access SAMSUNG HD105SI 1AJ1 PQ
: 0 ANSI: 5
[ 1.430000] scsi 1:0:2:0: CD-ROM HL-DT-ST DVDRAM GH50N R106 PQ
: 0 ANSI: 0
[ 1.440000] sd 1:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 M
B)
[ 1.450000] sd 1:0:0:0: [sda] Write Protect is off
[ 1.470000] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supp
orts DPO and FUA
[ 1.480000] sd 1:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 M
B)
[ 1.490000] sd 1:0:0:0: [sda] Write Protect is off
[ 1.510000] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supp
orts DPO and FUA
[ 1.520000] sda: sda2 sda3 < sda5 >
[ 1.540000] sd 1:0:0:0: [sda] Attached SCSI disk
[ 1.580000] sr0: scsi3-mmc drive: 48x/48x writer dvd-ram cd/rw xa/form2 cdda
tray
[ 1.590000] Uniform CD-ROM driver Revision: 3.20
[ 1.590000] sd 1:0:0:0: Attached scsi generic sg0 type 0
[ 1.600000] sr 1:0:2:0: Attached scsi generic sg1 type 5
[ 1.600000] NAND device: Manufacturer ID: 0x20, Chip ID: 0xf1 (ST Micro NAND
128MiB 3,3V 8-bit)
[ 1.610000] nand_bbm_init: Init nand bad block information...
[ 1.620000] nand_bbm_find_pos: nand_bbm_check = 0, erasesize = 20000
[ 1.620000] nand_bbm_find_pos: nand_bbm_find_pos: bbm pos = 7800000, pos = 78
00000
[ 1.630000] Loading nand bad block info(07800000+00020000)...
[ 1.670000] nand_bbm_info_load: bbm->magic = 8192a5a7
[ 1.680000] nand_bbm_info_load: bbm->bb_count = 0
[ 1.680000] nand_bbm_info_load: bbm->assign_index = 3ff
[ 1.690000] Assign index = 3ff
[ 1.690000] nand_bbm_info_load: Loading nand bad block info...ok
[ 1.700000] 4 cmdlinepart partitions found on MTD device nand_mtd
[ 1.700000] Using command line partition definition
[ 1.710000] Creating 4 MTD partitions on "nand_mtd":
[ 1.710000] 0x00000000-0x00100000 : "uboot"
[ 1.720000] 0x00100000-0x00500000 : "kernel"
[ 1.720000] 0x00500000-0x01000000 : "rootfs"
[ 1.730000] 0x01000000-0x06000000 : "data"
[ 1.780000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[ 1.780000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned
bus number 1
[ 1.820000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[ 1.840000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driv
er 10 Dec 2004
[ 1.840000] usb usb1: configuration #1 chosen from 1 choice
[ 1.850000] hub 1-0:1.0: USB hub found
[ 1.850000] hub 1-0:1.0: 1 port detected
[ 1.970000] Initializing USB Mass Storage driver...
[ 2.250000] usb 1-1: new high speed USB device using ehci_marvell and address
2
[ 2.400000] usb 1-1: configuration #1 chosen from 1 choice
[ 2.400000] hub 1-1:1.0: USB hub found
[ 2.410000] hub 1-1:1.0: 4 ports detected
[ 2.520000] usbcore: registered new interface driver usb-storage
[ 2.520000] USB Mass Storage support registered.
[ 2.530000] mice: PS/2 mouse device common for all mice
[ 2.530000] i2c /dev entries driver
[ 2.540000] md: linear personality registered for level -1
[ 2.540000] md: raid0 personality registered for level 0
[ 2.550000] md: raid1 personality registered for level 1
[ 2.550000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-d
evel@redhat.com
[ 2.560000] sdhci: Secure Digital Host Controller Interface driver
[ 2.570000] sdhci: Copyright(c) Pierre Ossman
[ 2.570000] TCP cubic registered
[ 2.570000] NET: Registered protocol family 1
[ 2.580000] NET: Registered protocol family 17
[ 2.580000] NET: Registered protocol family 5
[ 2.660000] md: Autodetecting RAID arrays.
[ 2.660000] md: autorun ...
[ 2.660000] md: ... autorun DONE.
[ 2.670000] VFS: Mounted root (squashfs filesystem) readonly.
[ 2.680000] Freeing init memory: 104K
init started: BusyBox v1.7.0 (2008-11-27 15:16:59 KST)
starting pid 309, tty '': '/etc/init.d/rcS'
hibernation
starting pid 317, tty '': '/bin/sh'
-sh-3.2#


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Sat Nov 16, 2013 12:22 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
Oh right. That makes more sense. You now booted into Linux, from flash. And you have a Linux shell now. (On that # prompt you can execute Linux commands)

There must be a purpose for this. By default the box loads it kernel from harddisk, and boots from harddisk. For that purpose 256kB flash is enough. It only needs to contain the bootloader. Yet LG mounted an awfully amount of flash in the box, which is in normal operation not used.

Can you execute 'ps' on the Linux prompt? This shows all running processes. Maybe it has a surprise.

Does the LCD display now (with this Linux running) have new functions? What happens if you now hotplug a harddisk? Hotplugging a disk is the way used on certain Lacie boxes to initialize the disk from flash.


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Sat Nov 16, 2013 5:19 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
after typing ps there came bunch of codes i think then i put an hdd on it you can see it in the log.
the display shows only nas is booting.. so there is no change there.

-sh-3.2# ps
PID Uid VSZ Stat Command
1 root 3364 S init
2 root SW< [kthreadd]
3 root SWN [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
42 root SW< [kblockd/0]
45 root SW< [khubd]
47 root SW< [kmmcd]
61 root SW [crypto]
62 root SW [crypto_ret]
70 root SW [pdflush]
71 root SW [pdflush]
72 root SW< [kswapd0]
73 root SW< [aio/0]
74 root SWN [sm_asyncd]
255 root SW< [scsi_eh_0]
256 root SW< [scsi_eh_1]
266 root SW< [mtdblockd]
309 root 2644 S -sh
310 root 3368 R ps
-sh-3.2# [ 101.420000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:0
[ 101.420000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 101.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 102.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 102.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 103.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 103.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 104.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 104.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 105.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 105.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 106.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 106.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 107.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 107.930000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:1
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:2
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:3
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:0 status:4
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:1 status:0
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:2 status:2
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:2 status:3
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:2 status:4
[ 108.430000] [0 1] CHANNEL_PM_INIT_DEVICES port:3 status:0
[ 108.440000] scsi 1:0:0:0: Direct-Access SAMSUNG HD105SI 1AJ1 PQ
: 0 ANSI: 5
[ 108.440000] sd 1:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 M
B)
[ 108.460000] sd 1:0:0:0: [sda] Write Protect is off
[ 108.470000] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supp
orts DPO and FUA
[ 108.480000] sd 1:0:0:0: [sda] 1953525168 512-byte hardware sectors (1000205 M
B)
[ 108.500000] sd 1:0:0:0: [sda] Write Protect is off
[ 108.510000] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supp
orts DPO and FUA
[ 108.520000] sda: sda2 sda3 < sda5 >
[ 108.690000] sd 1:0:0:0: [sda] Attached SCSI disk
[ 108.690000] sd 1:0:0:0: Attached scsi generic sg1 type 0


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Sat Nov 16, 2013 10:14 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
Bummer. There is nothing running except init and the shell itself. The processes having [] around it are kernel processes. I hoped some daemon would be running which could install the firmware.
Very strange, this. Why waste good flash memory for useless functions? Of course this could be used for repair actions when the disk rootfs is damaged, but someone who can connect a serial port to intercept u-boot, can also connect the disks to a Linux PC to fix it.

The log you got when hotplugging the disk are just telling the kernel found and recognized the disk. No daemon or nifty script jumps in.

So we are back where we started. Why does u-boot fail to download from the tftp server?


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Mon Nov 18, 2013 7:12 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
what do you think about this? shall it work for me?
http://mrt.nas-central.org/wiki/The_NAS ... king_guide


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Mon Nov 18, 2013 8:32 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
No. That is a completely different box.

The disk you have in your box, why does it have 3 partitions? Is that somehow done by the firmware installer?


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Mon Nov 18, 2013 9:51 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
i don't know for sure i had format the first partition to ext3 the second partition was nfts, the 3 partition is maybe unlocated i shall connect to my pc and look at it


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Tue Nov 19, 2013 9:01 am 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
Ok. I downloaded the firmware (firmware_2660.zip) and looked at it. I guess it can be installed manually, but I don't know what partitions it expects. I hoped your disk would tell us.

But we can just try. Download the firmware_2660.zip at LG. (Not a later (new UI) one, as that file contains encrypted firmware, and I couldn't find how to decrypt it.)

Extract it. It contains a .txt and a .bin file. Rename the .bin to .tar. Now you can extract that. It contains a firmware.tar.gz file (and more).

Connect the disk to a Linux PC (Any PC booted from a Linux Live CD or -USB stick will do). Find the devicename of your disk by executing
Code:
cat /proc/partitions
This shows all blockdevices (disks, partitions, ...). The size is given in kB. I guess your disk is sdb (and has partitions sdb1, sdb2 and sdb5).
If your investigations show that the partititons weren't made by the firmware installer, use fdisk to remove all partitions and to create a first (primary) partition of about 8GiB, partititon type fd (Linux raid auto).
Code:
sudo fdisk /dev/sdb
(If the disk is not sdb, you'll have to change that in the command line, of course).
If the partititons were made by the installer, I guess they are already OK.

Now create a raid array on sdb1:
Code:
sudo mdadm --create /dev/md0 --level=raid1 --raid-devices=2 /dev/sdb1 missing
(Again, if your disk is not sdb, ...)
Put a filesystem on it:
Code:
sudo mke2fs -j /dev/md0
Mount it:
Code:
mkdir /tmp/mountpoint
sudo mount /dev/md0 /tmp/mountpoint
and extract the firmware:
Code:
cd /tmp/mountpoint
sudo tar xf /path/to/firmware.tar.gz .
Now you have in /tmp/mountpoint/boot/ some subdirectories, containing a uImage file. Copy that to /tmp/mountpoint/boot/, and rename it to uImage (case sensitive).
That's it.
Unmount the disk:
Code:
cd /
sudo umount /mnt/mountpoint
Stop the raid array
Code:
sudo mdadm --stop /dev/md0
, and put the disk in the NAS. Try to boot.


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Wed Nov 20, 2013 8:18 pm 
Offline

Joined: Tue Oct 29, 2013 5:38 pm
Posts: 26
that's a good idea but i never worked before with Linux,
i downloaded Linux live cd knoppix (is this good?)
i start my laptop with knoppix the hdd hooked up with usb to my laptop now the problem is where must i hit the commands?
and i can't see fdisk program there is another programs like Gparted
so i created there on Gparted about 8Gb partition Linux swap i couldnt find Linux raid auto,
is this good?


Top
 Profile  
 
 Post subject: Re: LG n2r1d unbrick
PostPosted: Thu Nov 21, 2013 1:18 pm 
Offline

Joined: Mon Jun 16, 2008 10:45 am
Posts: 6079
Quote:
i downloaded Linux live cd knoppix (is this good?)
It's fine.
Quote:
where must i hit the commands?
You'll have to open a terminal or console.
Quote:
so i created there on Gparted about 8Gb partition Linux swap i couldnt find Linux raid auto,
is this good?
Actually I don't know. Normally Linux just ignores the partition type (which is metadata in the partition table, and not a part of the partition itself), and just uses information which can be found inside the partition, but in this case /dev/md0 (which is a raid array) is specified as rootfs in the commandline, which means the array has to be assembled before the kernel mounts it's rootfs.

On my N2A2 I created a partition 'linux raid auto', and it was assembled in time, but I don't know if the 'automatic assembler' indeed is triggered by the partition type, or that it would have worked anyway.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 51 posts ]  Go to page Previous  1, 2, 3, 4  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group