From owner-freebsd-arm@freebsd.org Mon Aug 12 21:14:49 2019 Return-Path: Delivered-To: freebsd-arm@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 938EFC22B1 for ; Mon, 12 Aug 2019 21:14:49 +0000 (UTC) (envelope-from mit@perftech.com) Received: from smtp-gw.pt.net (smtp-gw.pt.net [206.210.194.15]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp-gw.pt.net", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 466pWr2jBMz435d for ; Mon, 12 Aug 2019 21:14:48 +0000 (UTC) (envelope-from mit@perftech.com) X-ASG-Debug-ID: 1565644486-09411a01d1232860001-ZNVAc5 Received: from mail.pt.net (mail.pt.net [206.210.194.11]) by smtp-gw.pt.net with ESMTP id 2nnZprqDs3FdBa3H (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 12 Aug 2019 16:14:46 -0500 (CDT) X-Barracuda-Envelope-From: mit@perftech.com X-Barracuda-Effective-Source-IP: mail.pt.net[206.210.194.11] X-Barracuda-Apparent-Source-IP: 206.210.194.11 Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id 7EF4D8402CA; Mon, 12 Aug 2019 16:14:46 -0500 (CDT) Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id G5_ytcIKEw0o; Mon, 12 Aug 2019 16:14:45 -0500 (CDT) Received: from localhost (localhost [IPv6:::1]) by mail.pt.net (Postfix) with ESMTP id 43E2B840253; Mon, 12 Aug 2019 16:14:45 -0500 (CDT) X-Virus-Scanned: amavisd-new at pt.net Received: from mail.pt.net ([IPv6:::1]) by localhost (mail.pt.net [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id j4T_p6dJqhLk; Mon, 12 Aug 2019 16:14:45 -0500 (CDT) Received: from mail.pt.net (mail.pt.net [206.210.194.11]) by mail.pt.net (Postfix) with ESMTP id 241F58402AE; Mon, 12 Aug 2019 16:14:45 -0500 (CDT) Date: Mon, 12 Aug 2019 16:14:45 -0500 (CDT) From: Mit Matelske To: =?iso-8859-1?Q?S=F8ren?= Schmidt Cc: tscho , freebsd-arm Message-ID: <1634814667.34671.1565644485029.JavaMail.zimbra@perftech.com> In-Reply-To: <4A647617-EEC0-4A75-ADF6-3D3F553F9AFF@gmail.com> References: <44E733F9-5DEB-4A7C-8369-7F6DF2AE03BE@gmail.com> <49A81763-B197-4E66-BA8E-0804C680B842@gmail.com> <1565435583431-0.post@n6.nabble.com> <1F22D8DA-E583-4858-911F-F057EC1A30E0@gmail.com> <532380450.3296650.1565636798211.JavaMail.zimbra@perftech.com> <4A647617-EEC0-4A75-ADF6-3D3F553F9AFF@gmail.com> Subject: Re: Espressobin anyone ? MIME-Version: 1.0 X-ASG-Orig-Subj: Re: Espressobin anyone ? Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Mailer: Zimbra 8.8.15_GA_3829 (ZimbraWebClient - GC76 (Linux)/8.8.15_GA_3829) Thread-Topic: Espressobin anyone ? Thread-Index: fCpza7ZHBlGxZf9+r/UaqET+JT6gPg== X-Barracuda-Connect: mail.pt.net[206.210.194.11] X-Barracuda-Start-Time: 1565644486 X-Barracuda-Encrypted: ECDHE-RSA-AES256-GCM-SHA384 X-Barracuda-URL: https://smtp-gw.pt.net:443/cgi-mod/mark.cgi X-Virus-Scanned: by bsmtpd at pt.net X-Barracuda-Scan-Msg-Size: 15164 X-Barracuda-BRTS-Status: 1 X-Barracuda-Spam-Score: 0.50 X-Barracuda-Spam-Status: No, SCORE=0.50 using global scores of TAG_LEVEL=1000.0 QUARANTINE_LEVEL=1000.0 KILL_LEVEL=9.0 tests=BSF_RULE7568M X-Barracuda-Spam-Report: Code version 3.2, rules version 3.2.3.75196 Rule breakdown below pts rule name description ---- ---------------------- -------------------------------------------------- 0.50 BSF_RULE7568M Custom Rule 7568M X-Rspamd-Queue-Id: 466pWr2jBMz435d X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of mit@perftech.com designates 206.210.194.15 as permitted sender) smtp.mailfrom=mit@perftech.com X-Spamd-Result: default: False [-1.06 / 15.00]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-0.83)[-0.833,0]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+mx]; IP_SCORE(0.15)[asn: 3549(0.80), country: US(-0.05)]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[pt.net]; SH_EMAIL_DBL_DONT_QUERY_IPS(0.00)[0.0.46.224,0.0.117.48]; NEURAL_HAM_LONG(-0.95)[-0.955,0]; MIME_TRACE(0.00)[0:+]; TO_DN_ALL(0.00)[]; NEURAL_HAM_SHORT(-0.42)[-0.424,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; FORGED_SENDER(0.30)[mit@pt.net,mit@perftech.com]; R_DKIM_NA(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; ASN(0.00)[asn:3549, ipnet:206.210.192.0/19, country:US]; FROM_NEQ_ENVFROM(0.00)[mit@pt.net,mit@perftech.com]; RCVD_COUNT_SEVEN(0.00)[7]; SH_EMAIL_ZRD(0.00)[0.0.46.224,0.0.117.48] X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Aug 2019 21:14:49 -0000 Soren- Thanks for the quick response. I built this kernel with revision 350924. = I'll dig into whats going on in the morning. Mind posting your diff for your loader.efi? Thanks again! Mit ----- Original Message ----- From: "S=F8ren Schmidt" To: "Mit Matelske" Cc: "tscho" , "freebsd-arm" Sent: Monday, August 12, 2019 3:49:48 PM Subject: Re: Espressobin anyone ? Hi Looks like your sources may be too old, you need to be at least at r348882 = to get the fix for the SD card VCC regulator. That change fixed it for me backported to 12-stable... The currdev problem still exists, I have it hardwired in my loader for aarc= h64 :) -S=F8ren > On 12 Aug 2019, at 21.06, Mit Matelske wrote: >=20 > I'm having a couple little hiccups booting this board also. One has been= commented on already, that I can't get the loader to automatically start l= oading the kernel on "disk0p2"... >=20 > The second, is that the kernel can't find the SD card after booting so it= can't mount the root filesystem. I'm using the dts/dtb and kernel from th= e 13-current branch. >=20 > Thanks for any and all help. I haven't used u-boot in about decade. Spo= iled by the x86 platform. >=20 > Mit Matelske >=20 >=20 > ***U-boot environment:*** >=20 >=20 > Marvell>> printenv > baudrate=3D115200 > bootargs=3Dconsole=3DttyMV0,115200 earlycon=3Dar3700_uart,0xd0012000 root= =3D/dev/mmcblk0p1 rw rootwait net.ifnames=3D0 biosdevname=3D0 > bootcmd=3Dmmc dev 0; fatload mmc 0:1 $kernel_addr $image_name;fatload mmc= 0:1 $fdt_addr $fdt_name; bootefi $kernel_addr $fdt_addr > bootdelay=3D2 > bootmmc=3Dmmc dev 0; fatload mmc 0:1 $kernel_addr $image_name;fatload mmc= 0:1 $fdt_addr $fdt_name; bootefi $kernel_addr $fdt_addr > console=3Dconsole=3DttyMV0,115200 earlycon=3Dar3700_uart,0xd0012000 > eth1addr=3D00:51:82:11:22:01 > eth2addr=3D00:51:82:11:22:02 > eth3addr=3D00:51:82:11:22:03 > ethact=3Dneta@30000 > ethaddr=3DF0:AD:4E:09:6B:8F > ethprime=3Deth0 > fdt_addr=3D0x4f00000 > fdt_high=3D0xffffffffffffffff > fdt_name=3Defi/boot/armada-3720-espressobin.dtb > fdtcontroladdr=3D3f7161b8 > gatewayip=3D10.4.50.254 > get_images=3Dtftpboot $kernel_addr $image_name; tftpboot $fdt_addr $fdt_n= ame; run get_ramfs > get_ramfs=3Dif test "${ramfs_name}" !=3D "-"; then setenv ramfs_addr 0x80= 00000; tftpboot $ramfs_addr $ramfs_name; else setenv ramfs_addr -;fi > hostname=3Dmarvell > image_name=3Defi/freebsd/loader.efi > initrd_addr=3D0xa00000 > initrd_size=3D0x2000000 > ipaddr=3D0.0.0.0 > kernel_addr=3D0x5000000 > loadaddr=3D0x5000000 > netdev=3Deth0 > netmask=3D255.255.255.0 > ramfs_addr=3D0x8000000 > ramfs_name=3D- > root=3Droot=3D/dev/nfs rw > rootpath=3D/srv/nfs/ > serverip=3D0.0.0.0 > set_bootargs=3Dsetenv bootargs $console $root ip=3D$ipaddr:$serverip:$gat= ewayip:$netmask:$hostname:$netdev:none nfsroot=3D$serverip:$rootpath $extra= _params > stderr=3Dserial@12000 > stdin=3Dserial@12000 > stdout=3Dserial@12000 >=20 >=20 > ***Full boot logs:*** >=20 >=20 > U-Boot 2017.03-armada-17.10.2-g14aeedc (Jun 01 2018 - 15:39:10 +0800) >=20 > Model: Marvell Armada 3720 Community Board ESPRESSOBin > CPU @ 1000 [MHz] > L2 @ 800 [MHz] > TClock @ 200 [MHz] > DDR @ 800 [MHz] > DRAM: 1 GiB > U-Boot DT blob at : 000000003f7161b8 > Comphy-0: USB3 5 Gbps > Comphy-1: PEX0 2.5 Gbps > Comphy-2: SATA0 6 Gbps > SATA link 0 timeout. > AHCI 0001.0300 32 slots 1 ports 6 Gbps 0x1 impl SATA mode > flags: ncq led only pmp fbss pio slum part sxs > PCIE-0: Link down > MMC: sdhci@d0000: 0, sdhci@d8000: 1 > SF: Detected mx25u3235f with page size 256 Bytes, erase size 64 KiB, tota= l 4 MiB > Net: eth0: neta@30000 [PRIME] > Hit any key to stop autoboot: 0 > switch to partitions #0, OK > mmc0 is current device > reading efi/freebsd/loader.efi > 603872 bytes read in 49 ms (11.8 MiB/s) > reading efi/boot/armada-3720-espressobin.dtb > 15946 bytes read in 17 ms (916 KiB/s) > ## Starting EFI application at 05000000 ... > Scanning disk sdhci@d0000.blk... > Card did not respond to voltage select! > mmc_init: -95, time 50 > Found 1 disks > Consoles: EFI console > FreeBSD/arm64 EFI loader, Revision 1.1 >=20 > Command line arguments: loader.efi > EFI version: 2.05 > EFI Firmware: Das U-boot (rev 0.00) > Console: efi (0) > Failed to find bootable partition > Startup error in /boot/lua/loader.lua: seconds > LUA ERROR: cannot open /boot/lua/loader.lua: invalid argument. >=20 > can't load 'kernel' >=20 > Type '?' for a list of commands, 'help' for more detailed help. > OK > OK set currdev=3Ddisk0p2 > OK boot >=20 > /boot/kernel/kernel text=3D0x97d6a0 data=3D0x191b50+0x84ae94 syms=3D[0x8+= 0x137dd8+0x8+0x126260] > Using DTB provided by EFI at 0x8000000. > ---<>--- > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2019 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 13.0-CURRENT GENERIC arm64 > FreeBSD clang version 6.0.1 (tags/RELEASE_601/final 335540) (based on LLV= M 6.0.1) > WARNING: WITNESS option enabled, expect reduced performance. > VT: init without driver. > Starting CPU 1 (1) > FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs > arc4random: WARNING: initial seeding bypassed the cryptographic random de= vice because it was not yet seeded and the knob 'bypass_before_seeding' was= enabled. > random: entropy device external interface > MAP 3e681000 mode 2 pages 1 > MAP 3ffa6000 mode 2 pages 1 > kbd0 at kbdmux0 > ofwbus0: > simplebus0: on ofwbus0 > simplebus1: on simplebus0 > simple_mfd0: mem 0x13800-0x138ff,0x= 13c00-0x13c1f on simplebus1 > simple_mfd1: mem 0x18800-0x188ff,0x= 18c00-0x18c1f on simplebus1 > psci0: on ofwbus0 > gic0: mem 0x1d00000-0x1d0ffff,0x1= d40000-0x1d7ffff,0x1d80000-0x1d81fff,0x1d90000-0x1d91fff,0x1da0000-0x1dbfff= f irq 27 on simplebus1 > gpio0: mem 0x13800-0x138ff,0x1= 3c00-0x13c1f irq 28,29,30,31,32,33,34,35,36,37,38,39 on simple_mfd0 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpio0: mem 0x18800-0x188ff,0x1= 8c00-0x18c1f irq 40,41,42,43,44 on simple_mfd1 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpioregulator0: on ofwbus0 > gpioregulator0: cannot get pin 0 > gpioregulator0: cannot parse parameters > device_attach: gpioregulator0 attach returned 6 > generic_timer0: irq 0,1,2,3 on ofwbus0 > Timecounter "ARM MPCore Timecounter" frequency 12500000 Hz quality 1000 > Event timer "ARM MPCore Eventtimer" frequency 12500000 Hz quality 1000 > gpio0: mem 0x13800-0x138ff,0x1= 3c00-0x13c1f irq 28,29,30,31,32,33,34,35,36,37,38,39 on simple_mfd0 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpio0: mem 0x18800-0x188ff,0x1= 8c00-0x18c1f irq 40,41,42,43,44 on simple_mfd1 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpioregulator0: on ofwbus0 > gpioregulator0: cannot get pin 0 > gpioregulator0: cannot parse parameters > device_attach: gpioregulator0 attach returned 6 > gpio0: mem 0x13800-0x138ff,0x1= 3c00-0x13c1f irq 28,29,30,31,32,33,34,35,36,37,38,39 on simple_mfd0 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpio0: mem 0x18800-0x188ff,0x1= 8c00-0x18c1f irq 40,41,42,43,44 on simple_mfd1 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpioregulator0: on ofwbus0 > gpioregulator0: cannot get pin 0 > gpioregulator0: cannot parse parameters > device_attach: gpioregulator0 attach returned 6 > gpio0: mem 0x13800-0x138ff,0x1= 3c00-0x13c1f irq 28,29,30,31,32,33,34,35,36,37,38,39 on simple_mfd0 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpio0: mem 0x18800-0x188ff,0x1= 8c00-0x18c1f irq 40,41,42,43,44 on simple_mfd1 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpioregulator0: on ofwbus0 > gpioregulator0: cannot get pin 0 > gpioregulator0: cannot parse parameters > device_attach: gpioregulator0 attach returned 6 > gpio0: mem 0x13800-0x138ff,0x1= 3c00-0x13c1f irq 28,29,30,31,32,33,34,35,36,37,38,39 on simple_mfd0 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpio0: mem 0x18800-0x188ff,0x1= 8c00-0x18c1f irq 40,41,42,43,44 on simple_mfd1 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > gpioregulator0: on ofwbus0 > gpioregulator0: cannot get pin 0 > gpioregulator0: cannot parse parameters > device_attach: gpioregulator0 attach returned 6 > cpulist0: on ofwbus0 > cpu0: on cpulist0 > cpu1: on cpulist0 > pmu0: irq 4 on ofwbus0 > syscon_generic0: mem 0xd000-0xdfff on simplebus1 > syscon_generic1: mem 0x11500-0x1153f on simplebus1 > uart0: mem 0x12000-0x121ff irq 9,10,11 on simp= lebus1 > uart0: console (115200,n,8,1) > gpio0: mem 0x13800-0x138ff,0x1= 3c00-0x13c1f irq 28,29,30,31,32,33,34,35,36,37,38,39 on simple_mfd0 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > syscon_generic2: mem 0x14000-0x1405f on simplebus1 > gpio0: mem 0x18800-0x188ff,0x1= 8c00-0x18c1f irq 40,41,42,43,44 on simple_mfd1 > gpio0: cannot allocate memory window > device_attach: gpio0 attach returned 6 > mvneta0: mem 0x30000-0x33fff irq 14 on simplebus1 > mvneta0: version is 10 > mvneta0: Ethernet address: 00:a6:39:ca:e8:00 > mdio0: on mvneta0 > mdioproxy0: on mdio0 > e6000sw0: on mdio0 > e6000sw0: multi-chip addressing mode (0x1) > e6000sw0: CPU port at 0 > e6000sw0: fixed port at 0 > e6000sw0: PHY at port 1 > miibus0: on e6000sw0 > e1000phy0: PHY 17 on miibus0 > e1000phy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000bas= eT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > e6000sw0: PHY at port 2 > miibus1: on e6000sw0 > e1000phy1: PHY 18 on miibus1 > e1000phy1: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000bas= eT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > e6000sw0: PHY at port 3 > miibus2: on e6000sw0 > e1000phy2: PHY 19 on miibus2 > e1000phy2: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000bas= eT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto > e6000sw0: switch is ready. > etherswitch0: on e6000sw0 > xhci0: mem 0x58000-0x5bfff irq 16 on simpleb= us1 > xhci0: 32 bytes context size, 32-bit DMA > usbus0 on xhci0 > syscon_generic3: mem 0x5d800-0x5dfff on simplebus1 > ehci0: mem 0x5e000-0x5efff irq 17= on simplebus1 > usbus1: EHCI version 1.0 > usbus1 on ehci0 > syscon_generic4: mem 0x5f800-0x5ffff on simplebus1 > sdhci_xenon0: mem 0xd0000-0xd02ff,0x1e808= -0x1e80b irq 24 on simplebus1 > ahci0: mem 0xe0000-0xe0177 irq 26 on simplebus1 > ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier supported with FBS > ahcich0: at channel 0 on ahci0 > device_attach: ahcich0 attach returned 6 > gpioregulator0: on ofwbus0 > gpioregulator0: cannot get pin 0 > gpioregulator0: cannot parse parameters > device_attach: gpioregulator0 attach returned 6 > cryptosoft0: > Timecounters tick every 1.000 msec > mvneta0: link state changed to UP > e6000sw0port1: link state changed to DOWN > e6000sw0port2: link state changed to DOWN > e6000sw0port3: link state changed to DOWN > usbus0: 5.0Gbps Super Speed USB v3.0 > usbus1: 480Mbps High Speed USB v2.0 > Release APs...done > CPU 0: ARM Cortex-A53 r0p4 affinity: 0 > Instruction Set Attributes 0 =3D > Trying to mount root from ufs:/dev/ufs/FreeBSD_Install [ro,noatime]... > Instruction Set Attributes 1 =3D <> > Root mount waiting for: Processor Features 0 =3D > usbus1 Processor Features 1 =3D <0> > usbus0 Memory Model Features 0 =3D <4k Granule,64k Granule,S/NS Mem,= MixedEndian,16bit ASID,1TB PA> >=20 > Memory Model Features 1 =3D <> > Memory Model Features 2 =3D <32b CCIDX,48b VA> > Debug Features 0 =3D <2 CTX Breakpoints,4 Watchpoints,6 Break= points,PMUv3,Debug v8> > Debug Features 1 =3D <0> > Auxiliary Features 0 =3D <0> > Auxiliary Features 1 =3D <0> > CPU 1: ARM Cortex-A53 r0p4 affinity: 1 > WARNING: WITNESS option enabled, expect reduced performance. > ugen0.1: at usbus0 > ugen1.1: at usbus1 > uhub0 on usbus0 > uhub1 on usbus1 > uhub0: on usbus= 0 > uhub1: on usbus= 1 > uhub0: 2 ports with 2 removable, self powered > uhub1: 1 port with 1 removable, self powered > mountroot: waiting for device /dev/ufs/FreeBSD_Install... > Mounting from ufs:/dev/ufs/FreeBSD_Install failed with error 19. >=20 > Loader variables: > vfs.root.mountfrom=3Dufs:/dev/ufs/FreeBSD_Install > vfs.root.mountfrom.options=3Dro,noatime >=20 > Manual root filesystem specification: > : [options] > Mount using filesystem > and with the specified (optional) option list. >=20 > eg. ufs:/dev/da0s1a > zfs:zroot/ROOT/default > cd9660:/dev/cd0 ro > (which is equivalent to: mount -t cd9660 -o ro /dev/cd0 /) >=20 > ? List valid disk boot devices > . Yield 1 second (for background tasks) > Abort manual input >=20 > mountroot> ? >=20 > List of GEOM managed disk devices: >=20 >=20 > mountroot>