From owner-freebsd-arm@freebsd.org Sun Apr 8 00:24:42 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 327AEF921BE for ; Sun, 8 Apr 2018 00:24:42 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic317-28.consmr.mail.bf2.yahoo.com (sonic317-28.consmr.mail.bf2.yahoo.com [74.6.129.83]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D1B93823CA for ; Sun, 8 Apr 2018 00:24:41 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: YeYVyVAVM1nhaoRhbXWf2mMy70aVk0hiQHPFu1Gci7HGGxANBAbpR6Xd.Hx4YCE PK7HNSvSmXc8gb.yzUxhWYpCvpKcxvJgRNBVOX3zeO5fbf2nkPDHCPFP5YOL5PjPg1on8jRnNVkh oiYUbP.2wXuF8jo29MSy3YBwo6Wmp8RFQLQLoEhd9agoiVof0mxzBmRjXeyepyalu17QZxbbgBwo RwTvdjFxOC2VOlqLw1mkFAwM5ibpd6YeXItqAFyoE61DIk9ueCmfWeyjKlE.FUO81XRk5.5tnx1D H8jpS6.mLfOnCWBJimzOFZ6Jv8ZJVI4E80OndUcdBWIorcBloxog15mcQAfDwpEXPqy.ylkCw_fu CK370FJxARsg3zg1iNV8kv81B_zxq06gIZTQpKh8e5WQHJ7a.hn8PH_TweNxvUpXh9KrhHa8m6Ih ywtmds2_Ef2LNgCjbkdsTe7uleTQKkmrMtY5JqVqRU6NUwCXzHPhXTQibdODEpPdvRuOSiRcSSx1 MSxmEKtBDb8PSjWgd14oZPp7motY- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Apr 2018 00:24:35 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp422.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 3fcc4c8a2a156598cc85c6ef1725af75; Sun, 08 Apr 2018 00:04:20 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: head amd64->aarch64 buildkernel: clang using aarch64-binutils gets /tmp/cloudabi_vdso_armv6_on_64bit-2f26ed.o: error adding symbols: File in wrong format Message-Id: Date: Sat, 7 Apr 2018 17:04:18 -0700 To: freebsd-toolchain@freebsd.org, freebsd-arm@FreeBSD.org, freebsd-ports@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) 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: Sun, 08 Apr 2018 00:24:42 -0000 (Context: buildworld completed before builkernel started.) My attempt to do buildworld buildkernel via clang but using aarch64-binutils got the following failure during buildkernel. (Note the use of: -B/usr/local/aarch64-unknown-freebsd12.0/bin/ for clang.) --- cloudabi32_vdso.o --- /tmp/cloudabi_vdso_armv6_on_64bit-2f26ed.o: error adding symbols: File = in wrong format cc: error: linker command failed with exit code 1 (use -v to see = invocation) *** [cloudabi32_vdso.o] Error code 1 make[4]: stopped in /usr/src/sys/modules/cloudabi32 .ERROR_TARGET=3D'cloudabi32_vdso.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/s= rc/arm64.aarch64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/cloudabi32/= cloudabi32_vdso.o.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'cc -B/usr/local/aarch64-unknown-freebsd12.0/bin/ = -mcpu=3Dcortex-a53 -target aarch64-unknown-freebsd12.0 = --sysroot=3D/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64= .aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -x = assembler-with-cpp -m32 -shared -nostdinc -nostdlib = -Wl,-T/usr/src/sys/compat/cloudabi/cloudabi_vdso.lds = /usr/src/sys/contrib/cloudabi/cloudabi_vdso_armv6_on_64bit.S -o = cloudabi32_vdso.o;' .CURDIR=3D'/usr/src/sys/modules/cloudabi32' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.= aarch64/sys/GENERIC-NODBG/modules/usr/src/sys/modules/cloudabi32' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' = MAKEOBJDIRPREFIX=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/s= rc/arm64.aarch64/sys/GENERIC-NODBG/modules' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180222' = PATH=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aar= ch64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/= usr/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_clang_xbinutil= s/arm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_cl= ang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/co= rtexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/s= bin:/bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG/modules/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.cortexA53-clang-xbinutils-bootstrap.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null = /usr/src/sys/modules/cloudabi32/Makefile /usr/src/share/mk/bsd.kmod.mk = /usr/src/sys/conf/kmod.mk /usr/src/share/mk/bsd.init.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/local.init.mk /usr/src/share/mk/src.init.mk = /usr/src/sys/modules/cloudabi32/../Makefile.inc = /usr/src/share/mk/bsd.own.mk /usr/src/share/mk/bsd.compiler.mk = /usr/src/share/mk/bsd.linker.mk /usr/src/sys/conf/kern.opts.mk = /usr/src/sys/conf/config.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/sys/conf/kern.mk' .PATH=3D'. /usr/src/sys/modules/cloudabi32 = /usr/src/sys/compat/cloudabi32 /usr/src/sys/arm64/cloudabi32 = /usr/obj/cortexA53_clang_xbinutils/arm64.aarch64/usr/src/arm64.aarch64/sys= /GENERIC-NODBG' 1 error For reference: # uname -apKU FreeBSD FBSDFSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r332181M amd64 = amd64 1200061 1200061 # pkg info "*binutils" aarch64-binutils-2.30_2,1 amd64-binutils-2.30_2,1 binutils-2.30_2,1 powerpc64-binutils-2.30_2,1 # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 466704 Last Changed Rev: 466704 buildworld buildkernel with clang using its default utilities completed. =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Sun Apr 8 00:29:33 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 0D1EEF925DD for ; Sun, 8 Apr 2018 00:29:33 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic303-4.consmr.mail.bf2.yahoo.com (sonic303-4.consmr.mail.bf2.yahoo.com [74.6.131.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A2C1784C6A for ; Sun, 8 Apr 2018 00:29:32 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: r4_o.P8VM1lDR34fIIzfEsC0L2GcKNVxdPwHKIv4Z5LiczaMQZgBBgiAp0VveI1 phjLga8yLz67G9GBMrVYyXD3GtEKF0ghWGqxqC.1ME9tq1tfJkLCKhoOZEpzomYmGKA4G3vmt9Rl 3FizuHwx5IOYsqfoPqbNWTKusBPxkvhE9kAp53dy08xRZEczSRbJY_PVtTYl.1KKo4Gj9ypYnDSA kqiKh80LJs0OuiWSD0prsMyXVVwixItFScP3jDP7fdYXpaup3DyRtRJcPFq9WOLOhl3kHacIxHCV wgda9rds8UNbDdv0.ZsLCeQ3gKQyhbqqTwfsq6BMptTwRMZaQsn9nhr7iEidHOZbFGjrZM36flqz fsdBKrJWGGrzetLU.EvpB7S8EaoFeTYFz9hrpTtqK28ZJ3PKBXfpF3JTFCTi2CqEzNzCG8RbLFCo QL5CVdQ7dvuyE7IjEA13nbP3whrYJIEuNvI30vNBQIQi27c0VSklE6VtwVkXCz71ToPBY5dDXiFC PLET3K9aVgmsHnLoQz0DUJ6XY Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.bf2.yahoo.com with HTTP; Sun, 8 Apr 2018 00:29:31 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp425.mail.bf1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID c683594b1b3b487714ecff4ddd3be1e7; Sun, 08 Apr 2018 00:29:27 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Attempting a xtoolchain-gcc head amd64->aarch64 cross buildworld failed for liblto_plugin.so loading error From: Mark Millard In-Reply-To: <20180407183525.2e72ee42@kan> Date: Sat, 7 Apr 2018 17:29:24 -0700 Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org, FreeBSD Ports Content-Transfer-Encoding: quoted-printable Message-Id: <2EEE5E34-12BB-4F21-A5F2-17F232433BD8@yahoo.com> References: <20180407183525.2e72ee42@kan> To: Alexander Kabaev X-Mailer: Apple Mail (2.3445.6.18) 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: Sun, 08 Apr 2018 00:29:33 -0000 On 2018-Apr-7, at 3:35 PM, Alexander Kabaev wrote: > On Sat, 7 Apr 2018 15:23:50 -0700 > Mark Millard via freebsd-arm wrote: >=20 >> My attempted, xtoolchain-gcc based, amd64->aarch64 >> cross-buildworld-buildkernel failed with: >>=20 >> --- libc.so.7.full --- >> /usr/local/bin/aarch64-unknown-freebsd12.0-ld: = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= >> error loading plugin: Service unavailable collect2: error: ld >> returned 1 exit status *** [libc.so.7.full] Error code 1 >>=20 >> (I've not attempted such a build in a long time, so I do not >> know how new this is. Historically I've done lots of such >> builds. cortex-a53 was specifically targeted here.) >> . . . >=20 > IIRC, I had to disable LTO plugin in binutils and this need to > disable it was there for a while.=20 Hmm . . . # pkg info aarch64-binutils aarch64-binutils-2.30_2,1 Name : aarch64-binutils Version : 2.30_2,1 Installed on : Tue Feb 6 17:37:31 2018 PST Origin : devel/aarch64-binutils Architecture : FreeBSD:12:amd64 Prefix : /usr/local Categories : devel Licenses : GPLv3, LGPL3 Maintainer : bapt at FreeBSD.org WWW : http://sources.redhat.com/binutils/ Comment : GNU binutils for AArch64 cross-development Options : RELRO : off STATIC : on . . . (no more options listed) . . . # poudriere options -jFBSDFSSDjail -s devel/aarch64-binutils [00:00:00] Appending to make.conf: /usr/local/etc/poudriere.d/make.conf =3D=3D=3D> The following configuration options are available for = aarch64-binutils-2.30_2,1: RELRO=3Doff: enable -z relro in ELF linker by default STATIC=3Don: Build static executables and/or libraries =3D=3D=3D> Use 'make config' to modify these settings . . . Controlling LTO's presence via my port build does not seem to be the way to disable LTO. This would suggest that I need to override part of what buildworld does in order to force avoiding lto. Such would be the first time that I've run into that. Looks like I've some research to do for how. Thanks for letting me know. =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Sun Apr 8 01:51:22 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 8EA14F97C74 for ; Sun, 8 Apr 2018 01:51:22 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic301-20.consmr.mail.gq1.yahoo.com (sonic301-20.consmr.mail.gq1.yahoo.com [98.137.64.146]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 12C7171BE6 for ; Sun, 8 Apr 2018 01:51:21 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: gph0To0VM1kw9kSONz_3BBKLlyElF3GV_x.3wB8oci5knbt5nFoT.bUjSS_wH7M r1L2qbClVZzrNt0igUtHeft_lObMoYHwWYnTDf5kQcEGzVun4fA.ziu4V1dSoZh8VkooW3uAu8Oe Us9ZRyPE0zIAErx.EbWGdNjmnXWDMkxe0q4awyVShuvr6a3SzDqFY7EN5N018RyOqPJWnFxHIxAb eoLOPvxARyYpFEc2lqFdhsHKaEUqS6dN4tWwpWye36uOUfn3qfJIWI4qURbtx7P6HrxlCA_1U_1R 88zbOFt_C7DnNoPBrEA2fVtxjIYbL36u0omMmQs_BmSXZMfSzUldaPgqGZH0KqhzPWdm5OzWXOod PqJB4s4SU7RPl.7SZAxRNyvTlqWb6Bje99RGgIIFgS8pSGqUwmaWFXk9_u7q0Tf5.kRD54StTF7t fo1UL9omRYuufc9vQv0XA4avUxN9VxncCmMCOLSa9Sh8lyrWbv0HaUhLCUxWVpw0D.RsaAFNEou7 z.9KeEO5NNmEzoA.XHCKdd1OgK6DGOsPjjQ-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.gq1.yahoo.com with HTTP; Sun, 8 Apr 2018 01:51:20 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp416.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 79fad1c6c00a9c2ac155ff9053219590; Sun, 08 Apr 2018 01:00:39 +0000 (UTC) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Re: Attempting a xtoolchain-gcc head amd64->aarch64 cross buildworld failed for liblto_plugin.so loading error From: Mark Millard In-Reply-To: <2EEE5E34-12BB-4F21-A5F2-17F232433BD8@yahoo.com> Date: Sat, 7 Apr 2018 18:00:38 -0700 Cc: freebsd-arm@freebsd.org, freebsd-toolchain@freebsd.org, FreeBSD Ports Content-Transfer-Encoding: quoted-printable Message-Id: <60F5D584-4A93-4D49-94C1-209CC74ABF3A@yahoo.com> References: <20180407183525.2e72ee42@kan> <2EEE5E34-12BB-4F21-A5F2-17F232433BD8@yahoo.com> To: Alexander Kabaev X-Mailer: Apple Mail (2.3445.6.18) 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: Sun, 08 Apr 2018 01:51:22 -0000 [The static build of binutils is what gets the lto involved.] On 2018-Apr-7, at 5:29 PM, Mark Millard = wrote: > On 2018-Apr-7, at 3:35 PM, Alexander Kabaev = wrote: >=20 >> On Sat, 7 Apr 2018 15:23:50 -0700 >> Mark Millard via freebsd-arm wrote: >>=20 >>> My attempted, xtoolchain-gcc based, amd64->aarch64 >>> cross-buildworld-buildkernel failed with: >>>=20 >>> --- libc.so.7.full --- >>> /usr/local/bin/aarch64-unknown-freebsd12.0-ld: = /usr/local/libexec/gcc/aarch64-unknown-freebsd12.0/6.3.0/liblto_plugin.so:= >>> error loading plugin: Service unavailable collect2: error: ld >>> returned 1 exit status *** [libc.so.7.full] Error code 1 >>>=20 >>> (I've not attempted such a build in a long time, so I do not >>> know how new this is. Historically I've done lots of such >>> builds. cortex-a53 was specifically targeted here.) >>> . . . >>=20 >> IIRC, I had to disable LTO plugin in binutils and this need to >> disable it was there for a while.=20 >=20 > Hmm . . . >=20 > # pkg info aarch64-binutils > aarch64-binutils-2.30_2,1 > Name : aarch64-binutils > Version : 2.30_2,1 > Installed on : Tue Feb 6 17:37:31 2018 PST > Origin : devel/aarch64-binutils > Architecture : FreeBSD:12:amd64 > Prefix : /usr/local > Categories : devel > Licenses : GPLv3, LGPL3 > Maintainer : bapt at FreeBSD.org > WWW : http://sources.redhat.com/binutils/ > Comment : GNU binutils for AArch64 cross-development > Options : > RELRO : off > STATIC : on > . . . (no more options listed) . . . >=20 > # poudriere options -jFBSDFSSDjail -s devel/aarch64-binutils > [00:00:00] Appending to make.conf: = /usr/local/etc/poudriere.d/make.conf > =3D=3D=3D> The following configuration options are available for = aarch64-binutils-2.30_2,1: > RELRO=3Doff: enable -z relro in ELF linker by default > STATIC=3Don: Build static executables and/or libraries > =3D=3D=3D> Use 'make config' to modify these settings > . . . >=20 >=20 > Controlling LTO's presence via my port build does > not seem to be the way to disable LTO. >=20 > This would suggest that I need to override part > of what buildworld does in order to force avoiding > lto. Such would be the first time that I've run > into that. >=20 > Looks like I've some research to do for how. >=20 > Thanks for letting me know. I had forgotten but I'd analyzed this once before: = https://lists.freebsd.org/pipermail/freebsd-ports/2017-August/109769.html and it traced back to: STATIC=3Don: Build static executables and/or libraries for aarch64-binutils. (Static was at the time required for a poudriere/qemu mix that used aarch64-binutils.) (I do-not/did-not see such problems for powerpc64 targeted cross builds using xtoolchain material, such as powerpc64-binutils and powerpc64-gcc. This is specific to aarch64 for some reason.) So I'll see about turning STATIC off to enable buildworld. =3D=3D=3D Mark Millard marklmi26-fbsd at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Sun Apr 8 03:18:45 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 6999BF9E68F for ; Sun, 8 Apr 2018 03:18:45 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic303-21.consmr.mail.gq1.yahoo.com (sonic303-21.consmr.mail.gq1.yahoo.com [98.137.64.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E774781967 for ; Sun, 8 Apr 2018 03:18:44 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: lI47._0VM1l9aCm2eW9wAT1K6ygcYf3iHTUZ4ghZKEJdjVqUK9sxZh3S4RPyE8o TnjSr3Ju46Poj6rT8gcgER_XbYqUtrQOJIGiR8MmXD8V1NdVa9Rpa.x5Bc9JCaWd0GYqxYlzxCat JdPRldHl_wbbGdF23z.qeDuoGu.qH6M1bUn8.kGlhgg9EmTcrQwe58QJMxvsBKL.WMS8.ib1iRt6 508pD.EbfxFOQtazPYEeIIXW69xiIo0jZbqD1Wej6AmZJXUsRcaLw9pQDiWthTBAJQom5i97LcCb OZII5PVF27E0GqXqnUbcVz_XLa77v1TosI13.cjbj4TRiGUZp2Y0HaalmvHoThMubhwA7FAB_cYV ULyZbKuDHqO0teaSBs579LqJa6.qAmgxXyCZv9c_bxIV_c9_h9FhlziEU9Qfyh079zkXt9Yp0JUa Aj7r0T9ADyHZ0J8p.I6BnOXJkBMwthIGzKhfpR2D0qRR3IXo10gUFIUW5infCjqgm5XlAwOgv3j4 7XGaa32oEhCs4mh3WgLMFeXtCofE- Received: from sonic.gate.mail.ne1.yahoo.com by sonic303.consmr.mail.gq1.yahoo.com with HTTP; Sun, 8 Apr 2018 03:18:38 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp418.mail.gq1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 6b9b933433cf6fb85371f537a6d717b8; Sun, 08 Apr 2018 03:18:35 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: Attempt to xtoolchain-gcc buildworld for head with -mcpu=cortex-a53: arm64cpuid.S:23: Error: selected processor does not support . . . Message-Id: <27FB6AC2-1E38-4974-A72F-AAE4B72070AB@yahoo.com> Date: Sat, 7 Apr 2018 20:18:34 -0700 To: freebsd-toolchain@freebsd.org, freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) 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: Sun, 08 Apr 2018 03:18:45 -0000 It appears that the devel/aarch64-gcc toolchain refuses to assemble instructions that are not available to what was listed for -mcpu, even when a -march was also listed that allows such. For -mcpu=3Dcortex-a53 and a -march=3Darmv8-a+crypto : --- secure/lib/libcrypto__L --- /usr/src/crypto/openssl/crypto/arm64cpuid.S: Assembler messages: /usr/src/crypto/openssl/crypto/arm64cpuid.S:23: Error: selected = processor does not support `aese v0.16b,v0.16b' /usr/src/crypto/openssl/crypto/arm64cpuid.S:30: Error: selected = processor does not support `sha1h s0,s0' /usr/src/crypto/openssl/crypto/arm64cpuid.S:37: Error: selected = processor does not support `sha256su0 v0.4s,v0.4s' /usr/src/crypto/openssl/crypto/arm64cpuid.S:43: Error: selected = processor does not support `pmull v0.1q,v0.1d,v0.1d' See later for the command details and such for the error. This makes _armv8_aese_probe and the like unable to be assembled for -mcpu=3Dcortex-a53 . (There are 2 more source files with such potential issues.) Encoding the instructions as byte sequence values would be more likely to survive various tool chains and specifications but is likely otherwise messy. Another option might be to strip -mcpu=3D from CFLAGS, but only for processing the specific source involved. Adding "+crypto" to form -mcpu=3D+crypto might be an option (for gcc anyway). My hack to get past this was to add the +'s to form the +=3D's in: ACFLAGS.arm64cpuid.S+=3D -march=3Darmv8-a+crypto . . . ACFLAGS.aesv8-armx.S+=3D -march=3Darmv8-a+crypto . . . ACFLAGS.ghashv8-armx.S+=3D -march=3Darmv8-a+crypto for the Makefile and then to in my src.conf files also add: ACFLAGS.arm64cpuid.S+=3D -mcpu=3Dcortex-a53+crypto ACFLAGS.aesv8-armx.S+=3D -mcpu=3Dcortex-a53+crypto ACFLAGS.ghashv8-armx.S+=3D -mcpu=3Dcortex-a53+crypto (This avoided +crypto being involved elsewhere.) Supporting error details: --- secure/lib/libcrypto__L --- *** [arm64cpuid.o] Error code 1 make[4]: stopped in /usr/src/secure/lib/libcrypto .ERROR_TARGET=3D'arm64cpuid.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/sr= c/arm64.aarch64/secure/lib/libcrypto/arm64cpuid.o.meta' .MAKE.LEVEL=3D'4' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose' _ERROR_CMD=3D'/usr/local/bin/aarch64-unknown-freebsd12.0-gcc = -mcpu=3Dcortex-a53 -isystem = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/= usr/include = -L/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = -B/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = --sysroot=3D/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.= aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -O2 -pipe = -I/usr/src/crypto/openssl -DTERMIOS -DANSI_SOURCE -DOPENSSL_THREADS = -DDSO_DLFCN -DHAVE_DLFCN_H -DL_ENDIAN -DSHA1_ASM -DSHA256_ASM = -DSHA512_ASM = -I/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/se= cure/lib/libcrypto -I/usr/src/crypto/openssl/crypto = -I/usr/src/crypto/openssl/crypto/asn1 = -I/usr/src/crypto/openssl/crypto/evp = -I/usr/src/crypto/openssl/crypto/modes -g -std=3Dgnu89 = -fstack-protector-strong -Wno-pointer-sign -Wno-error=3Daddress = -Wno-error=3Darray-bounds -Wno-error=3Dattributes = -Wno-error=3Dbool-compare -Wno-error=3Dcast-align -Wno-error=3Dclobbered = -Wno-error=3Denum-compare -Wno-error=3Dextra -Wno-error=3Dinline = -Wno-error=3Dlogical-not-parentheses -Wno-error=3Dstrict-aliasing = -Wno-error=3Duninitialized -Wno-error=3Dunused-but-set-variable = -Wno-error=3Dunused-function -Wno-error=3Dunused-value = -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare = -Wno-error=3Dshift-negative-value -Wno-error=3Dtautological-compare = -Wno-error=3Dunused-const-variable -v -Wa,--noexecstack = -march=3Darmv8-a+crypto -c /usr/src/crypto/openssl/crypto/arm64cpuid.S = -o arm64cpuid.o; ;' .CURDIR=3D'/usr/src/secure/lib/libcrypto' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/secure/lib/libcrypto' .TARGETS=3D'all' = DESTDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/tmp' LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180222' = PATH=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarc= h64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/us= r/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_xtoolchain-gcc/a= rm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_xtool= chain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/cortex= A53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/sbin:/= bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' = OBJTOP=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aa= rch64' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.cortexA53-xtoolchain-gcc.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null = /usr/src/secure/lib/libcrypto/Makefile /usr/src/share/mk/bsd.own.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk = /usr/src/secure/lib/libcrypto/Makefile.man = /usr/src/secure/lib/libcrypto/Makefile.inc = /usr/src/share/mk/bsd.endian.mk /usr/src/share/mk/bsd.lib.mk = /usr/src/share/mk/bsd.init.mk /usr/src/share/mk/local.init.mk = /usr/src/share/mk/src.init.mk = /usr/src/secure/lib/libcrypto/../Makefile.inc = /usr/src/secure/lib/libcrypto/../../Makefile.inc = /usr/src/share/mk/src.opts.mk /usr/src/lib/Makefile.inc = /usr/src/share/mk/bsd.libnames.mk /usr/src/share/mk/src.libnames.mk = /usr/src/share/mk/bsd.symver.mk /usr/src/share/mk/bsd.nls.mk = /usr/src/share/mk/bsd.files.mk /usr/src/share/mk/bsd.incs.mk = /usr/src/share/mk/bsd.confs.mk /usr/src/share/mk/bsd.links.mk = /usr/src/share/mk/bsd.dep.mk /usr/src/share/mk/bsd.clang-analyze.mk = /usr/src/share/mk/bsd.obj.mk /usr/src/share/mk/bsd.subdir.mk = /usr/src/share/mk/bsd.sys.mk' .PATH=3D'. /usr/src/secure/lib/libcrypto = /usr/src/secure/lib/libcrypto/aarch64 /usr/src/crypto/openssl/crypto = /usr/src/crypto/openssl/crypto/aes /usr/src/crypto/openssl/crypto/asn1 = /usr/src/crypto/openssl/crypto/bf /usr/src/crypto/openssl/crypto/bio = /usr/src/crypto/openssl/crypto/bn /usr/src/crypto/openssl/crypto/buffer = /usr/src/crypto/openssl/crypto/camellia = /usr/src/crypto/openssl/crypto/cast /usr/src/crypto/openssl/crypto/cmac = /usr/src/crypto/openssl/crypto/cms /usr/src/crypto/openssl/crypto/comp = /usr/src/crypto/openssl/crypto/conf /usr/src/crypto/openssl/crypto/des = /usr/src/crypto/openssl/crypto/dh /usr/src/crypto/openssl/crypto/dsa = /usr/src/crypto/openssl/crypto/dso /usr/src/crypto/openssl/crypto/ec = /usr/src/crypto/openssl/crypto/ecdh /usr/src/crypto/openssl/crypto/ecdsa = /usr/src/crypto/openssl/crypto/engine /usr/src/crypto/openssl/crypto/err = /usr/src/crypto/openssl/crypto/evp /usr/src/crypto/openssl/crypto/hmac = /usr/src/crypto/openssl/crypto/idea /usr/src/crypto/openssl/crypto/krb5 = /usr/src/crypto/openssl/crypto/lhash /usr/src/crypto/openssl/crypto/md4 = /usr/src/crypto/openssl/crypto/md5 /usr/src/crypto/openssl/crypto/mdc2 = /usr/src/crypto/openssl/crypto/modes = /usr/src/crypto/openssl/crypto/objects = /usr/src/crypto/openssl/crypto/ocsp /usr/src/crypto/openssl/crypto/pem = /usr/src/crypto/openssl/crypto/pkcs12 = /usr/src/crypto/openssl/crypto/pkcs7 = /usr/src/crypto/openssl/crypto/pqueue = /usr/src/crypto/openssl/crypto/rand /usr/src/crypto/openssl/crypto/rc2 = /usr/src/crypto/openssl/crypto/rc4 /usr/src/crypto/openssl/crypto/rc5 = /usr/src/crypto/openssl/crypto/ripemd /usr/src/crypto/openssl/crypto/rsa = /usr/src/crypto/openssl/crypto/seed /usr/src/crypto/openssl/crypto/sha = /usr/src/crypto/openssl/crypto/srp /usr/src/crypto/openssl/crypto/stack = /usr/src/crypto/openssl/crypto/ts /usr/src/crypto/openssl/crypto/txt_db = /usr/src/crypto/openssl/crypto/ui = /usr/src/crypto/openssl/crypto/whrlpool = /usr/src/crypto/openssl/crypto/x509 = /usr/src/crypto/openssl/crypto/x509v3 /usr/src/secure/lib/libcrypto/man' 1 error =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Sun Apr 8 04:18:41 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 F2F70FA1FF6 for ; Sun, 8 Apr 2018 04:18:40 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) Received: from sonic315-22.consmr.mail.ne1.yahoo.com (sonic315-22.consmr.mail.ne1.yahoo.com [66.163.190.148]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 8A82D81F4C for ; Sun, 8 Apr 2018 04:18:40 +0000 (UTC) (envelope-from marklmi26-fbsd@yahoo.com) X-YMail-OSG: JzkM9UkVM1mJI_mnLhNbR1IFm7PQEuxLtHRAuWtQjSZxxqqmrLp0V4UTjQfgFtv f_95khZjBX8hTgl8Ng1N3QGlnnsi2MBI7CcNXlA2ajTshMdvqocaLXGveee_51ifu3Jus3mAW.8q 2Vjv6KGHUecv5JpQdZhp7F9vSA31GNaRwSScic2Zmh3V2nsR3YjDoSXhPjTHEb4sOotiCjuHflfO SUyUtcuCZM83uS.X.gUchBSwZRfsvj2E0i3djhTsl6JggYhTKLs1sVtSzmV9gSlV0Z4Q8C771RIU CXUGpZfrGI0eie_d0Ct2YhY6vZQlENVuI_uGr21piEGTlWgqnS_iupKGE5xXmgjMzILxRIWN1zdv vWGY7nc3lkrzeUTYLU4DtaL4D2.D55AX90v1ky5OGG7IDVmbuO7pV6X.z.AvL.WoFty6lCTD3JHz ttKuODuFVG.2NN6JphhjU9BLQi6rutE0MFyxoJ0ymL4EMBOwNJFYHW4Cqf2i1IEJCzDYo0PogRgb pGk._Et05D8JezAbcJmvvVtt17lg- Received: from sonic.gate.mail.ne1.yahoo.com by sonic315.consmr.mail.ne1.yahoo.com with HTTP; Sun, 8 Apr 2018 04:18:34 +0000 Received: from c-76-115-7-162.hsd1.or.comcast.net (EHLO [192.168.1.25]) ([76.115.7.162]) by smtp417.mail.ne1.yahoo.com (Oath Hermes SMTP Server) with ESMTPA ID 05919e714b44db5861f840386b8b9ff5; Sun, 08 Apr 2018 04:08:26 +0000 (UTC) From: Mark Millard Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.3 \(3445.6.18\)) Subject: head xtoolchain amd64 -> arm64 buildkernel attempt: locore.S: Error: unknown or missing system register name at operand (for icc_sre_el2 use) Message-Id: Date: Sat, 7 Apr 2018 21:08:25 -0700 To: freebsd-toolchain@freebsd.org, freebsd-arm@freebsd.org X-Mailer: Apple Mail (2.3445.6.18) 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: Sun, 08 Apr 2018 04:18:41 -0000 Looks like /usr/local/bin/aarch64-unknown-freebsd12.0-gcc with -x assembler-with-cpp can reject /usr/src/sys/arm64/arm64/locore.S for operand naming/syntax: icc_sre_el2 is rejected twice (in my -mcpu=3Dcortex-a53 targeted context). The register icc_sre_el2 seems to be a GIC-specific register. --- locore.o --- /usr/src/sys/arm64/arm64/locore.S: Assembler messages: /usr/src/sys/arm64/arm64/locore.S:251: Error: unknown or missing system = register name at operand 2 -- `mrs x2,icc_sre_el2' /usr/src/sys/arm64/arm64/locore.S:254: Error: unknown or missing system = register name at operand 1 -- `msr icc_sre_el2,x2' *** [locore.o] Error code 1 make[2]: stopped in = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/sys/= GENERIC-NODBG .ERROR_TARGET=3D'locore.o' = .ERROR_META_FILE=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/sr= c/arm64.aarch64/sys/GENERIC-NODBG/locore.o.meta' .MAKE.LEVEL=3D'2' MAKEFILE=3D'' .MAKE.MODE=3D'meta missing-filemon=3Dyes missing-meta=3Dyes silent=3Dyes = verbose curdirOk=3Dyes' _ERROR_CMD=3D'/usr/local/bin/aarch64-unknown-freebsd12.0-gcc = -mcpu=3Dcortex-a53 -isystem = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/= usr/include = -L/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = -B/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tm= p/usr/lib = --sysroot=3D/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.= aarch64/tmp -B/usr/local/aarch64-unknown-freebsd12.0/bin/ -c -x = assembler-with-cpp -DLOCORE -O -pipe -g -nostdinc -I. -I/usr/src/sys = -I/usr/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS = -include opt_global.h -fno-omit-frame-pointer = -mno-omit-leaf-frame-pointer -mgeneral-regs-only -ffixed-x18 = -ffreestanding -fwrapv -fstack-protector -gdwarf-2 -Wall = -Wredundant-decls -Wnested-externs -Wstrict-prototypes = -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef = -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs = -fdiagnostics-show-option -Wno-unknown-pragmas -Wno-error=3Daddress = -Wno-error=3Daggressive-loop-optimizations -Wno-error=3Darray-bounds = -Wno-error=3Dattributes -Wno-error=3Dcast-qual -Wno-error=3Denum-compare = -Wno-error=3Dinline -Wno-error=3Dmaybe-uninitialized -Wno-error=3Doverflow= -Wno-error=3Dsequence-point -Wno-error=3Dunused-but-set-variable = -Wno-error=3Dmisleading-indentation -Wno-error=3Dnonnull-compare = -Wno-error=3Dshift-overflow -Wno-error=3Dtautological-compare -v = -fno-common -fms-extensions -finline-limit=3D8000 --param = inline-unit-growth=3D100 --param large-function-growth=3D1000 = -std=3Diso9899:1999 -Werror /usr/src/sys/arm64/arm64/locore.S;' = .CURDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG' .MAKE=3D'make' = .OBJDIR=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.a= arch64/sys/GENERIC-NODBG' .TARGETS=3D'all' DESTDIR=3D'' LD_LIBRARY_PATH=3D'' MACHINE=3D'arm64' MACHINE_ARCH=3D'aarch64' MAKEOBJDIRPREFIX=3D'' MAKESYSPATH=3D'/usr/src/share/mk' MAKE_VERSION=3D'20180222' = PATH=3D'/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarc= h64/tmp/legacy/usr/sbin:/usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/us= r/src/arm64.aarch64/tmp/legacy/usr/bin:/usr/obj/cortexA53_xtoolchain-gcc/a= rm64.aarch64/usr/src/arm64.aarch64/tmp/legacy/bin:/usr/obj/cortexA53_xtool= chain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/sbin:/usr/obj/cortex= A53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/tmp/usr/bin:/sbin:/= bin:/usr/sbin:/usr/bin' SRCTOP=3D'/usr/src' OBJTOP=3D'/usr/src' .MAKE.MAKEFILES=3D'/usr/src/share/mk/sys.mk = /usr/src/share/mk/local.sys.env.mk /usr/src/share/mk/src.sys.env.mk = /root/src.configs/src.conf.cortexA53-xtoolchain-gcc.amd64-host = /usr/src/share/mk/bsd.mkopt.mk /usr/src/share/mk/src.sys.obj.mk = /usr/src/share/mk/auto.obj.mk /usr/src/share/mk/bsd.suffixes.mk = /root/src.configs/make.conf /usr/src/share/mk/local.sys.mk = /usr/src/share/mk/src.sys.mk /dev/null Makefile = /usr/src/sys/conf/kern.pre.mk /usr/src/share/mk/bsd.own.mk = /usr/src/share/mk/bsd.opts.mk /usr/src/share/mk/bsd.cpu.mk = /usr/src/share/mk/bsd.compiler.mk /usr/src/share/mk/bsd.linker.mk = /usr/src/sys/conf/kern.opts.mk /usr/src/sys/conf/kern.post.mk = /usr/src/sys/conf/kern.mk' .PATH=3D'. = /usr/obj/cortexA53_xtoolchain-gcc/arm64.aarch64/usr/src/arm64.aarch64/sys/= GENERIC-NODBG' For reference: # uname -apKU FreeBSD FBSDFSSD 12.0-CURRENT FreeBSD 12.0-CURRENT r332181M amd64 = amd64 1200061 1200061 # pkg info "*binutils" aarch64-binutils-2.30_2,1 amd64-binutils-2.30_2,1 binutils-2.30_2,1 powerpc64-binutils-2.30_2,1 # svnlite info /usr/ports/ | grep "Re[plv]" Relative URL: ^/head Repository Root: svn://svn.freebsd.org/ports Repository UUID: 35697150-7ecd-e111-bb59-0022644237b5 Revision: 466704 Last Changed Rev: 466704 =3D=3D=3D Mark Millard marklmi at yahoo.com ( dsl-only.net went away in early 2018-Mar) From owner-freebsd-arm@freebsd.org Sun Apr 8 21:00:24 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 81540FA2C08 for ; Sun, 8 Apr 2018 21:00:24 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1FB3E8207F for ; Sun, 8 Apr 2018 21:00:24 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 440FF1C82E for ; Sun, 8 Apr 2018 21:00:23 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w38L0No2042105 for ; Sun, 8 Apr 2018 21:00:23 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w38L0NN2042094 for freebsd-arm@FreeBSD.org; Sun, 8 Apr 2018 21:00:23 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <201804082100.w38L0NN2042094@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: freebsd-arm@FreeBSD.org Subject: Problem reports for freebsd-arm@FreeBSD.org that need special attention Date: Sun, 8 Apr 2018 21:00:23 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.25 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: Sun, 08 Apr 2018 21:00:24 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- New | 220297 | arch(7) rename arm64 to aarch64 respecting `uname 1 problems total for which you should take action. From owner-freebsd-arm@freebsd.org Mon Apr 9 05:49:56 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 D4662F830A5 for ; Mon, 9 Apr 2018 05:49:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 704287F070 for ; Mon, 9 Apr 2018 05:49:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B15E9211D0 for ; Mon, 9 Apr 2018 05:49:55 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w395ntIC088257 for ; Mon, 9 Apr 2018 05:49:55 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w395ntq4088256 for freebsd-arm@FreeBSD.org; Mon, 9 Apr 2018 05:49:55 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 227274] There's a conflict between various versions of stdint.h which prevent kernel build on RPi3 for r331869 Date: Mon, 09 Apr 2018 05:49:55 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: fbsd@www.zefox.net X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 09 Apr 2018 05:49:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227274 Bob Prohaska changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Closed Resolution|--- |FIXED --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Mon Apr 9 12:44:31 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 211BEFA173E for ; Mon, 9 Apr 2018 12:44:31 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id A284181F0E for ; Mon, 9 Apr 2018 12:44:30 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from imac.bk.cs.huji.ac.il ([132.65.179.42]) by kabab.cs.huji.ac.il with esmtp id 1f5W9j-000NQF-43; Mon, 09 Apr 2018 15:44:19 +0300 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Problem with regulator_shutdown() introduced in r331989 From: Daniel Braniss In-Reply-To: <20180407213413.0103754b@zeta.dino.sk> Date: Mon, 9 Apr 2018 15:44:18 +0300 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: <57F00591-C95A-46FE-B618-1BE2ABEC2216@cs.huji.ac.il> References: <20180407213413.0103754b@zeta.dino.sk> To: Milan Obuch X-Mailer: Apple Mail (2.3445.5.20) 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, 09 Apr 2018 12:44:31 -0000 i just compiled r332317 and all seems ok! danny > On 7 Apr 2018, at 22:34, Milan Obuch wrote: > > Hi, > > after some time with running slightly older sources based kernel I > decided to upgrade, but current sources based kernel does not boot on > Orange Pi Zero, maybe on other Allwinner based boards too, I did not > test them. Problem manifests itself on console with following: > > Release APs > CPU(3) applied BP hardening: not necessary > CPU(1) applied BP hardening: not necessary > CPU(2) applied BP hardening: not necessary > WARNING: WITNESS option enabled, expect reduced performance. > regulator: shuting down vcc3v0 > Trying to mount root from ufs:/dev/mmcsd0s2a [rw]... > GEOM: new disk mmcsd0 > regulator: shuting down vcc5v0 > regulator: shuting down vcc-wifi > mmc0: panic: Invalid enable count > cpuid = 0 > time = 1 > KDB: stack backtrace: > db_trace_self() at db_trace_self > pc = 0xc03be8dc lr = 0xc00bba1c (db_trace_self_wrapper+0x30) > sp = 0xc0713c90 fp = 0xc0713da8 > db_trace_self_wrapper() at db_trace_self_wrapper+0x30 > pc = 0xc00bba1c lr = 0xc01ea0d8 (vpanic+0x154) > sp = 0xc0713db0 fp = 0xc0713dd0 > r4 = 0x00000100 r5 = 0x00000001 > r6 = 0xc0431ec1 r7 = 0xc0553cc8 > vpanic() at vpanic+0x154 > pc = 0xc01ea0d8 lr = 0xc01e9ed0 (doadump) > sp = 0xc0713dd8 fp = 0xc0713dec > r4 = 0xc0431ec1 r5 = 0xc0713df4 > r6 = 0x00000000 r7 = 0x00000000 > r8 = 0xc2df0400 r9 = 0xc053b988 > r10 = 0xc1b71e80 > doadump() at doadump > pc = 0xc01e9ed0 lr = 0xc00cd9e8 (regnode_fixed_enable+0x150) > sp = 0xc0713df4 fp = 0xc0713e20 > r4 = 0x00000000 r5 = 0xc1b71e80 > regnode_fixed_enable() at regnode_fixed_enable+0x150 > pc = 0xc00cd9e8 lr = 0xc00cbb60 (regnode_stop+0x1d4) > sp = 0xc0713e28 fp = 0xc0713e48 > r4 = 0x00000000 r5 = 0xc2ded780 > r6 = 0xc2ded7b4 r7 = 0xc0504a00 > r8 = 0xc05cacc8 r9 = 0xc053b988 > r10 = 0xc05cabd0 > regnode_stop() at regnode_stop+0x1d4 > pc = 0xc00cbb60 lr = 0xc00cd2f0 (regulator_shutdown+0x9c) > sp = 0xc0713e50 fp = 0xc0713e68 > r4 = 0xc0548a54 r5 = 0xc2ded780 > r6 = 0xc0431da6 r7 = 0xc0551c8c > regulator_shutdown() at regulator_shutdown+0x9c > pc = 0xc00cd2f0 lr = 0xc0189500 (mi_startup+0x18c) > sp = 0xc0713e70 fp = 0xc0713e90 > r4 = 0xc05caccc r5 = 0x00000001 > r6 = 0xc053ac6c r7 = 0x00000000 > mi_startup() at mi_startup+0x18c > pc = 0xc0189500 lr = 0xc0000244 (_start+0x144) > sp = 0xc0713e98 fp = 0x00000000 > r4 = 0xc0000378 r5 = 0xc05e4000 > r6 = 0x42050680 r7 = 0x00c52078 > r8 = 0xc06dc000 r9 = 0x00000002 > r10 = 0x01c28000 > _start() at _start+0x144 > pc = 0xc0000244 lr = 0xc0000244 (_start+0x144) > sp = 0xc0713e98 fp = 0x00000000 > KDB: enter: panic > [ thread pid 0 tid 100000 ] > Stopped at $d.3: ldrb r15, [r15, r15, ror r15]! > db> > > I can override it with either manually entering > > set hw.regulator.disable_unused=0 > > on loader prompt, or putting line > > hw.regulator.disable_unused=0 > > into /boot/loader.conf file. > > Either way, system boots then normally and works as expected. Has > anybody any explanation what's going on? What purpose does this > function actually serve? Reading source, disabling unused regulatos > looks like a way to conserve power, but I am not sure if I think about > it the right way. Anyway, something is wrong - why has mmc0 invalid > enable count? Looks strange to me... > > Regards, > Milan > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org" From owner-freebsd-arm@freebsd.org Mon Apr 9 17:07:50 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 2B639F8F829 for ; Mon, 9 Apr 2018 17:07:50 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BBCD075F32 for ; Mon, 9 Apr 2018 17:07:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 0A88426EFF for ; Mon, 9 Apr 2018 17:07:49 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w39H7mjk044525 for ; Mon, 9 Apr 2018 17:07:48 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w39H7mjt044524 for freebsd-arm@FreeBSD.org; Mon, 9 Apr 2018 17:07:48 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 227393] Cross-compiling for armv6 fails in /usr/src/lib/libcompiler_rt Date: Mon, 09 Apr 2018 17:07:49 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: 11.0-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: bugs.freebsd.org@cheasy.de X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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, 09 Apr 2018 17:07:50 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227393 Bug ID: 227393 Summary: Cross-compiling for armv6 fails in /usr/src/lib/libcompiler_rt Product: Base System Version: 11.0-STABLE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: bugs.freebsd.org@cheasy.de On a virtual machine configured for crochet, building base system for armv6 fails: root@FreeBSD-11:/usr/src # uname -a FreeBSD FreeBSD-11.virtual 11.1-STABLE FreeBSD 11.1-STABLE #0 r331742: Thu = Mar 29 21:30:37 UTC 2018=20=20=20=20 root@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 root@FreeBSD-11:/usr/src # make XDEV=3Darm XDEV_ARCH=3Darmv6 WITH_GCC=3D1 WITH_GCC_BOOTSTRAP=3D1 WITHOUT_CLANG=3D1 WITHOUT_CLANG_BOOTSTRAP=3D1 WITHOUT_CLANG_IS_CC=3D1 xdev xdev-links ... cc -isystem /usr/armv6-freebsd/usr/include -L/usr/armv6-freebsd/usr/lib -B/usr/armv6-freebsd/usr/lib --sysroot=3D/usr/armv6-freebsd/ -O -pipe -f= pic -fvisibility=3Dhidden -DVISIBILITY_HIDDEN -I/usr/src/contrib/libcxxrt -DEMIT_SYNC_ATOMICS -g -MD -MF.depend.fixunsdfdi.o -MTfixunsdfdi.o -std=3D= gnu99=20 -c /usr/src/contrib/compiler-rt/lib/builtins/fixunsdfdi.c -o fixunsdfdi.o /usr/src/contrib/compiler-rt/lib/builtins/fixunsdfdi.c:50: warning: '__pcs_= _' attribute directive ignored cc -isystem /usr/armv6-freebsd/usr/include -L/usr/armv6-freebsd/usr/lib -B/usr/armv6-freebsd/usr/lib --sysroot=3D/usr/armv6-freebsd/ -O -pipe -fp= ic -fvisibility=3Dhidden -DVISIBILITY_HIDDEN -I/usr/src/contrib/libcxxrt -DEMIT_SYNC_ATOMICS -g -MD -MF.depend.fixunsdfsivfp.o -MTfixunsdfsivfp.o -std=3Dgnu99 -c /usr/src/contrib/compiler-rt/lib/builtins/arm/fixunsdfs= ivfp.S -o fixunsdfsivfp.o /usr/src/contrib/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S: Assembler messages: /usr/src/contrib/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S:27: Error: selected processor does not support `vmov d7,r0,r1' /usr/src/contrib/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S:28: Error: selected processor does not support `vcvt.u32.f64 s15,d7' /usr/src/contrib/compiler-rt/lib/builtins/arm/fixunsdfsivfp.S:29: Error: selected processor does not support `vmov r0,s15' *** Error code 1 Stop. make[4]: stopped in /usr/src/lib/libcompiler_rt *** Error code 1 Stop. make[3]: stopped in /usr/src *** Error code 1 Stop. make[2]: stopped in /usr/src *** Error code 1 Stop. make[1]: stopped in /usr/src *** Error code 1 Stop. make: stopped in /usr/src --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Mon Apr 9 20:47:14 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 627E5FA1ECD for ; Mon, 9 Apr 2018 20:47:14 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: from mail-it0-x22b.google.com (mail-it0-x22b.google.com [IPv6:2607:f8b0:4001:c0b::22b]) (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 DBF317CF15 for ; Mon, 9 Apr 2018 20:47:13 +0000 (UTC) (envelope-from carpeddiem@gmail.com) Received: by mail-it0-x22b.google.com with SMTP id v194-v6so12043584itb.0 for ; Mon, 09 Apr 2018 13:47:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=2q3TgfUTvHHXgEZ4Y6aQKRwWSm1QSOxj7SnuTv/ttf8=; b=OIu2O1w/D1rXeKll19BtxFvBUbm4tepRffx6ZhF4j7Po13YSnOZSORQWcV5h4Ntjav vZqXJG+Gkg2uLCBpP7yHqpPJC1K4f8XvC+5AQ7V+8WiBvmOYR+rq8b4z/Jec95Dqnt1v pUi+tB26m46BIaJRqeFPGaWElmu8MADwPG+dwIKGXl3DH9GGBFAp3RD5A3J1nwiZSWdv /AAeAVvztHsyh5W80rCCrqo3Kw7UB4WZ6H0Vl3u9aaSJcnx1xncg3Xho0jqArqheQaiT gysmYYzZp+TKbP5yyGe9kot+DZWyf5/nR158TeKn5Ql8cSeGsSRpck4ZrB68Pvf5PCWL EVDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=2q3TgfUTvHHXgEZ4Y6aQKRwWSm1QSOxj7SnuTv/ttf8=; b=tcdiw6v7GYgeUQ36OzkpDagSRcARNfIzDdYLteD6CS/TRrN5fCEBcV/aT1OPFhhYuN 6LZovjyfh2xqRtLYJ9s05OsONe26ZXewnOtsFjT3rQSXh3B4Q8x4E7lgpZ4UowuQuQC6 MDd81qcR0UeNrIunCZp4Ca7qSxe+wmpAM9AtqOOesxgSfsgKs2QVhiJd1dFGFUNedB66 UfUlMw/fA2uF6i5Vsl2zwzByoHN1AwB9Ur/ahrN4yxn7nA+FB5kroKcdGIXnRwfEzTWT E4FopVYMfz1J7ecoT8ndmiqTGCqqOhu+9YUrEuKg175lHpLEtiDx3VZYmuMBIPHIqCWx uC+Q== X-Gm-Message-State: ALQs6tCBny7x5JqcMHbXymC0Gg/vzOWOlUV29UFh58UtO3xq7U/U52CI SsHyQ47PYWIyhhsglCS2HlSvyNcEAxEFHeFCEp0I25hk X-Google-Smtp-Source: AIpwx483LAFQhWowuhnReZE8j9GBC7gqFkZLqLtVZHtRwMuZcYdNqQ0f7V/qppBGCjw4mgnreYT1U/yvYdifMCrAVjk= X-Received: by 2002:a24:a0c6:: with SMTP id o189-v6mr1614693ite.52.1523306833282; Mon, 09 Apr 2018 13:47:13 -0700 (PDT) MIME-Version: 1.0 Sender: carpeddiem@gmail.com Received: by 10.107.130.197 with HTTP; Mon, 9 Apr 2018 13:46:52 -0700 (PDT) In-Reply-To: References: From: Ed Maste Date: Mon, 9 Apr 2018 16:46:52 -0400 X-Google-Sender-Auth: sw8Y-RI4TFKgE2vX6oSDR__tAl4 Message-ID: Subject: Re: Magic incantation for Pine64 UEFI/PXE boot To: Emmanuel Vadot Cc: freebsd-arm Content-Type: text/plain; charset="UTF-8" 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, 09 Apr 2018 20:47:14 -0000 On 16 March 2018 at 20:54, Emmanuel Vadot wrote: > From U-Boot prompt : > > setenv boot_targets dhcp > (saveenv) > boot Thanks! Based on some IRC discussion I ended up with: boot_targets "dhcp mmc0" It successfully falls back to mmc0 if network boot fails (although it takes a while and tries twice). It first tries to interpret the downloaded file as a script, then downloads it again and executes it as an EFI binary - I see two dhcp invocations in bootcmd_dhcp; I suppose this is also the reason DHCP has to fail twice before fallback to mmc0. From owner-freebsd-arm@freebsd.org Tue Apr 10 07:48:58 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 69DC9F85684 for ; Tue, 10 Apr 2018 07:48:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 058BD7C20E for ; Tue, 10 Apr 2018 07:48:58 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id 510C16A89 for ; Tue, 10 Apr 2018 07:48:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w3A7mvI1062680 for ; Tue, 10 Apr 2018 07:48:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w3A7mvDa062679 for freebsd-arm@FreeBSD.org; Tue, 10 Apr 2018 07:48:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-arm@FreeBSD.org Subject: [Bug 227410] Raspberry Pi 0 W doesn't boot - rainbow screen Date: Tue, 10 Apr 2018 07:48:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: arm X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: trasz@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-arm@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 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: Tue, 10 Apr 2018 07:48:58 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D227410 Bug ID: 227410 Summary: Raspberry Pi 0 W doesn't boot - rainbow screen Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: arm Assignee: freebsd-arm@FreeBSD.org Reporter: trasz@FreeBSD.org Long story short, trying to boot 12-CURRENT SD card image results in a rain= bow screen on Raspberry Pi 0 W. The same image works just fine with Raspberry = Pi 0 (without the W). --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-arm@freebsd.org Tue Apr 10 09:41:05 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 3D1FDF8D199 for ; Tue, 10 Apr 2018 09:41:05 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 9911C76030 for ; Tue, 10 Apr 2018 09:41:04 +0000 (UTC) (envelope-from freebsd-arm@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Tue, 10 Apr 2018 11:40:56 +0200 id 00DD6048.5ACC86A8.00017EB7 Date: Tue, 10 Apr 2018 11:40:55 +0200 From: Milan Obuch To: freebsd-arm@freebsd.org Subject: Re: Problem with regulator_shutdown() introduced in r331989 Message-ID: <20180410114055.06691613@zeta.dino.sk> In-Reply-To: <57F00591-C95A-46FE-B618-1BE2ABEC2216@cs.huji.ac.il> References: <20180407213413.0103754b@zeta.dino.sk> <57F00591-C95A-46FE-B618-1BE2ABEC2216@cs.huji.ac.il> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; i386-portbld-freebsd10.4) MIME-Version: 1.0 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: Tue, 10 Apr 2018 09:41:05 -0000 On Mon, 9 Apr 2018 15:44:18 +0300 Daniel Braniss wrote: > i just compiled r332317 and all seems ok! >=20 > danny >=20 Hi, I just compiled kernel using r332349, but still the same. Workarou=C3=A1nd still needed. > > I can override it with either manually entering > >=20 > > set hw.regulator.disable_unused=3D0 > >=20 > > on loader prompt, or putting line > >=20 > > hw.regulator.disable_unused=3D0 > >=20 > > into /boot/loader.conf file. > > Regards, Milan From owner-freebsd-arm@freebsd.org Tue Apr 10 10:36:36 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 A2D22F90E7C for ; Tue, 10 Apr 2018 10:36:36 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from kabab.cs.huji.ac.il (kabab.cs.huji.ac.il [132.65.116.210]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 3664284161 for ; Tue, 10 Apr 2018 10:36:35 +0000 (UTC) (envelope-from danny@cs.huji.ac.il) Received: from bach.cs.huji.ac.il ([132.65.80.20]) by kabab.cs.huji.ac.il with esmtp id 1f5qdZ-0000Yu-N8; Tue, 10 Apr 2018 13:36:29 +0300 Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Subject: Re: Problem with regulator_shutdown() introduced in r331989 From: Daniel Braniss In-Reply-To: <20180410114055.06691613@zeta.dino.sk> Date: Tue, 10 Apr 2018 13:36:29 +0300 Cc: freebsd-arm@freebsd.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <20180407213413.0103754b@zeta.dino.sk> <57F00591-C95A-46FE-B618-1BE2ABEC2216@cs.huji.ac.il> <20180410114055.06691613@zeta.dino.sk> To: Milan Obuch X-Mailer: Apple Mail (2.3445.5.20) 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: Tue, 10 Apr 2018 10:36:36 -0000 > On 10 Apr 2018, at 12:40, Milan Obuch wrote: >=20 > On Mon, 9 Apr 2018 15:44:18 +0300 > Daniel Braniss wrote: >=20 >> i just compiled r332317 and all seems ok! >>=20 >> danny >>=20 >=20 > Hi, >=20 > I just compiled kernel using r332349, but still the same. Workarou=C3=A1= nd > still needed. >=20 >>> I can override it with either manually entering >>>=20 >>> set hw.regulator.disable_unused=3D0 >>>=20 >>> on loader prompt, or putting line >>>=20 >>> hw.regulator.disable_unused=3D0 >>>=20 >>> into /boot/loader.conf file. >>>=20 >=20 > Regards, > Milan rev is 332317 this is what I see: =E2=80=A6 Release APs CPU(3) applied BP hardening: not necessary CPU(1) applied BP hardening: not necessary CPU(2) applied BP hardening: not necessary regulator: shuting down vcc3v0 arc4random: no preloaded entropy cache regulator: shuting down vcc5v0 GEOM: new disk mmcsd0 Trying to mount root from ufs:/dev/mmcsd0s2 [rw,noatime]... mmc0: regulator: shuting down vcc-wifi setting bus width to 4 bits high speed timing mmc0: ACMD42 failed, RESULT: 4 mmc0: Card at relative address 43690 failed to set bus width GEOM_PART: partition 1 on (mmcsd0, MBR) is not aligned on 4194304 bytes GEOM_PART: partition 2 on (mmcsd0, MBR) is not aligned on 4194304 bytes uhub0: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub0 uhub3: 1 port with 1 removable, self powered random: harvesting attach, 8 bytes (4 bits) from uhub3 GEOM_PART: partition 1 on (diskid/DISK-6D6111CB, MBR) is not aligned on = 4194304 bytes uhub5: GEOM_PART: partition 2 on (diskid/DISK-6D6111CB, MBR) is not = aligned on 4194304 bytes maybe it=E2=80=99s the type of SSD? mine is SanDisk 8gb 10, also i have WITNESS et. all. to NO BTW, on my nano-neo with the latest the i2c does not work ! win some, = loose some, grrrrr. danny From owner-freebsd-arm@freebsd.org Wed Apr 11 02:57:32 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 79F05F8D8AA for ; Wed, 11 Apr 2018 02:57:32 +0000 (UTC) (envelope-from curtis@orleans.occnc.com) Received: from mta1-em1.orleans.occnc.com (mta1-em1.orleans.occnc.com [IPv6:2001:470:88e6:1::141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mta1.orleans.occnc.com", Issuer "OCCNC secondary CA (ca1a2a)" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 133A36EDF7 for ; Wed, 11 Apr 2018 02:57:32 +0000 (UTC) (envelope-from curtis@orleans.occnc.com) Received: from harbor1.v6only.occnc.com (harbor1-em2.v6only.occnc.com [IPv6:2001:470:88e6:2::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: curtis@occnc.com) by mta1-em1.orleans.occnc.com (Postfix) with ESMTPSA id 550D41250E; Tue, 10 Apr 2018 22:57:31 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orleans.occnc.com; s=curtis-orleans-20180228-204217; t=1523415451; bh=X6xfXcun8aQFbhjYWNe/Kx7QbK9HOH/qpgIEcaRhXOw=; h=To:cc:Reply-To:Subject:From:Date; b=cMZtdd4DQmPy4R4brXjeh+lIQ9r6CnlWRbj53zXsA2HYCyJRNXTezaK+ZMW+l11Gw mQO3gBhjPUnJ7kILBaMSWanAJ8QvdSttwRwlUPUbsWwxGci5z4wIPdnB+FYEHlLd7/ NS0BZp1Fk8U1Skxc7kkaMUcCZI+leZhJKwJ528tbezP4ExyKfh4a1LGqB2LOK+VNWU /WIL97dEs5CBiTPcN/6ekAMhLuK9+k4CY5gOoY5MaJ6BGrm8ivuEYSkXkqlYxLAnzD yLwICb5KPkiDski+0NqwdbZVoQRvr+EFlYSg4B55Qe6GIT0gYWOEdyM4LkN70OrUqI 7NhWf8Y2ZASIw== To: freebsd-arm@freebsd.org cc: Curtis Villamizar Reply-To: Curtis Villamizar Subject: RPi3 aka RaspberryPi3 and crochet - IMAGE_SIZE too small From: Curtis Villamizar MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <13307.1523410482.1@harbor1-em2.v6only.occnc.com> Content-Transfer-Encoding: quoted-printable Date: Tue, 10 Apr 2018 21:34:42 -0400 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: Wed, 11 Apr 2018 02:57:32 -0000 FYI- Building RPi3 with crochet and FreeBSD-current (I'm using r331537) and crochet runs out of room in the imgage. Increasing from 2GB to 3GB solves this. Might be a good idea to change GENERIC to the nodebug version at some point if using current. Curtis --- crochet/board/RaspberryPi3/setup.sh.orig 2018-03-25 04:07:27.027237000= -0400 +++ crochet/board/RaspberryPi3/setup.sh 2018-03-31 19:16:43.359150000 -040= 0 @@ -2,7 +2,7 @@ RPI3_UBOOT_PORT=3D"u-boot-rpi3" RPI3_UBOOT_BIN=3D"u-boot.bin" RPI3_UBOOT_PATH=3D"/usr/local/share/u-boot/${RPI3_UBOOT_PORT}" -IMAGE_SIZE=3D$((2000 * 1000 * 1000)) +IMAGE_SIZE=3D$((3 * 1024 * 1024 * 1024)) TARGET_ARCH=3Daarch64 TARGET=3Daarch64 DTB_REPO=3D"https://github.com/raspberrypi/firmware/blob/master/boot/" From owner-freebsd-arm@freebsd.org Fri Apr 13 19:06:11 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 5B3F7F9FBF6 for ; Fri, 13 Apr 2018 19:06:11 +0000 (UTC) (envelope-from curtis@orleans.occnc.com) Received: from mta1-em1.orleans.occnc.com (mta1-em1.orleans.occnc.com [IPv6:2001:470:88e6:1::141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mta1.orleans.occnc.com", Issuer "OCCNC secondary CA (ca1a2a)" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id F09E56C66E for ; Fri, 13 Apr 2018 19:06:10 +0000 (UTC) (envelope-from curtis@orleans.occnc.com) Received: from harbor1.v6only.occnc.com (harbor1-em2.v6only.occnc.com [IPv6:2001:470:88e6:2::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: curtis@occnc.com) by mta1-em1.orleans.occnc.com (Postfix) with ESMTPSA id 5D4A71275D; Fri, 13 Apr 2018 15:06:10 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orleans.occnc.com; s=curtis-orleans-20180228-204217; t=1523646370; bh=5DmA6KxfMRV25aQF5v2LRiHk5oGCMgJMVS1gaZbNboA=; h=To:cc:Reply-To:Subject:From:Date; b=05pzajp38YO6YeAI23SJkcFQyUwMTocIcgBebyQqPcN43XkCnwfkWto4DnsjFB+UU sQobHM7LioTFxg8r6uUK9fI303fIAabANdR362aeCdtmPDyg9oIysZIuqqmQ5kHu3/ d0wj5HAPuKWQZNojKbin04FFPSJEQrXwBNxMnYUYQO7+5RF5a1sPEAVe+8l7/AOy1A aB8zIm9gbn7ObqOg1N5GCLccTVO4Z61MGcRO7+IokiOhHHqvaQdbgYrT5Pkatz1/u0 zY/Msw7i3/nBAGAbCmcWLyqRMuP32QyPKxq4T6bBSmajgvsJ470nyhHJHovJWuFEMw DD8AXMQacnrPA== To: freebsd-arm@freebsd.org cc: Curtis Villamizar Reply-To: Curtis Villamizar Subject: Success building Orange Pi PC Plus (aka OPiPC+) using crochet From: Curtis Villamizar MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <44175.1523641428.1@harbor1-em2.v6only.occnc.com> Date: Fri, 13 Apr 2018 13:43:48 -0400 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: Fri, 13 Apr 2018 19:06:11 -0000 FYI- I have a build using crochet for Orange Pi PC Plus that works fine. Instructions are at http://occnc.com/info/arm64/NOTES.html There are some contributions to crochet but I'm not sure what the right way is to submit patches and additions to crochet is. I added a bug report to add the sysutils/u-boot-orangepi-pc-plus port https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=227506 The rest is crochet related. I added a new crochet board directory. One kernel bug that causes a panic at startup was worked around by disabling the mixer/codec in a dts file but that bug seems to be reported twice already so no sense piling on. btw- I have a pair of Orange Pi One boards on order and will try that when I get those. The HDMI is not working so you need to use a serial console. Curtis From owner-freebsd-arm@freebsd.org Fri Apr 13 21:04:24 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 1294DF81578 for ; Fri, 13 Apr 2018 21:04:24 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from out3-smtp.messagingengine.com (out3-smtp.messagingengine.com [66.111.4.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B71A168462 for ; Fri, 13 Apr 2018 21:04:23 +0000 (UTC) (envelope-from brd@FreeBSD.org) Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id BEB7521784 for ; Fri, 13 Apr 2018 17:04:22 -0400 (EDT) Received: from web6 ([10.202.2.216]) by compute5.internal (MEProxy); Fri, 13 Apr 2018 17:04:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=KtN31K 03qcGlY+5y+YToFosCgacLo9H0bWRqKo7Mkc8=; b=k2gSFvIVcA8pevW6RV1QQJ L9aPydp6c+lDkGVBoQvmBEStPslxyZ/CWb9Cw7EAgFvLvd8IaFHIvexTx0lfA36l 9vfbXnhl5oYopH+L8zRrMkRCRXPgvhnB91np/J6f8AcR0h0NsRn2be5ZzipzxL96 mIIQxNixWF0VpjWRvW0VSP9WRsdsq404LMtctVssSLJ4Ik9vbNkKAySNoyEOBPQ2 qlf58CllFBF5mWc0vsNRmkenXZGq5IxXXilpqch2bJzEqgwjj7Q/EEpJSLfKlzsh sy31VjwhG7m+VJy0h+SZyPBwwkx4s/IMgV7EFhB/9wFxC6LnbiGfgtZM/xSB0SlQ == X-ME-Sender: Received: by mailuser.nyi.internal (Postfix, from userid 99) id 745354133; Fri, 13 Apr 2018 17:04:22 -0400 (EDT) Message-Id: <1523653462.2951986.1337383960.6D5B3105@webmail.messagingengine.com> From: Brad Davis To: freebsd-arm@freebsd.org MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" X-Mailer: MessagingEngine.com Webmail Interface - ajax-a1de26f4 In-Reply-To: References: Subject: Re: Success building Orange Pi PC Plus (aka OPiPC+) using crochet Date: Fri, 13 Apr 2018 15:04:22 -0600 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: Fri, 13 Apr 2018 21:04:24 -0000 On Fri, Apr 13, 2018, at 11:43 AM, Curtis Villamizar wrote: > FYI- > > I have a build using crochet for Orange Pi PC Plus that works fine. > > Instructions are at http://occnc.com/info/arm64/NOTES.html > > There are some contributions to crochet but I'm not sure what the > right way is to submit patches and additions to crochet is. Awesome! Just submit a pull request on github. Regards, Brad Davis From owner-freebsd-arm@freebsd.org Sat Apr 14 03:44:59 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 F3EE9F9E53D for ; Sat, 14 Apr 2018 03:44:58 +0000 (UTC) (envelope-from curtis@orleans.occnc.com) Received: from mta1-em1.orleans.occnc.com (mta1-em1.orleans.occnc.com [IPv6:2001:470:88e6:1::141]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mta1.orleans.occnc.com", Issuer "OCCNC secondary CA (ca1a2a)" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id A264D7E2CD; Sat, 14 Apr 2018 03:44:58 +0000 (UTC) (envelope-from curtis@orleans.occnc.com) Received: from harbor1.v6only.occnc.com (harbor1-em2.v6only.occnc.com [IPv6:2001:470:88e6:2::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) (Authenticated sender: curtis@occnc.com) by mta1-em1.orleans.occnc.com (Postfix) with ESMTPSA id EAB6A1279A; Fri, 13 Apr 2018 23:44:57 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=orleans.occnc.com; s=curtis-orleans-20180228-204217; t=1523677498; bh=fvFYpPyQkwLRcnl9HjNU0rqYJAXBnDdTSziOltXENP8=; h=To:cc:Reply-To:From:Subject:In-reply-to:Date; b=ih7j1SdQvq9Grl7GRdIQyJMuSt9g91Wa6XFab4w2RaSQ+cChUO0+zSjvQ5p/jAHA8 HfrWUPQA8t5BTkKfBw/tF3SbYalSjEAxF+TcwrtucFEzIfd1rxAydOpr/8zooNNWmr BUD8FUz+xy/8DpH4vHbuJLtrgKAFFj1khvhPADLgLJ5d0gDekPZPvvVnid8wPbQxHw U1HKdSfcd0G/GpwGKVUn334arZmw1m8wsbtHUYRzVROa6apDmtk6q484+6DSK7uhKB gUx6dRxUEjhJqCmV59XWoEGBzMB6AuNcgkaIKXBoGwAYBRaiyp6vQw/COYw7v1IiPm M+VXLsAFVs4FQ== To: freebsd-arm@freebsd.org cc: Brad Davis , Curtis Villamizar Reply-To: Curtis Villamizar From: Curtis Villamizar Subject: Re: Success building Orange Pi PC Plus (aka OPiPC+) using crochet In-reply-to: <1523653462.2951986.1337383960.6D5B3105@webmail.messagingengine.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <53392.1523672555.1@harbor1-em2.v6only.occnc.com> Content-Transfer-Encoding: quoted-printable Date: Fri, 13 Apr 2018 22:22:35 -0400 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: Sat, 14 Apr 2018 03:44:59 -0000 In message Curtis Villamizar writes: > = > > On Fri, Apr 13, 2018, at 11:43 AM, Curtis Villamizar wrote: > > > FYI- > > > = > > > I have a build using crochet for Orange Pi PC Plus that works fine. > > > = > > > Instructions are at http://occnc.com/info/arm64/NOTES.html > > > = > > > There are some contributions to crochet but I'm not sure what the > > > right way is to submit patches and additions to crochet is. > > = > > Awesome! Just submit a pull request on github. > > = > > Regards, > > Brad Davis > = > = > Brad, > = > You must have mistaken me for someone with a clue. > = > Could you be more explicit. > = > Curtis Can't get github.com to work so here are git diffs. Please push/pull/whatever on my behalf. Also please keep me on the Cc since I'm not subscribed. Curtis diff --git a/board/OrangePi-PC-Plus/opipc+-workaround.dts b/board/OrangePi= -PC-Plus/opipc+-workaround.dts new file mode 100644 index 0000000..f5c6e94 --- /dev/null +++ b/board/OrangePi-PC-Plus/opipc+-workaround.dts @@ -0,0 +1,6 @@ +#include "sun8i-h3-orangepi-pc-plus.dts" + +&codec { + status =3D "disabled"; +}; + = diff --git a/board/OrangePi-PC-Plus/overlay/etc/fstab b/board/OrangePi-PC-= Plus/overlay/etc/fstab new file mode 100644 index 0000000..09ccd82 --- /dev/null +++ b/board/OrangePi-PC-Plus/overlay/etc/fstab @@ -0,0 +1,6 @@ +/dev/mmcsd0s1 /boot/msdos msdosfs rw,noatime 0 0 +/dev/mmcsd0s2a / ufs rw,noatime 1 1 +md /tmp mfs rw,noatime,-s30m 0 0 +md /var/log mfs rw,noatime,-s15m 0 0 +md /var/tmp mfs rw,noatime,-s12m 0 0 + diff --git a/board/OrangePi-PC-Plus/overlay/etc/rc.conf b/board/OrangePi-P= C-Plus/overlay/etc/rc.conf new file mode 100644 index 0000000..602326d --- /dev/null +++ b/board/OrangePi-PC-Plus/overlay/etc/rc.conf @@ -0,0 +1,15 @@ +hostname=3D"orangepi-pc-plus" +ifconfig_awg0=3D"DHCP" +sshd_enable=3D"YES" + +# Nice if you have a network, else annoying. +#ntpd_enable=3D"YES" +ntpd_sync_on_start=3D"YES" + +# Uncomment to disable common services (more memory) +#cron_enable=3D"NO" +#syslogd_enable=3D"NO" + +sendmail_submit_enable=3D"NO" +sendmail_outbound_enable=3D"NO" +sendmail_msp_queue_enable=3D"NO" diff --git a/board/OrangePi-PC-Plus/setup.sh b/board/OrangePi-PC-Plus/setu= p.sh new file mode 100644 index 0000000..0e26528 --- /dev/null +++ b/board/OrangePi-PC-Plus/setup.sh @@ -0,0 +1,110 @@ +KERNCONF=3DGENERIC +UBLDR_LOADADDR=3D0x42000000 +SUNXI_UBOOT=3D"u-boot-orangepi-pc-plus" +SUNXI_UBOOT_BIN=3D"u-boot.img" +# image size fits a 2+ GB root image in first UFS partition +IMAGE_SIZE=3D$((3 * 1000 * 1000 * 1000)) +TARGET_ARCH=3Darmv6 + +FREEBSD_SRC=3D/usr/src +# BOARD_BOOT_MOUNTPOINT +# BOARD_FREEBSD_MOUNTPOINT +# BOARD_CURRENT_MOUNTPOINT + +UBOOT_PATH=3D"/usr/local/share/u-boot/${SUNXI_UBOOT}" + +allwinner_partition_image ( ) { + echo "Installing U-Boot files" + dd if=3D${UBOOT_PATH}/u-boot-sunxi-with-spl.bin conv=3Dnotrunc,sync \ + of=3D/dev/${DISK_MD} bs=3D1024 seek=3D8 + dd if=3D${UBOOT_PATH}/u-boot.img conv=3Dnotrunc,sync \ + of=3D/dev/${DISK_MD} bs=3D1024 seek=3D40 + disk_partition_mbr + disk_fat_create 32m 16 1m + # note: /usr/{local,ports} elsewhere - 2.5g for base + disk_ufs_create `expr 5 \* 512`m + # rest of disk - either use growfs on prior or add partitions if need= ed + #disk_ufs_create ... +} +strategy_add $PHASE_PARTITION_LWW allwinner_partition_image + +allwinner_check_uboot ( ) { + uboot_port_test ${SUNXI_UBOOT} ${SUNXI_UBOOT_BIN} +} +strategy_add $PHASE_CHECK allwinner_check_uboot + +strategy_add $PHASE_BUILD_OTHER freebsd_ubldr_build \ + UBLDR_LOADADDR=3D${UBLDR_LOADADDR} +strategy_add $PHASE_BOOT_INSTALL freebsd_ubldr_copy_ubldr . + +make_workaround_fdt ( ) { + mkdir -p ${WORKDIR}/opipc+ + # note: the echo expands the directory variables + cmd=3D`echo MACHINE=3Darm /usr/src/sys/tools/fdt/make_dtb.sh \ + ${FREEBSD_SRC}/sys ${BOARDDIR}/opipc+-workaround.dts \ + ${WORKDIR}/opipc+` + echo =3D=3D=3D Running: $cmd =3D=3D=3D + sh -c "$cmd" + if [ $? !=3D 0 ] ; then + echo make_workaround_fdt: command failed + echo " " $cmd + exit 1 + fi +} + +copy_workaround_fdt ( ) { + destdir=3D$1 + if [ x =3D "x$destdir" ] ; then + echo make_workaround_fdt: needs a destination directory argument + exit 1 + else + if [ "x$destdir" =3D xboot ] ; then + destdir=3D${BOARD_BOOT_MOUNTPOINT} # not set at define time + elif [ "x$destdir" =3D xbsd ] ; then + destdir=3D${BOARD_FREEBSD_MOUNTPOINT}/boot/dtb + fi + if [ ! -d $destdir ] ; then + echo make_workaround_fdt: $destdir is not a directory + exit 1 + fi + fi + echo =3D=3D=3D Copy dtb file to ${destdir}/sun8i-h3-orangepi-pc-plus.= dtb =3D=3D=3D + cp ${WORKDIR}/opipc+/opipc+-workaround.dtb \ + ${destdir}/sun8i-h3-orangepi-pc-plus.dtb +} + +#strategy_add $PHASE_BOOT_INSTALL freebsd_install_fdt \ +# ../gnu/dts/arm/sun8i-h3-orangepi-pc-plus.dts \ +# ${BOARD_BOOT_MOUNTPOINT}/sun8i-h3-orangepi-pc-plus.dtb +#strategy_add $PHASE_FREEBSD_BOARD_INSTALL freebsd_install_fdt \ +# ../gnu/dts/arm/sun8i-h3-orangepi-pc-plus.dts \ +# ${BOARD_FREEBSD_MOUNTPOINT}/boot/dtb/orangepi-pc-plus.dtb + +# compiles dts twice but no big deal +strategy_add $PHASE_BOOT_INSTALL make_workaround_fdt +strategy_add $PHASE_BOOT_INSTALL copy_workaround_fdt boot +strategy_add $PHASE_FREEBSD_BOARD_INSTALL copy_workaround_fdt bsd + +make_boot_install_boot_scr_file ( ) { + echo "echo \"Loading U-boot loader: ubldr.bin\"" \ + > ${BOARD_BOOT_MOUNTPOINT}/boot.cmd +# not sure if we need to pre-load the dtb file +# echo "" \ +# >> ${BOARD_BOOT_MOUNTPOINT}/boot.cmd + echo "load \${devtype} \${devnum}:${distro_bootpart}"\ + "${UBLDR_LOADADDR}" ubldr.bin \ + >> ${BOARD_BOOT_MOUNTPOINT}/boot.cmd + echo "go ${UBLDR_LOADADDR}" \ + >> ${BOARD_BOOT_MOUNTPOINT}/boot.cmd + mkimage -A arm -T script -C none -n "Boot Commands" \ + -d ${BOARD_BOOT_MOUNTPOINT}/boot.cmd \ + ${BOARD_BOOT_MOUNTPOINT}/boot.scr +} +strategy_add $PHASE_FREEBSD_BOARD_INSTALL make_boot_install_boot_scr_file + +# BeagleBone puts the kernel on the FreeBSD UFS partition. +strategy_add $PHASE_FREEBSD_BOARD_INSTALL board_default_installkernel . +# overlay/etc/fstab mounts the FAT partition at /boot/msdos +strategy_add $PHASE_FREEBSD_BOARD_INSTALL mkdir -p boot/msdos +# ubldr help and config files go on the UFS partition (after boot dir exi= sts) +strategy_add $PHASE_FREEBSD_BOARD_INSTALL freebsd_ubldr_copy boot