TerraMaster F2NAS2 u-boot program February 07, 2018 06:03PM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 07, 2018 07:37PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: TerraMaster F2NAS2 u-boot program February 07, 2018 07:58PM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 07, 2018 11:49PM |
Admin Registered: 13 years ago Posts: 18,896 |
cat /proc/mtd
flash_erase /dev/mtd0 0 4 nandwrite /dev/mtd0 uboot-nand.bin
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 10:43AM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 11:36AM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 01:17PM |
Registered: 6 years ago Posts: 16 |
nanddump -o -f mtd0.img /dev/mtd0
ECC: 8 corrected bitflip(s) at offset 0x000b9000
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 02:34PM |
Admin Registered: 13 years ago Posts: 18,896 |
nanddump --noecc --omitoob -l 0x80000 -f mtd0 /dev/mtd0
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 03:10PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 03:21PM |
Registered: 6 years ago Posts: 16 |
p/x * (struct main_hdr_v0 *)0x7ffff7f4c000 $8 = { blockid = 0x8b, nandeccmode = 0x0, nandpagesize = 0x800, blocksize = 0x73d98, rsvd1 = 0x0, srcaddr = 0x200, destaddr = 0x600000, execaddr = 0x670000, satapiomode = 0x0, rsvd3 = 0x0, ddrinitdelay = 0x0, rsvd2 = 0x0, ext = 0x1, checksum = 0x39 }
(gdb) p/x *hdr $10 = { blockid = 0x8b, flags = 0x0, reserved2 = 0x800, blocksize = 0x73d98, version = 0x0, headersz_msb = 0x0, headersz_lsb = 0x0, srcaddr = 0x200, destaddr = 0x600000, execaddr = 0x670000, options = 0x0, nandblocksize = 0x0, nandbadblklocation = 0x0, reserved4 = 0x0, reserved5 = 0x0, ext = 0x1, checksum = 0x39 }
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 03:46PM |
Registered: 6 years ago Posts: 16 |
Using Hamming 1-bit ECC for NAND device NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit)
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 03:49PM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 04:05PM |
Registered: 6 years ago Posts: 16 |
(nas)#nandwrite /dev/mtd0 uboot-nand-patched.bin Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x20000 Writing data to block 2 at offset 0x40000 Writing data to block 3 at offset 0x60000 (nas)#nanddump -l 0x80000 -f /tmp/mtd0.img /dev/mtd0 ECC failed: 0 ECC corrected: 0 Number of bad blocks: 0 Number of bbt blocks: 0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x00080000... (nas)#cmp uboot-nand-patched.bin mtd0.img
Re: TerraMaster F2NAS2 u-boot program February 08, 2018 08:05PM |
Admin Registered: 13 years ago Posts: 18,896 |
> (nas)#nandwrite /dev/mtd0 uboot-nand-patched.bin > Writing data to block 0 at offset 0x0 > Writing data to block 1 at offset 0x20000 > Writing data to block 2 at offset 0x40000 > Writing data to block 3 at offset 0x60000 > (nas)#nanddump -l 0x80000 -f /tmp/mtd0.img > /dev/mtd0 > ECC failed: 0 > ECC corrected: 0 > Number of bad blocks: 0 > Number of bbt blocks: 0 > Block size 131072, page size 2048, OOB size 64 > Dumping data starting at 0x00000000 and ending at > 0x00080000... > (nas)#cmp uboot-nand-patched.bin mtd0.img >
Re: TerraMaster F2NAS2 u-boot program February 09, 2018 09:35AM |
Registered: 6 years ago Posts: 16 |
Image Name: Linux-2.6.31.8 Created: 2014-03-16 8:51:43 UTC
# dmesg |egrep -i "nand|orion|armada|marvell|mv|mtd" CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x00100000@0x00000000(bootloader),0x00400000@0x00100000(data),0x01000000@0x00500000(backup-kernel),0x06400000@0x01500000(backup-system),0x01000000@0x07900000(kernel),0x17700000@0x08900000(rootfs); rootfstype=jffs2 root=/dev/mtdblock5 init=/linuxrc mem=1024m Marvell Development Board (LSP Version KW_LSP_5.1.3_patch29)-- DB-88F6282A-BP Soc: 88F6282 A1 LE MV Buttons Device Load Marvell USB EHCI Host controller #0: 9000d540 rtc mv_rtc: rtc core: registered kw-rtc as rtc0 mvCesaInit: sessions=640, queue=64, pSram=f0000000 MV Buttons Driver Load JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter Loading Marvell Ethernet Driver: o register under mv88fx_eth platform mvFpRuleDb (90780000): 16384 entries, 65536 bytes Using Hamming 1-bit ECC for NAND device NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit) mtd: no mtd-id 6 cmdlinepart partitions found on MTD device nand_mtd Creating 6 MTD partitions on "nand_mtd": ehci_marvell ehci_marvell.70059: Marvell Orion EHCI ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00 usb usb1: Product: Marvell Orion EHCI usb usb1: SerialNumber: ehci_marvell.70059 Orion Watchdog Timer: Initial timeout 21 sec Marvell Kirkwood Power Management Initializing rtc mv_rtc: setting system clock to 2033-10-19 23:42:44 UTC (2013378164)
Linux version 2.6.31.8 (root@rds-02) (gcc version 4.3.2 (sdk3.2rc1-ct-ng-1.4.1) ) #8 PREEMPT Sun Mar 16 16:51:41 CST 2014 CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977 CPU: VIVT data cache, VIVT instruction cache Machine: Feroceon-KW Using UBoot passing parameters structure Memory policy: ECC disabled, Data cache writeback Built 1 zonelists in Zone order, mobility grouping off. Total pages: 259840 Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x00100000@0x00000000(bootloader),0x00400000@0x00100000(data),0x01000000@0x00500000(backup-kernel),0x06400000@0x01500000(backup-system),0x01000000@0x07900000(kernel),0x17700000@0x08900000(rootfs); rootfstype=jffs2 root=/dev/mtdblock5 init=/linuxrc mem=1024m PID hash table entries: 2048 (order: 11, 8192 bytes) Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) Memory: 512MB 512MB = 1024MB total Memory: 1033092KB available (4532K code, 274K data, 128K init, 524288K highmem) SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 Hierarchical RCU implementation. NR_IRQS:128 Console: colour dummy device 80x30 Calibrating delay loop... 1599.07 BogoMIPS (lpj=7995392) Mount-cache hash table entries: 512 CPU: Testing write buffer coherency: ok xor: measuring software checksum speed arm4regs : 1454.000 MB/sec 8regs : 1102.000 MB/sec 32regs : 1076.800 MB/sec xor: using function: arm4regs (1454.000 MB/sec) NET: Registered protocol family 16 Feroceon L2: Enabling L2 Feroceon L2: Cache support initialised, in WT override mode. CPU Interface ------------- SDRAM_CS0 ....base 00000000, size 512MB SDRAM_CS1 ....base 20000000, size 512MB SDRAM_CS2 ....disable SDRAM_CS3 ....disable PEX0_MEM ....base e0000000, size 128MB PEX0_IO ....base f2000000, size 1MB PEX1_MEM ....base e8000000, size 128MB PEX1_IO ....base f2100000, size 1MB INTER_REGS ....base f1000000, size 1MB NFLASH_CS ....base fa000000, size 2MB SPI_CS ....base f4000000, size 16MB BOOT_ROM_CS ....no such DEV_BOOTCS ....no such CRYPT_ENG ....base f0000000, size 2MB Marvell Development Board (LSP Version KW_LSP_5.1.3_patch29)-- DB-88F6282A-BP Soc: 88F6282 A1 LE Detected Tclk 200000000 and SysClk 533333333 MV Buttons Device Load Marvell USB EHCI Host controller #0: 9000d540 PEX0 interface detected no Link. PEX1 interface detected no Link. PCI: bus0: Fast back to back transfers enabled PCI: bus1: Fast back to back transfers enabled bio: create slab <bio-0> at 0 SCSI subsystem initialized usbcore: registered new interface driver usbfs usbcore: registered new interface driver hub usbcore: registered new device driver usb raid6: int32x1 147 MB/s raid6: int32x2 174 MB/s raid6: int32x4 156 MB/s raid6: int32x8 135 MB/s raid6: using algorithm int32x2 (174 MB/s) cfg80211: Calling CRDA to update world regulatory domain NET: Registered protocol family 2 IP route cache hash table entries: 16384 (order: 4, 65536 bytes) TCP established hash table entries: 65536 (order: 7, 524288 bytes) TCP bind hash table entries: 65536 (order: 6, 262144 bytes) TCP: Hash tables configured (established 65536 bind 65536) TCP reno registered NET: Registered protocol family 1 rtc mv_rtc: rtc core: registered kw-rtc as rtc0 RTC registered Kirkwood hwmon thermal sensor initialized. XOR registered 2 channels XOR 2nd invalidate WA enabled cesadev_init(8000df1c) mvCesaInit: sessions=640, queue=64, pSram=f0000000 MV Buttons Driver Load highmem bounce pool size: 64 pages VFS: Disk quotas dquot_6.5.2 Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 995 alg: No test for cipher_null (cipher_null-generic) alg: No test for ecb(cipher_null) (ecb-cipher_null) alg: No test for digest_null (digest_null-generic) alg: No test for compress_null (compress_null-generic) alg: No test for stdrng (krng) alg: No test for hmac(digest_null) (hmac(digest_null-generic)) async_tx: api initialized (sync-only) Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253) io scheduler noop registered io scheduler anticipatory registered (default) Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A console [ttyS0] enabled serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A brd: module loaded loop: module loaded Integrated Sata device found IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs scsi0 : Marvell SCSI to SATA adapter scsi1 : Marvell SCSI to SATA adapter scst: User interface thread started, PID 171 scst: Processing thread scstd0 (PID 172) started scst: Init thread started, PID 173 scst: Task management thread started, PID 174 scst: SCST version 3.0.0-pre2 loaded successfully (max mem for commands 124MB, per device 49MB) scst: Device handler "dev_disk" for type 0 registered successfully scst: Device handler "dev_disk_perf" for type 0 registered successfully scst: Device handler "dev_raid" for type 12 registered successfully scst: Virtual device handler vdisk_fileio for type 0 registered successfully scst: Virtual device handler vdisk_blockio for type 0 registered successfully scst: Virtual device handler vdisk_nullio for type 0 registered successfully scst: Virtual device handler vcdrom for type 5 registered successfully scst: Virtual device handler "scst_user" registered successfully scst: Management thread started, PID 175 iscsi-scst: iSCSI SCST Target - version 3.0.0-pre2 scst: Target template iscsi registered successfully scst_user: Cleanup thread started, PID 176 iscsi-scst: Read thread for pool 903f8640 started, PID 177 iscsi-scst: Read thread for pool 903f8640 started, PID 178 iscsi-scst: Write thread for pool 903f8640 started, PID 179 scst: Target template scst_local registered successfully iscsi-scst: Write thread for pool 903f8640 started, PID 180 scst: Target scst_local_tgt for template scst_local registered successfully scst: Using security group "scst_local_tgt" for initiator "scst_local_host" (target scst_local_tgt) scsi2 : scst_local Loading Marvell Ethernet Driver: o Cached descriptors in DRAM o DRAM SW cache-coherency o 2 Giga ports supported o Single RX Queue support - ETH_DEF_RXQ=0 o Single TX Queue support - ETH_DEF_TXQ=0 o TCP segmentation offload (TSO) supported o UDP fragmentation offload (UFO) supported o Large Receive offload (LRO) supported o Receive checksum offload supported o Transmit checksum offload supported o Network Fast Processing (Routing) supported - (Disabled) o Proc tool API enabled o SKB Reuse supported - (Disabled) o SKB Recycle supported - (Disabled) o Rx descripors: q0=128 o Tx descripors: q0=512 o Loading network interface(s): o register under mv88fx_eth platform eth0: mixed HW and IP checksum settings. o eth0, ifindex = 2, GbE port = 0 Warning: Giga 1 is Powered Off mvFpRuleDb (90780000): 16384 entries, 65536 bytes Using Hamming 1-bit ECC for NAND device NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit) Scanning device for bad blocks Bad eraseblock 789 at 0x0000062a0000 mtd: no mtd-id 6 cmdlinepart partitions found on MTD device nand_mtd Using command line partition definition Creating 6 MTD partitions on "nand_mtd": 0x000000000000-0x000000100000 : "bootloader" 0x000000100000-0x000000500000 : "data" 0x000000500000-0x000001500000 : "backup-kernel" 0x000001500000-0x000007900000 : "backup-system" 0x000007900000-0x000008900000 : "kernel" 0x000008900000-0x000020000000 : "rootfs" ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver ehci_marvell ehci_marvell.70059: Marvell Orion EHCI ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1 ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100 ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00 usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 usb usb1: Product: Marvell Orion EHCI usb usb1: Manufacturer: Linux 2.6.31.8 ehci_hcd usb usb1: SerialNumber: ehci_marvell.70059 usb usb1: configuration #1 chosen from 1 choice hub 1-0:1.0: USB hub found hub 1-0:1.0: 1 port detected ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver usbcore: registered new interface driver usblp usbcore: registered new interface driver cdc_wdm Initializing USB Mass Storage driver... usbcore: registered new interface driver usb-storage USB Mass Storage support registered. usbcore: registered new interface driver ums-alauda usbcore: registered new interface driver ums-cypress usbcore: registered new interface driver ums-datafab usbcore: registered new interface driver ums-freecom usbcore: registered new interface driver ums-isd200 usbcore: registered new interface driver ums-jumpshot usbcore: registered new interface driver ums-karma usbcore: registered new interface driver ums-onetouch usbcore: registered new interface driver ums-sddr09 usbcore: registered new interface driver ums-sddr55 usbcore: registered new interface driver ums-usbat i2c /dev entries driver Orion Watchdog Timer: Initial timeout 21 sec md: linear personality registered for level -1 md: raid0 personality registered for level 0 md: raid1 personality registered for level 1 md: raid10 personality registered for level 10 md: raid6 personality registered for level 6 md: raid5 personality registered for level 5 md: raid4 personality registered for level 4 cpuidle: using governor ladder NET: Registered protocol family 17 lib80211: common routines for IEEE802.11 drivers Marvell Kirkwood Power Management Initializing rtc mv_rtc: setting system clock to 2033-10-19 23:42:44 UTC (2013378164) md: Skipping autodetection of RAID arrays. (raid=autodetect will force) VFS: Mounted root (jffs2 filesystem) on device 31:5. Freeing init memory: 128K mount etc as tmpfs can't create lock file /etc/mtab~187: No such file or directory (use -n flag to override) device-mapper: uevent: version 1.0.3 device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com dm_crypt using the OCF package. Loading iSCSI transport class v2.0-870. iscsi: registered transport (tcp) usbcore: registered new interface driver r871x_usb_drv NTFS driver 2.1.29 [Flags: R/W MODULE]. eth0: link up, full duplex, speed 100 Mbps eth0: started Password for 'root' changed utelnetd starting mdadm: cannot open device /dev/btns: Invalid argument mdadm: /dev/btns has no superblock - assembly aborted ***************************************************************************************************************** 480 service avahi start service cupsd start service dbus start service iscsi start service lprng start service nfs start RPC: Registered udp transport module. RPC: Registered tcp transport module. Installing knfsd (copyright (C) 1996 okir@monad.swb.de). NET: Registered protocol family 10 svc: failed to register lockdv1 RPC service (errno 97). NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory NFSD: starting 90-second grace period service nginx start service regcloud start service samba start service smbftpd start service sshd start service syslog start service upnp start service upnpportmap start service utelnetd start <30>udev[1235]: starting version 167 64 Processing /etc/profile... (nas)#Error resolving time.nist.gov: System error (-11) 19 Oct 23:43:48 ntpdate[1252]: Can't find host time.nist.gov: System error (-11) 19 Oct 23:43:48 ntpdate[1252]: no servers can be used, exiting
Re: TerraMaster F2NAS2 u-boot program February 09, 2018 10:13AM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 09, 2018 10:53AM |
Registered: 6 years ago Posts: 16 |
Marvell>> nand read 0 0 0x10000 NAND read: device 0 offset 0x0, size 0x10000 65536 bytes read: ERROR
nand read 0 0x7900000 0x10000 NAND read: device 0 offset 0x7900000, size 0x10000 65536 bytes read: OK
Marvell>> tftpboot 0x2000000 uboot-nand.bin Using egiga0 device TFTP from server 10.18.13.102; our IP address is 10.18.13.254 Filename 'uboot-nand.bin'. Load address: 0x2000000 Loading: ################################################################# ###################################### done Bytes transferred = 524288 (80000 hex) Marvell>> nand erase 0 0x80000 NAND erase: device 0 offset 0x0, size 0x80000 Erasing at 0x60000 -- 100% complete. OK Marvell>> nand write 0x2000000 0 0x80000 NAND write: device 0 offset 0x0, size 0x80000 524288 bytes written: OK Marvell>> nand read 0 0 0x80000 NAND read: device 0 offset 0x0, size 0x80000 524288 bytes read: OK Marvell>> cmp 0 0x2000000 0x80000 word at 0x00080000 (0xffffffff) != word at 0x02080000 (0xfffffeff) Total of 131072 words were the same
Marvell>> nand dump 0 Page 00000000 dump: 8b 00 00 08 98 3d 07 00 00 00 00 00 00 02 00 00 00 00 60 00 00 00 67 00 00 00 00 00 00 00 01 39 40 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 e0 00 d1 ff 9b 1b 1b 1b 00 14 d0 ff 3c 50 01 43 04 14 d0 ff 00 30 84 ba 08 14 d0 ff 63 76 13 33 0c 14 d0 ff 55 0c 00 16 10 14 d0 ff 00 00 00 04 14 14 d0 ff 00 00 00 00 18 14 d0 ff 00 00 00 00 1c 14 d0 ff 72 06 00 00 20 14 d0 ff 04 00 00 00 24 14 d0 ff 4f 31 00 00 28 14 d0 ff 20 67 0d 00 7c 14 d0 ff 71 b5 00 00 04 15 d0 ff f1 ff ff 1f 08 15 d0 ff 00 00 00 20 0c 15 d0 ff f5 ff ff 1f 14 15 d0 ff 00 00 00 00 1c 15 d0 ff 00 00 00 00 94 14 d0 ff 00 00 12 00 98 14 d0 ff 00 00 00 00 9c 14 d0 ff 03 e8 00 00 d0 15 d0 ff 30 06 00 00 d4 15 d0 ff 46 00 00 00 d8 15 d0 ff 08 00 00 00 dc 15 d0 ff 00 00 00 00 e0 15 d0 ff 23 00 00 00 e4 15 d0 ff 18 3c 20 00 20 16 d0 ff 00 48 38 00 80 14 d0 ff 01 00 00 00 34 01 d2 ff 66 66 66 66 38 01 d2 ff 66 66 06 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 c2 12 00 00 ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 a0 01 60 00 00 02 60 00 60 02 60 00 c0 02 60 00 20 03 60 00 80 03 60 00 e0 03 60 00 ef be ad de 00 00 60 00 00 00 60 00 f0 ff 67 00 80 fd 6c 00 00 00 0f e1 1f 00 c0 e3 d3 00 80 e3 00 f0 29 e1 17 00 00 eb 6c 00 4f e2 30 10 1f e5 01 00 50 e1 07 00 00 0a 38 20 1f e5 38 30 1f e5 02 20 43 e0 02 20 80 e0 f8 07 b0 e8 f8 07 a1 e8 02 00 50 e1 fb ff ff da 5c 00 1f e5 80 00 40 e2 10 d0 40 e2 60 00 1f e5 60 10 1f e5 00 20 a0 e3 00 20 80 e5 04 00 80 e2 01 00 50 e1 fb ff ff da 04 f0 1f e5 d8 0e 62 00 10 0f 10 ee 20 02 a0 e1 6c 13 9f e5 01 00 00 e0 68 13 9f e5 01 00 50 e1 03 00 00 0a 00 00 a0 e3 17 0f 07 ee 17 0f 08 ee 02 00 00 ea 00 00 a0 e3 15 0f 07 ee 16 0f 07 ee 10 0f 11 ee 07 00 c0 e3 02 00 80 e3 01 0a 80 e3 10 0f 01 ee 30 13 9f e5 00 60 91 e5 03 10 a0 e3 ff 60 06 e2 06 00 51 e1 01 00 00 1a 00 00 a0 e3 10 0f 09 ee 0e c0 a0 e1 c9 00 00 eb 0c e0 a0 e1 0e f0 a0 e1 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 0f 10 2d e9 1c 20 1f e5 1c 30 1f e5 1c 00 1f e5 1c 10 1f e5 02 c0 80 e1 5e cf 07 ee 03 c0 4c e0 02 00 1c e1 fb ff ff 1a 5e cf 07 ee 01 00 50 e0 f7 ff ff 5a 0f 10 bd e8 0e f0 a0 e1 01 00 2d e9 00 00 a0 e3 15 0f 07 ee 01 00 bd e8 0e f0 a0 e1 64 d1 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 88 d1 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 98 21 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 f0 82 00 eb 00 00 a0 e1 c4 d1 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 e8 d1 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 f8 21 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 cf 82 00 eb 00 00 a0 e1 24 d2 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 48 d2 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 58 22 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 ae 82 00 eb 00 00 a0 e1 84 d2 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 a8 d2 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 b8 22 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 8d 82 00 eb 00 00 a0 e1 e4 d2 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 08 d3 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 18 23 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 6c 82 00 eb 00 00 a0 e1 44 d3 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 68 d3 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 78 23 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 42 82 00 eb 00 00 a0 e1 a4 d3 1f e5 01 d6 4d e2 88 d0 4d e2 00 e0 8d e5 00 e0 4f e1 04 e0 8d e5 13 d0 a0 e3 0d f0 69 e1 c8 d3 1f e5 0f e0 a0 e1 0e f0 b0 e1 48 d0 4d e2 ff 1f 8d e8 d8 23 1f e5 01 26 42 e2 88 20 42 e2 0c 00 92 e8 48 00 8d e2 34 50 8d e2 0e 10 a0 e1 0f 00 85 e8 0d 00 a0 e1 33 82 00 eb 00 00 a0 e1 ff 0f 00 00 46 09 00 00 08 00 04 d0 00 00 a0 e1 00 00 a0 e1 00 00 a0 e1 00 00 a0 e1 00 00 a0 e1 f1 44 a0 e3 50 10 9f e5 00 40 81 e5 0e 20 a0 e1 48 10 9f e5 00 40 91 e5 18 40 84 e3 3c 10 9f e5 00 40 81 e5 34 10 9f e5 00 40 91 e5 00 00 a0 e3 1b 0f 2f ee 0b 00 00 eb 24 10 9f e5 00 60 91 e5 1f 60 c6 e3 14 60 86 e3 14 10 9f e5 00 60 81 e5 ff ff ff ea 02 e0 a0 e1 0e f0 a0 e1 80 00 02 d0 28 01 02 f1 04 06 01 f1 0e 90 a0 e1 00 00 a0 e3 e0 12 9f e5 00 00 81 e5 08 00 00 eb 07 00 00 eb 4b 60 a0 e3 d0 12 9f e5 00 60 81 e5 c4 60 a0 e3 c8 12 9f e5 00 60 81 e5 00 00 00 eb 09 f0 a0 e1 01 a6 a0 e3 01 a0 5a e2 fd ff ff 1a 0e f0 a0 e1 0e 90 a0 e1 a4 12 9f e5 00 60 91 e5 20 60 86 e3 98 12 9f e5 00 60 81 e5 05 a8 a0 e3 01 a0 5a e2 03 00 00 0a 88 12 9f e5 00 60 91 e5 20 00 16 e3 f9 ff ff 0a 05 a8 a0 e3 01 a0 5a e2 03 00 00 0a 68 12 9f e5 00 60 91 e5 20 00 16 e3 f9 ff ff 1a 05 a8 a0 e3 01 a0 5a e2 03 00 00 0a 48 12 9f e5 00 60 91 e5 08 00 56 e3 f9 ff ff 1a 84 60 a0 e1 40 12 9f e5 00 60 81 e5 dc ff ff eb 2c 12 9f e5 00 60 91 e5 08 60 c6 e3 20 12 9f e5 00 60 81 e5 d6 ff ff eb 18 12 9f e5 00 60 91 e5 20 00 16 e3 fb ff ff 0a 05 a8 a0 e3 01 a0 5a e2 01 00 00 1a 00 40 a0 e3 7a 00 00 ea ec 11 9f e5 00 60 91 e5 18 00 56 e3 f7 ff ff 1a 02 01 17 e3 02 00 00 1a e0 11 9f e5 00 70 81 e5 16 00 00 ea 27 a4 a0 e1 ff a0 0a e2 cc 11 9f e5 00 a0 81 e5 bf ff ff eb OOB: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff a5 56 67 0f 0c 33 03 33 cf c3 cc ff 56 95 ab 95 99 57 59 95 97 fc 03 03
setenv nandEcc=4bit
Re: TerraMaster F2NAS2 u-boot program February 09, 2018 02:46PM |
Registered: 6 years ago Posts: 16 |
nand read 0x2000000 0 0x80000 NAND read: device 0 offset 0x0, size 0x80000 524288 bytes read: ERROR Marvell>> go 0x2000200 ## Starting application at 0x02000200 ... __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: DB-88F6282A-BP LE ...
Re: TerraMaster F2NAS2 u-boot program February 09, 2018 04:03PM |
Admin Registered: 13 years ago Posts: 18,896 |
Quote
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x00100000@0x00000000(bootloader),0x00400000@0x00100000(data),0x01000000@0x00500000(backup-kernel),0x06400000@0x01500000(backup-system),0x01000000@0x07900000(kernel),0x17700000@0x08900000(rootfs); rootfstype=jffs2 root=/dev/mtdblock5 init=/linuxrc mem=1024m
Quote
6 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 6 MTD partitions on "nand_mtd":
0x000000000000-0x000000100000 : "bootloader"
0x000000100000-0x000000500000 : "data"
0x000000500000-0x000001500000 : "backup-kernel"
0x000001500000-0x000007900000 : "backup-system"
0x000007900000-0x000008900000 : "kernel"
0x000008900000-0x000020000000 : "rootfs"
Re: TerraMaster F2NAS2 u-boot program February 10, 2018 11:53AM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 10, 2018 10:28PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: TerraMaster F2NAS2 u-boot program February 12, 2018 10:36AM |
Registered: 6 years ago Posts: 16 |
Re: TerraMaster F2NAS2 u-boot program February 12, 2018 12:37PM |
Registered: 6 years ago Posts: 16 |
## KW_REG_UNDOC_0x1470 Marvell>> ir 0x1470 Internal register 0x1470 value : 0x1d181e19 31 24 16 8 0 | | | | | OLD: 0001-1101-0001-1000-0001-1110-0001-1001 NEW: Marvell>> ## KW_REG_UNDOC_0x1478 Marvell>> ir 0x1478 Internal register 0x1478 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>> ## MVEBU_SDRAM_BASE Marvell>> ir 0x1500 Internal register 0x1500 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>> ## KW_TWSI_BASE Marvell>> ir 0x11000 Internal register 0x11000 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>> ## KW_UART0_BASE Marvell>> ir 0x12000 Internal register 0x12000 value : 0xa0a0a0a 31 24 16 8 0 | | | | | OLD: 0000-1010-0000-1010-0000-1010-0000-1010 NEW: ## KW_UART1_BASE New value = 0x69696969 Marvell>> r 0x12100 Marvell>> Marvell>> ## KW_MPP_BASE Marvell>> ir 0x10000 Internal register 0x10000 value : 0x21111111 31 24 16 8 0 | | | | | OLD: 0010-0001-0001-0001-0001-0001-0001-0001 NEW: Marvell>> ## MVEBU_GPIO0_BASE Marvell>> ir 0x10100 Internal register 0x10100 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>> ## MVEBU_GPIO1_BASE Marvell>> ir 0x10140 Internal register 0x10140 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>> ## KW_RTC_BASE Marvell>> ir 0x10300 Internal register 0x10300 value : 0x2183059 31 24 16 8 0 | | | | | OLD: 0000-0010-0001-1000-0011-0000-0101-1001 NEW: Marvell>> ## KW_NANDF_BASE Marvell>> ir 0x10418 Internal register 0x10418 value : 0xc0282 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-1100-0000-0010-1000-0010 NEW: Marvell>> ## MVEBU_SPI_BASE Marvell>> ir 0x10600 Internal register 0x10600 value : 0x2 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0010 NEW: Marvell>> ## KW_CPU_WIN_BASE Marvell>> ir 0x20000 Internal register 0x20000 value : 0x7ffe841 31 24 16 8 0 | | | | | OLD: 0000-0111-1111-1111-1110-1000-0100-0001 NEW: Marvell>> ## KW_CPU_REG_BASE Marvell>> ir 0x20100 Internal register 0x20100 value : 0x130032 31 24 16 8 0 | | | | | OLD: 0000-0000-0001-0011-0000-0000-0011-0010 NEW: Marvell>> ## MVEBU_TIMER_BASE Marvell>> ir 0x20300 Internal register 0x20300 value : 0x3 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0011 NEW: Marvell>> ## KW_REG_PCIE_BASE Marvell>> ir 0x40000 Internal register 0x40000 value : 0x628211ab 31 24 16 8 0 | | | | | OLD: 0110-0010-1000-0010-0001-0001-1010-1011 NEW: Marvell>> ## KW_USB20_BASE Marvell>> ir 0x50000 Internal register 0x50000 value : 0x40fa05 31 24 16 8 0 | | | | | OLD: 0000-0000-0100-0000-1111-1010-0000-0101 NEW: Marvell>> ## KW_EGIGA0_BASE Marvell>> ir 0x72000 Internal register 0x72000 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>> ## KW_EGIGA1_BASE Marvell>> ir 0x76000 Internal register 0x76000 value : 0x21 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0010-0001 NEW: Marvell>> ## KW_SATA_BASE Marvell>> ir 0x80000 Internal register 0x80000 value : 0x107ff 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0001-0000-0111-1111-1111 NEW: Marvell>> ## KW_SDIO_BASE Marvell>> ir 0x90000 Internal register 0x90000 value : 0x0 31 24 16 8 0 | | | | | OLD: 0000-0000-0000-0000-0000-0000-0000-0000 NEW: Marvell>>
Re: TerraMaster F2NAS2 u-boot program February 12, 2018 01:51PM |
Admin Registered: 13 years ago Posts: 18,896 |
KW_GPIO0_BASE = 0xF1010100 KW_GPIO1_BASE = 0xF1010140