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

Re: Pogoplug Wont Accept Commands after interrupt

$
0
0
Thanks for the reply bodhi. Here are my params

Serial Options
Speed 115200
Data bits 8
Stop bits 1
Parity None
Flow Control None

I'v also tried with Flow Control - XON/XOFF

dying USB rootfs Iomega EZ

$
0
0
Hi,

I've got a Iomega EZ running Debian at my parents house for doing local backups of their phones and tablets. I just logged in to check everything is still running OK and it seems the USB drive with the rootfs is dying. I can't use sudo to run apt-get update and there seem to be file system issues. dmesg shows the following output:

[2163755.377304] EXT2-fs (sdb1): error: ext2_check_page: bad entry in directory #64001: : unaligned directory entry - offset=0, inode=64001, rec_len=1038, name_len=1
[2163755.391933] EXT2-fs (sdb1): error: remounting filesystem read-only
[2163755.398707] EXT2-fs (sdb1): error: ext2_readdir: bad page in #64001
[2163755.405410] EXT2-fs (sdb1): error: remounting filesystem read-only
[2163784.892649] EXT2-fs (sdb1): error: ext2_readdir: bad page in #64001
[2163784.899571] EXT2-fs (sdb1): error: remounting filesystem read-only

Is there anything that can be done through vpn / ssh to fix the file system errors or should I just replace the USB drive next time I visit them?

Koen

Re: dying USB rootfs Iomega EZ

$
0
0
I can't use sudo but su still works. Unfortunately fsck gives a segmentation fault. Are there any other options to check and fix the filesystem?

root@debian:/# fsck.ext2 /dev/sdb1
Segmentation fault

Re: Pogoplug Wont Accept Commands after interrupt

$
0
0
Figured it out...... Bad Ground Connection. Re-soldered it and its working great!!! Now time to get this thing running.

Re: Debian on Synology RS816 (Armada 385)

Re: dying USB rootfs Iomega EZ

$
0
0
Koen,


-------------------------------------------------------
> I can't use sudo but su still works. Unfortunately
> fsck gives a segmentation fault. Are there any
> other options to check and fix the filesystem?
>
>
> root@debian:/# fsck.ext2 /dev/sdb1
> Segmentation fault
>


I dont think this can be fixed remotely. You can send them a USB rootfs if you have backup. And use EXT3 for rootfs, EXT2 is prone to be corrupted like that.

Re: Debian on Synology RS816 (Armada 385)

$
0
0
It should be in GPL source where we can find out how stock OS bring up the other 2 HDD slots.

Re: dying USB rootfs Iomega EZ

$
0
0
OK thanks. I can't connect using openvpn anymore so I guess it must have died completely in the mean time. I tried to setup a ext3 rootfs originally but couldn't get it to work. I'm not sure if ext3 booting is supported in stock uboot. I'll order a proper Sandisk USB stick instead of this unbranded one and redo the setup when I visit them next week.

Koen

Re: dying USB rootfs Iomega EZ

$
0
0
Koen Wrote:
-------------------------------------------------------
> OK thanks. I can't connect using openvpn anymore
> so I guess it must have died completely in the
> mean time. I tried to setup a ext3 rootfs
> originally but couldn't get it to work. I'm not
> sure if ext3 booting is supported in stock uboot.
> I'll order a proper Sandisk USB stick instead of
> this unbranded one and redo the setup when I visit
> them next week.
>
> Koen

Yes, Ext3 and Ext2 use the same driver in stock Marvell uboot. This Iomega EZ uboot is practically same as other Kirwood boxes uboot.

Re: dying USB rootfs Iomega EZ

$
0
0
Koen Wrote:
-------------------------------------------------------
> I can't use sudo but su still works. Unfortunately fsck gives a segmentation fault. Are there any other options to check and fix the filesystem?
>
>
> root@debian:/# fsck.ext2 /dev/sdb1
> Segmentation fault
>
>
I haven't encountered a segfault like that. However, you can try it with a force check and/or fix using the -fy switches, i.e. fsck.ext2 -fy /dev/sdb1. Remember, this will forcefully write to your storage and may cause some further damages. So, if you have some data you can still access, try to back up those data first before you perform this operation.

Re: dying USB rootfs Iomega EZ

$
0
0
When you see the segfault executing commands, please stop, don’t try to fix it without a reboot.

Re: Install Debian on old GoFlex Home

$
0
0
Thanks a ton Bodhi,

This was a difficult installation for me, but I was able to do it, again thanks for your help.
Below is the print out of how I did it:

=======================================================================

bash-3.2# flash_erase /dev/mtd0 0 4
Erasing 128 Kibyte @ 60000 -- 100 % complete
bash-3.2# nandwrite /dev/mtd0 uboot.2017.07-tld-1.goflexhome.mtd0.kwb
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
bash-3.2# fw_setenv arcNumber 3338
bash: fw_setenv: command not found
bash-3.2# ln -s fw_printenv fw_setenv
bash-3.2# fw_setenv arcNumber 3338
bash-3.2# fw_setenv machid
bash-3.2# fw_setenv ethaddr 'X00:00:00:00:00:00X'
bash-3.2# fw_setenv preboot_nc 'setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi'
bash-3.2# fw_setenv preboot 'run preboot_nc'
bash-3.2# fw_setenv ipaddr '192.168.x.xxx'
bash-3.2# fw_setenv serverip '192.168.x.xxx'
bash-3.2# fw_printenv
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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
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
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_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
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3338
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethaddr=00:00:00:00:00:00
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
preboot=run preboot_nc
ipaddr=192.168.x.xxx
serverip=192.168.x.xxx
bash-3.2#
------------------------------------------------------------------------
success booting into debian!!!!!!!!!!!!
---------------------------------------------------------------------------
root@mint:~# ssh root@192.168.x.x
The authenticity of host '192.168.x.x (192.168.x.x)' can't be established.
ECDSA key fingerprint is SHA256:X3OIp2RLSH4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.x.x' (ECDSA) to the list of known hosts.
root@192.168.x.x's password:
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.
Last login: Wed Dec 31 16:01:32 1969 from 192.168.x.x
root@debian:~# fw_printenv
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=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide mmc
disks=0 1 2 3
ethact=egiga0
if_netconsole=ping $serverip
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb_addr=0x1c00000
load_initrd_addr=0x1100000
load_uimage_addr=0x800000
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
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
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_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
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
usb_ready_retry=15
arcNumber=3338
dtb_file=/boot/dts/kirkwood-goflexhome.dtb
ethaddr=00:00:00:00:00:00
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
preboot=run preboot_nc
ipaddr=192.168.x.x
serverip=192.168.x.x
root@debian:~#

Regards,

Navi

Re: Install Debian on old GoFlex Home

$
0
0
I have GoFlex Home, after resetting have no possibility to register and connect to device. I have firmware file to install from usb-pen, with initrd, uImage and hipserv2_seagateplug-20160314.ubi . Can I make .ubi file with debian to install it using usb pen without ssh access to my device?

NETGEAR STORA - Bad Magic Number

$
0
0
Hi,
in the last week my old Stora won't boot anymore. After that I've follow different tutorial and I've dump the u-boot log with a USB to TTL serial converter.

         __  __                      _ _                                        
        |  \/  | __ _ _ ____   _____| | |                                       
        | |\/| |/ _` | '__\ \ / / _ \ | |                                       
        | |  | | (_| | |   \ 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: 619d86db, Calculated CRC: 619d86db                                
## 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... 1 USB Device(s) found                        
       scanning bus for storage devices... 0 Storage Device(s) found            
Aquiring an IP address using DHCP...                                            
## Error: environment overflow, "ethact" deleted                                
*** ERROR: `ethaddr' not set                                                    
## Error: environment overflow, "ethact" deleted                                
egiga1 no link                                                                  
## Error: environment overflow, "ethact" deleted                                
## Error: environment overflow, "ethact" deleted                                
*** ERROR: `ethaddr' not set                                                    
## Error: environment overflow, "ethact" deleted                                
egiga1 no link                                                                  
## Error: environment overflow, "ethact" deleted                                
## Error: environment overflow, "ethact" deleted                                
*** ERROR: `ethaddr' not set                                                    
## Error: environment overflow, "ethact" deleted                                
egiga1 no link                                                                  
## Error: environment overflow, "ethact" deleted                                
Failed to retreive an IP address assuming default (<NULL>)!                     
Starting the Recovery process to retreive the file...                           
## Error: environment overflow, "ethact" deleted                                
*** ERROR: `ethaddr' not set                                                    
## Error: environment overflow, "ethact" deleted                                
egiga1 no link                                                                  
## Error: environment overflow, "ethact" deleted                                
Failed                                                                          
Power Button is pressed!                                                        
MPP Sel: 00000530, Data IN Enable: 00020058, Data In Polarity: 00000040, Data I0
Power Button is released!                                                       
MAC: 00:01:08:FC:24:4F, IP: 10.252.36.79                                        
## Error: environment overflow, "ethaddr" deleted                               
## Error: environment overflow, "ipaddr" deleted                                
## Error: environment overflow, "serverip" deleted                              
## Error: environment overflow, "netmask" deleted                               
## Error: environment overflow, "image_name" deleted                            
## Error: environment overflow, "console" deleted                               
## Error: environment overflow, "bootargs_root" deleted                         
## Error: environment overflow, "rootpath" deleted                              
## Error: environment overflow, "ethact" deleted                                
*** ERROR: `serverip' not set                                                   
## Error: environment overflow, "bootargs" deleted                              
## Booting image at 00800000 ...                                                
Bad Magic Number                                                                
Marvell>> setenv ipaddr 192.168.2.150                                           
## Error: environment overflow, "ipaddr" deleted

It seems that the configuration of the u-boot has been lost.

Any suggestions??

Thanks.

DirkPitt74

Re: dying USB rootfs Iomega EZ

$
0
0
> Yes, Ext3 and Ext2 use the same driver in stock
> Marvell uboot. This Iomega EZ uboot is practically
> same as other Kirwood boxes uboot.

Thanks for the additional info. I'll prepare an etx3 rootfs on the new Sandisk USB stick when it arrives.

Re: Install Debian on old GoFlex Home

$
0
0
Hello Skia,

As I am a new to Linux, I am afraid I wont be of much help. However, Bodhi is the Guru and I am sure your situation can be resolved. To make it easier to understand your situation can you please answer the following questions:

1) Were you running stock OS when you reset your device?
2) How was the device reset? Did you try to install other firmware or did you do manual reset on the stock OS?
3) Have your tried to restore original firmware? http://support.goflexhome.hipserv.com/en/reflash/index.html

Regards,

Navi

Re: Install Debian on old GoFlex Home

$
0
0
1.I have a last stock firmware now, but i can`t add user
2.I reseted it by press side button and install last stock firmware from usb-pen.
3.I did it, and now i have original firmware, but cannot use it - seageta turned off their servers
So I want to install debian or any other OS with possibility to set up samba and transmission

Re: Install Debian on old GoFlex Home

Re: Install Debian on old GoFlex Home

$
0
0
bodhi, I can`t connect to device by ssh, becouse I cannot create user without registration. So i can only change firmware by loading ubi file from usb-pen.
I read instruction, but don`t understand - do i have to do all steps on PC with linux(now i am in ubuntu 18.04) and prepeared usb-pen will be bootable for goflex home? according the instruction pen must be formatted to ext3, but stock firmware installing from fat32 only. Will GoFlexHome load debian from ext3 usb-pen with stock uboot?

Re: dying USB rootfs Iomega EZ

$
0
0
bodhi Wrote:
-------------------------------------------------------
> When you see the segfault executing commands, please stop, don’t try to fix it without a reboot.

Bodhi,

Yes, when a running rootfs gives the segfault messages, the best options are either to reboot and/or shutdown the system. For a shutdown, the the rootfs on an external storage can be simply checked for its integrity using another Linux computer. After all, it just makes no sense trying to fix a running rootfs.
Viewing all 46971 articles
Browse latest View live


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