New IT forum
27 June 2022, 11:27:33 am *
Welcome, %1$s. Please login or register.

: CubieBoard 2 and Cubietruck both now in stock.
 
Pages: [1]

Author Topic: Issues with uboot and external usb drive  (Read 8122 times)

fabfour

  • Newbie
  • *
  • Posts: 3
Issues with uboot and external usb drive
« on: 24 February 2013, 12:03:18 pm »

Hello everyone,

i am using a dreamplug als homeserver.
in this configuration i want to attach an external usb drive to the dreamplug.

the problem is if the drive is attached at boot time it is not recognized lateron.

if i unplug and replug it i can use it normally.

i've done a bit testing and found out that this issue must be related to uboot (i am using the version you shipped with multiboot envvars)

usb start in uboot seems to mess everything up.

if i perform usb start the first time in uboot the harddisk is found
after usb stop and a second usb start the drive is not found anymore until next poweroff / poweron
only the sd cards are found
the linux kernel can't handle it either after the wrong initialization of uboot

are there any workarounds available?
Logged

fabfour

  • Newbie
  • *
  • Posts: 3
Re: Issues with uboot and external usb drive
« Reply #1 on: 28 February 2013, 05:42:21 pm »

Here is some more information

This is uboot output:
Code: [Select]
U-Boot 2011.06-02334-g8f495d9-dirty (May 31 2011 - 02:06:26)
Marvell-DreamPlug

SoC:   Kirkwood 88F6281_A0
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz
DRAM:  512 MiB
SF: Detected MX25L1606 with page size 256, total 1 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1116 Initialized on egiga0
88E1116 Initialized on egiga1
Hit any key to stop autoboot:  0
Marvell>> usb start
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 5 USB Device(s) found
       scanning bus for storage devices... 3 Storage Device(s) found
Marvell>> usb storage
  Device 0: Vendor: Generic  Rev: 9910 Prod: STORAGE DEVICE
            Type: Removable Hard Disk
            Capacity: 3920.0 MB = 3.8 GB (8028160 x 512)
  Device 1: Vendor: Generic  Rev: 9910 Prod: STORAGE DEVICE
            Type: Removable Hard Disk
            Capacity: 15312.0 MB = 14.9 GB (31358976 x 512)
  Device 2: Vendor: SAMSUNG  Rev: 1AQ1 Prod: HD204UI
            Type: Hard Disk
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
Marvell>> usb reset
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 5 USB Device(s) found
       scanning bus for storage devices... 2 Storage Device(s) found
Marvell>> usb storage
  Device 0: Vendor: Generic  Rev: 9910 Prod: STORAGE DEVICE 
            Type: Removable Hard Disk
            Capacity: 3920.0 MB = 3.8 GB (8028160 x 512)
  Device 1: Vendor: Generic  Rev: 9910 Prod: STORAGE DEVICE 
            Type: Removable Hard Disk
            Capacity: 15312.0 MB = 14.9 GB (31358976 x 512)

when booting linux :

Code: [Select]
(initramfs) modprobe ehci_hcd
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb 1-1: new high-speed USB device number 2 using orion-ehci
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new high-speed USB device number 3 using orion-ehci
Initializing USB Mass Storage driver...
scsi7 : usb-storage 1-1.1:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1.3: new high-speed USB device number 4 using orion-ehci
usb 1-1.3: device descriptor read/64, error -71
usb 1-1.3: device descriptor read/64, error -71
usb 1-1.3: new high-speed USB device number 5 using orion-ehci
usb 1-1.3: device descriptor read/64, error -71
usb 1-1.3: device descriptor read/64, error -71
scsi 7:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
usb 1-1.3: new high-speed USB device number 6 using orion-ehci
sd 7:0:0:0: Attached scsi generic sg0 type 0
sd 7:0:0:0: [sda] 8028160 512-byte logical blocks: (4.11 GB/3.82 GiB)
scsi 7:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
sd 7:0:0:0: [sda] Write Protect is off
sd 7:0:0:0: [sda] Mode Sense: 0b 00 00 08
sd 7:0:0:0: [sda] No Caching mode page present
sd 7:0:0:1: Attached scsi generic sg1 type 0
sd 7:0:0:1: [sdb] 31358976 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 7:0:0:0: [sda] Assuming drive cache: write through
sd 7:0:0:1: [sdb] Write Protect is off
sd 7:0:0:1: [sdb] Mode Sense: 0b 00 00 08
sd 7:0:0:1: [sdb] No Caching mode page present
sd 7:0:0:0: [sda] No Caching mode page present
sd 7:0:0:0: [sda] Assuming drive cache: write through
sd 7:0:0:1: [sdb] Assuming drive cache: write through
 sda: sda1 sda2
sd 7:0:0:1: [sdb] No Caching mode page present
sd 7:0:0:1: [sdb] Assuming drive cache: write through
sd 7:0:0:0: [sda] No Caching mode page present
sd 7:0:0:0: [sda] Assuming drive cache: write through
sd 7:0:0:0: [sda] Attached SCSI removable disk
 sdb: sdb1 sdb2
sd 7:0:0:1: [sdb] No Caching mode page present
sd 7:0:0:1: [sdb] Assuming drive cache: write through
sd 7:0:0:1: [sdb] Attached SCSI removable disk
usb 1-1.3: device not accepting address 6, error -71
usb 1-1.3: new high-speed USB device number 7 using orion-ehci
usb 1-1.3: device not accepting address 7, error -71
hub 1-1:1.0: unable to enumerate USB device on port 3
usb 1-1.4: new full-speed USB device number 8 using orion-ehci
input: C-Media USB Headphone Set   as /devices/platform/orion-ehci.0/usb1/1-1/1-1.4/1-1.4:1.3/input/input6
hid-generic 0003:0D8C:000C.0007: input: USB HID v1.00 Device [C-Media USB Headphone Set  ] on usb-orion-ehci.0-1.4/input3

when booting linux with replug of the usb disk after boot:

Code: [Select]
(initramfs) modprobe ehci_hcd
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
orion-ehci orion-ehci.0: Marvell Orion EHCI
orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usb 1-1: new high-speed USB device number 2 using orion-ehci
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 1-1.1: new high-speed USB device number 3 using orion-ehci
usb 1-1.1: new high-speed USB device number 3 using orion-ehci
Initializing USB Mass Storage driver...
scsi8 : usb-storage 1-1.1:1.0
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usb 1-1.3: new high-speed USB device number 4 using orion-ehci
scsi9 : usb-storage 1-1.3:1.0
usb 1-1.4: new full-speed USB device number 5 using orion-ehci
input: C-Media USB Headphone Set   as /devices/platform/orion-ehci.0/usb1/1-1/1-1.4/1-1.4:1.3/input/input7
hid-generic 0003:0D8C:000C.0008: input: USB HID v1.00 Device [C-Media USB Headphone Set  ] on usb-orion-ehci.0-1.4/input3
scsi 8:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
sd 8:0:0:0: Attached scsi generic sg0 type 0
scsi 8:0:0:1: Direct-Access     Generic  STORAGE DEVICE   9910 PQ: 0 ANSI: 0
sd 8:0:0:0: [sda] 8028160 512-byte logical blocks: (4.11 GB/3.82 GiB)
sd 8:0:0:0: [sda] Write Protect is off
sd 8:0:0:0: [sda] Mode Sense: 0b 00 00 08
sd 8:0:0:1: Attached scsi generic sg1 type 0
sd 8:0:0:1: [sdb] 31358976 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 8:0:0:0: [sda] No Caching mode page present
sd 8:0:0:1: [sdb] Write Protect is off
sd 8:0:0:1: [sdb] Mode Sense: 0b 00 00 08
sd 8:0:0:0: [sda] Assuming drive cache: write through
sd 8:0:0:1: [sdb] No Caching mode page present
sd 8:0:0:1: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sda] No Caching mode page present
sd 8:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2
sd 8:0:0:1: [sdb] No Caching mode page present
sd 8:0:0:1: [sdb] Assuming drive cache: write through
sd 8:0:0:0: [sda] No Caching mode page present
sd 8:0:0:0: [sda] Assuming drive cache: write through
 sdb: sdb1 sdb2
sd 8:0:0:0: [sda] Attached SCSI removable disk
sd 8:0:0:1: [sdb] No Caching mode page present
sd 8:0:0:1: [sdb] Assuming drive cache: write through
sd 8:0:0:1: [sdb] Attached SCSI removable disk
scsi 9:0:0:0: Direct-Access     SAMSUNG  HD204UI          1AQ1 PQ: 0 ANSI: 0
sd 9:0:0:0: Attached scsi generic sg2 type 0
sd 9:0:0:0: [sdc] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 9:0:0:0: [sdc] Write Protect is off
sd 9:0:0:0: [sdc] Mode Sense: 03 00 00 00
sd 9:0:0:0: [sdc] No Caching mode page present
sd 9:0:0:0: [sdc] Assuming drive cache: write through
sd 9:0:0:0: [sdc] No Caching mode page present
sd 9:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 9:0:0:0: [sdc] No Caching mode page present
sd 9:0:0:0: [sdc] Assuming drive cache: write through
sd 9:0:0:0: [sdc] Attached SCSI disk
Logged

Ralph Houston

  • New IT customer
  • Full Member
  • *
  • Posts: 136
Re: Issues with uboot and external usb drive
« Reply #2 on: 28 February 2013, 06:20:48 pm »

Hi
I think this is a very basic issue that NewIT needs to address. There is a fundamental problem when these units boot up. The assignment of usb device numbers and the association with linux device names is unpredictable and causes serious problems as you describe. This is also a major problem for people like me who want to play with multi-booting - the system disc may be wrongly assigned if there are other storage units connected, preventing boot.
I simply do not have the knowledge, time, patience or access to the internal details to work out what is wrong here, far less sort it out.
Comments from NewIT are invited.
Yours
Ralph
Logged
Pages: [1]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!