3T GoFlexHome using HMBR cannot auto mount second partition.

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

3T GoFlexHome using HMBR cannot auto mount second partition.

Postby suyanlu » Sat Mar 16, 2013 2:20 am

Hi,
I have installed archlinux on my 3T GoFlexHome using HMBR mode, guide url: http://archlinuxarm.org/platforms/armv5/seagate-goflex-home , but some problem happened.
1. output of fw_printenv is not same as printenv in flash uboot;
$this->bbcode_second_pass_code('', '[root@goflexhome ~]# cat /etc/fw_env.config
# segate dockstar:
/dev/mtd0 0xa0000 0x20000 0x20000

[root@goflexhome ~]# fw_printenv
baudrate=115200
loads_echo=0
serverip=169.254.254.254
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
rtc_mode=active
vm_ver_smt=2.0.381
ethaddr=00:10:75:2F:CD:71
explrpk=PGZK-UANT-XCDT-DPVF
explrsn=NA1X05WS
asm1_tag=12:09:02:07:05:09:29
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
pcieTune=no
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs
console=console=ttyS0,115200
bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
enaAutoRecovery=no
rtc_tz=PST
ntp_default=pool.ntp.org
smt_tag=12:09:02:07:05:11:06
ipaddr=10.10.10.6
ncip=10.10.10.5
ncipk=10.10.10.4
')
last var ipaddr, ncip, ncipk is added by me using fw_setenv.

2. /etc/fstab is empty, after adding other filesystem(ntfs) into it, the system cannot boot.
I partitioned my 3T disk using gdisk to 2 partitions, like this:
$this->bbcode_second_pass_code('', '[root@goflexhome ~]# gdisk -l /dev/sda
GPT fdisk (gdisk) version 0.8.6

Partition table scan:
MBR: hybrid
BSD: not present
APM: not present
GPT: present

Found valid GPT with hybrid MBR; using GPT.
Disk /dev/sda: 5860533168 sectors, 2.7 TiB
Logical sector size: 512 bytes
Disk identifier (GUID): 19A62CBE-18C5-460C-A423-41D4032AD82E
Partition table holds up to 128 entries
First usable sector is 34, last usable sector is 5860533134
Partitions will be aligned on 2048-sector boundaries
Total free space is 2925 sectors (1.4 MiB)

Number Start (sector) End (sector) Size Code Name
1 2048 41945087 20.0 GiB 0700
2 41945088 5860532223 2.7 TiB 0700')

3. when an usb harddisk connect to goflex, it can be mounted by udev-automounting, but auto umount immediately(df output mounting of usb harddisk, soon this mounting disappeared), manual mount is ok, I tried two usb harddisk, just so.
dmesg output:
$this->bbcode_second_pass_code('', '[ 43.731340] usb 1-1: new high speed USB device number 2 using orion-ehci
[ 43.896726] scsi1 : usb-storage 1-1:1.0
[ 44.892790] scsi 1:0:0:0: Direct-Access ST2000DM 001-9YN164 CC49 PQ: 0 ANSI: 5
[ 44.893631] sd 1:0:0:0: Attached scsi generic sg1 type 0
[ 44.894375] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[ 44.895108] sd 1:0:0:0: [sdb] Write Protect is off
[ 44.895124] sd 1:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 44.895856] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 45.031339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 45.297289] sdb: sdb1
[ 45.300360] sd 1:0:0:0: [sdb] Attached SCSI disk
[ 45.491343] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 45.831339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 46.191339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 46.681353] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 47.031340] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 47.401352] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 47.771341] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 48.091337] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 48.431336] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 48.771336] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 48.932088] sd 1:0:0:0: [sdb] Unhandled error code
[ 48.932103] sd 1:0:0:0: [sdb] Result: hostbyte=0x07 driverbyte=0x00
[ 48.932118] sd 1:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 00 10 00 00 00 08 00
[ 48.932152] end_request: I/O error, dev sdb, sector 4096
[ 48.937517] Buffer I/O error on device sdb1, logical block 256
[ 49.091338] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 49.501339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 49.911342] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 50.251338] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 50.601341] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 51.031339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 51.431340] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 55.611353] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 56.741354] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 57.081342] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 57.691349] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 58.161356] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 58.491337] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 58.831337] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 59.171354] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 59.332256] sd 1:0:0:0: [sdb] Unhandled error code
[ 59.332270] sd 1:0:0:0: [sdb] Result: hostbyte=0x07 driverbyte=0x00
[ 59.332285] sd 1:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 5f 45 28 00 00 80 00
[ 59.332321] end_request: I/O error, dev sdb, sector 6243624
[ 59.337938] Buffer I/O error on device sdb1, logical block 6241576
[ 59.344194] Buffer I/O error on device sdb1, logical block 6241577
[ 59.350416] Buffer I/O error on device sdb1, logical block 6241578
[ 59.356644] Buffer I/O error on device sdb1, logical block 6241579
[ 59.362879] Buffer I/O error on device sdb1, logical block 6241580
[ 59.369099] Buffer I/O error on device sdb1, logical block 6241581
[ 59.375331] Buffer I/O error on device sdb1, logical block 6241582
[ 59.381566] Buffer I/O error on device sdb1, logical block 6241583
[ 59.387793] Buffer I/O error on device sdb1, logical block 6241584
[ 59.611355] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 60.041353] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 60.381349] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 60.711339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 61.051342] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 61.222126] sd 1:0:0:0: [sdb] Unhandled error code
[ 61.222141] sd 1:0:0:0: [sdb] Result: hostbyte=0x07 driverbyte=0x00
[ 61.222156] sd 1:0:0:0: [sdb] CDB: cdb[0]=0x28: 28 00 00 5f 62 a8 00 00 80 00
[ 61.222191] end_request: I/O error, dev sdb, sector 6251176
[ 61.861347] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 62.191340] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 62.691350] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 63.111350] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 63.461343] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 67.151344] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 67.491339] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 67.821336] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 68.181341] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 68.611346] usb 1-1: reset high speed USB device number 2 using orion-ehci
[ 93.336370] usb 1-1: USB disconnect, device number 2
[ 245.321042] usb 1-1: new high speed USB device number 3 using orion-ehci
[ 245.486646] scsi2 : usb-storage 1-1:1.0
[ 246.681728] usb 1-1: reset high speed USB device number 3 using orion-ehci
[ 247.021895] usb 1-1: reset high speed USB device number 3 using orion-ehci
[ 247.372068] usb 1-1: reset high speed USB device number 3 using orion-ehci
[ 247.752258] usb 1-1: reset high speed USB device number 3 using orion-ehci
[ 375.805987] usb 1-1: USB disconnect, device number 3
[ 762.117978] ata1: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen
[ 762.126844] ata1: edma_err_cause=00000020 pp_flags=00000003, SError=00180000
[ 762.134535] ata1: SError: { 10B8B Dispar }
[ 762.138697] ata1: hard resetting link
[ 763.370061] usb 1-1: new high speed USB device number 4 using orion-ehci
[ 765.409017] scsi3 : usb-storage 1-1:1.0
[ 766.414158] scsi 3:0:0:0: Direct-Access WDC WD50 00LPVT-08G33T1 02.0 PQ: 0 ANSI: 5
[ 766.414993] sd 3:0:0:0: Attached scsi generic sg1 type 0
[ 766.415624] sd 3:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 766.416359] sd 3:0:0:0: [sdb] Write Protect is off
[ 766.416376] sd 3:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 766.417104] sd 3:0:0:0: [sdb] No Caching mode page present
[ 766.427738] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 766.442167] sd 3:0:0:0: [sdb] No Caching mode page present
[ 766.447717] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 766.517480] sdb: sdb1
[ 766.523489] sd 3:0:0:0: [sdb] No Caching mode page present
[ 766.529041] sd 3:0:0:0: [sdb] Assuming drive cache: write through
[ 766.536920] sd 3:0:0:0: [sdb] Attached SCSI disk
[ 767.322049] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[ 767.402127] ata1.00: configured for UDMA/133
[ 767.402148] ata1: EH complete
[ 767.801730] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[ 767.914141] EXT4-fs (sdb1): recovery complete
[ 767.914717] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
[ 820.069362] usb 1-1: USB disconnect, device number 4
[ 820.125785] quiet_error: 247 callbacks suppressed
[ 820.125802] Buffer I/O error on device sdb1, logical block 0
[ 820.132675] lost page write due to I/O error on sdb1
[ 972.934848] usb 1-1: new high speed USB device number 5 using orion-ehci
[ 974.906854] scsi4 : usb-storage 1-1:1.0
[ 975.908915] scsi 4:0:0:0: Direct-Access WDC WD50 00LPVT-08G33T1 02.0 PQ: 0 ANSI: 5
[ 975.910779] sd 4:0:0:0: Attached scsi generic sg1 type 0
[ 975.911621] sd 4:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 975.912359] sd 4:0:0:0: [sdb] Write Protect is off
[ 975.912376] sd 4:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 975.913107] sd 4:0:0:0: [sdb] No Caching mode page present
[ 975.925255] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 975.938989] sd 4:0:0:0: [sdb] No Caching mode page present
[ 975.944539] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 976.015242] sdb: sdb1
[ 976.029113] sd 4:0:0:0: [sdb] No Caching mode page present
[ 976.034662] sd 4:0:0:0: [sdb] Assuming drive cache: write through
[ 976.044621] sd 4:0:0:0: [sdb] Attached SCSI disk
[ 1435.026242] usb 1-1: USB disconnect, device number 5
[ 1444.320548] usb 1-1: new high speed USB device number 6 using orion-ehci
[ 1446.256560] scsi5 : usb-storage 1-1:1.0
[ 1447.254539] scsi 5:0:0:0: Direct-Access WDC WD50 00LPVT-08G33T1 02.0 PQ: 0 ANSI: 5
[ 1447.255377] sd 5:0:0:0: Attached scsi generic sg1 type 0
[ 1447.256241] sd 5:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 1447.256981] sd 5:0:0:0: [sdb] Write Protect is off
[ 1447.256997] sd 5:0:0:0: [sdb] Mode Sense: 23 00 00 00
[ 1447.257733] sd 5:0:0:0: [sdb] No Caching mode page present
[ 1447.268638] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 1447.282998] sd 5:0:0:0: [sdb] No Caching mode page present
[ 1447.288551] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 1447.353857] sdb: sdb1
[ 1447.359736] sd 5:0:0:0: [sdb] No Caching mode page present
[ 1447.369517] sd 5:0:0:0: [sdb] Assuming drive cache: write through
[ 1447.376880] sd 5:0:0:0: [sdb] Attached SCSI disk
[ 1743.936497] usb 1-1: USB disconnect, device number 6
[ 1749.633200] usb 1-1: new high speed USB device number 7 using orion-ehci
[ 1751.523445] scsi6 : usb-storage 1-1:1.0
[ 1752.527166] scsi 6:0:0:0: Direct-Access WDC WD50 00LPVT-08G33T1 02.0 PQ: 0 ANSI: 5
[ 1752.529075] sd 6:0:0:0: Attached scsi generic sg1 type 0
[ 1752.529868] sd 6:0:0:0: [sdc] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[ 1752.530621] sd 6:0:0:0: [sdc] Write Protect is off
[ 1752.530637] sd 6:0:0:0: [sdc] Mode Sense: 23 00 00 00
[ 1752.531355] sd 6:0:0:0: [sdc] No Caching mode page present
[ 1752.543319] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 1752.557615] sd 6:0:0:0: [sdc] No Caching mode page present
[ 1752.563165] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 1752.631575] sdc: sdc1
[ 1752.637244] sd 6:0:0:0: [sdc] No Caching mode page present
[ 1752.642790] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 1752.654470] sd 6:0:0:0: [sdc] Attached SCSI disk
')

anybody could help me ?
3ks.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby suyanlu » Sat Mar 16, 2013 5:00 am

and I have found these:
using df command, cannot find /dev/sdb1(usb disk), but in file /proc/self/mount* , the entry is existed!!

filesystem type is 7, ntfs.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby suyanlu » Sat Mar 16, 2013 6:36 am

yeah.
devmon is woking for ntfs usb disk auto mounting.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby suyanlu » Sat Mar 16, 2013 6:51 am

viewtopic.php?f=18&t=4376&hilit=fstab&start=20
solved second partition auto mount on boot.

if we want to use /etc/fstab, must use UUID, device name(/dev/sdb1) is not working.
3ks, moonman.
Last edited by suyanlu on Sat Mar 16, 2013 2:51 pm, edited 1 time in total.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby suyanlu » Sat Mar 16, 2013 6:53 am

I modify /etc/fw_env.config to this:
#/dev/mtd0 0xc0000 0x20000 0x20000
#/dev/mtd0 0xa0000 0x20000 0x20000
/dev/mtd0 0x60000 0x20000 0x20000

it seemed fw_prinenv ok??
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby suyanlu » Sat Mar 16, 2013 8:54 am

now only first problem not be solved, could anybody help me?
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby moonman » Sun Mar 17, 2013 4:38 am

Did you upgrade u-boot? If not i dont know what the correct address is for the uboot environment is, but it is not the one you were using in the op.
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: 3T GoFlexHome using HMBR cannot auto mount second partit

Postby suyanlu » Sun Mar 17, 2013 12:30 pm

$this->bbcode_second_pass_quote('moonman', 'D')id you upgrade u-boot? If not i dont know what the correct address is for the uboot environment is, but it is not the one you were using in the op.


I think I didn't upgrade u-boot.
could you tell me what I can do this time to correct this mistake?
maybe process of installing something I have done is wrong.

and a question I want to ask :
is there two u-boot? one is u-boot in nand(or flash?) of goflexhome , the other is in harddisk?

now fw_setenv can write nothing when I modify address of fw_env.config to 60000.

And, if I upgrade u-boot according to this url: http://archlinuxarm.org/forum/viewtopic.php?f=18&t=3355, it adapted to kernel version >=3.2, but my kernel like this:
$this->bbcode_second_pass_code('', '└──> uname -a
Linux goflexhome 3.1.10-16-ARCH #1 PREEMPT Tue Feb 12 01:17:10 UTC 2013 armv5tel GNU/Linux
')
can I upgrade u-boot as http://archlinuxarm.org/forum/viewtopic.php?f=18&t=3355?

3ks.
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests