[GoFlex Home] Start on a USB key

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

[GoFlex Home] Start on a USB key

Postby Guest » Thu Aug 16, 2012 12:15 pm

Image

Hello, after many attempts to install linux on a USB stick I ask you for help because I absolutely can not do it at all. Let me explain:

After completing the installation procedure applies to the hard disk sda but applied for a usb device placed in the sdc1 stubbornly refuses to boot from the USB flash drive and sdc1 in facade lED flashes green.

Another phenomenon since I installed arch on sata hard disk when I connect the SATA hard drive and usb stick and I start the device, it starts on the SATA hard drive (normally you tell me), but when that 'ssh console I type' reboot 'it starts on the USB key.

??? Could someone explain to me the procedure for the first key starts on cold start without hard disk sata connected.

Thank you in advance

$this->bbcode_second_pass_code('', '
# ls -al sd*

brw-rw---- 1 root disk 8, 0 16 août 14:01 sda
brw-rw---- 1 root disk 8, 1 16 août 14:01 sda1
brw-rw---- 1 root disk 8, 2 16 août 14:01 sda2
brw-rw---- 1 root disk 8, 16 16 août 14:06 sdb
brw-rw---- 1 root disk 8, 32 16 août 14:06 sdc
brw-rw---- 1 root disk 8, 33 16 août 14:06 sdc1
')

$this->bbcode_second_pass_code('', '
lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 006: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 007: ID 05dc:a01a Lexar Media, Inc.
')

$this->bbcode_second_pass_code('', '
blkid

/dev/sda1: LABEL="rootfs" UUID="***************************************" TYPE="ext3"
/dev/sda2: UUID="***************************************" TYPE="ext3"
/dev/sdc1: LABEL="rootfs" UUID="***************************************" " SEC_TYPE="ext2" TYPE="ext3"

')

$this->bbcode_second_pass_code('', '
dmesg

[ 331.482575] usb 1-1: new high speed USB device number 5 using orion-ehci
[ 331.634691] hub 1-1:1.0: USB hub found
[ 331.635251] hub 1-1:1.0: 4 ports detected
[ 331.912750] usb 1-1.1: new high speed USB device number 6 using orion-ehci
[ 332.026165] scsi3 : usb-storage 1-1.1:1.0
[ 332.122756] usb 1-1.4: new high speed USB device number 7 using orion-ehci
[ 332.396765] scsi4 : usb-storage 1-1.4:1.0
[ 333.033452] scsi 3:0:0:0: Direct-Access Multiple Card Reader 1.00 PQ: 0 ANSI: 0
[ 333.034861] sd 3:0:0:0: Attached scsi generic sg1 type 0
[ 333.037516] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 333.626449] scsi 4:0:0:0: Direct-Access Lexar Echo 1100 PQ: 0 ANSI: 0 CCS
[ 333.628037] sd 4:0:0:0: Attached scsi generic sg2 type 0
[ 333.628899] sd 4:0:0:0: [sdc] 31326208 512-byte logical blocks: (16.0 GB/14.9 GiB)
[ 333.629907] sd 4:0:0:0: [sdc] Write Protect is off
[ 333.629923] sd 4:0:0:0: [sdc] Mode Sense: 43 00 00 00
[ 333.631040] sd 4:0:0:0: [sdc] No Caching mode page present
[ 333.648928] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[ 333.660623] sd 4:0:0:0: [sdc] No Caching mode page present
[ 333.666831] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[ 333.674968] sdc: sdc1
[ 333.685150] sd 4:0:0:0: [sdc] No Caching mode page present
[ 333.690740] sd 4:0:0:0: [sdc] Assuming drive cache: write through
[ 333.697965] sd 4:0:0:0: [sdc] Attached SCSI removable disk

')

$this->bbcode_second_pass_code('', '
fdisk -l

Disque /dev/mtdblock0 : 1 Mo, 1048576 octets
255 têtes, 63 secteurs/piste, 0 cylindres, total 2048 secteurs
Unités = secteur de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/mtdblock1 : 6 Mo, 6291456 octets
255 têtes, 63 secteurs/piste, 0 cylindres, total 12288 secteurs
Unités = secteur de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/mtdblock2 : 261 Mo, 261095424 octets
255 têtes, 63 secteurs/piste, 31 cylindres, total 509952 secteurs
Unités = secteur de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets


Disque /dev/sda : 1000.2 Go, 1000204886016 octets
255 têtes, 62 secteurs/piste, 123562 cylindres, total 1953525168 secteurs
Unités = secteur de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x00000000

Périphérique Amorce Début Fin Blocs Id Système
/dev/sda1 62 39082319 19541129 83 Linux
/dev/sda2 39082320 1953515219 957216450 83 Linux

Disque /dev/sdc : 16.0 Go, 16039018496 octets
185 têtes, 8 secteurs/piste, 21166 cylindres, total 31326208 secteurs
Unités = secteur de 1 * 512 = 512 octets
Taille de secteur (logique / physique) : 512 octets / 512 octets
taille d'E/S (minimale / optimale) : 512 octets / 512 octets
Identifiant de disque : 0x7e1a1126

Périphérique Amorce Début Fin Blocs Id Système
/dev/sdc1 2048 31326207 15662080 83 Linux

')
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby moonman » Fri Aug 17, 2012 4:23 am

Try setting rootdelay to 10 or longer
$this->bbcode_second_pass_code('', 'fw_setenv usb_rootdelay 10')

If that doesn't help, my suggestion would be installing the new u_boot and not activating sata boot at all. You won't be able to boot off of sata at all though. As a bonus you will be able to run new kernels :) viewtopic.php?f=18&t=3355
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: [GoFlex Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 9:25 am

Hello Moonman and thank you for your answer. I do not think that the binary fw_setenv installed with version 0.6 (http://jeff.doozan.com/debian/goflex/v0.6/ubit_start) as indicated by the installation of the wiki.

So if I understand your answer I have to update U-Boot (http://projects.doozan.com/uboot/) ?

I tried to do so before posting my first message but the script was stopping in the end in telling me that contained a mdt0 something different.


I saw the link you give me an option that you are using with the call of :

install_uboot_mtd0.sh: -- no-check-uboot

Is this how I should proceed to install the new version of U-Boot?

Nothing else to do after the update to start the USB port? or :

$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv usb_rootfstype ext3')

before the boot ?
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby bz31 » Fri Aug 17, 2012 9:43 am

I have a GoFlex Home (1 TB). I can boot from the USB key if the SATA disk is not inserted. Then I can hotplug the sata disk.
$this->bbcode_second_pass_quote('wild', '[')code]
[ 331.482575] usb 1-1: new high speed USB device number 5 using orion-ehci
[ 331.634691] hub 1-1:1.0: USB hub found
[ 331.635251] hub 1-1:1.0: 4 ports detected
[ 331.912750] usb 1-1.1: new high speed USB device number 6 using orion-ehci
[ 332.026165] scsi3 : usb-storage 1-1.1:1.0
[ 332.122756] usb 1-1.4: new high speed USB device number 7 using orion-ehci
[ 332.396765] scsi4 : usb-storage 1-1.4:1.0
[ 333.033452] scsi 3:0:0:0: Direct-Access Multiple Card Reader 1.00 PQ: 0 ANSI: 0
[ 333.034861] sd 3:0:0:0: Attached scsi generic sg1 type 0
[ 333.037516] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[/code]

Your sdb is a Multiple Card Reader. This may be the problem. Can you starts on the USB key if it is connected directly to the USB port without the hub ?
Last edited by bz31 on Fri Aug 17, 2012 10:17 am, edited 2 times in total.
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: [GoFlex Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 9:56 am

$this->bbcode_second_pass_code('', '
lsusb

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 005: ID 058f:6254 Alcor Micro Corp. USB Hub
Bus 001 Device 006: ID 058f:6366 Alcor Micro Corp. Multi Flash Reader
Bus 001 Device 007: ID 05dc:a01a Lexar Media, Inc.')

On my picture (first post) You can see a hub ;) But but even without the USB key does not boot (with or without hard drive) (cold boot of course)
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby moonman » Fri Aug 17, 2012 10:15 am

What's the output of fw_printenv. As I said you probably need to increase rootdelay
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: [GoFlex Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 10:29 am

$this->bbcode_second_pass_code('', '
# fw_printenv
-bash: fw_printenv : commande introuvable
')

Command not found
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby bz31 » Fri Aug 17, 2012 10:35 am

Install the package uboot-env.
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Re: [GoFlex Home] Start on a USB key

Postby Guest » Fri Aug 17, 2012 10:46 am

$this->bbcode_second_pass_code('', '# pacman -S uboot-env
résolution des dépendances...
recherche des conflits entre paquets...

Cibles (1) : uboot-env-2009.11-3

Taille totale installé : 0,04 MiB

Procéder à l'installation ? [O/n] o
(1/1) vérification de l'intégrité des paquets [#################################] 100%
(1/1) chargement des fichiers des paquets [#################################] 100%
(1/1) analyse des conflits entre fichiers [#################################] 100%
(1/1) vérification de l'espace disque disponible [#################################] 100%
(1/1) installation de uboot-env [#################################] 100%
>>> To print u-boot env please use fw_printenv
>> Configuration file located at /etc/fw_env.config
[root@Seagate_GoFlex_Home sbin]# cd /
')
$this->bbcode_second_pass_code('', '
[root@Seagate_GoFlex_Home /]# fw_printenv
bin/ dev/ home/ lost+found/ mnt/ proc/ run/ srv/ tmp/ var/
boot/ etc/ lib/ media/ opt/ root/ sbin/ sys/ usr/
[root@Seagate_GoFlex_Home /]# fw_printenv
Cannot parse config file: Invalid argument
[root@Seagate_GoFlex_Home /]# cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
# /dev/mtd0 0xc0000 0x20000 0x20000

# iomega iconnect


')
Last edited by Guest on Fri Aug 17, 2012 10:56 am, edited 1 time in total.
Guest
 

Re: [GoFlex Home] Start on a USB key

Postby bz31 » Fri Aug 17, 2012 10:50 am

Try $this->bbcode_second_pass_code('', '/dev/mtd0 0xa0000 0x20000 0x20000') in your /etc/fw_env.config
bz31
 
Posts: 36
Joined: Mon Jun 18, 2012 8:35 am
Location: France

Next

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 8 guests