Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Feb 2018 20:06:49 -0800
From:      Russell Haley <russ.haley@gmail.com>
To:        Jon Brawn <jon@brawn.org>
Cc:        freebsd-arm <freebsd-arm@freebsd.org>
Subject:   Re: Trouble with SoftIron Overdrive 1000 + USB
Message-ID:  <CABx9NuQ8YBa93y8Gg45xt2BS4nxecJFnOpYXCErrc_e-=nTkCA@mail.gmail.com>
In-Reply-To: <0DC0C226-DEDF-4181-9B0A-38E5CB78663A@brawn.org>
References:  <79D41C3C-152C-4C58-A7AB-B2C3544DFDA3@brawn.org> <0DC0C226-DEDF-4181-9B0A-38E5CB78663A@brawn.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 3, 2018 at 10:08 PM, Jon Brawn <jon@brawn.org> wrote:
>
>> On Feb 2, 2018, at 11:46 PM, Jon Brawn <jon@brawn.org> wrote:
>>
>> Wotcha Gang!
>>
>> From time to time I take the 12.0 Current mini-memstick image that is ne=
west and do an install on a SoftIron Overdrive 1000 box (quad Cortex-A57, a=
arch64). Usually there=E2=80=99s nothing to report, and everything goes jus=
t swimmingly, and I mess around with the installed system for a while, rebu=
ild the kernel perhaps, nothing too heavy duty.
>>
>> Anyway, I=E2=80=99ve just tried this with r328637, and it didn=E2=80=99t=
 work very well, however, I don=E2=80=99t have the FreeBSD skills to unders=
tand what=E2=80=99s really going wrong. I=E2=80=99ve added the boot log to =
this email, inline, at the end. It all goes wrong when it is trying to moun=
t the root filesystem from the USB memory stick. It=E2=80=99s claiming to b=
e perpetually waiting for usbus0. As you can see from the boot log, it dete=
cts that there=E2=80=99s a usbus0 =E2=80=98thing=E2=80=99 there, and there =
are no warnings or errors that I can see relating to USB, but the bus never=
 seems to come ready.
>>
>> Is there anyone out there that can help me to debug this please?
>>
>> Jon.
>>
>
> Wotcha!
>
> As of =E2=80=9Cright now=E2=80=9D (1:40am on Saturday Feb 3rd), there are=
 3 revisions of FreeBSD-12.0-CURRRENT-arm64-aarch64 available for me to dow=
nload as a mini-memstick image.
>
> r327788 2018/01/10 - boots to start of install process [install fails - a=
rchives newer than image]
> r328126 2018/01/18 - fails to boot at mounting of root filesystem
> r328637 2018/01/31 - fails to boot at mounting of root filesystem
>
> Cheers,
>
> Jon.

Hi, sorry about the blank reply, I was going to email you and my kids
jumped on me. That message was just randomness. This is the first
chance I've had since to try again.

So to qualify this message, I haven't done any low level stuff in
months so I don't remember anything, but I didn't see anyone else jump
in so I thought I'd try to help. With that:

Have you tried booting with verbose turned on? Stop the boot process
and and type boot -v I think?

usbd_setup_device_desc: getting device descriptor at addr 1 failed,
USB_ERR_TIMEOUT --> this looks like sad computer talk. I'm not a
kernel developer I think this *could* be related to the DTB file? If
an address in the flattened device tree isn't correct computers get
cranky. I know a short time back there was some device tree changes
but I don't keep up with things so I'm only speculating.

If you wanted to try going down that road I'd say you have two
options. Find a revision that works and either check the fdt files in
the source tree and compare to those that don't work, or if you have
binaries swap the ones that don't work for the ones that do. The
latter might be quicker, but if it doesn't work you don't know if it's
cause you mucked it, or because that wasn't the issue. Also, I see
you're using an installer, so you'd have to patch the installer OS/USB
stick to confirm it works, and then report back for someone to fix it
in the sources (or fix the installed version yourself too).

I don't have any resources available right now to help you out and I
don't have any of my boards out. My poor old brain, I can't even
remember the file extension for fdt files! If you can't find the files
you need I'd suggest re-posting a specific question about that. (e.g
where do I find ftd files for a softiron?).

Maybe helpful, maybe not. Hopefully someone pipes up and corrects me.
Whotcha! :)

Russ

>> NOTICE:  BL3-1:
>> NOTICE:  BL3-1: Built : 14:04:15, Apr  9 2016
>> INFO:    BL3-1: Initializing runtime services
>> INFO:    BL3-1: Preparing for EL3 exit to normal world
>> INFO:    BL3-1: Next image address =3D 0x8000e80000
>> INFO:    BL3-1: Next image spsr =3D 0x3c9
>> UEFI Interactive Shell v2.1
>> EDK II
>> UEFI v2.60 (SoftIron Overdrive 1000, 0x00010000)
>> Mapping table
>>      FS1: Alias(s):HD1b65535a1:;BLK4:
>>          PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)/HD(1,GPT,535754E=
E-EECD-11E7-8543-E0FFF70020A6,0x28,0x64000)
>>      FS0: Alias(s):HD0a0b:;BLK1:
>>          PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)/HD(1,GPT,C=
AB2BA96-0772-11E8-952D-0CC47AD8B808,0x3,0x640)
>>     BLK3: Alias(s):
>>          PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)
>>     BLK5: Alias(s):
>>          PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)/HD(2,GPT,5357E64=
7-EECD-11E7-8543-E0FFF70020A6,0x64028,0x73F9BFF8)
>>     BLK6: Alias(s):
>>          PciRoot(0x1)/Pci(0x0,0x0)/Sata(0x1,0xFFFF,0x0)/HD(3,GPT,535936C=
9-EECD-11E7-8543-E0FFF70020A6,0x74000020,0x706D67)
>>     BLK0: Alias(s):
>>          PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)
>>     BLK2: Alias(s):
>>          PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)/HD(2,GPT,C=
AB2BA9A-0772-11E8-952D-0CC47AD8B808,0x643,0xF89E0)
>> Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
>> Shell> BOOTaa64.efi
>>
>>>> FreeBSD EFI boot block
>>   Loader path: /boot/loader.efi
>>
>>   Initializing modules: ZFS UFS
>>   Load Path: \efi\boot\BOOTaa64.efi
>>   Load Device: PcieRoot(0x0)/Pci(0x2,0x2)/Pci(0x0,0x0)/USB(0x0,0x0)/HD(1=
,GPT,CAB2BA96-0772-11E8-952D-0CC47AD8B808,0x3,0x640)
>>   BootCurrent: 0006
>>   BootOrder: 0006 0000 0001 0002
>>   Probing 7 block devices.........* done
>>    ZFS found no pools
>>    UFS found 1 partition
>> Consoles: EFI console
>> Command line arguments: loader.efi
>> Image base: 0x81f6449000
>> EFI version: 2.60
>> EFI Firmware: SoftIron Overdrive 1000 (rev 1.00)
>>
>> FreeBSD/arm64 EFI loader, Revision 1.1
>> (Thu Feb  1 16:48:10 UTC 2018 root@releng3.nyi.freebsd.org)
>> EFI boot environment
>> Loading /boot/defaults/loader.conf
>> /boot/kernel/kernel text=3D0x8372ce data=3D0xb2450+0x443acc syms=3D[0x8+=
0x111408+0x8+0x103ad6]
>> |
>> Hit [Enter] to boot immediately, or any other key for command prompt.
>> Booting [/boot/kernel/kernel]...
>> Using DTB provided by EFI at 0x801fe00000.
>> KDB: debugger backends: ddb
>> KDB: current backend: ddb
>> Copyright (c) 1992-2018 The FreeBSD Project.
>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
>>        The Regents of the University of California. All rights reserved.
>> FreeBSD is a registered trademark of The FreeBSD Foundation.
>> FreeBSD 12.0-CURRENT #0 r328637: Thu Feb  1 16:51:20 UTC 2018
>>    root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENER=
IC arm64
>> FreeBSD clang version 6.0.0 (branches/release_60 323338) (based on LLVM =
6.0.0)
>> WARNING: WITNESS option enabled, expect reduced performance.
>> VT: init without driver.
>> module_register: cannot register gic/gicv2m from kernel; already loaded =
from kernel
>> Module gic/gicv2m failed to register: 17
>> Starting CPU 1 (1)
>> Starting CPU 2 (100)
>> Starting CPU 3 (101)
>> FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
>> arc4random: no preloaded entropy cache
>> MAP 81fb830000 mode 2 pages 992
>> MAP 81fbdb0000 mode 2 pages 592
>> MAP 81fffd0000 mode 2 pages 32
>> random: entropy device external interface
>> kbd0 at kbdmux0
>> ofwbus0: <Open Firmware Device Tree>
>> simplebus0: <Flattened device tree simple bus> on ofwbus0
>> clk_fixed0: <Fixed clock> on simplebus0
>> clk_fixed1: <Fixed clock> on simplebus0
>> clk_fixed2: <Fixed clock> on simplebus0
>> clk_fixed3: <Fixed clock> on simplebus0
>> clk_fixed4: <Fixed clock> on simplebus0
>> clk_fixed5: <Fixed clock> on simplebus0
>> clk_fixed6: <Fixed clock> on simplebus0
>> clk_fixed7: <Fixed clock> on simplebus0
>> clk_fixed8: <Fixed clock> on simplebus0
>> clk_fixed9: <Fixed clock> on simplebus0
>> clk_fixed10: <Fixed clock> on simplebus0
>> psci0: <ARM Power State Co-ordination Interface Driver> on ofwbus0
>> gic0: <ARM Generic Interrupt Controller> mem 0xe1110000-0xe1110fff,0xe11=
2f000-0xe1130fff,0xe1140000-0xe114ffff,0xe1160000-0xe116ffff irq 4 on ofwbu=
s0
>> gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 448
>> generic_timer0: <ARMv8 Generic Timer> irq 5,6,7,8 on ofwbus0
>> Timecounter "ARM MPCore Timecounter" frequency 250000000 Hz quality 1000
>> Event timer "ARM MPCore Eventtimer" frequency 250000000 Hz quality 1000
>> efirtc0: registered as a time-of-day clock, resolution 1.000000s
>> cpulist0: <Open Firmware CPU Group> on ofwbus0
>> cpu0: <Open Firmware CPU> on cpulist0
>> cpu1: <Open Firmware CPU> on cpulist0
>> cpu2: <Open Firmware CPU> on cpulist0
>> cpu3: <Open Firmware CPU> on cpulist0
>> pmu0: <Performance Monitoring Unit> irq 0,1,2,3 on ofwbus0
>> ahci0: <AHCI SATA controller> mem 0xe0300000-0xe03effff irq 9 on simpleb=
us0
>> ahci0: AHCI v1.30 with 8 6Gbps ports, Port Multiplier supported
>> ahcich0: <AHCI channel> at channel 0 on ahci0
>> ahcich1: <AHCI channel> at channel 1 on ahci0
>> uart0: <PrimeCell UART (PL011)> mem 0xe1010000-0xe1010fff irq 13 on simp=
lebus0
>> uart0: console (115200,n,8,1)
>> pcib0: <Generic PCI host controller> mem 0xf0000000-0xffffffff on simple=
bus0
>> pci0: <PCI bus> on pcib0
>> pcib1: <PCI-PCI bridge> at device 2.2 on pci0
>> pci1: <PCI bus> on pcib1
>> xhci0: <XHCI (generic) USB 3.0 controller> mem 0x40100000-0x4010ffff,0x4=
0110000-0x40110fff,0x40111000-0x40111fff at device 0.0 on pci1
>> xhci0: 32 bytes context size, 64-bit DMA
>> usbus0 on xhci0
>> pcib2: <PCI-PCI bridge> at device 2.3 on pci0
>> pci2: <PCI bus> on pcib2
>> mskc0: <Marvell Yukon 88E8059 Gigabit Ethernet> port 0x1000-0x10ff mem 0=
x40000000-0x40003fff at device 0.0 on pci2
>> msk0: <Marvell Technology Group Ltd. Yukon Optima Id 0xbc Rev 0x01> on m=
skc0
>> msk0: Using defaults for TSO: 65518/35/2048
>> msk0: Ethernet address: e0:ff:f7:00:20:a6
>> miibus0: <MII bus> on msk0
>> e1000phy0: <Marvell PHYG65G Gigabit PHY> PHY 0 on miibus0
>> e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000ba=
seT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
>> cryptosoft0: <software crypto>
>> Timecounters tick every 1.000 msec
>> usbus0: 5.0Gbps Super Speed USB v3.0
>> ugen0.1: <0x1b73 XHCI root HUB> at usbus0
>> uhub0: <0x1b73 XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus=
0
>> ada0 at ahcich1 bus 0 scbus1 target 0 lun 0
>> ada0: <WDC WD10EZEX-08WN4A0 01.01A01> ACS-3 ATA SATA 3.x device
>> ada0: Serial Number WD-WMC6Y0P7NL00
>> ada0: 600.000MB/s transfers (SATA 3.x, UDMA5, PIO 8192bytes)
>> ada0: Command Queueing enabled
>> ada0: 953869MB (1953525168 512 byte sectors)
>> Release APs
>> CPU  0: ARM Cortex-A57 r1p2 affinity:  0  0
>> Instruction Set Attributes 0 =3D <AES+PMULL,SHA1,SHA2,CRC32>
>> Instruction Set Attributes 1 =3D <>
>>         Processor Features 0 =3D <AdvSIMD,Float,EL3 32,EL2 32,EL1 32,EL0=
 32>
>>         Processor Features 1 =3D <0>
>>      Memory Model Features 0 =3D <4k Granule,64k Granule,MixedEndian,S/N=
S Mem,16bit ASID,16TB PA>
>>      Memory Model Features 1 =3D <>
>>      Memory Model Features 2 =3D <32b CCIDX,48b VA>
>>             Debug Features 0 =3D <2 CTX Breakpoints,4 Watchpoints,6 Brea=
kpoints,PMUv3,Debug v8>
>>             Debug Features 1 =3D <0>
>>         Auxiliary Features 0 =3D <0>
>>         Auxiliary Features 1 =3D <0>
>> CPU  1: ARM Cortex-A57 r1p2 affinity:  0  1
>> CPU  2: ARM Cortex-A57 r1p2 affinity:  1  0
>> CPU  3: ARM Cortex-A57 r1p2 affinity:  1  1
>> WARNING: WITNESS option enabled, expect reduced performance.
>> arc4random: no preloaded entropy cache
>> Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]...
>> Root mount waiting for: usbus0
>> uhub0: 4 ports with 4 removable, self powered
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_=
ERR_TIMEOUT
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_=
ERR_TIMEOUT
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_=
ERR_TIMEOUT
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_=
ERR_TIMEOUT
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> Root mount waiting for: usbus0
>> usbd_setup_device_desc: getting device descriptor at addr 1 failed, USB_=
ERR_TIMEOUT
>> ugen0.2: <Unknown > at usbus0 (disconnected)
>> uhub_reattach_port: could not allocate new device
>> mountroot: waiting for device /dev/ufs/FreeBSD_Install...
>> Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19.
>>
>> Loader variables:
>>  vfs.root.mountfrom=3Dufs:/dev/ufs/FreeBSD_Install
>>  vfs.root.mountfrom.options=3Dro,noatime
>>
>> Manual root filesystem specification:
>>  <fstype>:<device> [options]
>>      Mount <device> using filesystem <fstype>
>>      and with the specified (optional) option list.
>>
>>    eg. ufs:/dev/da0s1a
>>        zfs:tank
>>        cd9660:/dev/cd0 ro
>>          (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /)
>>
>>  ?               List valid disk boot devices
>>  .               Yield 1 second (for background tasks)
>>  <empty line>    Abort manual input
>>
>> mountroot> ?
>>
>> List of GEOM managed disk devices:
>>  diskid/DISK-WD-WMC6Y0P7NL00p3 diskid/DISK-WD-WMC6Y0P7NL00p2 diskid/DISK=
-WD-WMC6Y0P7NL00p1 gptid/535936c9-eecd-11e7-8543-e0fff70020a6 gptid/5357e64=
7-eecd-11e7-8543-e0fff70020a6 gptid/535754ee-eecd-11e7-8543-e0fff70020a6 di=
skid/DISK-WD-WMC6Y0P7NL00 ada0p3 ada0p2 ada0p1 ada0
>>
>> mountroot>
>>
>>
>>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CABx9NuQ8YBa93y8Gg45xt2BS4nxecJFnOpYXCErrc_e-=nTkCA>