Re: UART Boot DNS-320 B1 with broken NAND December 01, 2018 04:24AM |
Admin Registered: 13 years ago Posts: 18,998 |
Re: UART Boot DNS-320 B1 with broken NAND December 01, 2018 04:56AM |
Registered: 6 years ago Posts: 77 |
Re: UART Boot DNS-320 B1 with broken NAND December 01, 2018 07:40PM |
Admin Registered: 13 years ago Posts: 18,998 |
Re: UART Boot DNS-320 B1 with broken NAND December 02, 2018 06:41AM |
Registered: 6 years ago Posts: 77 |
** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> setenv ethaddr AC:F1:DF:12:DF:9A Marvell>> setenv ipaddr 192.168.1.103 Marvell>> setenv bootargs console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw earlyprintk=serial Marvell>> usb reset ; ext2load usb 0:1 0x800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... . ...... ............ ......................... ................................................... ...................................................................................................... ......................................................................................................................................................................... 3832896 bytes read .... . ...... ............ ......................... ................................................... ...................................................................................................... ................................................................................................................................................................................................................. ..................................................................................................................................................................................................................................................................................................... 7245696 bytes read Marvell>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-02 12:30:07 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832832 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw earlyprintk=serial [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 109428K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21644K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.007915] Switching to timer-based delay loop, resolution 6ns [ 0.014394] Console: colour dummy device 80x30 [ 0.018977] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.029591] pid_max: default: 32768 minimum: 301 [ 0.034488] Security Framework initialized [ 0.038830] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.045508] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.053569] CPU: Testing write buffer coherency: ok [ 0.059599] Setting up static identity map for 0x100000 - 0x100058 [ 0.066097] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.074906] devtmpfs: initialized [ 0.083143] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.093113] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.099743] prandom: seed boundary self test passed [ 0.109205] prandom: 100 self tests passed [ 0.113371] pinctrl core: initialized pinctrl subsystem [ 0.119922] NET: Registered protocol family 16 [ 0.124942] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.133631] cpuidle: using governor ladder [ 0.137865] cpuidle: using governor menu [ 0.142415] Feroceon L2: Enabling L2 [ 0.146098] Feroceon L2: Cache support initialised. [ 0.151459] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.167432] No ATAGs? [ 0.177848] vgaarb: loaded [ 0.183361] SCSI subsystem initialized [ 0.187700] usbcore: registered new interface driver usbfs [ 0.193380] usbcore: registered new interface driver hub [ 0.198872] usbcore: registered new device driver usb [ 0.205242] clocksource: Switched to clocksource orion_clocksource [ 0.314422] VFS: Disk quotas dquot_6.6.0 [ 0.318566] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.337217] NET: Registered protocol family 2 [ 0.342464] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.349547] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.355988] TCP: Hash tables configured (established 1024 bind 1024) [ 0.362481] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.368410] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.374910] NET: Registered protocol family 1 [ 0.379800] RPC: Registered named UNIX socket transport module. [ 0.385856] RPC: Registered udp transport module. [ 0.390625] RPC: Registered tcp transport module. [ 0.395429] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.402178] Unpacking initramfs... [ 1.152585] Freeing initrd memory: 7076K [ 1.156861] NetWinder Floating Point Emulator V0.97 (double precision) [ 1.164517] audit: initializing netlink subsys (disabled) [ 1.170552] Initialise system trusted keyrings [ 1.175105] Key type blacklist registered [ 1.179258] audit: type=2000 audit(1.154:1): state=initialized audit_enabled=0 res=1 [ 1.187262] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 1.193824] zbud: loaded [ 1.197585] NFS: Registering the id_resolver key type [ 1.202716] Key type id_resolver registered [ 1.207030] Key type id_legacy registered [ 1.211118] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.217908] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.224530] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 1.231866] fuse init (API version 7.26) [ 1.236280] orangefs_debugfs_init: called with debug mask: :none: :0: [ 1.243079] orangefs_init: module version upstream loaded [ 1.248568] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.565250] random: fast init done [ 8.270513] Key type asymmetric registered [ 8.274679] Asymmetric key parser 'x509' registered [ 8.279951] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 8.287534] io scheduler noop registered [ 8.291526] io scheduler deadline registered [ 8.295991] io scheduler cfq registered (default) [ 8.302199] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 8.311622] mv_xor f1060800.xor: Marvell shared XOR driver [ 8.376118] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.383990] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.446110] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.454196] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.462035] console [ttyS0] disabled [ 8.465812] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.474854] console [ttyS0] enabled [ 8.474854] console [ttyS0] enabled [ 8.481929] bootconsole [earlycon0] disabled [ 8.481929] bootconsole [earlycon0] disabled [ 8.491245] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.509764] loop: module loaded [ 8.513513] sata_mv f1080000.sata: slots 32 ports 2 [ 8.521414] scsi host0: sata_mv [ 8.525019] scsi host1: sata_mv [ 8.528469] ata1: SATA max UDMA/133 irq 33 [ 8.532551] ata2: SATA max UDMA/133 irq 33 [ 8.538504] libphy: Fixed MDIO Bus: probed [ 8.543446] libphy: orion_mdio_bus: probed [ 8.552972] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.656473] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ac:f1:df:12:df:9a [ 8.665312] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.671830] ehci-pci: EHCI PCI platform driver [ 8.676352] ehci-orion: EHCI orion driver [ 8.680564] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.686093] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.693900] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 8.725280] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.731520] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.738311] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.745523] usb usb1: Product: EHCI Host Controller [ 8.750383] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 8.757099] usb usb1: SerialNumber: f1050000.ehci [ 8.762605] hub 1-0:1.0: USB hub found [ 8.766438] hub 1-0:1.0: 1 port detected [ 8.771110] usbcore: registered new interface driver usb-storage [ 8.777548] mousedev: PS/2 mouse device common for all mice [ 8.869325] ata1: SATA link down (SStatus 0 SControl F300) [ 9.125271] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.218160] ata2: SATA link down (SStatus 0 SControl F300) [ 9.316283] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 9.322971] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.330119] usb 1-1: Product: USB Flash Disk [ 9.334369] usb 1-1: Manufacturer: General [ 9.338470] usb 1-1: SerialNumber: 0475660000006AA4 [ 9.344285] usb-storage 1-1:1.0: USB Mass Storage device detected [ 9.350757] scsi host2: usb-storage 1-1:1.0 [ 9.356756] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 9.366832] sd 2:0:0:0: [sda] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 9.374812] sd 2:0:0:0: [sda] Write Protect is off [ 9.380063] sd 2:0:0:0: [sda] No Caching mode page found [ 9.385427] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 9.395050] sda: sda1 [ 9.400068] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 9.855273] rtc-mv f1010300.rtc: internal RTC not ticking [ 9.860840] i2c /dev entries driver [ 9.866080] hidraw: raw HID events driver (C) Jiri Kosina [ 9.871842] drop_monitor: Initializing network drop monitor service [ 9.878374] NET: Registered protocol family 17 [ 9.882900] Key type dns_resolver registered [ 9.888076] registered taskstats version 1 [ 9.892156] Loading compiled-in X.509 certificates [ 9.897024] zswap: loaded using pool lzo/zbud [ 9.912276] Key type big_key registered [ 9.926460] Key type encrypted registered [ 9.931865] hctosys: unable to open rtc device (rtc0) [ 9.940348] Freeing unused kernel memory: 1024K Loading, please wait... starting version 232 [ 10.357936] usbcore: registered new interface driver uas Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Warning: fsck not present, so skipping root file system [ 11.874224] EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'debian'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok [ 15.219672] input: gpio_keys as /devices/platform/gpio_keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 15.414695] orion_wdt: Initial timeout 25 sec [ 15.596793] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 15.622424] marvell-cesa f1030000.crypto: CESA device successfully registered done. [ ok ] Activating swap:. [ 16.878239] random: crng init done [....] Will now check root file system:fsck from util-linux 2.29.2 [/sbin/fsck.ext2 (1) -- /] fsck.ext2 -y -C0 /dev/sda1 e2fsck 1.43.4 (31-Jan-2017) rootfs was not cleanly unmounted, check forced. Pass 1: Checking inodes, blocks, and sizes Pass 2: Checking directory structure Pass 3: Checking directory connectivity Pass 4: Checking reference counts Pass 5: Checking group summary information rootfs: 14456/491520 files (7.4% non-contiguous), 205414/1962496 blocks fsck exited with status code 1 failed! [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if[ ok location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. F[ 39.851699] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled or info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/ac:f1:df:12:df:9a Sending on LPF/eth0/ac:f1:df:12:df:9a Sending on Socket/fallback DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67 [ 46.535618] NET: Registered protocol family 10 [ 46.543896] Segment Routing with IPv6 DHCPREQUEST of 192.168.0.14 on eth0 to 255.255.255.255 port 67 DHCPNAK from 192.168.1.1 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5 DHCPREQUEST of 192.168.1.110 on eth0 to 255.255.255.255 port 67 DHCPOFFER of 192.168.1.110 from 192.168.1.1 DHCPACK of 192.168.1.110 from 192.168.1.1 bound to 192.168.1.110 -- renewal in 1073741824 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1305 (klogd) . ok [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1333 (syslogd) . ok [ ok ] Starting system message bus: dbus. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [ ok ] Starting NFS common utilities: statd idmapd. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [ ok ] Starting OpenBSD Secure Shell server: sshd. [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 debian ttyS0 debian login: root Password: Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0 Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@debian:~#
nand@12f { #address-cells = <0x1>; #size-cells = <0x1>; cle = <0x0>; ale = <0x1>; bank-width = <0x1>; compatible = "marvell,orion-nand"; reg = <0x12f0000 0x0 0x400>; chip-delay = <0x19>; clocks = <0x3 0x7>; pinctrl-0 = <0x5>; pinctrl-names = "default"; status = "disabled";
nand@12f { #address-cells = <0x1>; #size-cells = <0x1>; cle = <0x0>; ale = <0x1>; bank-width = <0x1>; compatible = "marvell,orion-nand"; reg = <0x12f0000 0x0 0x400>; chip-delay = <0x19>; clocks = <0x3 0x7>; pinctrl-0 = <0x5>; pinctrl-names = "default"; status = "okay"; partition@0 { label = "u-boot"; reg = <0x0 0x100000>; }; partition@100000 { label = "uImage"; reg = <0x100000 0x500000>; }; partition@600000 { label = "ramdisk"; reg = <0x600000 0x500000>; }; partition@b00000 { label = "image"; reg = <0xb00000 0x6400000>; }; partition@6f00000 { label = "mini firmware"; reg = <0x6f00000 0xa00000>; }; partition@7900000 { label = "config"; reg = <0x7900000 0x500000>; }; partition@7e00000 { label = "my-dlink"; reg = <0x7e00000 0x200000>; }; };
nand@3000000 { #address-cells = <0x1>; #size-cells = <0x1>; pinctrl-0 = <0x5>; pinctrl-names = "default"; status = "okay"; chip-delay = <0x28>; partition@0 { label = "u-boot"; reg = <0x0 0x100000>; }; partition@100000 { label = "uImage"; reg = <0x100000 0x500000>; }; partition@600000 { label = "ramdisk"; reg = <0x600000 0x500000>; }; partition@b00000 { label = "image"; reg = <0xb00000 0x6400000>; }; partition@6f00000 { label = "mini firmware"; reg = <0x6f00000 0xa00000>; }; partition@7900000 { label = "config"; reg = <0x7900000 0x500000>; }; partition@7e00000 { label = "my-dlink"; reg = <0x7e00000 0x200000>; }; }; };
Re: UART Boot DNS-320 B1 with broken NAND December 02, 2018 05:18PM |
Admin Registered: 13 years ago Posts: 18,998 |
Re: UART Boot DNS-320 B1 with broken NAND December 02, 2018 05:33PM |
Admin Registered: 13 years ago Posts: 18,998 |
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 02:49AM |
Registered: 6 years ago Posts: 77 |
** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> setenv bootargs console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw earlyprintk=serial Marvell>> usb reset ; ext2load usb 0:1 0x800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... 3832764 bytes read .... 7702201 bytes read Marvell>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-03 8:43:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832700 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2018-12-02 14:09:34 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7702137 Bytes = 7.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw earlyprintk=serial [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 108980K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22092K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.007915] Switching to timer-based delay loop, resolution 6ns [ 0.014388] Console: colour dummy device 80x30 [ 0.018969] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.029584] pid_max: default: 32768 minimum: 301 [ 0.034478] Security Framework initialized [ 0.038820] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.045499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.053571] CPU: Testing write buffer coherency: ok [ 0.059600] Setting up static identity map for 0x100000 - 0x100058 [ 0.066110] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.074965] devtmpfs: initialized [ 0.083160] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.093128] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.099765] prandom: seed boundary self test passed [ 0.109220] prandom: 100 self tests passed [ 0.113388] pinctrl core: initialized pinctrl subsystem [ 0.119945] NET: Registered protocol family 16 [ 0.124967] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.133674] cpuidle: using governor ladder [ 0.137907] cpuidle: using governor menu [ 0.142461] Feroceon L2: Enabling L2 [ 0.146141] Feroceon L2: Cache support initialised. [ 0.151506] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.167627] No ATAGs? [ 0.178108] vgaarb: loaded [ 0.183576] SCSI subsystem initialized [ 0.187956] usbcore: registered new interface driver usbfs [ 0.193582] usbcore: registered new interface driver hub [ 0.199079] usbcore: registered new device driver usb [ 0.205449] clocksource: Switched to clocksource orion_clocksource [ 0.314586] VFS: Disk quotas dquot_6.6.0 [ 0.318730] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.337398] NET: Registered protocol family 2 [ 0.342632] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.349710] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.356152] TCP: Hash tables configured (established 1024 bind 1024) [ 0.362647] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.368583] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.375090] NET: Registered protocol family 1 [ 0.379991] RPC: Registered named UNIX socket transport module. [ 0.386045] RPC: Registered udp transport module. [ 0.390815] RPC: Registered tcp transport module. [ 0.395619] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.402371] Unpacking initramfs... [ 1.192455] Freeing initrd memory: 7524K [ 1.196740] NetWinder Floating Point Emulator V0.97 (double precision) [ 1.204393] audit: initializing netlink subsys (disabled) [ 1.210422] Initialise system trusted keyrings [ 1.214977] Key type blacklist registered [ 1.219135] audit: type=2000 audit(1.194:1): state=initialized audit_enabled=0 res=1 [ 1.227140] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 1.233705] zbud: loaded [ 1.237447] NFS: Registering the id_resolver key type [ 1.242583] Key type id_resolver registered [ 1.246894] Key type id_legacy registered [ 1.250983] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.257772] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.264396] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 1.271733] fuse init (API version 7.26) [ 1.276148] orangefs_debugfs_init: called with debug mask: :none: :0: [ 1.282957] orangefs_init: module version upstream loaded [ 1.288451] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.565456] random: fast init done [ 8.310099] Key type asymmetric registered [ 8.314268] Asymmetric key parser 'x509' registered [ 8.319539] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 8.327122] io scheduler noop registered [ 8.331114] io scheduler deadline registered [ 8.335581] io scheduler cfq registered (default) [ 8.341777] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 8.351220] mv_xor f1060800.xor: Marvell shared XOR driver [ 8.416331] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.424196] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.486334] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.494416] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.502282] console [ttyS0] disabled [ 8.506057] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.515100] console [ttyS0] enabled [ 8.515100] console [ttyS0] enabled [ 8.522182] bootconsole [earlycon0] disabled [ 8.522182] bootconsole [earlycon0] disabled [ 8.531521] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.550036] loop: module loaded [ 8.553769] sata_mv f1080000.sata: slots 32 ports 2 [ 8.561681] scsi host0: sata_mv [ 8.565282] scsi host1: sata_mv [ 8.568729] ata1: SATA max UDMA/133 irq 33 [ 8.572813] ata2: SATA max UDMA/133 irq 33 [ 8.578154] nand: Could not find valid ONFI parameter page; aborting [ 8.584493] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 8.590897] nand: Hynix NAND 128MiB 3,3V 8-bit [ 8.595320] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.602885] Scanning device for bad blocks [ 8.721429] 7 ofpart partitions found on MTD device orion_nand [ 8.727255] Creating 7 MTD partitions on "orion_nand": [ 8.732372] 0x000000000000-0x000000100000 : "u-boot" [ 8.738751] 0x000000100000-0x000000600000 : "uImage" [ 8.745132] 0x000000600000-0x000000b00000 : "ramdisk" [ 8.751671] 0x000000b00000-0x000006f00000 : "image" [ 8.758824] 0x000006f00000-0x000007900000 : "mini firmware" [ 8.765937] 0x000007900000-0x000007e00000 : "config" [ 8.772124] 0x000007e00000-0x000008000000 : "my-dlink" [ 8.779819] libphy: Fixed MDIO Bus: probed [ 8.784807] libphy: orion_mdio_bus: probed [ 8.794314] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.896708] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02 [ 8.905579] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.912114] ata1: SATA link down (SStatus 0 SControl F300) [ 8.917781] ehci-pci: EHCI PCI platform driver [ 8.922286] ehci-orion: EHCI orion driver [ 8.926541] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.932032] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.939929] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 8.975485] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.981726] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.988516] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.995728] usb usb1: Product: EHCI Host Controller [ 9.000588] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 9.007280] usb usb1: SerialNumber: f1050000.ehci [ 9.012771] hub 1-0:1.0: USB hub found [ 9.016613] hub 1-0:1.0: 1 port detected [ 9.021251] usbcore: registered new interface driver usb-storage [ 9.027692] mousedev: PS/2 mouse device common for all mice [ 9.247033] ata2: SATA link down (SStatus 0 SControl F300) [ 9.375486] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.566439] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 9.573124] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.580268] usb 1-1: Product: USB Flash Disk [ 9.584524] usb 1-1: Manufacturer: General [ 9.588622] usb 1-1: SerialNumber: 0475660000006AA4 [ 9.594427] usb-storage 1-1:1.0: USB Mass Storage device detected [ 9.600891] scsi host2: usb-storage 1-1:1.0 [ 9.606913] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 9.616871] sd 2:0:0:0: [sda] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 9.624843] sd 2:0:0:0: [sda] Write Protect is off [ 9.630092] sd 2:0:0:0: [sda] No Caching mode page found [ 9.635403] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 9.645081] sda: sda1 [ 9.649970] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 10.095484] rtc-mv f1010300.rtc: internal RTC not ticking [ 10.101058] i2c /dev entries driver [ 10.106426] hidraw: raw HID events driver (C) Jiri Kosina [ 10.112209] drop_monitor: Initializing network drop monitor service [ 10.118746] NET: Registered protocol family 17 [ 10.123251] Key type dns_resolver registered [ 10.128426] registered taskstats version 1 [ 10.132504] Loading compiled-in X.509 certificates [ 10.137364] zswap: loaded using pool lzo/zbud [ 10.152533] Key type big_key registered [ 10.166773] Key type encrypted registered [ 10.172177] hctosys: unable to open rtc device (rtc0) [ 10.180648] Freeing unused kernel memory: 1024K Loading, please wait... starting version 232 [ 10.678500] usbcore: registered new interface driver uas Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.29.2 [/sbin/fsck.ext2 (1) -- /dev/sda1] fsck.ext2 -a -C0 /dev/sda1 rootfs: clean, 14620/491520 files, 182508/1962496 blocks done. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'debian'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [....] Synthesizing the initial hotplug events...[ 15.169039] input: gpio_keys as /devices/platform/gpio_keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 15.567739] orion_wdt: Initial timeout 25 sec [ 15.664797] marvell-cesa f1030000.crypto: CESA device successfully registered [ 15.749178] sd 2:0:0:0: Attached scsi generic sg0 type 0 done. [ ok ] Activating swap:. [ 19.028514] random: crng init done [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [ 29.678256] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:50:43:00:02:02 Sending on LPF/eth0/00:50:43:00:02:02 Sending on Socket/fallback DHCPREQUEST of 192.168.1.114 on eth0 to 255.255.255.255 port 67 [ 36.875791] NET: Registered protocol family 10 [ 36.884307] Segment Routing with IPv6 DHCPREQUEST of 192.168.1.114 on eth0 to 255.255.255.255 port 67 DHCPACK of 192.168.1.114 from 192.168.1.1 bound to 192.168.1.114 -- renewal in 1073741824 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1299 (syslogd) . ok [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting system message bus: dbus. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1302 (klogd) . ok [ ok ] Starting OpenBSD Secure Shell server: sshd. [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 debian ttyS0 debian login: root Password: Last login: Wed Dec 31 16:03:12 PST 1969 on ttyS0 Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@debian:~# cat /prov/mtd cat: /prov/mtd: No such file or directory root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "ramdisk" mtd3: 06400000 00020000 "image" mtd4: 00a00000 00020000 "mini firmware" mtd5: 00500000 00020000 "config" mtd6: 00200000 00020000 "my-dlink" root@debian:~#
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 03:36AM |
Admin Registered: 13 years ago Posts: 18,998 |
pinctrl: pin-controller@10000 { pinctrl-0 = <&pmx_button_power>; pinctrl-names = "default"; pmx_sata0: pmx-sata0 { marvell,pins = "mpp20"; marvell,function = "sata1"; }; pmx_sata1: pmx-sata1 { marvell,pins = "mpp21"; marvell,function = "sata0"; }; pmx_led_red_right_hdd: pmx-led-red-right-hdd { marvell,pins = "mpp22"; marvell,function = "gpio"; }; pmx_led_red_left_hdd: pmx-led-red-left-hdd { marvell,pins = "mpp23"; marvell,function = "gpio"; }; pmx_power_sata: pmx-power-sata { marvell,pins = "mpp24"; marvell,function = "gpio"; }; pmx_led_usb_blue: pmx-led-usb-blue { marvell,pins = "mpp25"; marvell,function = "gpio"; }; pmx_led_usb_orange: pmx-led-usb-orange { marvell,pins = "mpp26"; marvell,function = "gpio"; }; pmx_button_usb_copy: pmx-button-usb-copy { marvell,pins = "mpp27"; marvell,function = "gpio"; }; pmx_button_reset: pmx-button-reset { marvell,pins = "mpp28"; marvell,function = "gpio"; }; pmx_button_power: pmx-button-power { // I can't get this one to trigger a button press... marvell,pins = "mpp29"; marvell,function = "gpio"; }; };
gpio-leds { compatible = "gpio-leds"; pinctrl-0 = <&pmx_led_usb_blue &pmx_led_usb_orange &pmx_led_red_left_hdd &pmx_led_red_right_hdd>; pinctrl-names = "default"; blue-usb { label = "dns320l:blue:usb"; gpios = <&gpio0 25 0>; }; orange-l_hdd { label = "dns320l:orange:l_hdd"; gpios = <&gpio0 22 0>; }; orange-r_hdd { label = "dns320l:orange:r_hdd"; gpios = <&gpio0 23 0>; }; orange-usb { label = "dns320l:orange:usb"; gpios = <&gpio0 26 0>; }; };
echo usb-host > /sys/class/dns320l:blue:usb/triggerAnd then observe when you access the USB files, that blue USB LED should blink.
echo ide-disk1 > /sys/class/dns320l:orange:l_hdd/triggerAnd then observe when you access the left HDD files, that orange HDD LED should blink.
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 03:40AM |
Admin Registered: 13 years ago Posts: 18,998 |
Quote
bodhi
And also I've noticed, this box has no SYS LED? only Power button LED? and Power LED is not defined in DTS either, so you would have to find out which GPIO that Power button LED is (in GPL source some where, or googling) and we can add it to the DTS.
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 03:50AM |
Admin Registered: 13 years ago Posts: 18,998 |
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 06:16AM |
Registered: 6 years ago Posts: 77 |
The MCU D-Link put a small Microcontroller on /dev/ttyS1 at 115200 baud. The responsibility of this Weltrend MCU is to supervise the system, to act as a RTC and to wake up the device if required as well as to control the fan. Lorenzo Martignoni succeeded in writing a basic fan control daemon and reverse engineered parts of the protocol. Find his daemon here: https://github.com/martignlo/DNS-320L I took the same approach (install strace and run up_send_daemon and up_read_daemon on the original firmware to gather commands) and found some more commands: Set DeviceReady, automatically toggles power LED to ON Turn Power LED to blink/on/off Send DeviceShutdown command Read/Write RTC Get/Set WOL Status Get/Set RTC Alarm … The power up / shutdown procedure of the device is as follows: Upon startup, the OS sends DeviceReady to the MCU the MCU stops blinking the power LED and does NOT immediately power down on power button press Instead, long pressing the power button is registered again by the MCU and the Power LED starts blinking A GPIO is pulled low that can be read by Linux and which triggers the shutdown process Then again, DeviceShutdown is sent to the MCU to cut power As you can see, it is quite a complex setup just to power up and shut down the machine.
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 06:53AM |
Registered: 6 years ago Posts: 77 |
bootm .........
Marvell>> bootm 0x800000 0x2100000 ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-03 8:43:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832700 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2018-12-02 14:09:34 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7702137 Bytes = 7.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 108980K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22092K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.000044] Switching to timer-based delay loop, resolution 6ns [ 0.000548] Console: colour dummy device 80x30 [ 0.000584] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.000608] pid_max: default: 32768 minimum: 301 [ 0.000823] Security Framework initialized [ 0.000960] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000979] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001902] CPU: Testing write buffer coherency: ok [ 0.002951] Setting up static identity map for 0x100000 - 0x100058 [ 0.003238] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.006790] devtmpfs: initialized [ 0.011505] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.011534] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.011967] prandom: seed boundary self test passed [ 0.016445] prandom: 100 self tests passed [ 0.016458] pinctrl core: initialized pinctrl subsystem [ 0.017696] NET: Registered protocol family 16 [ 0.018143] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.019896] cpuidle: using governor ladder [ 0.019970] cpuidle: using governor menu [ 0.020480] Feroceon L2: Enabling L2 [ 0.020526] Feroceon L2: Cache support initialised. [ 0.020914] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.026541] No ATAGs? [ 0.036943] vgaarb: loaded [ 0.037302] SCSI subsystem initialized [ 0.037826] usbcore: registered new interface driver usbfs [ 0.037913] usbcore: registered new interface driver hub [ 0.038008] usbcore: registered new device driver usb [ 0.039221] clocksource: Switched to clocksource orion_clocksource [ 0.142250] VFS: Disk quotas dquot_6.6.0 [ 0.142340] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.153976] NET: Registered protocol family 2 [ 0.154794] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.154825] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.154847] TCP: Hash tables configured (established 1024 bind 1024) [ 0.154934] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.154960] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.155147] NET: Registered protocol family 1 [ 0.155609] RPC: Registered named UNIX socket transport module. [ 0.155623] RPC: Registered udp transport module. [ 0.155631] RPC: Registered tcp transport module. [ 0.155639] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.155899] Unpacking initramfs... [ 0.942688] Freeing initrd memory: 7524K [ 0.942834] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.943930] audit: initializing netlink subsys (disabled) [ 0.944464] Initialise system trusted keyrings [ 0.944525] Key type blacklist registered [ 0.944626] audit: type=2000 audit(0.934:1): state=initialized audit_enabled=0 res=1 [ 0.944724] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.944802] zbud: loaded [ 0.945880] NFS: Registering the id_resolver key type [ 0.945911] Key type id_resolver registered [ 0.945921] Key type id_legacy registered [ 0.945941] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.945951] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.946167] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 0.946384] fuse init (API version 7.26) [ 0.946793] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.947114] orangefs_init: module version upstream loaded [ 0.947127] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.559228] random: fast init done [ 7.957670] Key type asymmetric registered [ 7.957687] Asymmetric key parser 'x509' registered [ 7.957771] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 7.957783] io scheduler noop registered [ 7.957793] io scheduler deadline registered [ 7.957874] io scheduler cfq registered (default) [ 7.959608] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 7.961681] mv_xor f1060800.xor: Marvell shared XOR driver [ 8.020091] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.020352] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.080101] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.080576] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.081992] console [ttyS0] disabled [ 8.082065] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.671302] console [ttyS0] enabled [ 8.675500] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.694025] loop: module loaded [ 8.697754] sata_mv f1080000.sata: slots 32 ports 2 [ 8.705676] scsi host0: sata_mv [ 8.709321] scsi host1: sata_mv [ 8.712703] ata1: SATA max UDMA/133 irq 33 [ 8.716787] ata2: SATA max UDMA/133 irq 33 [ 8.722133] nand: Could not find valid ONFI parameter page; aborting [ 8.728467] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 8.734870] nand: Hynix NAND 128MiB 3,3V 8-bit [ 8.739318] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.746859] Scanning device for bad blocks [ 8.865428] 7 ofpart partitions found on MTD device orion_nand [ 8.871255] Creating 7 MTD partitions on "orion_nand": [ 8.876380] 0x000000000000-0x000000100000 : "u-boot" [ 8.882762] 0x000000100000-0x000000600000 : "uImage" [ 8.889138] 0x000000600000-0x000000b00000 : "ramdisk" [ 8.895671] 0x000000b00000-0x000006f00000 : "image" [ 8.902827] 0x000006f00000-0x000007900000 : "mini firmware" [ 8.909946] 0x000007900000-0x000007e00000 : "config" [ 8.916131] 0x000007e00000-0x000008000000 : "my-dlink" [ 8.923821] libphy: Fixed MDIO Bus: probed [ 8.928802] libphy: orion_mdio_bus: probed [ 8.938292] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 9.040483] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02 [ 9.049354] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 9.055889] ata1: SATA link down (SStatus 0 SControl F300) [ 9.061565] ehci-pci: EHCI PCI platform driver [ 9.066070] ehci-orion: EHCI orion driver [ 9.070321] orion-ehci f1050000.ehci: EHCI Host Controller [ 9.075816] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 9.083745] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 9.119258] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 9.125508] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 9.132299] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 9.139513] usb usb1: Product: EHCI Host Controller [ 9.144372] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 9.151062] usb usb1: SerialNumber: f1050000.ehci [ 9.156552] hub 1-0:1.0: USB hub found [ 9.160384] hub 1-0:1.0: 1 port detected [ 9.165024] usbcore: registered new interface driver usb-storage [ 9.171468] mousedev: PS/2 mouse device common for all mice [ 9.519258] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.559263] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300) [ 9.570050] ata2.00: ATA-8: HGST HCC545050A7E380, GG2OAC90, max UDMA/133 [ 9.576727] ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32) [ 9.590287] ata2.00: configured for UDMA/133 [ 9.605139] scsi 1:0:0:0: Direct-Access ATA HGST HCC545050A7 AC90 PQ: 0 ANSI: 5 [ 9.614523] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB) [ 9.622407] sd 1:0:0:0: [sda] 4096-byte physical blocks [ 9.627712] sd 1:0:0:0: [sda] Write Protect is off [ 9.632678] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 9.706472] sda: sda1 sda2 sda3 sda4 [ 9.711258] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 9.717949] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.726686] sd 1:0:0:0: [sda] Attached SCSI disk [ 9.731375] usb 1-1: Product: USB Flash Disk [ 9.735633] usb 1-1: Manufacturer: General [ 9.739763] usb 1-1: SerialNumber: 0475660000006AA4 [ 9.745482] usb-storage 1-1:1.0: USB Mass Storage device detected [ 9.751986] scsi host2: usb-storage 1-1:1.0 [ 10.249260] rtc-mv f1010300.rtc: internal RTC not ticking [ 10.254841] i2c /dev entries driver [ 10.260149] hidraw: raw HID events driver (C) Jiri Kosina [ 10.265932] drop_monitor: Initializing network drop monitor service [ 10.272477] NET: Registered protocol family 17 [ 10.276984] Key type dns_resolver registered [ 10.282100] registered taskstats version 1 [ 10.286180] Loading compiled-in X.509 certificates [ 10.291036] zswap: loaded using pool lzo/zbud [ 10.306152] Key type big_key registered [ 10.320377] Key type encrypted registered [ 10.325793] hctosys: unable to open rtc device (rtc0) [ 10.334267] Freeing unused kernel memory: 1024K Loading, please wait... starting version 232 [ 10.813737] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 10.832818] sd 2:0:0:0: [sdb] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 10.843178] usbcore: registered new interface driver uas [ 10.849392] sd 2:0:0:0: [sdb] Write Protect is off [ 10.857991] sd 2:0:0:0: [sdb] No Caching mode page found [ 10.868684] sd 2:0:0:0: [sdb] Assuming drive cache: write through [ 10.885648] sdb: sdb1 [ 10.891058] sd 2:0:0:0: [sdb] Attached SCSI removable disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. Begin: Running /scripts/local-block ... done. done. Gave up waiting for root file system device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Missing modules (cat /proc/modules; ls /dev) ALERT! /dev/ram does not exist. Dropping to a shell! BusyBox v1.22.1 (Debian 1:1.22.0-19+b3) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 07:50AM |
Registered: 6 years ago Posts: 77 |
Re: UART Boot DNS-320 B1 with broken NAND December 03, 2018 05:12PM |
Admin Registered: 13 years ago Posts: 18,998 |
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 usb-storage.delay_use=0 rootdelay=1 rw earlyprintk=serial
> [ 0.000000] Kernel command line: root=/dev/ramconsole=ttyS0,115200 :::DB88FXX81:egiga0:none
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw earlyprintk=serial'
Re: UART Boot DNS-320 B1 with broken NAND December 05, 2018 03:49AM |
Registered: 6 years ago Posts: 77 |
Re: UART Boot DNS-320 B1 with broken NAND December 05, 2018 04:13AM |
Admin Registered: 13 years ago Posts: 18,998 |
[ 8.732372] 0x000000000000-0x000000100000 : "u-boot"
dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "ramdisk" mtd3: 06400000 00020000 "image" mtd4: 00a00000 00020000 "mini firmware" mtd5: 00500000 00020000 "config" mtd6: 00200000 00020000 "my-dlink"
Re: UART Boot DNS-320 B1 with broken NAND December 06, 2018 04:13AM |
Registered: 6 years ago Posts: 77 |
root@debian:/backup# cat /proc/mtd
dev: size erasesize name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00500000 00020000 "uImage"
mtd2: 00500000 00020000 "ramdisk"
mtd3: 06400000 00020000 "image"
mtd4: 00a00000 00020000 "mini firmware"
mtd5: 00500000 00020000 "config"
mtd6: 00200000 00020000 "my-dlink"
root@debian:/backup# flash_erase /dev/mtd0 0 8
Erasing 128 Kibyte @ 7f625f5c00000064 -- 8 % complete
root@debian:/backup# nandwrite -p /dev/mtd0 mtd0.dns-320
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
Writing data to block 4 at offset 0x80000
Writing data to block 5 at offset 0xa0000
Writing data to block 6 at offset 0xc0000
Writing data to block 7 at offset 0xe0000
root@debian:/backup#
Re: UART Boot DNS-320 B1 with broken NAND December 06, 2018 05:52AM |
Admin Registered: 13 years ago Posts: 18,998 |
flash_erase /dev/mtd0 0 0 nandwrite /dev/mtd0 mtd0.dns-320
Re: UART Boot DNS-320 B1 with broken NAND December 07, 2018 07:19AM |
Registered: 6 years ago Posts: 77 |
root@debian:/backup# flash_erase /dev/mtd0 0 0 Erasing 128 Kibyte @ 7f64df5c00000064 -- 8 % complete root@debian:/backup# nandwrite /dev/mtd0 mtd0.dns-320 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 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 Writing data to block 6 at offset 0xc0000 Writing data to block 7 at offset 0xe0000 root@debian:/backup#
Marvell>> printenv baudrate=115200 loads_echo=0 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; bootdelay=1 disaMvPnp=no ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes enaAutoRecovery=yes pcieTune=no ethact=egiga0 ethaddr=AC:F1:DF:12:DF:9A ipaddr=192.168.1.110 bootargs_usb=root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw console=console=ttyS0,115200 earlyprintk=serial bootcmd_usb=usb start ; ext2load usb 0:1 0x00800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd bootcmd=setenv bootargs ${bootargs_usb} ; ${bootargs_console} ; run bootcmd_usb ; bootm 0x00800000 0x2100000 Environment size: 1408/131068 bytes
Re: UART Boot DNS-320 B1 with broken NAND December 07, 2018 06:16PM |
Admin Registered: 13 years ago Posts: 18,998 |
Re: UART Boot DNS-320 B1 with broken NAND December 11, 2018 02:15AM |
Registered: 6 years ago Posts: 77 |
Re: UART Boot DNS-320 B1 with broken NAND December 11, 2018 04:09AM |
Admin Registered: 13 years ago Posts: 18,998 |
printenv help boot
Re: UART Boot DNS-320 B1 with broken NAND December 11, 2018 06:53AM |
Registered: 6 years ago Posts: 77 |
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] 0 % [......................................................................] 1 % [......................................................................] ..... 99 % [......................................................................] 99 % [..] [Type Ctrl-\ + c to quit] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> printenv bootargs=root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none bootcmd=nand read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000 baudrate=115200 loads_echo=0 ipaddr=2.66.66.201 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; bootdelay=1 disaMvPnp=no ethaddr=00:50:43:00:02:02 ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes enaAutoRecovery=yes pcieTune=no ethact=egiga0 Environment size: 1272/131068 bytes Marvell>> help ? - alias for 'help' SatR - sample at reset sub-system, relevent for DB only base - print or set address offset boot - boot default, i.e., run 'bootcmd' bootd - boot default, i.e., run 'bootcmd' bootext2 dev:boot_part1,boot_part2 addr boot_image linux_dev_name bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol bubt - Burn an image on the Boot Nand Flash. chpart - change active partition cmp - memory compare cmpm - Compare Memory cp - memory copy cpumap - Display CPU memory mapping settings. crc32 - checksum calculation date - get/set/reset date & time dclk - Display the MV device CLKs. dhcp - invoke DHCP client to obtain IP/boot params diskboot- boot from IDE device echo - echo args to console eeprom - EEPROM sub-system erase - erase FLASH memory ext2load- load binary file from a Ext2 filesystem ext2ls - list files in a directory (default /) fatinfo - print information about filesystem fatload - load binary file from a dos filesystem fatls - list files in a directory (default /) fi - Find value in the memory. flinfo - print FLASH memory information fsinfo - print information about filesystems fsload - load binary file from a filesystem image g - start application at cached address 'addr'(default addr 0x40000) go - start application at address 'addr' help - print online help icrc32 - checksum calculation ide - IDE sub-system iloop - infinite loop on address range imd - i2c memory display iminfo - print header information for application image imm[.b, .s, .w, .l] - i2c memory modify (auto-incrementing) imw - memory write (fill) inm - memory modify (constant address) iprobe - probe to discover valid I2C chip addresses ir - reading and changing MV internal register values. loop - infinite loop on address range ls - list files in a directory (default /) map - Diasplay address decode windows md - memory display me - PCI master enable mm - memory modify (auto-incrementing) mmcinit - init mmc card mp - map PCI BAR mtdparts- define flash/nand partitions mtest - simple RAM test mw - memory write (fill) nand - NAND sub-system nboot - boot from NAND device nbubt - Burn a boot loader image on the Boot Nand Flash. nm - memory modify (constant address) pci - list and access PCI Configuration Space phyRead - Read PCI-E Phy register pciePhyWrite - Write PCI-E Phy register phyRead - Read Phy register phyWrite - Write Phy register ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables protect - enable or disable FLASH write protection rarpboot- boot image via network using RARP/TFTP protocol rcvr - Satrt recovery process (Distress Beacon with TFTP server) reset - Perform RESET of the CPU resetenv - Return all environment variable to default. run - run commands in an environment variable saveenv - save environment variables to persistent storage se - PCI Slave enable setenv - set environment variables sflash - read, write or erase the external SPI Flash. sg - scanning the PHYs status sp - Scan PCI bus. switchRegRead - Read switch register switchRegWrite - Write switch register Temp - read chip Tj temp tftpboot- boot image via network using TFTP protocol usb - USB sub-system usbboot - boot from USB device version - print monitor version Marvell>> boot NAND read: device 0 offset 0x100000, size 0x300000 load addr .... =a00000 3145728 bytes read: OK NAND read: device 0 offset 0x600000, size 0x300000 load addr .... =f00000 3145728 bytes read: OK ## Booting image at 00a00000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-03 8:43:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832700 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... Bad Data CRC NAND read: device 0 offset 0x6f00800, size 0x500000 load addr .... =a00000 5242880 bytes read: OK ## Booting image at 00a00000 ... Bad Magic Number Marvell>>
resetenv
Re: UART Boot DNS-320 B1 with broken NAND December 11, 2018 04:40PM |
Admin Registered: 13 years ago Posts: 18,998 |
printenv boot
Re: UART Boot DNS-320 B1 with broken NAND December 12, 2018 02:36AM |
Registered: 6 years ago Posts: 77 |
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target.../ Sending boot image... 0 % [......................................................................] ..... 99 % [..] [Type Ctrl-\ + c to quit] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> printenv baudrate=115200 loads_echo=0 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes MALLOC_len=1 ethprime=egiga0 bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes ethact=egiga0 ethaddr=AC:F1:DF:12:DF:9A ipaddr=192.168.1.110 bootargs=root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw console=console=ttyS0,115200 earlyprintk=serial bootcmd_usb=usb start ; ext2load usb 0:1 0x00800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd bootcmd=setenv bootargs ${bootargs} ; ${bootargs_console} ; run bootcmd_usb ; bootm 0x00800000 0x2100000 stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes netbsd_en=no vxworks_en=no bootdelay=1 disaMvPnp=no enaAutoRecovery=yes pcieTune=no Environment size: 1331/131068 bytes Marvell>> boot Unknown command '<NULL>' - try 'help' (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... . ...... ............ ......................... ................................................... ...................................................................................................... ......................................................................................................................................................................... 3832764 bytes read .. .. . ...... ............ ......................... ................................................... ...................................................................................................... ................................................................................................................................................................................................................. ..................................................................................................................................................................................................................................................................................................... 7245696 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-03 12:41:38 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832700 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. Debian GNU/Linux 9 debian ttyS0 debian login: root Password: Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0 Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law.
root@debian:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map c7ef9000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: root=LABEL=rootfs usb-storage.delay_use=0 rootdelay=1 rw [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 109428K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21644K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc0900000 (9184 kB) .init : 0xc0c00000 - 0xc0d00000 (1024 kB) .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.000045] Switching to timer-based delay loop, resolution 6ns [ 0.000548] Console: colour dummy device 80x30 [ 0.001187] console [tty0] enabled [ 0.001234] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.001307] pid_max: default: 32768 minimum: 301 [ 0.001551] Security Framework initialized [ 0.001725] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.001783] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.002749] CPU: Testing write buffer coherency: ok [ 0.003854] Setting up static identity map for 0x100000 - 0x100058 [ 0.004178] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.007788] devtmpfs: initialized [ 0.012549] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.012638] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.013114] prandom: seed boundary self test passed [ 0.017626] prandom: 100 self tests passed [ 0.017667] pinctrl core: initialized pinctrl subsystem [ 0.018944] NET: Registered protocol family 16 [ 0.019440] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.021327] cpuidle: using governor ladder [ 0.021442] cpuidle: using governor menu [ 0.021941] Feroceon L2: Enabling L2 [ 0.022015] Feroceon L2: Cache support initialised. [ 0.022435] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.028129] No ATAGs? [ 0.038538] vgaarb: loaded [ 0.038945] SCSI subsystem initialized [ 0.039173] libata version 3.00 loaded. [ 0.039502] usbcore: registered new interface driver usbfs [ 0.039623] usbcore: registered new interface driver hub [ 0.039745] usbcore: registered new device driver usb [ 0.041059] clocksource: Switched to clocksource orion_clocksource [ 0.144057] VFS: Disk quotas dquot_6.6.0 [ 0.144185] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.155862] NET: Registered protocol family 2 [ 0.156723] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.156789] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.156839] TCP: Hash tables configured (established 1024 bind 1024) [ 0.156953] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.157008] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.157224] NET: Registered protocol family 1 [ 0.157713] RPC: Registered named UNIX socket transport module. [ 0.157761] RPC: Registered udp transport module. [ 0.157793] RPC: Registered tcp transport module. [ 0.157824] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.157864] PCI: CLS 0 bytes, default 32 [ 0.158111] Unpacking initramfs... [ 0.905145] Freeing initrd memory: 7076K [ 0.905340] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.906465] audit: initializing netlink subsys (disabled) [ 0.907042] Initialise system trusted keyrings [ 0.907126] Key type blacklist registered [ 0.907252] audit: type=2000 audit(0.905:1): state=initialized audit_enabled=0 res=1 [ 0.907393] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.907502] zbud: loaded [ 0.908616] NFS: Registering the id_resolver key type [ 0.908677] Key type id_resolver registered [ 0.908710] Key type id_legacy registered [ 0.908751] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.908790] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.909038] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 0.909286] fuse init (API version 7.26) [ 0.909718] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.910062] orangefs_init: module version upstream loaded [ 0.910103] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.551068] random: fast init done [ 7.920757] Key type asymmetric registered [ 7.920806] Asymmetric key parser 'x509' registered [ 7.920917] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 7.920973] io scheduler noop registered [ 7.921004] io scheduler deadline registered [ 7.921265] io scheduler cfq registered (default) [ 7.922732] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 7.924877] mv_xor f1060800.xor: Marvell shared XOR driver [ 7.981943] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 7.982261] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.041937] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.042472] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.043948] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.044704] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.054297] loop: module loaded [ 8.054649] sata_mv f1080000.sata: version 1.28 [ 8.054943] sata_mv f1080000.sata: slots 32 ports 2 [ 8.057958] scsi host0: sata_mv [ 8.058470] scsi host1: sata_mv [ 8.058764] ata1: SATA max UDMA/133 irq 33 [ 8.058803] ata2: SATA max UDMA/133 irq 33 [ 8.059857] nand: Could not find valid ONFI parameter page; aborting [ 8.059913] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 8.059949] nand: Hynix NAND 128MiB 3,3V 8-bit [ 8.059982] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.060039] Scanning device for bad blocks [ 8.174986] 7 ofpart partitions found on MTD device orion_nand [ 8.175035] Creating 7 MTD partitions on "orion_nand": [ 8.175075] 0x000000000000-0x000000100000 : "u-boot" [ 8.176521] 0x000000100000-0x000000600000 : "uImage" [ 8.177996] 0x000000600000-0x000000b00000 : "ramdisk" [ 8.179474] 0x000000b00000-0x000006f00000 : "image" [ 8.181812] 0x000006f00000-0x000007900000 : "mini firmware" [ 8.183370] 0x000007900000-0x000007e00000 : "config" [ 8.184650] 0x000007e00000-0x000008000000 : "my-dlink" [ 8.187218] libphy: Fixed MDIO Bus: probed [ 8.188158] libphy: orion_mdio_bus: probed [ 8.193667] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.292330] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address ac:f1:df:12:df:9a [ 8.292529] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.292593] ehci-pci: EHCI PCI platform driver [ 8.292710] ehci-orion: EHCI orion driver [ 8.292970] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.293045] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.293367] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 8.321093] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.321401] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.321451] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.321504] usb usb1: Product: EHCI Host Controller [ 8.321539] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 8.321578] usb usb1: SerialNumber: f1050000.ehci [ 8.322439] hub 1-0:1.0: USB hub found [ 8.322517] hub 1-0:1.0: 1 port detected [ 8.323293] usbcore: registered new interface driver usb-storage [ 8.323727] mousedev: PS/2 mouse device common for all mice [ 8.392669] ata1: SATA link down (SStatus 0 SControl F300) [ 8.681089] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 8.722693] ata2: SATA link down (SStatus 0 SControl F300) [ 8.872125] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 8.872175] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 8.872216] usb 1-1: Product: USB Flash Disk [ 8.872250] usb 1-1: Manufacturer: General [ 8.872284] usb 1-1: SerialNumber: 04757F000000622C [ 8.873232] usb-storage 1-1:1.0: USB Mass Storage device detected [ 8.873625] scsi host2: usb-storage 1-1:1.0 [ 8.875474] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 8.877666] sd 2:0:0:0: [sda] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 8.878152] sd 2:0:0:0: [sda] Write Protect is off [ 8.878199] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 8.878653] sd 2:0:0:0: [sda] No Caching mode page found [ 8.878699] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 8.882517] sda: sda1 [ 8.885157] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 9.361097] rtc-mv f1010300.rtc: internal RTC not ticking [ 9.361337] i2c /dev entries driver [ 9.363126] hidraw: raw HID events driver (C) Jiri Kosina [ 9.363597] drop_monitor: Initializing network drop monitor service [ 9.363899] NET: Registered protocol family 17 [ 9.364017] Key type dns_resolver registered [ 9.364889] registered taskstats version 1 [ 9.364929] Loading compiled-in X.509 certificates [ 9.365020] zswap: loaded using pool lzo/zbud [ 9.375853] Key type big_key registered [ 9.386014] Key type encrypted registered [ 9.387434] hctosys: unable to open rtc device (rtc0) [ 9.387640] PM: Hibernation image not present or could not be loaded. [ 9.390668] Freeing unused kernel memory: 1024K [ 9.894665] usbcore: registered new interface driver uas [ 13.566009] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [ 13.983302] marvell-cesa f1030000.crypto: CESA device successfully registered [ 13.984919] orion_wdt: Initial timeout 25 sec [ 14.075406] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 23.698687] random: crng init done [ 40.569582] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 43.873650] NET: Registered protocol family 10 [ 43.876484] Segment Routing with IPv6 root@debian:~#
Re: UART Boot DNS-320 B1 with broken NAND December 12, 2018 04:49AM |
Admin Registered: 13 years ago Posts: 18,998 |
setenv console 'console=ttyS0,115200' setenv mtdparts 'mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root)' setenv bootargs_usb '${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial' setenv bootcmd 'setenv bootargs ${bootargs_usb} ; run bootcmd_usb ; bootm 0x00800000 0x2100000' printenv boot
dmesg cat /proc/mtd
dmesg | grep -i bad flash_erase /dev/mtd0 0 0 nandwrite /dev/mtd0 mtd0.dns-320
Re: UART Boot DNS-320 B1 with broken NAND December 12, 2018 06:49AM |
Registered: 6 years ago Posts: 77 |
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target...| Sending boot image... 0 % [......................................................................] ..... 99 % [......................................................................] 99 % [..] [Type Ctrl-\ + c to quit] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> setenv console 'console=ttyS0,115200' Marvell>> setenv ethaddr AC:F1:DF:12:DF:9A Marvell>> setenv ipaddr 192.168.1.110 Marvell>> setenv mtdparts 'mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root)' Marvell>> setenv bootargs_usb '${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial' Marvell>> setenv bootcmd_usb 'usb start ; ext2load usb 0:1 0x00800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd' Marvell>> setenv bootcmd 'setenv bootargs ${bootargs_usb} ; run bootcmd_usb ; bootm 0x00800000 0x2100000' Marvell>> printenv bootargs=root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none baudrate=115200 loads_echo=0 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; bootdelay=1 disaMvPnp=no ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes enaAutoRecovery=yes pcieTune=no ethact=egiga0 console=console=ttyS0,115200 ethaddr=AC:F1:DF:12:DF:9A ipaddr=192.168.1.110 mtdparts=mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root) bootargs_usb=${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial bootcmd_usb=usb start ; ext2load usb 0:1 0x00800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd bootcmd=setenv bootargs ${bootargs_usb} ; run bootcmd_usb ; bootm 0x00800000 0x2100000 Environment size: 1454/131068 bytes Marvell>> boot (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found ......................................................................................................................................................................... 3832764 bytes read ................................................................................................................................................... 7702201 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-03 8:43:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832700 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2018-12-02 14:09:34 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7702137 Bytes = 7.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: ${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 108980K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22092K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.007915] Switching to timer-based delay loop, resolution 6ns [ 0.014386] Console: colour dummy device 80x30 [ 0.018955] console [tty0] enabled [ 0.022443] bootconsole [earlycon0] disabled Debian GNU/Linux 9 debian ttyS0 debian login: root Password: Last login: Wed Dec 31 16:01:06 PST 1969 on ttyS0 Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@debian:~# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map c7ef9000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: ${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 108980K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22092K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc0900000 (9184 kB) .init : 0xc0c00000 - 0xc0d00000 (1024 kB) .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.007915] Switching to timer-based delay loop, resolution 6ns [ 0.014386] Console: colour dummy device 80x30 [ 0.018955] console [tty0] enabled [ 0.022443] bootconsole [earlycon0] disabled [ 0.026806] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.026859] pid_max: default: 32768 minimum: 301 [ 0.027091] Security Framework initialized [ 0.027249] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.027292] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.028303] CPU: Testing write buffer coherency: ok [ 0.029381] Setting up static identity map for 0x100000 - 0x100058 [ 0.029688] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.033284] devtmpfs: initialized [ 0.038047] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.038106] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.038559] prandom: seed boundary self test passed [ 0.043056] prandom: 100 self tests passed [ 0.043084] pinctrl core: initialized pinctrl subsystem [ 0.044338] NET: Registered protocol family 16 [ 0.044853] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.046628] cpuidle: using governor ladder [ 0.046717] cpuidle: using governor menu [ 0.047238] Feroceon L2: Enabling L2 [ 0.047298] Feroceon L2: Cache support initialised. [ 0.047705] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.053427] No ATAGs? [ 0.063850] vgaarb: loaded [ 0.064227] SCSI subsystem initialized [ 0.064438] libata version 3.00 loaded. [ 0.064769] usbcore: registered new interface driver usbfs [ 0.064891] usbcore: registered new interface driver hub [ 0.065014] usbcore: registered new device driver usb [ 0.066312] clocksource: Switched to clocksource orion_clocksource [ 0.169327] VFS: Disk quotas dquot_6.6.0 [ 0.169458] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.181114] NET: Registered protocol family 2 [ 0.181978] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.182045] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.182095] TCP: Hash tables configured (established 1024 bind 1024) [ 0.182210] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.182264] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.182482] NET: Registered protocol family 1 [ 0.182970] RPC: Registered named UNIX socket transport module. [ 0.183016] RPC: Registered udp transport module. [ 0.183048] RPC: Registered tcp transport module. [ 0.183079] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.183119] PCI: CLS 0 bytes, default 32 [ 0.183365] Unpacking initramfs... [ 0.970105] Freeing initrd memory: 7524K [ 0.970333] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.971463] audit: initializing netlink subsys (disabled) [ 0.972032] Initialise system trusted keyrings [ 0.972121] Key type blacklist registered [ 0.972245] audit: type=2000 audit(0.955:1): state=initialized audit_enabled=0 res=1 [ 0.972389] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.972498] zbud: loaded [ 0.973604] NFS: Registering the id_resolver key type [ 0.973664] Key type id_resolver registered [ 0.973697] Key type id_legacy registered [ 0.973738] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.973777] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 0.974023] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 0.974272] fuse init (API version 7.26) [ 0.974708] orangefs_debugfs_init: called with debug mask: :none: :0: [ 0.975063] orangefs_init: module version upstream loaded [ 0.975105] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.566319] random: fast init done [ 7.985949] Key type asymmetric registered [ 7.985998] Asymmetric key parser 'x509' registered [ 7.986107] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 7.986163] io scheduler noop registered [ 7.986193] io scheduler deadline registered [ 7.986297] io scheduler cfq registered (default) [ 7.987926] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 7.990067] mv_xor f1060800.xor: Marvell shared XOR driver [ 8.047178] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.047493] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.107194] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.107730] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.109199] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.109961] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.119550] loop: module loaded [ 8.119902] sata_mv f1080000.sata: version 1.28 [ 8.120190] sata_mv f1080000.sata: slots 32 ports 2 [ 8.123220] scsi host0: sata_mv [ 8.123735] scsi host1: sata_mv [ 8.124028] ata1: SATA max UDMA/133 irq 33 [ 8.124067] ata2: SATA max UDMA/133 irq 33 [ 8.125095] nand: Could not find valid ONFI parameter page; aborting [ 8.125152] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 8.125188] nand: Hynix NAND 128MiB 3,3V 8-bit [ 8.125222] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.125278] Scanning device for bad blocks [ 8.240124] 7 ofpart partitions found on MTD device orion_nand [ 8.240170] Creating 7 MTD partitions on "orion_nand": [ 8.240210] 0x000000000000-0x000000100000 : "u-boot" [ 8.241659] 0x000000100000-0x000000600000 : "uImage" [ 8.243118] 0x000000600000-0x000000b00000 : "ramdisk" [ 8.244594] 0x000000b00000-0x000006f00000 : "image" [ 8.246950] 0x000006f00000-0x000007900000 : "mini firmware" [ 8.248524] 0x000007900000-0x000007e00000 : "config" [ 8.249807] 0x000007e00000-0x000008000000 : "my-dlink" [ 8.252371] libphy: Fixed MDIO Bus: probed [ 8.253319] libphy: orion_mdio_bus: probed [ 8.258840] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.357544] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02 [ 8.357744] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.357807] ehci-pci: EHCI PCI platform driver [ 8.357918] ehci-orion: EHCI orion driver [ 8.358179] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.358254] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.358481] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 8.386345] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.386660] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.386710] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.386762] usb usb1: Product: EHCI Host Controller [ 8.386798] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 8.386837] usb usb1: SerialNumber: f1050000.ehci [ 8.387701] hub 1-0:1.0: USB hub found [ 8.387780] hub 1-0:1.0: 1 port detected [ 8.388551] usbcore: registered new interface driver usb-storage [ 8.388992] mousedev: PS/2 mouse device common for all mice [ 8.457917] ata1: SATA link down (SStatus 0 SControl F300) [ 8.746342] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 8.787946] ata2: SATA link down (SStatus 0 SControl F300) [ 8.937366] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 8.937415] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 8.937456] usb 1-1: Product: USB Flash Disk [ 8.937490] usb 1-1: Manufacturer: General [ 8.937523] usb 1-1: SerialNumber: 0475660000006AA4 [ 8.938474] usb-storage 1-1:1.0: USB Mass Storage device detected [ 8.938856] scsi host2: usb-storage 1-1:1.0 [ 9.456345] rtc-mv f1010300.rtc: internal RTC not ticking [ 9.456589] i2c /dev entries driver [ 9.458429] hidraw: raw HID events driver (C) Jiri Kosina [ 9.458851] drop_monitor: Initializing network drop monitor service [ 9.459153] NET: Registered protocol family 17 [ 9.459278] Key type dns_resolver registered [ 9.460153] registered taskstats version 1 [ 9.460193] Loading compiled-in X.509 certificates [ 9.460285] zswap: loaded using pool lzo/zbud [ 9.471073] Key type big_key registered [ 9.481253] Key type encrypted registered [ 9.482666] hctosys: unable to open rtc device (rtc0) [ 9.482872] PM: Hibernation image not present or could not be loaded. [ 9.485900] Freeing unused kernel memory: 1024K [ 9.963000] usbcore: registered new interface driver uas [ 10.019731] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 10.028555] sd 2:0:0:0: [sda] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 10.029036] sd 2:0:0:0: [sda] Write Protect is off [ 10.029085] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 10.029534] sd 2:0:0:0: [sda] No Caching mode page found [ 10.029583] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 10.034029] sda: sda1 [ 10.037045] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 28.088275] random: crng init done [ 33.935009] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [ 34.423614] marvell-cesa f1030000.crypto: CESA device successfully registered [ 34.425216] orion_wdt: Initial timeout 25 sec [ 34.463149] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 41.988752] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 49.129693] NET: Registered protocol family 10 [ 49.131108] Segment Routing with IPv6 root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot" mtd1: 00500000 00020000 "uImage" mtd2: 00500000 00020000 "ramdisk" mtd3: 06400000 00020000 "image" mtd4: 00a00000 00020000 "mini firmware" mtd5: 00500000 00020000 "config" mtd6: 00200000 00020000 "my-dlink" root@debian:~# cd / root@debian:/# cd backup root@debian:/backup# dmesg | grep -i bad [ 8.125278] Scanning device for bad blocks root@debian:/backup# flash_erase /dev/mtd0 0 0 Erasing 128 Kibyte @ 7f559f5c00000064 -- 8 % complete root@debian:/backup# nandwrite /dev/mtd0 mtd0.dns-320 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 Writing data to block 4 at offset 0x80000 Writing data to block 5 at offset 0xa0000 Writing data to block 6 at offset 0xc0000 Writing data to block 7 at offset 0xe0000 root@debian:/backup# reboot Broadcast message from root@debian (ttyS0) (Wed Dec 31 16:02:48 1969): The system is going down for reboot NOW!And then nothing....
root@debian:~# nandtest -r 2 -p 4 -o 0x0 -l 0x100000 /dev/mtd0 ECC corrections: 0 ECC failures : 0 Bad blocks : 0 BBT blocks : 0 000e0000: checking...of 2)... Finished pass 1 successfully 000e0000: checking...of 2)... Finished pass 2 successfully 000e0000: checking...of 2)... Finished pass 3 successfully 000e0000: checking...of 2)... Finished pass 4 successfully
Re: UART Boot DNS-320 B1 with broken NAND December 12, 2018 12:49PM |
Registered: 6 years ago Posts: 77 |
Re: UART Boot DNS-320 B1 with broken NAND December 12, 2018 02:07PM |
Admin Registered: 13 years ago Posts: 18,998 |
[ 0.000000] Kernel command line: ${console} root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root) earlyprintk=serial' setenv bootcmd 'setenv bootargs ${bootargs_usb} ; run bootcmd_usb ; bootm 0x00800000 0x2100000' printenv boot
dmesg cat /proc/mtd
dmesg | grep -i bad flash_erase /dev/mtd0 0 0 nandwrite /dev/mtd0 mtd0.dns-320
Re: UART Boot DNS-320 B1 with broken NAND December 12, 2018 03:21PM |
Registered: 6 years ago Posts: 77 |
root@debian:/dns-320l/uboot# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd0.dns-320 -p Sending boot message. Please reboot the target...- Sending boot image... 0 % [......................................................................] ..... 99 % [......................................................................] 99 % [..] [Type Ctrl-\ + c to quit] ** MARVELL BOARD: DB-88F6702A-BP LE U-Boot 1.1.4 (Apr 19 2012 - 11:21:19) Marvell version: 3.6.0.DNS-320B.01 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> setenv bootargs_usb 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root) earlyprintk=serial' Marvell>> setenv bootcmd_usb 'usb start ; ext2load usb 0:1 0x00800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd' Marvell>> setenv bootcmd 'setenv bootargs ${bootargs_usb} ; run bootcmd_usb ; bootm 0x00800000 0x2100000' Marvell>> printenv bootargs=root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none baudrate=115200 loads_echo=0 ipaddr=2.66.66.201 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; bootdelay=1 disaMvPnp=no ethaddr=00:50:43:00:02:02 ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes enaAutoRecovery=yes pcieTune=no ethact=egiga0 bootargs_usb=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root) earlyprintk=serial bootcmd_usb=usb start ; ext2load usb 0:1 0x00800000 /boot/uImage ; ext2load usb 0:1 0x2100000 /boot/uInitrd bootcmd=setenv bootargs ${bootargs_usb} ; run bootcmd_usb ; bootm 0x00800000 0x2100000 Environment size: 1503/131068 bytes Marvell>> boot (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 1 Storage Device(s) found .... 3832764 bytes read .... 7702201 bytes read ## Booting image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2018-12-03 8:43:13 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3832700 Bytes = 3.7 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK OK ## Loading Ramdisk Image at 02100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2018-12-02 14:09:34 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7702137 Bytes = 7.3 MB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Starting kernel ... Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root) earlyprintk=serial [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 108980K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22092K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc0900000 (9184 kB) [ 0.000000] .init : 0xc0c00000 - 0xc0d00000 (1024 kB) [ 0.000000] .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) [ 0.000000] .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.007915] Switching to timer-based delay loop, resolution 6ns [ 0.014387] Console: colour dummy device 80x30 [ 0.018971] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.029583] pid_max: default: 32768 minimum: 301 [ 0.034480] Security Framework initialized [ 0.038822] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.045499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.053562] CPU: Testing write buffer coherency: ok [ 0.059602] Setting up static identity map for 0x100000 - 0x100058 [ 0.066118] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.074933] devtmpfs: initialized [ 0.083056] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.093025] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.099658] prandom: seed boundary self test passed [ 0.109116] prandom: 100 self tests passed [ 0.113285] pinctrl core: initialized pinctrl subsystem [ 0.119841] NET: Registered protocol family 16 [ 0.124835] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.133550] cpuidle: using governor ladder [ 0.137787] cpuidle: using governor menu [ 0.142319] Feroceon L2: Enabling L2 [ 0.146003] Feroceon L2: Cache support initialised. [ 0.151368] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.167484] No ATAGs? [ 0.177908] vgaarb: loaded [ 0.183412] SCSI subsystem initialized [ 0.187760] usbcore: registered new interface driver usbfs [ 0.193433] usbcore: registered new interface driver hub [ 0.198924] usbcore: registered new device driver usb [ 0.205265] clocksource: Switched to clocksource orion_clocksource [ 0.314443] VFS: Disk quotas dquot_6.6.0 [ 0.318594] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.337255] NET: Registered protocol family 2 [ 0.342487] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.349563] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.356005] TCP: Hash tables configured (established 1024 bind 1024) [ 0.362498] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.368427] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.374935] NET: Registered protocol family 1 [ 0.379834] RPC: Registered named UNIX socket transport module. [ 0.385889] RPC: Registered udp transport module. [ 0.390659] RPC: Registered tcp transport module. [ 0.395464] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.402213] Unpacking initramfs... [ 1.192087] Freeing initrd memory: 7524K [ 1.196352] NetWinder Floating Point Emulator V0.97 (double precision) [ 1.204005] audit: initializing netlink subsys (disabled) [ 1.210026] Initialise system trusted keyrings [ 1.214578] Key type blacklist registered [ 1.218735] audit: type=2000 audit(1.194:1): state=initialized audit_enabled=0 res=1 [ 1.226735] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 1.233298] zbud: loaded [ 1.237039] NFS: Registering the id_resolver key type [ 1.242173] Key type id_resolver registered [ 1.246477] Key type id_legacy registered [ 1.250569] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.257357] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.263978] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 1.271317] fuse init (API version 7.26) [ 1.275731] orangefs_debugfs_init: called with debug mask: :none: :0: [ 1.282541] orangefs_init: module version upstream loaded [ 1.288036] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.565273] random: fast init done [ 8.309711] Key type asymmetric registered [ 8.313879] Asymmetric key parser 'x509' registered [ 8.319090] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 8.326656] io scheduler noop registered [ 8.330648] io scheduler deadline registered [ 8.335056] io scheduler cfq registered (default) [ 8.341320] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 8.350756] mv_xor f1060800.xor: Marvell shared XOR driver [ 8.416143] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.424009] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.486149] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.494233] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.502091] console [ttyS0] disabled [ 8.505869] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.514909] console [ttyS0] enabled [ 8.514909] console [ttyS0] enabled [ 8.521992] bootconsole [earlycon0] disabled [ 8.521992] bootconsole [earlycon0] disabled [ 8.531330] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.549847] loop: module loaded [ 8.553575] sata_mv f1080000.sata: slots 32 ports 2 [ 8.561495] scsi host0: sata_mv [ 8.565097] scsi host1: sata_mv [ 8.568537] ata1: SATA max UDMA/133 irq 33 [ 8.572622] ata2: SATA max UDMA/133 irq 33 [ 8.577959] nand: Could not find valid ONFI parameter page; aborting [ 8.584295] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 8.590699] nand: Hynix NAND 128MiB 3,3V 8-bit [ 8.595130] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.602694] Scanning device for bad blocks [ 8.721214] 2 cmdlinepart partitions found on MTD device orion_nand [ 8.727471] Creating 2 MTD partitions on "orion_nand": [ 8.732587] 0x000000000000-0x0000000c0000 : "uboot" [ 8.738868] 0x000000100000-0x000008000000 : "root" [ 8.747360] libphy: Fixed MDIO Bus: probed [ 8.752358] libphy: orion_mdio_bus: probed [ 8.761867] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.866621] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02 [ 8.875480] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.882027] ehci-pci: EHCI PCI platform driver [ 8.886550] ehci-orion: EHCI orion driver [ 8.890811] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.896364] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.904224] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 8.910171] ata1: SATA link down (SStatus 0 SControl F300) [ 8.945301] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.951531] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.958326] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.965540] usb usb1: Product: EHCI Host Controller [ 8.970401] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 8.977091] usb usb1: SerialNumber: f1050000.ehci [ 8.982622] hub 1-0:1.0: USB hub found [ 8.986457] hub 1-0:1.0: 1 port detected [ 8.991065] usbcore: registered new interface driver usb-storage [ 8.997458] mousedev: PS/2 mouse device common for all mice [ 9.246857] ata2: SATA link down (SStatus 0 SControl F300) [ 9.345302] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.536232] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 9.542918] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.550062] usb 1-1: Product: USB Flash Disk [ 9.554317] usb 1-1: Manufacturer: General [ 9.558417] usb 1-1: SerialNumber: 0475660000006AA4 [ 9.564076] usb-storage 1-1:1.0: USB Mass Storage device detected [ 9.570537] scsi host2: usb-storage 1-1:1.0 [ 10.015298] rtc-mv f1010300.rtc: internal RTC not ticking [ 10.020867] i2c /dev entries driver [ 10.026146] hidraw: raw HID events driver (C) Jiri Kosina [ 10.031926] drop_monitor: Initializing network drop monitor service [ 10.038469] NET: Registered protocol family 17 [ 10.042992] Key type dns_resolver registered [ 10.048133] registered taskstats version 1 [ 10.052212] Loading compiled-in X.509 certificates [ 10.057071] zswap: loaded using pool lzo/zbud [ 10.072231] Key type big_key registered [ 10.086400] Key type encrypted registered [ 10.091824] hctosys: unable to open rtc device (rtc0) [ 10.100391] Freeing unused kernel memory: 1024K Loading, please wait... starting version 232 [ 10.532511] usbcore: registered new interface driver uas [ 10.579219] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 10.597285] sd 2:0:0:0: [sda] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 10.610067] sd 2:0:0:0: [sda] Write Protect is off [ 10.620595] sd 2:0:0:0: [sda] No Caching mode page found [ 10.631356] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 10.647897] sda: sda1 [ 10.654535] sd 2:0:0:0: [sda] Attached SCSI removable disk Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Will now check root file system ... fsck from util-linux 2.29.2 [/sbin/fsck.ext2 (1) -- /dev/sda1] fsck.ext2 -a -C0 /dev/sda1 rootfs was not cleanly unmounted, check forced. [ 28.328275] random: crng init done== - 51.3% rootfs: 14600/491520 files (5.5% non-contiguous), 180266/1962496 blocks fsck exited with status code 1 done. done. Begin: Running /scripts/local-bottom ... done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [ ok ] Setting hostname to 'debian'...done. [....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232 . ok [ ok [ 34.959793] input: gpio_keys as /devices/platform/gpio_keys/input/input0 done. [....] Waiting for /dev to be fully populated...[ 35.242036] orion_wdt: Initial timeout 25 sec [ 35.355945] marvell-cesa f1030000.crypto: CESA device successfully registered [ 35.403236] sd 2:0:0:0: Attached scsi generic sg0 type 0 done. [ ok ] Activating swap:. [ ok ] Will now activate lvm and md swap:done. [info] Will now check all file systems. fsck from util-linux 2.29.2 Checking all file systems. LABEL=rootfs is mounted [....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable.. [ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done. [ ok . [ ok ] Will now mount local filesystems:. [ ok ] Will now activate swapfile swap:done. [ ok ] Checking minimum space in /tmp...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables...done. [ ok ] Initializing random number generator...done. [ 42.687473] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:50:43:00:02:02 Sending on LPF/eth0/00:50:43:00:02:02 Sending on Socket/fallback DHCPREQUEST of 192.168.1.114 on eth0 to 255.255.255.255 port 67 [ 47.102291] NET: Registered protocol family 10 [ 47.109850] Segment Routing with IPv6 DHCPREQUEST of 192.168.1.114 on eth0 to 255.255.255.255 port 67 DHCPACK of 192.168.1.114 from 192.168.1.1 bound to 192.168.1.114 -- renewal in 1073741823 seconds. done. [ ok ] Starting RPC port mapper daemon: rpcbind. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1288 (syslogd) . ok [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting system message bus: dbus. [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting NTP server: ntpd. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... 1289 (klogd) . ok [ ok ] Starting OpenBSD Secure Shell server: sshd. [ ok ] Running local boot scripts (/etc/rc.local). Debian GNU/Linux 9 debian ttyS0 debian login: root Password: Last login: Wed Dec 31 16:02:12 PST 1969 on ttyS0 Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@debian:~# cd /backup root@debian:/backup# dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] OF: fdt: Machine model: D-Link DNS-320L [ 0.000000] bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 32768 [ 0.000000] free_area_init_node: node 0, pgdat c0d9e084, node_mem_map c7ef9000 [ 0.000000] Normal zone: 256 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0xc0000@0(uboot),0x7f00000@0x100000(root) earlyprintk=serial [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 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: 108980K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22092K reserved, 0K cma-reserved) [ 0.000000] Virtual kernel memory layout: vector : 0xffff0000 - 0xffff1000 ( 4 kB) fixmap : 0xffc00000 - 0xfff00000 (3072 kB) vmalloc : 0xc8800000 - 0xff800000 ( 880 MB) lowmem : 0xc0000000 - 0xc8000000 ( 128 MB) modules : 0xbf000000 - 0xc0000000 ( 16 MB) .text : 0xc0008000 - 0xc0900000 (9184 kB) .init : 0xc0c00000 - 0xc0d00000 (1024 kB) .data : 0xc0d00000 - 0xc0db3274 ( 717 kB) .bss : 0xc0db9b9c - 0xc0e01e60 ( 289 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns [ 0.000008] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns [ 0.007915] Switching to timer-based delay loop, resolution 6ns [ 0.014387] Console: colour dummy device 80x30 [ 0.018971] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=1666666) [ 0.029583] pid_max: default: 32768 minimum: 301 [ 0.034480] Security Framework initialized [ 0.038822] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.045499] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.053562] CPU: Testing write buffer coherency: ok [ 0.059602] Setting up static identity map for 0x100000 - 0x100058 [ 0.066118] mvebu-soc-id: MVEBU SoC ID=0x6702, Rev=0x3 [ 0.074933] devtmpfs: initialized [ 0.083056] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.093025] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.099658] prandom: seed boundary self test passed [ 0.109116] prandom: 100 self tests passed [ 0.113285] pinctrl core: initialized pinctrl subsystem [ 0.119841] NET: Registered protocol family 16 [ 0.124835] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.133550] cpuidle: using governor ladder [ 0.137787] cpuidle: using governor menu [ 0.142319] Feroceon L2: Enabling L2 [ 0.146003] Feroceon L2: Cache support initialised. [ 0.151368] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set [ 0.167484] No ATAGs? [ 0.177908] vgaarb: loaded [ 0.183412] SCSI subsystem initialized [ 0.187430] libata version 3.00 loaded. [ 0.187760] usbcore: registered new interface driver usbfs [ 0.193433] usbcore: registered new interface driver hub [ 0.198924] usbcore: registered new device driver usb [ 0.205265] clocksource: Switched to clocksource orion_clocksource [ 0.314443] VFS: Disk quotas dquot_6.6.0 [ 0.318594] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 0.337255] NET: Registered protocol family 2 [ 0.342487] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.349563] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.356005] TCP: Hash tables configured (established 1024 bind 1024) [ 0.362498] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.368427] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.374935] NET: Registered protocol family 1 [ 0.379834] RPC: Registered named UNIX socket transport module. [ 0.385889] RPC: Registered udp transport module. [ 0.390659] RPC: Registered tcp transport module. [ 0.395464] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.401966] PCI: CLS 0 bytes, default 32 [ 0.402213] Unpacking initramfs... [ 1.192087] Freeing initrd memory: 7524K [ 1.196352] NetWinder Floating Point Emulator V0.97 (double precision) [ 1.204005] audit: initializing netlink subsys (disabled) [ 1.210026] Initialise system trusted keyrings [ 1.214578] Key type blacklist registered [ 1.218735] audit: type=2000 audit(1.194:1): state=initialized audit_enabled=0 res=1 [ 1.226735] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 1.233298] zbud: loaded [ 1.237039] NFS: Registering the id_resolver key type [ 1.242173] Key type id_resolver registered [ 1.246477] Key type id_legacy registered [ 1.250569] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 1.257357] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 1.263978] jffs2: version 2.2. (NAND) (SUMMARY) \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc. [ 1.271317] fuse init (API version 7.26) [ 1.275731] orangefs_debugfs_init: called with debug mask: :none: :0: [ 1.282541] orangefs_init: module version upstream loaded [ 1.288036] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 2.565273] random: fast init done [ 8.309711] Key type asymmetric registered [ 8.313879] Asymmetric key parser 'x509' registered [ 8.319090] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 8.326656] io scheduler noop registered [ 8.330648] io scheduler deadline registered [ 8.335056] io scheduler cfq registered (default) [ 8.341320] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver [ 8.350756] mv_xor f1060800.xor: Marvell shared XOR driver [ 8.416143] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.424009] mv_xor f1060900.xor: Marvell shared XOR driver [ 8.486149] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr ) [ 8.494233] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 8.502091] console [ttyS0] disabled [ 8.505869] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 10416666) is a 16550A [ 8.514909] console [ttyS0] enabled [ 8.521992] bootconsole [earlycon0] disabled [ 8.531330] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 26, base_baud = 10416666) is a 16550A [ 8.549847] loop: module loaded [ 8.553285] sata_mv f1080000.sata: version 1.28 [ 8.553575] sata_mv f1080000.sata: slots 32 ports 2 [ 8.561495] scsi host0: sata_mv [ 8.565097] scsi host1: sata_mv [ 8.568537] ata1: SATA max UDMA/133 irq 33 [ 8.572622] ata2: SATA max UDMA/133 irq 33 [ 8.577959] nand: Could not find valid ONFI parameter page; aborting [ 8.584295] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1 [ 8.590699] nand: Hynix NAND 128MiB 3,3V 8-bit [ 8.595130] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 8.602694] Scanning device for bad blocks [ 8.721214] 2 cmdlinepart partitions found on MTD device orion_nand [ 8.727471] Creating 2 MTD partitions on "orion_nand": [ 8.732587] 0x000000000000-0x0000000c0000 : "uboot" [ 8.738868] 0x000000100000-0x000008000000 : "root" [ 8.747360] libphy: Fixed MDIO Bus: probed [ 8.752358] libphy: orion_mdio_bus: probed [ 8.761867] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.866621] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:50:43:00:02:02 [ 8.875480] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.882027] ehci-pci: EHCI PCI platform driver [ 8.886550] ehci-orion: EHCI orion driver [ 8.890811] orion-ehci f1050000.ehci: EHCI Host Controller [ 8.896364] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1 [ 8.904224] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000 [ 8.910171] ata1: SATA link down (SStatus 0 SControl F300) [ 8.945301] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00 [ 8.951531] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.958326] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.965540] usb usb1: Product: EHCI Host Controller [ 8.970401] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd [ 8.977091] usb usb1: SerialNumber: f1050000.ehci [ 8.982622] hub 1-0:1.0: USB hub found [ 8.986457] hub 1-0:1.0: 1 port detected [ 8.991065] usbcore: registered new interface driver usb-storage [ 8.997458] mousedev: PS/2 mouse device common for all mice [ 9.246857] ata2: SATA link down (SStatus 0 SControl F300) [ 9.345302] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.536232] usb 1-1: New USB device found, idVendor=21c4, idProduct=8005 [ 9.542918] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.550062] usb 1-1: Product: USB Flash Disk [ 9.554317] usb 1-1: Manufacturer: General [ 9.558417] usb 1-1: SerialNumber: 0475660000006AA4 [ 9.564076] usb-storage 1-1:1.0: USB Mass Storage device detected [ 9.570537] scsi host2: usb-storage 1-1:1.0 [ 10.015298] rtc-mv f1010300.rtc: internal RTC not ticking [ 10.020867] i2c /dev entries driver [ 10.026146] hidraw: raw HID events driver (C) Jiri Kosina [ 10.031926] drop_monitor: Initializing network drop monitor service [ 10.038469] NET: Registered protocol family 17 [ 10.042992] Key type dns_resolver registered [ 10.048133] registered taskstats version 1 [ 10.052212] Loading compiled-in X.509 certificates [ 10.057071] zswap: loaded using pool lzo/zbud [ 10.072231] Key type big_key registered [ 10.086400] Key type encrypted registered [ 10.091824] hctosys: unable to open rtc device (rtc0) [ 10.097275] PM: Hibernation image not present or could not be loaded. [ 10.100391] Freeing unused kernel memory: 1024K [ 10.532511] usbcore: registered new interface driver uas [ 10.579219] scsi 2:0:0:0: Direct-Access General USB Flash Disk 1.00 PQ: 0 ANSI: 4 [ 10.597285] sd 2:0:0:0: [sda] 15702112 512-byte logical blocks: (8.04 GB/7.49 GiB) [ 10.610067] sd 2:0:0:0: [sda] Write Protect is off [ 10.614875] sd 2:0:0:0: [sda] Mode Sense: 03 00 00 00 [ 10.620595] sd 2:0:0:0: [sda] No Caching mode page found [ 10.631356] sd 2:0:0:0: [sda] Assuming drive cache: write through [ 10.647897] sda: sda1 [ 10.654535] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 28.328275] random: crng init done [ 34.959793] input: gpio_keys as /devices/platform/gpio_keys/input/input0 [ 35.242036] orion_wdt: Initial timeout 25 sec [ 35.355945] marvell-cesa f1030000.crypto: CESA device successfully registered [ 35.403236] sd 2:0:0:0: Attached scsi generic sg0 type 0 [ 42.687473] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled [ 47.102291] NET: Registered protocol family 10 [ 47.109850] Segment Routing with IPv6 root@debian:/backup# cat /proc/mtd dev: size erasesize name mtd0: 000c0000 00020000 "uboot" mtd1: 07f00000 00020000 "root" root@debian:/backup# dmesg | grep -i bad [ 8.602694] Scanning device for bad blocks root@debian:/backup# flash_erase /dev/mtd0 0 0 Erasing 128 Kibyte @ 7f619f5c00000064 -- 6 % complete root@debian:/backup# nandwrite /dev/mtd0 mtd0.dns-320 Image 1048576 bytes, NAND page 2048 bytes, OOB area 64 bytes, device size 786432 bytes nandwrite: error!: Input file does not fit into device error 0 (Success) nandwrite: error!: Data was only partially written due to error error 0 (Success) root@debian:/backup# reboot Broadcast message from root@debian (ttyS0) (Wed Dec 12 12:59:35 2018): INI[info] Using makefile-style concurrent boot in runlevel 6. [ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon. [....] Stopping busybox' klogd implementation: klogd1289 (klogd) Stopped klogd (pid 1289). . ok [....] Stopping busybox' syslogd implementation: syslogd1288 (syslogd) . ok [ ok ] Stopping NFS kernel daemon: mountd nfsd. [ ok ] Unexporting directories for NFS kernel daemon.... [ ok ] Asking all remaining processes to terminate...done. [ ok ] All processes ended within 1 seconds...done. [ ok ] Saving random seed...done. [ ok ] Stopping RPC port mapper daemon: rpcbind. [ ok ] Stopping NFS common utilities: idmapd statd. [info] Saving the system clock. hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the details of our search for an access method. [....] Deconfiguring network interfaces...Removed stale PID file Internet Systems Consortium DHCP Client 4.3.5 Copyright 2004-2016 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:50:43:00:02:02 Sending on LPF/eth0/00:50:43:00:02:02 Sending on Socket/fallback DHCPRELEASE on eth0 to 192.168.1.1 port 67 done. [....] Will now unmount temporary filesystems:umount: /tmp unmounted . ok [ ok ] Will now deactivate swap:. [ ok ] Mounting root filesystem read-only...done. [info] Will now restart. [ 310.106580] reboot: Restarting system
bootargs=root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none bootcmd=nand read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000 bootdelay=1 baudrate=115200 loads_echo=0 ipaddr=2.66.66.201 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes
Marvell>> printenv bootargs=root=/dev/ram console=ttyS0,115200 :::DB88FXX81:egiga0:none bootcmd=nand read.e 0xa00000 0x100000 0x300000;nand read.e 0xf00000 0x600000 0x300000;bootm 0xa00000 0xf00000 baudrate=115200 loads_echo=0 ipaddr=2.66.66.201 serverip=2.66.66.32 rootpath=/srv/ubuntu netmask=255.255.255.0 run_diag=yes stdin=serial stdout=serial stderr=serial console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root) mainlineLinux=no enaMonExt=no enaCpuStream=no enaWrAllo=no pexMode=RC disL2Cache=no setL2CacheWT=yes disL2Prefetch=yes enaICPref=yes enaDCPref=yes sata_dma_mode=yes MALLOC_len=1 ethprime=egiga0 netbsd_en=no vxworks_en=no bootargs_root=root=/dev/nfs rw bootargs_end=:::DB88FXX81:eth0:none image_name=uImage standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000; bootdelay=1 disaMvPnp=no ethaddr=00:50:43:00:02:02 ethmtu=1500 mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500 usb0Mode=host yuk_ethaddr=00:00:00:EE:51:81 nandEcc=1bit netretry=no rcvrip=169.254.100.100 loadaddr=0x02000000 autoload=no image_multi=yes enaAutoRecovery=yes pcieTune=no ethact=egiga0 Environment size: 1272/131068 bytes