hi,
looking at http://lacie-nas.org/doku.php?id=start it seems that the 5big Network is not supported by clunc, maybe this is the major cause of the boot problem ?
marvel>> ide reset
loading the normal kernel 20
Loading from IDE device 4, partition 6: Name: hde6
Type: U-Boot
Image Name: Linux-2.6.39.4
Created: 2013-09-23 18:39:53 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1871800 Bytes = 1.8 MB
Load Address: 00008000
Entry Point: 00008000
## Booting image at 00400000 ...
Image Name: Linux-2.6.39.4
Created: 2013-09-23 18:39:53 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1871800 Bytes = 1.8 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
Starting kernel ...
starting u-boot net console click on window and press enter
Marvell>> ide reset
ide reset
Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
Device 0: OK
Model: ST31500341AS Firm: CC4H Ser#:
9VS21T6A
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)
Device 1: OK
Model: ST31500341AS Firm: CC1H Ser#:
9VS2YA2Q
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)
Device 2: OK
Model: ST31500341AS Firm: CC4H Ser#:
9VS220RH
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)
Device 3: OK
Model: ST31500341AS Firm: CC4H Ser#:
9VS1V7YP
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)
Device 4: OK
Model: ST31500341AS Firm: CC4H Ser#:
9VS1XN8B
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1430799.3 MB = 1397.2 GB (-1364690128 x 512)
Marvell>> setenv ipaddr ${ipaddr}
setenv ipaddr ${ipaddr}
Marvell>> setenv serverip ${serverip}
setenv serverip ${serverip}
Marvell>> setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@$
{serverip}/
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}
/
Marvell>> tftpboot 0x800000 UIMAGE-26394-NWSP2CL-5BIG1-21-standalone
tftpboot 0x800000 UIMAGE-26394-NWSP2CL-5BIG1-21-standalone
Using egiga0 device
TFTP from server 192.168.0.12; our IP address is 192.168.0.252
Filename 'UIMAGE-26394-NWSP2CL-5BIG1-21-standalone'.
Load address: 0x800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################
done
Bytes transferred = 3120840 (2f9ec8 hex)
Marvell>> bootm
bootm
## Booting image at 00800000 ...
Image Name: Linux-2.6.39.4
Created: 2013-10-20 7:51:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3120776 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
It's about sizes. If the kernel on 0x0800000 overwrites a part of u-boot, then u-boot must be at 0x07e0000, or something like that. Between 0x0400000 and 0x07e0000 is slightly less than 4MiB, so chances are that u-boot is overwritten from the other side. But there is plenty of memory beyond 0x0800000, so I just jumped in the ocean.Anyhow when loading the normal kernel u-boot uses indeed address 00400000
So why not use that instead of 1000000
if (verify) {
puts (" Verifying Checksum ... ");
if (crc32 (0, (char *)data, len) != ntohl(hdr->ih_dcrc)) {
printf ("Bad Data CRC\n");
return 1;
}
puts ("OK\n");
}
len_ptr = (ulong *)data;
<snip>
/*
* We have reached the point of no return: we are going to
* overwrite all exception vector code, so we cannot easily
* recover from any failures any more...
*/
iflag = disable_interrupts();
switch (hdr->ih_comp) {
case IH_COMP_NONE:
if(ntohl(hdr->ih_load) == addr) {
printf (" XIP %s ... ", name);
} else {
#if defined(CONFIG_HW_WATCHDOG) || defined(CONFIG_WATCHDOG)
size_t l = len;
void *to = (void *)ntohl(hdr->ih_load);
void *from = (void *)data;
printf (" Loading %s ... ", name);
while (l > 0) {
size_t tail = (l > CHUNKSZ) ? CHUNKSZ : l;
WATCHDOG_RESET();
memmove (to, from, tail);
to += tail;
from += tail;
l -= tail;
}
#else /* !(CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG) */
memmove ((void *) ntohl(hdr->ih_load), (uchar *)data, len);
#endif /* CONFIG_HW_WATCHDOG || CONFIG_WATCHDOG */
}
<snip>
puts ("OK\n");
<snip>
do_bootm_linux (cmdtp, flag, argc, argv,
addr, len_ptr, verify);
Marvell>> bootm 0x400000
bootm 0x400000
## Booting image at 00400000 ...
Image Name: Linux-2.6.39.4
Created: 2013-10-20 7:51:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3120776 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
fvdw wrote:the 5big is supporting clunc, otherwise we could use the u-boot console
@tatae
You did not do the test with first performing
- Code: Select all
marvel>> ide reset
then set env variables for netconsole support, upload with tftpboot the kernel and perform the bootm command
provided by fvdw
waiting for u-boot..
starting u-boot net console click on window and press enter
Marvell>> ide reset
ide reset
Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
Device 0: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0410979
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 1: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0218180
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 2: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0424246
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Error - Failed initializing(SRST) drive on channel 3
Failed initializing storage deivce connected to SATA channel 3
Device 4: OK
Model: WDC WD5000AADS-00S9B0 Firm: 01.00A01 Ser#: WD-WCA
V90478832
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Marvell>> setenv ipaddr ${ipaddr}
setenv ipaddr ${ipaddr}
Marvell>> setenv serverip ${serverip}
setenv serverip ${serverip}
Marvell>> setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@$
{serverip}/
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip}
/
Marvell>> tftpboot 0x800000 UIMAGE-26394-NWSP2CL-5BIG1-21-standalone
tftpboot 0x800000 UIMAGE-26394-NWSP2CL-5BIG1-21-standalone
Using egiga0 device
TFTP from server 192.168.1.12; our IP address is 192.168.1.252
Filename 'UIMAGE-26394-NWSP2CL-5BIG1-21-standalone'.
Load address: 0x800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################
done
Bytes transferred = 3120840 (2f9ec8 hex)
Marvell>> bootm
bootm
## Booting image at 00800000 ...
Image Name: Linux-2.6.39.4
Created: 2013-10-20 7:51:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3120776 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
On the original IBM PC the hardware clocktick was used to refresh the memory, among other things. So if you disabled the clock interrupt, after some time (a second?) the system just 'faded away'.
Maybe a similar problem is here. In that case the kernel is too big, and the system just stops before the kernel can re-enable the interrupts. In that case it could be solved by putting the initd in a second uImage. That can be moved to it's destination while the interrupts are not disabled yet.
image_name=uImage
standalone=fsload 0x400000 $(image_name);setenv bootargs $(bootargs) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x400000;
disaMvPnp=no
eth1addr=00:00:00:00:51:82
overEthAddr=no
pciMode=host
usb0Mode=host
bootdelay=40
bootcmd=if lump 5; then ; else run disk_disk; fi
kernel_addr=0x400000
boot_disk10=disk ${kernel_addr} 4:6
boot_disk9=if disk ${kernel_addr} 3:6; then; else run boot_disk10; fi
boot_disk8=if disk ${kernel_addr} 2:6; then; else run boot_disk9; fi
boot_disk7=if disk ${kernel_addr} 1:6; then; else run boot_disk8; fi
boot_disk6=if disk ${kernel_addr} 0:6; then; else run boot_disk7; fi
boot_disk5=if disk ${kernel_addr} 4:A; then; else run boot_disk6; fi
boot_disk4=if disk ${kernel_addr} 3:A; then; else run boot_disk5; fi
boot_disk3=if disk ${kernel_addr} 2:A; then; else run boot_disk4; fi
boot_disk2=if disk ${kernel_addr} 1:A; then; else run boot_disk3; fi
boot_disk1=if disk ${kernel_addr} 0:A; then; else run boot_disk2; fi
disk_disk=ide reset; run boot_disk1; bootm ${kernel_addr};
ethact=egiga0
bootargs=console=ttyS0,115200 root=/dev/sda7 ro boardType=mv88F5281 productType=5Big reset=0
standalone=fsload 0x400000 $(image_name);setenv bootargs $(bootargs) root=/dev/mtdblock0 rw
provided by fvdw
waiting for u-boot..
starting u-boot net console click on window and press enter
Marvell>> ide reset
ide reset
Reset IDE:
Marvell Serial ATA Adapter
Found adapter at bus 1, device 7 ... Scanning channels
Device 0: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0410979
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 1: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0218180
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 2: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0424246
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 3: OK
Model: WDC WD20EZRX-00D8PB0 Firm: 80.00A80 Ser#: WD-WMC
4M0219436
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Device 4: OK
Model: WDC WD5000AADS-00S9B0 Firm: 01.00A01 Ser#: WD-WCA
V90478832
Type: Hard Disk
Supports 48-bit addressing
Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Marvell>> setenv ipaddr ${ipaddr}
setenv ipaddr ${ipaddr}
Marvell>> setenv serverip ${serverip}
setenv serverip ${serverip}
Marvell>> setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@
${serverip}/
setenv bootargs console=ttyS0,115200 netconsole=6666@${ipaddr}/,6666@${serverip
}/
Marvell>> tftpboot 0x400000 UIMAGE-5BIG1-21-standalone
tftpboot 0x400000 UIMAGE-5BIG1-21-standalone
Using egiga0 device
TFTP from server 192.168.1.12; our IP address is 192.168.1.252
Filename 'UIMAGE-5BIG1-21-standalone'.
Load address: 0x400000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#########################
done
Bytes transferred = 3120840 (2f9ec8 hex)
Marvell>> bootm 0x400000
bootm 0x400000
## Booting image at 00400000 ...
Image Name: Linux-2.6.39.4
Created: 2013-10-20 7:51:30 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3120776 Bytes = 3 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Return to Lacie 5Big Network vs1
Users browsing this forum: No registered users and 6 guests