From owner-freebsd-arm@freebsd.org Mon Feb 5 04:06:53 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25AE7EEDEDF for ; Mon, 5 Feb 2018 04:06:53 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lf0-x232.google.com (mail-lf0-x232.google.com [IPv6:2a00:1450:4010:c07::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8092E8088C for ; Mon, 5 Feb 2018 04:06:52 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by mail-lf0-x232.google.com with SMTP id t79so39801762lfe.3 for ; Sun, 04 Feb 2018 20:06:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=u39b6zIGLWVW4TVCPIMbKPSBFC7l13c7qJrYeYvrAkA=; b=J6QacdeUcDfjPrdqk0NY7eGSQXIN8k0moBnNMa4vVXaswFRf3vofAYSgjZq6YRJ04x d492mlXc9/XgRxUV7ILu88jY5Z5CulacMp75cDS5oistR3+J0NUTNC5QvprNSfiffuCp m+HiVFXwg9NYetLNYVtiIgp6htIIzDH1vTbNX5+lqjBTmXWr44FsO18pu6ZcoObap5xG YFre70vq7LjvBAdDMgbQsep1YxJoi9HLFuDyuxAMpqh/mkgccNvaxzqM2Wkc4J5BWvYh /2gkVvFZjtb3HuA+8PRY+Kn8D+5pUj2EWYnevcdg2re9RYeayrfr8d0asaYhGzs6mxAx DUtg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=u39b6zIGLWVW4TVCPIMbKPSBFC7l13c7qJrYeYvrAkA=; b=DnlNerpL+0V7kW6FUie+AWtMdOfm8pHMP95OKDeBDppk1a8EVkKCPqYvj08nwGosyg JZuO6d+H8io1vwo/kisvRemyCtEjsrWCnIVT7EblWfJOwNkfl8N7d1LKuTr50hYez+yu bs0CvNkuX5SE3i1bNc+Zo4UDm2H304dft2TuIkVYS8zCMFiqxmr1l1OmJAoO47yuC1UH vYzdbu5/fm7u0MOfr03yVr1Op/I1029V9CSVuotre392dxmyJmGiQWA3es/P0GfHsvVZ D7jIyRwVJs9bxtqlnn4PyTvcZI5MZJUc1qt1cSnInWMtENaTFwTKywPj6ewQpxRmXQaU vbrg== X-Gm-Message-State: APf1xPBP0oQU60QKh4mUEoM1FTd4L/ybSXurvOeM0igz4U5XNMqAUoAA Gfy2XFY2O6MHTJ9SiaSH4XW92RmvRC+tutz0qNjZGg== X-Google-Smtp-Source: AH8x224JoUeXm4K3FkF8xGiYEd0zL43Ic+YecBhm2S1j0Bk+blEYeUxD3chLWczG/0knqIi+xTpZihpsbzfEUtbjnVU= X-Received: by 10.46.58.8 with SMTP id h8mr3021892lja.130.1517803610373; Sun, 04 Feb 2018 20:06:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.46.23.91 with HTTP; Sun, 4 Feb 2018 20:06:49 -0800 (PST) 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> From: Russell Haley Date: Sun, 4 Feb 2018 20:06:49 -0800 Message-ID: Subject: Re: Trouble with SoftIron Overdrive 1000 + USB To: Jon Brawn Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 05 Feb 2018 04:06:53 -0000 On Sat, Feb 3, 2018 at 10:08 PM, Jon Brawn wrote: > >> On Feb 2, 2018, at 11:46 PM, Jon Brawn 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: >> simplebus0: on ofwbus0 >> clk_fixed0: on simplebus0 >> clk_fixed1: on simplebus0 >> clk_fixed2: on simplebus0 >> clk_fixed3: on simplebus0 >> clk_fixed4: on simplebus0 >> clk_fixed5: on simplebus0 >> clk_fixed6: on simplebus0 >> clk_fixed7: on simplebus0 >> clk_fixed8: on simplebus0 >> clk_fixed9: on simplebus0 >> clk_fixed10: on simplebus0 >> psci0: on ofwbus0 >> gic0: 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: 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: on ofwbus0 >> cpu0: on cpulist0 >> cpu1: on cpulist0 >> cpu2: on cpulist0 >> cpu3: on cpulist0 >> pmu0: irq 0,1,2,3 on ofwbus0 >> ahci0: mem 0xe0300000-0xe03effff irq 9 on simpleb= us0 >> ahci0: AHCI v1.30 with 8 6Gbps ports, Port Multiplier supported >> ahcich0: at channel 0 on ahci0 >> ahcich1: at channel 1 on ahci0 >> uart0: mem 0xe1010000-0xe1010fff irq 13 on simp= lebus0 >> uart0: console (115200,n,8,1) >> pcib0: mem 0xf0000000-0xffffffff on simple= bus0 >> pci0: on pcib0 >> pcib1: at device 2.2 on pci0 >> pci1: on pcib1 >> xhci0: 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: at device 2.3 on pci0 >> pci2: on pcib2 >> mskc0: port 0x1000-0x10ff mem 0= x40000000-0x40003fff at device 0.0 on pci2 >> msk0: on m= skc0 >> msk0: Using defaults for TSO: 65518/35/2048 >> msk0: Ethernet address: e0:ff:f7:00:20:a6 >> miibus0: on msk0 >> e1000phy0: 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: >> 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: 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 >> Instruction Set Attributes 1 =3D <> >> Processor Features 0 =3D >> 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: 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: >> : [options] >> Mount using filesystem >> 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) >> 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> >> >> >> >