From owner-freebsd-arm@freebsd.org Sun Jun 2 16:40:53 2019 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 754BD15B9DD0 for ; Sun, 2 Jun 2019 16:40:53 +0000 (UTC) (envelope-from deepcore.dk@gmail.com) Received: from mail-ed1-x542.google.com (mail-ed1-x542.google.com [IPv6:2a00:1450:4864:20::542]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 34DC46EE30 for ; Sun, 2 Jun 2019 16:40:52 +0000 (UTC) (envelope-from deepcore.dk@gmail.com) Received: by mail-ed1-x542.google.com with SMTP id r18so22179512edo.7 for ; Sun, 02 Jun 2019 09:40:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:message-id:mime-version:subject:date:in-reply-to:cc:to :references; bh=u0Cxy3NDUxJsOckiqmzZyNf6V2a+WO28aOMw4XgMqwQ=; b=GA2PcQk/XR2bCAmr3uo1z8Q766n9lJ94olfq0NvxAgbRv7EIk7A7DSvWMyAYpGzeKg CRDKb7mlyswnTRFEIY69B9AvOkERHLsGH+bTtkld2l8fExoBmLBmSijAePZ1FuZ17dj6 YARarRR0yLe3vJ69g+ofp48xkU1mNhaq1s81PG2IDseAw2QwmRRjENB19LasTcgAtRlN 8v0clsde4UqURvtGEt4AsxNW3cnI6eJHx79CuhhL26eGf5H9G79AvSW1oTtCROuPNN85 ZxQm8ncRxcHN6fIwX8z6ML9S1Ud0XhuJbKxtLGB7DKiul32uGWE+/pmtcEoBiosPxhRA SDug== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:message-id:mime-version:subject:date :in-reply-to:cc:to:references; bh=u0Cxy3NDUxJsOckiqmzZyNf6V2a+WO28aOMw4XgMqwQ=; b=hbMeYjjRa9s404kDEjt/TNj6BeC7esMy9P2EroV+294K0FI+HgGEz6SSp0f56ZqQAA G21a0/87Wm7yIg/Nv7k2XzouNM+KsoMMIVKNSE+u159b4ung6m+vXaZ7o8b1vI3chCWq FP3sJhw7oPm8uybXlXZ7pnutcZZ4kmemVqENkVqLQ6mWJb083BUDDt+z/CFaXiw6F5va SdFEGXvsEKQ9CNq1y1NcVtdLsCUCFh/a6aFV/wpoTwtyArFcyRv1vLIFT2WhG+Mfp5it XUvkJH0aJSHb/xU8fOZX0dQdOaukJJ/xo1QbR9/Y3gfmQ/5ftG7sb1StwjF49CfLrKDl UeYA== X-Gm-Message-State: APjAAAVtvDGvueurhO4a3iRH5R4JNr6xXwxMP00szOE8wbi4TUHe2kxn a3gHMJgba48dJhuzutZyYd5LHJEP X-Google-Smtp-Source: APXvYqyyBAcJrto35FKgME75E/q0DfZ+iagXLnDYuoBFwQ3BjXnAU9ZL1azTnPMZ9rO4bKPKvjceRA== X-Received: by 2002:a17:906:6a87:: with SMTP id p7mr358808ejr.277.1559493651046; Sun, 02 Jun 2019 09:40:51 -0700 (PDT) Received: from mac.deepcore.dk ([85.27.186.9]) by smtp.gmail.com with ESMTPSA id d24sm2111038ejt.12.2019.06.02.09.40.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 02 Jun 2019 09:40:49 -0700 (PDT) From: "=?utf-8?Q?S=C3=B8ren_Schmidt?=" X-Google-Original-From: =?utf-8?Q?S=C3=B8ren_Schmidt?= Message-Id: <7CDBFAF1-C36F-4A2D-8D80-CFF1F03CD2B9@deepcore.dk> Content-Type: multipart/signed; boundary="Apple-Mail=_9E72E6D9-85C3-491E-9568-2C3A87BE4C54"; protocol="application/pgp-signature"; micalg=pgp-sha256 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: Espressobin anyone ? Date: Sun, 2 Jun 2019 18:40:48 +0200 In-Reply-To: <9B48E915-C705-4582-837B-C92B40AD63EB@westryn.net> Cc: "freebsd-arm@freebsd.org" , James Shuriff , Marcin Wojtas To: Kim Shrier References: <334C83B6-1F12-436A-866B-947977A34D4D@deepcore.dk> <051F7682-B3EC-49D8-B52A-2A8C75BEE757@gmail.com> <9B48E915-C705-4582-837B-C92B40AD63EB@westryn.net> X-Mailer: Apple Mail (2.3445.104.11) X-Rspamd-Queue-Id: 34DC46EE30 X-Spamd-Bar: ----- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=GA2PcQk/; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of deepcoredk@gmail.com designates 2a00:1450:4864:20::542 as permitted sender) smtp.mailfrom=deepcoredk@gmail.com X-Spamd-Result: default: False [-5.51 / 15.00]; TO_DN_EQ_ADDR_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; HAS_ATTACHMENT(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_THREE(0.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_SHORT(-0.93)[-0.928,0]; FROM_EQ_ENVFROM(0.00)[]; SUBJECT_ENDS_QUESTION(1.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com.dwl.dnswl.org : 127.0.5.0]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.20)[multipart/signed,multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arm@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2.4.5.0.0.0.0.0.0.0.0.0.0.0.0.0.0.2.0.0.4.6.8.4.0.5.4.1.0.0.a.2.list.dnswl.org : 127.0.5.0]; RCVD_TLS_LAST(0.00)[]; IP_SCORE(-0.97)[ip: (-0.31), ipnet: 2a00:1450::/32(-2.20), asn: 15169(-2.28), country: US(-0.06)] X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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: Sun, 02 Jun 2019 16:40:54 -0000 --Apple-Mail=_9E72E6D9-85C3-491E-9568-2C3A87BE4C54 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi I managed to get it to boot with the following: setenv fdt_name 'efi/boot/armada-3720-espressobin.dtb' setenv image_name 'efi/boot/bootaa64.efi' setenv bootmmc 'mmc dev 0; fatload mmc 0:1 $kernel_addr = $image_name;fatload mmc 0:1 $fdt_addr $fdt_name; bootefi $kernel_addr = $fdt_addr' run bootmmc Then when the FreeBSD loader fails to load the kernel enter: set currdev=3Ddisk0p2 Boot That will boot the kernel: /boot/kernel/kernel text=3D0x92aab0 data=3D0x190f48+0x84ab1c = syms=3D[0x8+0x137580+0x8+0x12372b] 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 r348210 GENERIC arm64 FreeBSD clang version 8.0.0 (tags/RELEASE_800/final 356365) (based on = LLVM 8.0.0) 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 = device because it was not yet seeded and the knob = 'bypass_before_seeding' was enabled. random: entropy device external interface MAP 3e679000 mode 2 pages 1 MAP 3ffa6000 mode 2 pages 1 kbd0 at kbdmux0 ofwbus0: simplebus0: on ofwbus0 simplebus1: on simplebus0 psci0: on ofwbus0 gic0: mem = 0x1d00000-0x1d0ffff,0x1d40000-0x1d7ffff irq 37 on simplebus1 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 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 uart0: mem 0x12000-0x123ff irq 8 on = simplebus1 uart0: console (115200,n,8,1) mvneta0: mem 0x30000-0x33fff irq 10 on simplebus1 mvneta0: version is 10 mvneta0: Ethernet address: f0:ad:4e:08:61:5e mvneta1: mem 0x40000-0x43fff irq 11 on simplebus1 mvneta1: Failed to acquire PHY mode from FDT. device_attach: mvneta1 attach returned 6 xhci0: mem 0x58000-0x5bfff irq 31 on = simplebus1 xhci0: 32 bytes context size, 32-bit DMA usbus0 on xhci0 ehci0: mem 0x5e000-0x5ffff irq = 33 on simplebus1 usbus1: EHCI version 1.0 usbus1 on ehci0 sdhci_xenon0: mem = 0xd0000-0xd02ff,0x1e808-0x1e80b irq 34 on simplebus1 sdhci_xenon1: mem = 0xd8000-0xd82ff,0x17808-0x1780b irq 35 on simplebus1 ahci0: mem 0xe0000-0xe1fff irq 36 on simplebus1 ahci0: AHCI v1.30 with 1 6Gbps ports, Port Multiplier supported with FBS ahcich0: at channel 0 on ahci0 cryptosoft0: Timecounters tick every 1.000 msec mvneta0: link state changed to UP usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 480Mbps High Speed USB v2.0 ugen0.1: at usbus0 uhub0: on = usbus0 ugen1.1: at usbus1 uhub1: on = usbus1 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> Memory Model Features 1 =3D <> Memory Model Features 2 =3D <32b CCIDX,48b VA> Debug Features 0 =3D <2 CTX Breakpoints,4 Watchpoints,6 = Breakpoints,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. 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. 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:zroot/ROOT/default 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> However, the MMC/SDcard fails to be found so it will stop at mounting = root. Having a disk on the SATA port can make it work from there though. The etherswitch is not found, but the single =E2=80=9Cnata=E2=80=9D port = does show up.. All in all the support is barely enough to boot a kernel, but a long way = from being useful. You can use 12-stable as well, the same support seems to be present = there, and its much more stable, -current as is today panics=E2=80=A6 Oh, and you need to get the =E2=80=9Cright=E2=80=9D .dtb file, otherwise = you get panic=E2=80=99s etc. YMMV=E2=80=A6 -S=C3=B8ren --Apple-Mail=_9E72E6D9-85C3-491E-9568-2C3A87BE4C54 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkC0kEuD0Me2xEj5EGvRMAY4qbRsFAlzz/BAACgkQGvRMAY4q bRvEPRAAjqAYdCM5LbGNvUew7bJSPlA6SqQ0NGpPl5bhWJenlXgE4tnTAkkjZ0Mx tEzBOQhX7RE0HXNQzjQcI7jfA8lSlu03EI+2AAyULqTqs3wfja1LMizVRsfjxx/Y eT4Xuls8LYmgawcJumyX4OlXyM4vEj2zn/d5vX50pm1ZrXgjpKhHvbKSikE91M1P z98Lt6OIP50oYzciEf67ZkXXQyBhddEdq/99RWlVM7QtesIxM9+glniXXborwa2r 28vSCwh8IYXpTOvbQJuTXUOjaYMSis3AHNAqDhiv6NQRUxk8pWgApYwTbmZFPj9Y kgTVpE3afAl/DFotJwkNRiOccD7LO5X5z1xM5Ys/x5WMTw8G8fMMsCLWNTr0h2+9 lLQyL3W3Xh4Jax5FpuEVj228lK82pe6hLUAJxrsCyMehq3FHVvz/XcIoFjy9HGfw Gla3hekWPBoHorhynIQdzjKvu0bwyD1R3UQ8ouAJgfw2cPJq2ypZ663EJ5KWgdoA oSXOMJ5mBfaMATa6pjeOi6MMmDws6MAU/ycSmP1DavQ7efZHgFy5INtTT5okXO96 E/Z6HJ2qnLZC+OECHD7P2jJaf+nItM2zeXa7YMNBtWBHlo1Br1OBsREb0xa+ZjM6 iMQAikZuYxkpZcmJLTx3VpVW4c3C3aXGkyprzFKszG4TWE1JJc8= =68/B -----END PGP SIGNATURE----- --Apple-Mail=_9E72E6D9-85C3-491E-9568-2C3A87BE4C54--