Re: Dockstar HW mod: Trying to add native sata November 11, 2021 07:31PM |
Registered: 10 years ago Posts: 226 |
[ 70.720733] __nand_correct_data: uncorrectable ECC error [ 70.726179] blk_update_request: I/O error, dev mtdblock0, sector 2040 [ 70.732987] __nand_correct_data: uncorrectable ECC error [ 70.738426] blk_update_request: I/O error, dev mtdblock0, sector 2040 [ 70.744904] Buffer I/O error on dev mtdblock0, logical block 255, async page read [ 70.755914] __nand_correct_data: uncorrectable ECC error [ 70.761298] blk_update_request: I/O error, dev mtdblock1, sector 0 [ 70.767769] __nand_correct_data: uncorrectable ECC error [ 70.773125] blk_update_request: I/O error, dev mtdblock1, sector 0 [ 70.779338] Buffer I/O error on dev mtdblock1, logical block 0, async page read [ 71.091512] __nand_correct_data: uncorrectable ECC error [ 71.096994] blk_update_request: I/O error, dev mtdblock0, sector 2040 [ 71.103731] __nand_correct_data: uncorrectable ECC error [ 71.109078] blk_update_request: I/O error, dev mtdblock0, sector 2040 [ 71.115548] Buffer I/O error on dev mtdblock0, logical block 255, async page read [ 71.126295] __nand_correct_data: uncorrectable ECC error [ 71.131646] blk_update_request: I/O error, dev mtdblock1, sector 0 [ 71.138125] __nand_correct_data: uncorrectable ECC error [ 71.143522] blk_update_request: I/O error, dev mtdblock1, sector 0 [ 71.149738] Buffer I/O error on dev mtdblock1, logical block 0, async page read
Re: Dockstar HW mod: Trying to add native sata November 11, 2021 07:56PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 11, 2021 08:36PM |
Registered: 9 years ago Posts: 451 |
Re: Dockstar HW mod: Trying to add native sata November 12, 2021 08:34AM |
Registered: 2 years ago Posts: 56 |
echo 1048576 > /proc/sys/net/core/wmem_default echo 1048576 > /proc/sys/net/core/wmem_max echo 1048576 > /proc/sys/net/core/rmem_default echo 1048576 > /proc/sys/net/core/rmem_max
echo 1 > /proc/fs/nfsd/threads
top - 16:24:03 up 23 min, 1 user, load average: 0.15, 0.28, 0.39 Tasks: 74 total, 3 running, 71 sleeping, 0 stopped, 0 zombie %Cpu0 : 1.0 us, 45.3 sy, 0.0 ni, 2.0 id, 1.0 wa, 0.0 hi, 50.7 si, 0.0 st MiB Mem : 109.0 total, 6.5 free, 20.2 used, 82.3 buff/cache MiB Swap: 2048.0 total, 2048.0 free, 0.0 used. 83.4 avail Mem PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND 1250 root 20 0 0 0 0 R 79.7 0.0 1:51.97 [nfsd] 11 root 20 0 0 0 0 R 6.9 0.0 0:14.27 [ksoftirqd/0] 89 root 20 0 0 0 0 S 5.6 0.0 0:14.03 [kswapd0] 1383 root 20 0 6512 2728 2240 R 1.0 2.4 0:00.24 top -c1 12 root 20 0 0 0 0 I 0.3 0.0 0:00.85 [rcu_preempt]
WND_SZ=1048576 process_options() { echo $WND_SZ > /proc/sys/net/core/wmem_default echo $WND_SZ > /proc/sys/net/core/wmem_max echo $WND_SZ > /proc/sys/net/core/rmem_default echo $WND_SZ > /proc/sys/net/core/rmem_max .... }
BS=1048576 THREADS=1 case "$1" in start) echo $BS > /proc/fs/nfsd/max_block_size echo $THREADS > /proc/fs/nfsd/threads #before this line start-stop-daemon --start --oknodo --quiet
Re: Dockstar HW mod: Trying to add native sata November 12, 2021 03:00PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 12, 2021 03:49PM |
Registered: 2 years ago Posts: 56 |
Re: Dockstar HW mod: Trying to add native sata November 12, 2021 06:25PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 12, 2021 09:56PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Perfornance Tuning & Benchmarks
Pogo ProV3 vs Pogo E02
Another Pogo Pro V3 benchmarks
Network performance - SAMBA - NFS (various protocols)
Pogo Pro V3 Network NFS benchmarks
Kirkwood vs OXNAS network performance (with flow control)
Kirkwood vs OXNAS network performance (flow control turned off )
OXNAS vs OXNAS network performance (flow control turned off)
Samba Tuning
Mount NTFS with big_writes
Increase NFSD max_block_size
Reduce NFSD threads
Re: Dockstar HW mod: Trying to add native sata November 13, 2021 09:42AM |
Registered: 7 years ago Posts: 369 |
Re: Dockstar HW mod: Trying to add native sata November 13, 2021 02:49PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 13, 2021 05:36PM |
Registered: 2 years ago Posts: 56 |
Re: Dockstar HW mod: Trying to add native sata November 13, 2021 05:48PM |
Registered: 7 years ago Posts: 369 |
Re: Dockstar HW mod: Trying to add native sata November 13, 2021 05:51PM |
Registered: 7 years ago Posts: 369 |
Re: Dockstar HW mod: Trying to add native sata November 13, 2021 07:07PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 14, 2021 05:01AM |
Registered: 2 years ago Posts: 56 |
Re: Dockstar HW mod: Trying to add native sata November 14, 2021 03:28PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 15, 2021 11:10AM |
Registered: 2 years ago Posts: 56 |
Re: Dockstar HW mod: Trying to add native sata November 15, 2021 03:48PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 16, 2021 05:12AM |
Registered: 2 years ago Posts: 56 |
Re: Dockstar HW mod: Trying to add native sata November 16, 2021 03:36PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 16, 2021 04:49PM |
Registered: 2 years ago Posts: 56 |
Re: Dockstar HW mod: Trying to add native sata November 16, 2021 09:08PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 17, 2021 06:57AM |
Registered: 2 years ago Posts: 56 |
setenv bootargs 'mem=64M,console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
MiB Mem : 109.0 total,
grep -Rls SDRAM
arch/arm/mach-kirkwood/include/mach/config.h
/* * By default kwbimage.cfg from board specific folder is used * If for some board, different configuration file need to be used, * CONFIG_SYS_KWD_CONFIG should be defined in board specific header file */
board/Seagate/dockstar/kwbimage.cfg
DATA 0xFFD01410 0x0000000d # DDR Address Control # bit1-0: 00, Cs0width=x8 # bit3-2: 11, Cs0size=1Gb # bit5-4: 00, Cs1width=nonexistent # bit7-6: 00, Cs1size =nonexistent # bit9-8: 00, Cs2width=nonexistent # bit11-10: 00, Cs2size =nonexistent # bit13-12: 00, Cs3width=nonexistent # bit15-14: 00, Cs3size =nonexistent # bit16: 0, Cs0AddrSel # bit17: 0, Cs1AddrSel # bit18: 0, Cs2AddrSel # bit19: 0, Cs3AddrSel # bit31-20: 0 requiredThe comments are wrong (I guess it's copy&paste), 0x0D is binary 1101:
DATA 0xFFD01410 0x00000001 # DDR Address Control # bit1-0: 01, Cs0width=x16 # bit3-2: 00, Cs0size=2Gb
Bit Field Type/Init Val Description 1:0 CS0Width RW 0x0 SDRAM Address Select Determines what address bits to drive on M_A[14:0] and M_BA[2:0] during activate and command phases (row and column addresses). NOTE: See DDR SDRAM Address Multiplex. 0 = Reserved 1 = x16 Bit Field Type/Init Val Description 3:2 CS0Size RW 0x1 SDRAM Device Configuration Effects SDRAM row and column address bits multiplexing. See DDR SDRAM Addressing. 0 = 2 Gb: when supported 1 = 256 Mb 2 = 512 Mb 3 = 1 Gb
arch/arm/mach-mvebu/cpu.c
/* * This function initialize Controller DRAM Fastpath windows. * It takes the CS size information from the 0x1500 scratch registers * and sets the correct windows sizes and base addresses accordingly. * * These values are set in the scratch registers by the Marvell * DDR3 training code, which is executed by the BootROM before the * main payload (U-Boot) is executed. This training code is currently * only available in the Marvell U-Boot version. It needs to be * ported to mainline U-Boot SPL at some point. */ static void update_sdram_window_sizes(void) { u64 base = 0; u32 size, temp; int i; for (i = 0; i < SDRAM_MAX_CS; i++) { size = readl((MVEBU_SDRAM_SCRATCH + (i * 8))) & SDRAM_ADDR_MASK; if (size != 0) { size |= ~(SDRAM_ADDR_MASK); /* Set Base Address */ temp = (base & 0xFF000000ll) | ((base >> 32) & 0xF); writel(temp, MVEBU_SDRAM_BASE + DDR_BASE_CS_OFF(i));These registers are in the page 390 of the manual.
0x0068: 10 14 D0 FF 0D 00 00 00
FFD01410 0000000D Clearly: DATA 0xFFD01410 0x0000000d # DDR Address Control
make u-boot.kwb
Re: Dockstar HW mod: Trying to add native sata November 17, 2021 03:18PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Dockstar HW mod: Trying to add native sata November 17, 2021 03:26PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Is the ram size already set by the BootROM before u-boot is executed?
Re: Dockstar HW mod: Trying to add native sata November 17, 2021 04:40PM |
Registered: 2 years ago Posts: 56 |
DATA 0xFFD01504 0x07FFFFF1 # CS[0]n Size # bit0: 1, Window enabled # bit1: 0, Write Protect disabled # bit3-2: 00, CS0 hit selected # bit23-4: ones, required # bit31-24: 0x07, Size (i.e. 128MB)
0x00B7: 0F(256M) 07 (128MB) 03(64MB)
nand read 0x100000 0 0x20000 nand erase 0 0x20000 mw.b 0x10006C 0x0D mw.b 0x1000B7 0x07 mw.b 0x1001FF 0x00 nand write 0x100000 0 0x20000
0x006C: 09 0x00B7: 03 0x01FF: F8
0x006C: 01 0x00B7: 0F 0x01FF: FC
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 -0700) Seagate GoFlex Net SoC: Kirkwood 88F6281_A0 DRAM: 64 MiB
memory { device_type = "memory"; reg = <0x00000000 0x8000000>; };
#include "kirkwood.dtsi" #include "kirkwood-6281.dtsi"
root@debian:~# dd if=/dev/zero of=/dev/sda2 bs=1M count=1024 1024+0 records in 1024+0 records out 1073741824 bytes (1.1 GB, 1.0 GiB) copied, 12.6482 s, 84.9 MB/s
Re: Dockstar HW mod: Trying to add native sata November 17, 2021 09:11PM |
Admin Registered: 13 years ago Posts: 18,821 |
> U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 > -0700) > Seagate GoFlex Net > > SoC: Kirkwood 88F6281_A0 > DRAM: 64 MiB >>
Re: Dockstar HW mod: Trying to add native sata November 17, 2021 11:16PM |
Registered: 2 years ago Posts: 56 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:17:19 -0700) Seagate GoFlex Net SoC: Kirkwood 88F6281_A0 DRAM: 64 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: WDC WD10JPVX-22JC3T0 Firm: 01.01A01 Ser#: WD-WX61E14X1081 Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 ## Unknown partition table type 0 loading envs from usb 0 ... ** Bad device usb 0 ** Partition Map for IDE device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 20969472 e9df59ed-01 83 Boot 2 41945088 4194304 e9df59ed-02 82 3 46139392 1907382272 e9df59ed-03 83 running scan_disk ... Scan device usb device usb 0:1 ** Bad device usb 0 ** device usb 1:1 ** Bad device usb 1 ** device usb 2:1 ** Bad device usb 2 ** device usb 3:1 ** Bad device usb 3 ** Scan device ide Reset IDE: Bus 0: OK Bus 1: not available Device 0: Model: WDC WD10JPVX-22JC3T0 Firm: 01.01A01 Ser#: WD-WX61E14X1081 Type: Hard Disk Supports 48-bit addressing Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512) device ide 0:1 1 bytes read in 41 ms (0 Bytes/s) Found bootable drive on ide 0 loading uImage ... 5472984 bytes read in 923 ms (5.7 MiB/s) loading uInitrd ... 9710349 bytes read in 1649 ms (5.6 MiB/s) loading DTB /boot/dts/kirkwood-goflexnet.dtb ... 11457 bytes read in 63 ms (176.8 KiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-5.14.9-kirkwood-tld-1 Created: 2021-11-12 12:47:52 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5472920 Bytes = 5.2 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-5.14.9-kirkwood-tld-1 Created: 2021-11-12 12:48:02 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9710285 Bytes = 9.3 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK ## Flattened Device Tree blob at 01c00000 Booting using the fdt blob at 0x1c00000 Loading Kernel Image ... OK Loading Ramdisk to 031ca000, end 03b0cacd ... OK Loading Device Tree to 031c4000, end 031c9cc0 ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
Re: Dockstar HW mod: Trying to add native sata November 18, 2021 12:32AM |
Admin Registered: 13 years ago Posts: 18,821 |
printenv set_bootargs
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'and then
boot
Re: Dockstar HW mod: Trying to add native sata November 18, 2021 02:15AM |
Registered: 2 years ago Posts: 56 |