MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 26, 2017 11:39AM |
Registered: 7 years ago Posts: 10 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 26, 2017 01:33PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 27, 2017 04:07AM |
Registered: 7 years ago Posts: 10 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 27, 2017 05:11AM |
Admin Registered: 14 years ago Posts: 19,426 |
dmesg # to see the mtd definitions as the kernel detects them, and see where the bad blocks are cat /proc/mtd # to see the actual MTDs devices
nanddump --noecc --omitoob -f mtd0 /dev/mtd0 nanddump --noecc --omitoob -f mtd1 /dev/mtd1
ls -lh mtd*
# Bad eraseblock 16 at 0x000000200000 # Bad eraseblock 1521 at 0x00000be20000 # Bad eraseblock 1786 at 0x00000df40000 # Bad eraseblock 1959 at 0x00000f4e0000
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 28, 2017 03:11AM |
Registered: 7 years ago Posts: 10 |
# dev: size erasesize name # mtd0: 00100000 00020000 "u-boot" # mtd1: 00600000 00020000 "uImage" # mtd2: 0f900000 00020000 "rootfs"
# NAND device: Manufacturer ID: 0xc8, Chip ID: 0xda (Zentel NAND 256MiB 3,3V 8-bit) # Scanning device for bad blocks [...] # Using static partition definition # Creating 3 MTD partitions on "nand_mtd": # 0x000000000000-0x000000100000 : "u-boot" # 0x000000100000-0x000000700000 : "uImage" # 0x000000700000-0x000010000000 : "rootfs" # UBI: attaching mtd2 to ubi0 # UBI: physical eraseblock size: 131072 bytes (128 KiB) # UBI: logical eraseblock size: 126976 bytes # UBI: smallest flash I/O unit: 2048 # UBI: sub-page size: 512 # UBI: VID header offset: 2048 (aligned 2048) # UBI: data offset: 4096 # UBI: attached mtd2 to ubi0 # UBI: MTD device name: "rootfs" # UBI: MTD device size: 249 MiB # UBI: number of good PEBs: 1989 # UBI: number of bad PEBs: 3 # UBI: max. allowed volumes: 128 # UBI: wear-leveling threshold: 4096 # UBI: number of internal volumes: 1 # UBI: number of user volumes: 1 # UBI: available PEBs: 0 # UBI: total number of reserved PEBs: 1989 # UBI: number of PEBs reserved for bad PEB handling: 38 # UBI: max/mean erase counter: 1/0 # UBI: image sequence number: 0
$ nanddump --noecc --omitoob -f mtd0 /dev/mtd0
# $ nanddump --noecc --omitoob -f mtd1 /dev/mtd1
# $ nanddump --noecc --omitoob -f mtd2 /dev/mtd2
# -rwxr-xr-x 1 root root 1.0M Nov 28 10:17 mtd0 # -rwxr-xr-x 1 root root 5.9M Nov 28 10:17 mtd1 # -rwxr-xr-x 1 root root 249M Nov 28 10:19 mtd2
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 28, 2017 03:48AM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 28, 2017 04:04PM |
Registered: 7 years ago Posts: 10 |
Marvell>> usb start # (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 Marvell>> usb tree # Device Tree: # 1 Hub (480MBit/s, 0mA) # | Marvell EHCI # | # +-2 Mass Storage (480MBit/s, 200mA) # Sony Storage Media $MYID # Marvell>> usb info # 1: Hub, USB Revision 2.0 # - Marvell EHCI # - Class: Hub # - PacketSize: 64 Configurations: 1 # - Vendor: 0x0000 Product 0x0000 Version 1.0 # Configuration: 1 # - Interfaces: 1 Self Powered 0mA # Interface: 0 # - Alternate Settings 0, Endpoints: 1 # - Class Hub # - Endpoint 1 In Interrupt MaxPacket 8 Interval 255ms # # 2: Mass Storage, USB Revision 2.0 # - Sony Storage Media $MYID # - Class: (from Interface) Mass Storage # - PacketSize: 64 Configurations: 1 # - Vendor: 0x054c Product 0x0243 Version 1.0 # Configuration: 1 # - Interfaces: 1 Bus Powered 200mA # Interface: 0 # - Alternate Settings 0, Endpoints: 2 # - Class Mass Storage, Transp. SCSI, Bulk only # - Endpoint 1 In Bulk MaxPacket 512 # - Endpoint 2 Out Bulk MaxPacket 512
$ setenv mainlineLinux yes $ setenv arcNumber 3960 $ setenv machid f78 $ setenv bootargs console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial $ ext2load usb 0:1 0x800000 /boot/uImage $ ext2load usb 0:1 0x1100000 /boot/uInitrd $ bootm 0x800000 0x1100000
# at Linux-PC as root; this is just a rough sketch - details are missing (e.g. downloading files) $ apt install u-boot-tools $ mount /dev/sdc1 /media/rootfs $ cd /media/rootfs $ tar -xjf Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 $ cd boot $ tar -xjf linux-4.14.1-kirkwood-tld-1-bodhi.tar.bz2 # skipped FDT part; apearendly it didn't work for helge and saschbear; so using plain kernel instead! $ mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n linux-4.14.1-kirkwood-tld-1-bodhi -d linux-4.14.1-kirkwood-tld-1-bodhi uImage $ mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.12.1-kirkwood-tld-1 -d initrd.img-4.12.1-kirkwood-tld-1 uInitrd $ cd /; sync; umount /media/rootfs
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 28, 2017 06:11PM |
Admin Registered: 14 years ago Posts: 19,426 |
bdinfo
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 29, 2017 03:55PM |
Registered: 7 years ago Posts: 10 |
usb start setenv mainlineLinux yes setenv arcNumber 3960 setenv machid f78 setenv bootargs console=ttyS0,115200 root=/dev/sda1 earlyprintk=serial,ttyS0,115200,keep ext2load usb 0:1 0x800000 /boot/uImage ext2load usb 0:1 0x1100000 /boot/uInitrd bootm 0x800000 0x1100000
setenv bootargs console=ttyS0,115200 root=/dev/sda1 earlyprintk=serial,ttyS0,115200,keep nand read.e 0x800000 0x100000 0x400000 bootm 0x800000
mknod /dev/sda1 b 8 1 mount /dev/sda1 /newroot umount /sys /proc exec switch_root /newroot /sbin/init FATAL: kernel too old Kernel panic - not syncing: Attempted to kill init! Backtrace: [<c01b7224>] (dump_backtrace+0x0/0x114) from [<c00cf988>] (dump_stack+0x18/0x1c) r7:000000f8 r6:c8019c40 r5:c8019c40 r4:c0597090 [<c00cf970>] (dump_stack+0x0/0x1c) from [<c00cf9d8>] (panic+0x4c/0x114) [<c00cf98c>] (panic+0x0/0x114) from [<c02065c4>] (do_exit+0x74/0x5ac) r3:c057029c r2:c8019c40 r1:c8021e0c r0:c0170068 [<c0206550>] (do_exit+0x0/0x5ac) from [<c0206b90>] (do_group_exit+0x94/0xc8) [<c0206afc>] (do_group_exit+0x0/0xc8) from [<c0206bdc>] (sys_exit_group+0x18/0x24) r5:0000007f r4:4001e3a0 [<c0206bc4>] (sys_exit_group+0x0/0x24) from [<c00c16a0>] (ret_fast_syscall+0x0/0x2c)
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 29, 2017 06:28PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 29, 2017 06:36PM |
Admin Registered: 14 years ago Posts: 19,426 |
bdinfo
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 29, 2017 07:16PM |
Admin Registered: 14 years ago Posts: 19,426 |
Quote
Updated 02 Sept 2014 (rootfs):
Rootfs Debian-3.16.0-kirkwood-tld-2 was uploaded. This rootfs is to keep in sync with kernel Linux-3.16.0-kirkwood-tld-2 (and its new features).
Quote
https://forum.doozan.com/read.php?2,32877,33401#msg-33401
Starting kernel ...
The LEDs indicate that there is some more stuff going on as with kernel 3.18.5 ..
The green one keeps blinking for one second then .. the red one is lighting up ..
With Kernel 3.18.5 ... only the blue LEDs lights up
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 30, 2017 10:23AM |
Registered: 7 years ago Posts: 10 |
> bdinfo
__ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: DB6702A-GMtech LE U-Boot 1.1.4 (Jun 5 2013 - 10:49:39) Marvell version: 3.6.0 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 256MB DRAM Total size 256MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:256 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: PCI Express Root Complex Interface PEX interface detected Link X1 Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> bdinfo Unknown command 'bdinfo' - try 'help' 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
/ # exec switch_root /newroot /sbin/init INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [FAIL] udev requires a kernel >= 2.6.32, not started ... failed! failed! [warn] Filesystem mounted on /dev/shm; setting up compatibility bind mount. ... (warning). [warn] Please remove this mount from /etc/fstab; it is no longer needed, and it is preventing completion of the transition to /run/shm. ... (warning). [ ok ] Activating swap...done. [....] Checking root file system...fsck from util-linux 2.20.1 rootfs: clean, 27618/118560 files, 300875/473596 blocks done. EXT3 FS on sda1, internal journal [ ok ] Cleaning up temporary files... /tmp /lib/init/rw. [ ok ] Loading kernel modules...done. [ ok ] Activating lvm and md swap...done. [....] Checking file systems...fsck from util-linux 2.20.1 done. [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables ...done. [....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Listening on LPF/eth0/00:11:41:3c:20:8a Sending on LPF/eth0/00:11:41:3c:20:8a Sending on Socket/fallback DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPREQUEST on eth0 to 255.255.255.255 port 67 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20 DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15 No DHCPOFFERS received. Trying recorded lease 192.168.0.15 PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data. --- 192.168.0.1 ping statistics --- 1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms No working leases in persistent database - sleeping. done. [....] Starting rpcbind daemon...rpcbind: cannot create socket for udp6 rpcbind: cannot create socket for tcp6 . ok [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... [FAIL] startpar: service(s) returned failure: udev ... failed! INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 2111 (syslogd) . ok [ ok ] Starting system message bus: dbus. [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... [ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting rpcbind daemon...[....] Already running.. [ ok ] Starting NTP server: ntpd. [warn] Not starting NFS kernel daemon: no exports. ... (warning). [ ok ] Starting OpenBSD Secure Shell server: sshd. 2109 (klogd) . ok INIT: Id "T0" respawning too fast: disabled for 5 minutes INIT: no more processes left in this runlevel INIT: Id "T0" respawning too fast: disabled for 5 minutes
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 30, 2017 05:09PM |
Admin Registered: 14 years ago Posts: 19,426 |
setenv bootargs console=ttyS0,115200 root=/dev/sda1 earlyprintk=serial
root@tldDebian:/usr/src/Medion_MD86783/kernel-2.6.31.8# grep -i console .config CONFIG_CMDLINE="console=ttyS0,115200" # CONFIG_NETCONSOLE is not set CONFIG_CONSOLE_TRANSLATIONS=y CONFIG_VT_CONSOLE=y CONFIG_HW_CONSOLE=y # CONFIG_VT_HW_CONSOLE_BINDING is not set CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_CORE_CONSOLE=y
setenv bootargs console=ttyS0,baudrate root=/dev/sda1 earlyprintk=serial
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 30, 2017 05:22PM |
Registered: 7 years ago Posts: 10 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash November 30, 2017 06:18PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash December 03, 2017 01:36PM |
Registered: 7 years ago Posts: 10 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash December 03, 2017 02:53PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash December 03, 2017 03:12PM |
Registered: 7 years ago Posts: 10 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash January 24, 2018 08:06PM |
Registered: 8 years ago Posts: 27 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 01, 2018 01:48PM |
Registered: 7 years ago Posts: 11 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 01, 2018 01:55PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 01, 2018 03:03PM |
Registered: 7 years ago Posts: 11 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 01, 2018 04:22PM |
Admin Registered: 14 years ago Posts: 19,426 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 02, 2018 12:50AM |
Registered: 7 years ago Posts: 11 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 05, 2018 10:36AM |
Registered: 8 years ago Posts: 27 |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash February 05, 2018 02:11PM |
Registered: 7 years ago Posts: 11 |
Damien
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash December 23, 2018 09:03AM |
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash December 23, 2018 01:57PM |
Admin Registered: 14 years ago Posts: 19,426 |
Damien
Re: MEDION P89634 MD 86783 (2x2 TB NAS): Backup Flash December 23, 2018 05:48PM |