Quantcast
Channel: Linux Device Hacking
Viewing all 46971 articles
Browse latest View live

Re: GoFlex Home Battery Replacement

$
0
0
To be frank, some of the batteries from overseas are just trash.... Waste time / money / effort...

I ordered 5 cr1616 for my car key, none of them worked. Later got a good one from frys at about $2.

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

$
0
0
I've been having a very similar issue for about a year on my Stora MS2000 running Debian from a USB flash drive. Normally the system is pretty stable when idling for weeks and just reading and writing stuff on the hard drives, but occasionally when I run apt commands the system hangs mid-operation, which sometimes makes the system unbootable until I plug the USB drive into my computer and repair things. If I have a second SSH connection open running htop I notice that htop keeps running and updating the display, but I can't cancel any commands and I can't open any new SSH connections. Strangely I've noticed that using 'apt install packagename' or 'aptitude install packagename' crashes consistently for certain packages, but using 'apt-get install packagename' works fine.

I'd like to hear if others have found a solution yet but I'll try a new thumb drive and see if that helps.

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

$
0
0
All,

The most likely problem here is the rootfs was corrupted. If you are running HDD rootfs, then use smarttools to monitor the drive, and have the system log to the HDD. When the problem occur, use a USB rootfs to boot the box and look at the log of SMART and system log for clues if the drive has power problem (sometime it is the power supply that causes the corruption, too).

If you have serial console, then try to log in through that to see if it will get you to the Debian shell.

If you use USB rootfs permanently, then you should use a good brand such as Sandisk.

Re: GoFlex Home Battery Replacement

$
0
0
daviddyer Wrote:
-------------------------------------------------------
> To be frank, some of the batteries from overseas
> are just trash.... Waste time / money / effort...
>
> I ordered 5 cr1616 for my car key, none of them
> worked. Later got a good one from frys at about
> $2.

+1

I would just buy a ~$2 battery like David did. Buy good brand like Duracell, Energizer,... and not to have to worry again.

Re: Install Debian on old GoFlex Home

$
0
0
Bodhi,

Since I have activated Netconsole, I am skipping rescue system install.

I am using cfdisk command to partion the new 250G WD drive.

1) Should the 20G partition that contains rootfs be 83 Linux type? (I have made it Primary and x83 Linux. I will mark it as bootable later after I copy rootfs files to this partition. Also I am assuming that the swap file will be made in this partiton).

2) Should remaining space for data be partitioned as Primary or Extended? (I have made it Primary and x83 Linux.)

3) Should I leave some unallocated space on this drive for future use?

4) Should I be concerned about "Disklable Type: dos" that fdisk -l command shows below?

Here is what I have executed so far:

-------------------------------------------------------------------------
root@GoFlexHome:~# cfdisk /dev/sda
Syncing disks.
root@GoFlexHome:~# fdisk -l
Disk /dev/mtdblock0: ...........

Disk /dev/sda: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x0006328e

Device Boot Start End Sectors Size Id Type
/dev/sda1 2048 41945087 41943040 20G 83 Linux
/dev/sda2 41945088 488397167 446452080 212.9G 83 Linux
root@GoFlexHome:~#
------------------------------------------------------------------

Again, Thanks for your valuable input and time.

Regards,

Navi

Re: Install Debian on old GoFlex Home

$
0
0
Navi,

> 2) Should remaining space for data be partitioned
> as Primary or Extended? (I have made it Primary
> and x83 Linux.)

Primary.

> 3) Should I leave some unallocated space on this
> drive for future use?

No need to. The rootfs in the 1st partition is all you need to care about. 20GB is plenty for rootfs.

> 4) Should I be concerned about "Disklable Type:
> dos" that fdisk -l command shows below?

That's normal.


> root@GoFlexHome:~# cfdisk /dev/sda
> Syncing disks.
> root@GoFlexHome:~# fdisk -l
> Disk /dev/mtdblock0: ...........
>
> Disk /dev/sda: 232.9 GiB, 250059350016 bytes,
> 488397168 sectors
> Units: sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512
> bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disklabel type: dos
> Disk identifier: 0x0006328e
>
> Device Boot Start End Sectors
> Size Id Type
> /dev/sda1 2048 41945087 41943040
> 20G 83 Linux
> /dev/sda2 41945088 488397167 446452080
> 212.9G 83 Linux

All look good.

Remember to label the rootfs partition rootfs, to ensure correct system booting.

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

$
0
0
The internal memory (NAND?) in my stora is corrupt so I've been using a Sandisk thumb drive as permanent rootfs that I bought new for the purpose. Is it possible I got a dud or fake branded one?

When I was setting up the system last year I found that blacklisting certain ehci modules made the system more stable - I thought it might be because there wasn't enough power getting to the USB port for USB v2, only USB 1.x -
blacklist ehci_hcd
blacklist orion-ehci
While troubleshooting today I tried commenting out these lines in /etc/modprobe.d/blacklist.conf and found that these modules aren't loaded any more anyway.

I enabled writing syslogs to disk as suggested above. I've been stress-testing the Stora and its thumb drive and it seems to be hard to replicate the issue consistently but managed to trigger it just now. Simultaneous large 'dd' writes don't seem to do it, but every once in a while an apt/dpkg operation will cause processes to start becoming unresponsive one by one. After pulling the power cable and rebooting I see the following entries in /var/log/messages. The dmesg logs don't seem to show anything and the file /var/log/syslog doesn't exist.

Feb 2 12:09:07 stora user.err kernel: [ 489.424754] INFO: task dpkg:2335 blocked for more than 120 seconds.
Feb 2 12:09:07 stora user.err kernel: [ 489.431094] Not tainted 4.19.0-kirkwood-tld-1 #1
Feb 2 12:09:07 stora user.err kernel: [ 489.444489] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Feb 2 12:09:07 stora user.info kernel: [ 489.452565] dpkg D 0 2335 2160 0x00000000
Feb 2 12:09:07 stora user.warn kernel: [ 489.458912] [<c08f8568>] (__schedule) from [<c08f86cc>] (schedule+0xa8/0xc8)
Feb 2 12:09:07 stora user.warn kernel: [ 489.466697] [<c08f86cc>] (schedule) from [<c033bec8>] (jbd2_log_wait_commit+0x110/0x138)
Feb 2 12:09:07 stora user.warn kernel: [ 489.482685] [<c033bec8>] (jbd2_log_wait_commit) from [<c02e712c>] (ext4_sync_file+0x3a4/0x3c8)
Feb 2 12:09:07 stora user.warn kernel: [ 489.491704] [<c02e712c>] (ext4_sync_file) from [<c0289910>] (vfs_fsync+0x20/0x28)
Feb 2 12:09:07 stora user.warn kernel: [ 489.499600] [<c0289910>] (vfs_fsync) from [<c0289940>] (do_fsync+0x28/0x44)
Feb 2 12:09:07 stora user.warn kernel: [ 489.507446] [<c0289940>] (do_fsync) from [<c0101000>] (ret_fast_syscall+0x0/0x50)
Feb 2 12:09:07 stora user.warn kernel: [ 489.515874] Exception stack(0xc5d5bfa8 to 0xc5d5bff0)
Feb 2 12:09:07 stora user.warn kernel: [ 489.524219] bfa0: 01c52368 beb5a568 00000008 00000000 01c527d0 00000008
Feb 2 12:09:07 stora user.warn kernel: [ 489.539387] bfc0: 01c52368 beb5a568 01c52348 00000076 01c52368 0000000a 00000002 00000000
Feb 2 12:09:07 stora user.warn kernel: [ 489.550983] bfe0: 00000000 beb5a54c 00503688 b6e401dc

Re: GoFlex Home Battery Replacement

$
0
0
fishga Wrote:
-------------------------------------------------------
> I have a GoFlex Home with a dead battery and have
> the problem where the real-time clock doesn't keep
> time following a power cycle. Seagate has been no
> help at all. For as long as I decide to keep the
> unit, it would be nice to have a clock that can
> survive a power cycle. Does anyone have
> instructions on how to get to the battery? It
> doesn't seem to be intuitively obvious. There are
> instructions on replacing the hard drive and
> unfortunately I have had to do that twice.
>
> Thanks!!

By the way, how about the copy speed of your goflex home? mine dropped to around 15mb/s recently, don't know why. Usually around 30mb/s in the pass.

Re: Install Debian on old GoFlex Home

$
0
0
Hi Bodhi,

Can't seem to figure out how to format the "cp -R Src_directory Dest_directory" command to move rootfs from USB to HD. Should I be using "cp -R /dev/sdb1/boot /dev/sda1/boot" ?

Regards,

Navi

Re: NETGEAR STORA - Bad Magic Number

$
0
0
Hi Bohdi,
this is the complete log.
pi@raspberrypi:~/kwboot-tool $ ./kwboot_1 -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.netgear_ms2110.mtd0.kwb -p
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]
?

U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700)
Netgear Stora MS2110

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0 
Netgear Stora> printenv
arcNumber=2743
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1m(uboot),4m@1m(kernel),251m@5m(rootfs) rw
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 2905/131068 bytes
Netgear Stora> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: Bus 0: not available  Bus 1: OK 
  Device 1: Model: SAMSUNG HD501LJ  Firm: CR100-12 Ser#: S0MUJ1EQ221814
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	30029824  	2384b32d-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

Partition Map for IDE device 1  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	976766976 	28f7eead-01	07
running scan_disk ...
Scan device usb
device usb 0:1
** File not found /boot/uImage **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: not available  Bus 1: OK 
  Device 1: Model: SAMSUNG HD501LJ  Firm: CR100-12 Ser#: S0MUJ1EQ221814
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
device ide 0:1
** Bad device ide 0 **
device ide 1:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** File not found /boot/uImage **
loading uInitrd ...
** File not found /boot/uInitrd **
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000 ...
** File not found /boot/dts/kirkwood-netgear_stora_ms2000 **
Unknown command 'bootm0x800000' - try 'help'
resetting ...

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__| 
 ** MARVELL BOARD: RD-88F6281A LE 

U-Boot 1.1.4 (Sep  4 2009 - 09:36:11) Marvell version: 3.4.14

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: MV88F6281 Rev 3 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz 

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size  64MB 
DRAM CS[1] base 0x04000000   size  64MB 
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB
CRC in Flash: ffffffff, Calculated CRC: 619d86db
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++Checksum Error!++++++++++++++++++++++++++++++
## Error: environment overflow, "stdin" deleted
## Error: environment overflow, "stdout" deleted
## Error: environment overflow, "stderr" deleted

CPU : Marvell Feroceon (Rev 1)
## Error: environment overflow, "console" deleted
## Error: environment overflow, "mainlineLinux" deleted
## Error: environment overflow, "CASset" deleted
## Error: environment overflow, "enaMonExt" deleted
## Error: environment overflow, "enaCpuStream" deleted
## Error: environment overflow, "enaWrAllo" deleted
## Error: environment overflow, "pexMode" deleted
## Error: environment overflow, "disL2Cache" deleted
## Error: environment overflow, "setL2CacheWT" deleted
## Error: environment overflow, "disL2Prefetch" deleted
## Error: environment overflow, "enaICPref" deleted
## Error: environment overflow, "enaDCPref" deleted
## Error: environment overflow, "sata_dma_mode" deleted
## Error: environment overflow, "MALLOC_len" deleted
## Error: environment overflow, "ethprime" deleted
## Error: environment overflow, "netbsd_en" deleted
## Error: environment overflow, "vxworks_en" deleted
## Error: environment overflow, "bootargs_root" deleted
## Error: environment overflow, "bootargs_end" deleted
## Error: environment overflow, "image_name" deleted
## Error: environment overflow, "bootcmd" deleted
## Error: environment overflow, "standalone" deleted
## Error: environment overflow, "bootdelay" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "disaMvPnp" deleted
## Error: environment overflow, "ethaddr" deleted
## Error: environment overflow, "ethmtu" deleted
## Error: environment overflow, "eth1addr" deleted
## Error: environment overflow, "eth1mtu" deleted
## Error: environment overflow, "mvPhoneConfig" deleted
## Error: environment overflow, "mvNetConfig" deleted
## Error: environment overflow, "usb0Mode" deleted
## Error: environment overflow, "yuk_ethaddr" deleted
## Error: environment overflow, "nandEcc" deleted
## Error: environment overflow, "hddPowerCtrl" deleted
## Error: environment overflow, "netretry" deleted
## Error: environment overflow, "rcvrip" deleted
## Error: environment overflow, "loadaddr" deleted
## Error: environment overflow, "autoload" deleted
## Error: environment overflow, "enaAutoRecovery" deleted

Streaming disabled 
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: device mode
PEX 0: interface detected no Link.
Net:   ## Error: environment overflow, "ethact" deleted
egiga0, egiga1## Error: environment overflow, "ethact" deleted

USB:   scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Trying to load image from USB flash drive using FAT FS
reading /flashware.img

** Unable to read "/flashware.img" from usb 0:1 **
Trying to load image from USB flash drive using ext2 FS partition 0
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:0 **
Trying to load image from USB flash drive using ext2 FS partition 1

DirkPitt

Re: Install Debian on old GoFlex Home

$
0
0
Navi,

The Wiki thread has a couple cloning procedures.

Quote

Backup and Cloning rootfs

CrashPlan 4.3.0
Backup/Restore rootfs using tar command
Adjust udev rules after cloning rootfs
Stock Pogoplug rootfs
How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
How to clone SATA rootfs to USB rootfs

It is best to do the copy when both drives are mounted on another Linux box. So asuming the USB drive is /media/sda1, and HDD is /media/sdb1.

Become root
su -
And copy
cd /media/sdb1
time cp -aR /media/sda1/* . &

Re: NETGEAR STORA - Bad Magic Number

$
0
0
DirkPitt,

There are a couple of problems.

1. The rootfs was not properly created. Let's look at it.

Mount this UB rootfs on another Linux box, and assuming it is /media/sdb1

mount
cd /media/sdb1
e2label /dev/sdb1
ls -l /media/sdb1
ls -lart /media/boot



2. There is a typo in the env

dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000

should be
dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000.dtb

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

Re: NETGEAR STORA - Bad Magic Number

$
0
0
Hi,
I've fix the issue....
1: Create a new USB roots

2: Stop the u-boot and change the env dtb_file


Netgear Stora> setenv dtb_file /boot/dts/kirkwood-netgear_stora_ms2000.dtb

Now I'm on debian login

Netgear Stora> boot
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found

Reset IDE: ide_preinit failed

Partition Map for USB device 0  --   Partition Type: DOS

Part	Start Sector	Num Sectors	UUID		Type
  1	2048      	30029824  	2384b32d-01	83

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0

## Unknown partition table type 0
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 692 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
3821592 bytes read in 817 ms (4.5 MiB/s)
loading uInitrd ...
7245696 bytes read in 794 ms (8.7 MiB/s)
loading DTB /boot/dts/kirkwood-netgear_stora_ms2000.dtb ...
11869 bytes read in 2614 ms (3.9 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-07-20   8:11:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   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 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 03917000, end 03ffff40 ... OK
   Loading Device Tree to 03911000, end 03916e5c ... 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: NETGEAR MS2000 / MS2110 aka Stora
[    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:1m(uboot),4m@1m(kernel),251m@5m(rootfs) 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: 109420K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21652K 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: 9556302233 ns
[    0.000009] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000052] Switching to timer-based delay loop, resolution 5ns
[    0.000616] Console: colour dummy device 80x30
[    0.000658] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000687] pid_max: default: 32768 minimum: 301
[    0.000923] Security Framework initialized
[    0.001073] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001097] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002128] CPU: Testing write buffer coherency: ok
[    0.003347] Setting up static identity map for 0x100000 - 0x100058
[    0.003673] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.007623] devtmpfs: initialized
[    0.013009] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013042] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.013520] prandom: seed boundary self test passed
[    0.018028] prandom: 100 self tests passed
[    0.018043] pinctrl core: initialized pinctrl subsystem
[    0.019426] NET: Registered protocol family 16
[    0.020011] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.022006] cpuidle: using governor ladder
[    0.022091] cpuidle: using governor menu
[    0.022638] Feroceon L2: Enabling L2
[    0.022695] Feroceon L2: Cache support initialised.
[    0.023128] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.029240] No ATAGs?
[    0.040489] vgaarb: loaded
[    0.040884] SCSI subsystem initialized
[    0.041452] usbcore: registered new interface driver usbfs
[    0.041543] usbcore: registered new interface driver hub
[    0.041651] usbcore: registered new device driver usb
[    0.043021] clocksource: Switched to clocksource orion_clocksource
[    0.150759] VFS: Disk quotas dquot_6.6.0
[    0.150852] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.163648] NET: Registered protocol family 2
[    0.164518] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.164550] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.164575] TCP: Hash tables configured (established 1024 bind 1024)
[    0.164681] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.164710] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.164920] NET: Registered protocol family 1
[    0.165417] RPC: Registered named UNIX socket transport module.
[    0.165431] RPC: Registered udp transport module.
[    0.165440] RPC: Registered tcp transport module.
[    0.165449] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.165734] Unpacking initramfs...
[    0.958665] Freeing initrd memory: 7076K
[    0.958850] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.960001] audit: initializing netlink subsys (disabled)
[    0.960592] Initialise system trusted keyrings
[    0.960649] Key type blacklist registered
[    0.960758] audit: type=2000 audit(0.957:1): state=initialized audit_enabled=0 res=1
[    0.960866] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.960950] zbud: loaded
[    0.962128] NFS: Registering the id_resolver key type
[    0.962159] Key type id_resolver registered
[    0.962169] Key type id_legacy registered
[    0.962190] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.962202] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.962440] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.962673] fuse init (API version 7.26)
[    0.963203] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.963507] orangefs_init: module version upstream loaded
[    0.963521] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.553029] random: fast init done
[    8.015823] Key type asymmetric registered
[    8.015843] Asymmetric key parser 'x509' registered
[    8.015922] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.015936] io scheduler noop registered
[    8.015945] io scheduler deadline registered
[    8.016044] io scheduler cfq registered (default)
[    8.017538] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.019820] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    8.019847] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.019863] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.019880] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.020278] PCI: bus0: Fast back to back transfers disabled
[    8.020308] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.020501] PCI: bus1: Fast back to back transfers enabled
[    8.020591] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.021248] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.084076] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.084337] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.143934] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.144448] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.146032] console [ttyS0] disabled
[    8.146112] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.798554] console [ttyS0] enabled
[    8.812289] loop: module loaded
[    8.816200] sata_mv f1080000.sata: slots 32 ports 2
[    8.824503] scsi host0: sata_mv
[    8.828200] scsi host1: sata_mv
[    8.831641] ata1: SATA max UDMA/133 irq 33
[    8.835823] ata2: SATA max UDMA/133 irq 33
[    8.840842] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[    8.847357] nand: Samsung NAND 256MiB 3,3V 8-bit
[    8.851997] nand: 256 MiB, MLC, erase size: 4096 KiB, page size: 4096, OOB size: 128
[    8.859810] nand: WARNING: f4000000.nand: the ECC used on your system is too weak compared to the one required by the NAND chip
[    8.871369] Scanning device for bad blocks
[    8.875582] Bad eraseblock 0 at 0x0000003ff000
[    8.880241] Bad eraseblock 3 at 0x000000fff000
[    8.884794] Bad eraseblock 4 at 0x0000013ff000
[    8.889320] Bad eraseblock 5 at 0x0000017ff000
[    8.893869] Bad eraseblock 6 at 0x000001bff000
[    8.898462] Bad eraseblock 8 at 0x0000023ff000
[    8.903059] Bad eraseblock 10 at 0x000002bff000
[    8.907741] Bad eraseblock 12 at 0x0000033ff000
[    8.912358] Bad eraseblock 13 at 0x0000037ff000
[    8.916995] Bad eraseblock 14 at 0x000003bff000
[    8.921610] Bad eraseblock 15 at 0x000003fff000
[    8.926247] Bad eraseblock 16 at 0x0000043ff000
[    8.930862] Bad eraseblock 17 at 0x0000047ff000
[    8.935499] Bad eraseblock 18 at 0x000004bff000
[    8.940114] Bad eraseblock 19 at 0x000004fff000
[    8.944751] Bad eraseblock 20 at 0x0000053ff000
[    8.949366] Bad eraseblock 21 at 0x0000057ff000
[    8.954003] Bad eraseblock 22 at 0x000005bff000
[    8.958618] Bad eraseblock 23 at 0x000005fff000
[    8.963254] Bad eraseblock 24 at 0x0000063ff000
[    8.967869] Bad eraseblock 25 at 0x0000067ff000
[    8.972482] Bad eraseblock 26 at 0x000006bff000
[    8.977120] Bad eraseblock 27 at 0x000006fff000
[    8.981734] Bad eraseblock 28 at 0x0000073ff000
[    8.986372] Bad eraseblock 29 at 0x0000077ff000
[    8.990987] Bad eraseblock 30 at 0x000007bff000
[    8.995623] Bad eraseblock 31 at 0x000007fff000
[    9.000303] Bad eraseblock 33 at 0x0000087ff000
[    9.004951] Bad eraseblock 34 at 0x000008bff000
[    9.009569] Bad eraseblock 35 at 0x000008fff000
[    9.014207] Bad eraseblock 36 at 0x0000093ff000
[    9.018821] Bad eraseblock 37 at 0x0000097ff000
[    9.023458] Bad eraseblock 38 at 0x000009bff000
[    9.028072] Bad eraseblock 39 at 0x000009fff000
[    9.032685] Bad eraseblock 40 at 0x00000a3ff000
[    9.037329] Bad eraseblock 41 at 0x00000a7ff000
[    9.041947] Bad eraseblock 42 at 0x00000abff000
[    9.046584] Bad eraseblock 43 at 0x00000afff000
[    9.051198] Bad eraseblock 44 at 0x00000b3ff000
[    9.055835] Bad eraseblock 45 at 0x00000b7ff000
[    9.060449] Bad eraseblock 46 at 0x00000bbff000
[    9.065115] Bad eraseblock 47 at 0x00000bfff000
[    9.069737] Bad eraseblock 48 at 0x00000c3ff000
[    9.074399] Bad eraseblock 49 at 0x00000c7ff000
[    9.079015] Bad eraseblock 50 at 0x00000cbff000
[    9.083676] Bad eraseblock 51 at 0x00000cfff000
[    9.088293] Bad eraseblock 52 at 0x00000d3ff000
[    9.092936] Bad eraseblock 53 at 0x00000d7ff000
[    9.097580] Bad eraseblock 54 at 0x00000dbff000
[    9.102232] Bad eraseblock 55 at 0x00000dfff000
[    9.106876] Bad eraseblock 56 at 0x00000e3ff000
[    9.111528] Bad eraseblock 57 at 0x00000e7ff000
[    9.116171] Bad eraseblock 58 at 0x00000ebff000
[    9.120814] Bad eraseblock 59 at 0x00000efff000
[    9.125458] Bad eraseblock 60 at 0x00000f3ff000
[    9.130110] Bad eraseblock 61 at 0x00000f7ff000
[    9.134753] Bad eraseblock 62 at 0x00000fbff000
[    9.139404] Bad eraseblock 63 at 0x00000ffff000
[    9.144000] 3 cmdlinepart partitions found on MTD device orion_nand
[    9.150327] Creating 3 MTD partitions on "orion_nand":
[    9.155552] 0x000000000000-0x000000100000 : "uboot"
[    9.160456] mtd: partition "uboot" doesn't end on an erase block -- force read-only
[    9.169750] 0x000000100000-0x000000500000 : "kernel"
[    9.174813] ata1: SATA link down (SStatus 0 SControl F300)
[    9.180528] mtd: partition "kernel" doesn't start on an erase block boundary -- force read-only
[    9.190819] 0x000000500000-0x000010000000 : "rootfs"
[    9.195871] mtd: partition "rootfs" doesn't start on an erase block boundary -- force read-only
[    9.207670] libphy: Fixed MDIO Bus: probed
[    9.212822] libphy: orion_mdio_bus: probed
[    9.217036] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@8: Whitelisted compatible string. Please remove
[    9.233706] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.504519] ata2: SATA link down (SStatus 0 SControl F300)
[   10.339727] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   10.348647] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   10.355264] ehci-pci: EHCI PCI platform driver
[   10.359802] ehci-orion: EHCI orion driver
[   10.364113] orion-ehci f1050000.ehci: EHCI Host Controller
[   10.369655] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   10.377608] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   10.413063] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   10.419388] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   10.426248] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   10.433533] usb usb1: Product: EHCI Host Controller
[   10.438435] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[   10.445191] usb usb1: SerialNumber: f1050000.ehci
[   10.450684] hub 1-0:1.0: USB hub found
[   10.454566] hub 1-0:1.0: 1 port detected
[   10.459252] usbcore: registered new interface driver usb-storage
[   10.465771] mousedev: PS/2 mouse device common for all mice
[   10.813063] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   11.024616] usb 1-1: New USB device found, idVendor=0781, idProduct=5583
[   11.031369] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   11.038583] usb 1-1: Product: Ultra Fit
[   11.042444] usb 1-1: Manufacturer: SanDisk
[   11.046584] usb 1-1: SerialNumber: 4C530000041215115005
[   11.052870] usb-storage 1-1:1.0: USB Mass Storage device detected
[   11.059473] scsi host2: usb-storage 1-1:1.0
[   11.523062] rtc-mv f1010300.rtc: internal RTC not ticking
[   11.528708] i2c /dev entries driver
[   11.539350] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[   11.549479] hidraw: raw HID events driver (C) Jiri Kosina
[   11.555434] drop_monitor: Initializing network drop monitor service
[   11.562025] NET: Registered protocol family 17
[   11.566629] Key type dns_resolver registered
[   11.571880] registered taskstats version 1
[   11.576041] Loading compiled-in X.509 certificates
[   11.580924] zswap: loaded using pool lzo/zbud
[   11.597555] Key type big_key registered
[   11.612871] Key type encrypted registered
[   11.620104] rtc-pcf8563 0-0051: setting system clock to 2019-02-03 00:26:39 UTC (1549153599)
[   11.633252] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   12.088621] scsi 2:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[   12.107183] sd 2:0:0:0: [sda] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[   12.124563] sd 2:0:0:0: [sda] Write Protect is off
[   12.132754] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[   12.159219]  sda: sda1
[   12.166804] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   12.216071] 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
[   22.926044] EXT4-fs (sda1): recovery complete
[   22.935702] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
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...[   25.202086] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   25.563413] lm75 0-0048: hwmon0: sensor 'lm75'
[   25.674954] marvell-cesa f1030000.crypto: CESA device successfully registered
[   25.706100] orion_wdt: Initial timeout 21 sec
[   25.820760] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   26.119901] random: crng init done
done.
[ ok ] Activating swap:.
[   27.533694] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14452/940240 files, 205028/3753728 blocks
. ok 
[   27.976123] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ 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.
[....] 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/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   34.947683] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   37.472188] NET: Registered protocol family 10
[   37.479521] Segment Routing with IPv6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPREQUEST of 192.168.2.7 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.2.7 from 192.168.2.50
DHCPACK of 192.168.2.7 from 192.168.2.50
bound to 192.168.2.7 -- renewal in 3156 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...
1321 (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...
1320 (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: 

Login incorrect
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.

Re: NETGEAR STORA - Bad Magic Number

$
0
0
dirkpitt,

> I've fix the issue....

Cool!

Something strange with your NAND. The kernel showed a lot of bad blocks. And the env block address does not make sense

[    8.893869] Bad eraseblock 6 at 0x000001bff000

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

$
0
0
Quote

I enabled writing syslogs to disk as suggested above. I've been stress-testing the Stora and its thumb drive and it seems to be hard to replicate the issue consistently but managed to trigger it just now. Simultaneous large 'dd' writes don't seem to do it, but every once in a while an apt/dpkg operation will cause processes to start becoming unresponsive one by one. After pulling the power cable and rebooting I see the following entries in /var/log/messages. The dmesg logs don't seem to show anything and the file /var/log/syslog doesn't exist.

/var/log/messages is the syslog.

And like alexr said, I think this is EXT4-related problem. Note that the actual file system could be EXT3. The EXT4 driver is used for both EXT3/EXT4.

@bennytheben,

Is this USB drive 3.0? or any USB 3.0 drive is plugged during this time?

Re: NETGEAR STORA - Bad Magic Number

$
0
0
I've try a reboot but nothing change.
root@debian:~# cat /etc/fw_env.config 
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
root@debian:~# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00100000 00400000 "uboot"
mtd1: 00400000 00400000 "kernel"
mtd2: 0fb00000 00400000 "rootfs"
root@debian:~# fw_printenv ethaddr
Unsupported flash type 8 on /dev/mtd0
Warning: Bad CRC, using default environment
ethaddr=00:00:11:22:33:44
root@debian:~# dmesg | grep -i 'bad'
[    8.871397] Scanning device for bad blocks
[    8.875610] Bad eraseblock 0 at 0x0000003ff000
[    8.880270] Bad eraseblock 3 at 0x000000fff000
[    8.884822] Bad eraseblock 4 at 0x0000013ff000
[    8.889348] Bad eraseblock 5 at 0x0000017ff000
[    8.893898] Bad eraseblock 6 at 0x000001bff000
[    8.898490] Bad eraseblock 8 at 0x0000023ff000
[    8.903109] Bad eraseblock 10 at 0x000002bff000
[    8.907795] Bad eraseblock 12 at 0x0000033ff000
[    8.912411] Bad eraseblock 13 at 0x0000037ff000
[    8.917050] Bad eraseblock 14 at 0x000003bff000
[    8.921664] Bad eraseblock 15 at 0x000003fff000
[    8.926301] Bad eraseblock 16 at 0x0000043ff000
[    8.930917] Bad eraseblock 17 at 0x0000047ff000
[    8.935553] Bad eraseblock 18 at 0x000004bff000
[    8.940168] Bad eraseblock 19 at 0x000004fff000
[    8.944805] Bad eraseblock 20 at 0x0000053ff000
[    8.949420] Bad eraseblock 21 at 0x0000057ff000
[    8.954058] Bad eraseblock 22 at 0x000005bff000
[    8.958671] Bad eraseblock 23 at 0x000005fff000
[    8.963309] Bad eraseblock 24 at 0x0000063ff000
[    8.967924] Bad eraseblock 25 at 0x0000067ff000
[    8.972536] Bad eraseblock 26 at 0x000006bff000
[    8.977174] Bad eraseblock 27 at 0x000006fff000
[    8.981788] Bad eraseblock 28 at 0x0000073ff000
[    8.986426] Bad eraseblock 29 at 0x0000077ff000
[    8.991040] Bad eraseblock 30 at 0x000007bff000
[    8.995678] Bad eraseblock 31 at 0x000007fff000
[    9.000357] Bad eraseblock 33 at 0x0000087ff000
[    9.005005] Bad eraseblock 34 at 0x000008bff000
[    9.009624] Bad eraseblock 35 at 0x000008fff000
[    9.014270] Bad eraseblock 36 at 0x0000093ff000
[    9.018884] Bad eraseblock 37 at 0x0000097ff000
[    9.023520] Bad eraseblock 38 at 0x000009bff000
[    9.028135] Bad eraseblock 39 at 0x000009fff000
[    9.032747] Bad eraseblock 40 at 0x00000a3ff000
[    9.037393] Bad eraseblock 41 at 0x00000a7ff000
[    9.042009] Bad eraseblock 42 at 0x00000abff000
[    9.046648] Bad eraseblock 43 at 0x00000afff000
[    9.051261] Bad eraseblock 44 at 0x00000b3ff000
[    9.055898] Bad eraseblock 45 at 0x00000b7ff000
[    9.060513] Bad eraseblock 46 at 0x00000bbff000
[    9.065177] Bad eraseblock 47 at 0x00000bfff000
[    9.069791] Bad eraseblock 48 at 0x00000c3ff000
[    9.074453] Bad eraseblock 49 at 0x00000c7ff000
[    9.079069] Bad eraseblock 50 at 0x00000cbff000
[    9.083730] Bad eraseblock 51 at 0x00000cfff000
[    9.088348] Bad eraseblock 52 at 0x00000d3ff000
[    9.092990] Bad eraseblock 53 at 0x00000d7ff000
[    9.097634] Bad eraseblock 54 at 0x00000dbff000
[    9.102276] Bad eraseblock 55 at 0x00000dfff000
[    9.106921] Bad eraseblock 56 at 0x00000e3ff000
[    9.111572] Bad eraseblock 57 at 0x00000e7ff000
[    9.116216] Bad eraseblock 58 at 0x00000ebff000
[    9.120858] Bad eraseblock 59 at 0x00000efff000
[    9.125504] Bad eraseblock 60 at 0x00000f3ff000
[    9.130154] Bad eraseblock 61 at 0x00000f7ff000
[    9.134798] Bad eraseblock 62 at 0x00000fbff000
[    9.139450] Bad eraseblock 63 at 0x00000ffff000
root@debian:~#
If I search bad block with uboot nand bad command I find:
Netgear Stora> nand bad
Device 0 bad blocks:
  048a0000
  076c0000
  0b560000
My stora boot only with kwboot. What do you think if I try to perform a NAND reset using nand scrub or a nand erase command? Could this solve the issue??

Thanks

Dirkpitt

Re: NETGEAR STORA - Bad Magic Number

$
0
0
Dirkpitt,

Since you can only boot with kwboot, it does not hurt to try nand scrub. After scrubbing, boot into Debian and see if you can flash the new u-boot to make it permanent.

As it is right now, the kernel does seem to get a misleading NAND info after initializing so it is useless anyway.

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

$
0
0
Thanks for your quick responses.

It's an ext3 partition and it's a USB 3.0 thumb drive. I've disabled journaling and it's now showing mounted as ext2.

I just ran 'aptitude update' and the system started gradually grinding to a halt. First the 'aptitude update' process shows as status 'D' in top, and then various other processes that are trying to write to the flash drive eg. cron and syslogd as well.

I've set syslogd to write to the hard drive in case it's been missing stuff due to the fact it's been writing to the thumb drive, but since disabling journaling I haven't seen any more errors reported in the syslog when the issue is occurring.

Any ideas?

Re: Troubleshooting Freeze Issue on Debian 9 - SSH, Ping, Logs

$
0
0
bennytheben,

I don't know the root cause of this problem. However, I've seen the /proc/sys/kernel/hung_task_timeout_secs occur many times in the following scenario, and all caused by EXT4 driver, and seem to occur only when a USB 3.0 is plugged to the USB port.

On GoFlex Net (Kirkwood), a scheduled rsync back up starts right at the time dpkg is scheduled to run daily.

Feb  1 06:25:01 tldDebian cron.info CRON[30644]: (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))

When I moved rsync job to a different time slot, and move the Sandisk Ultra Fit 16G USB 3.0 rootfs to a USB 3.0 hub, dpkg no longer causes the hung task timout. I did not investigate further.


So I think perhaps you can try either

- clone your USB 3.0 rootfs to a USB 2.0 flash drive and run it as rootfs.
- or use a USB 3.0 hub and move this rootfs to that hub.

I have not seen this on other Kirkwood boxes that run 24/7 in my farm. A few of them running USB 3.0 rootfs, but always plugged into a USB 3.0 hub.
Viewing all 46971 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>