From owner-freebsd-arm@freebsd.org Fri Feb 24 17:57:26 2017 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E75D5CEBA36 for ; Fri, 24 Feb 2017 17:57:26 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: from mail-qt0-x236.google.com (mail-qt0-x236.google.com [IPv6:2607:f8b0:400d:c0d::236]) (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 9FF98B8E for ; Fri, 24 Feb 2017 17:57:26 +0000 (UTC) (envelope-from shawn.webb@hardenedbsd.org) Received: by mail-qt0-x236.google.com with SMTP id r45so22694537qte.3 for ; Fri, 24 Feb 2017 09:57:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hardenedbsd-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=nbqWNAQSOp6xKsdqcJpjCAHrhGaJOXgDCPPly2Q9mFM=; b=RJm1H6ZPby4VkqA9g7NujvgVdURogof3K70U9xthViaqHWoCbzw/jFeWZXO/2vmDqP WJTtacdfXBtB6mgeH9+sMv/qGTonKN0BySfvUhzWnphPeLdY2qBJ9UFF10U7sr/pZ5on 6CMLIKtFlB9iM/BJd9+z/lkcTVF5pN+TgkGEb/2llfVEvOsuPghLmHM/D/JmLpcqdW+e 3vA+6RD1yw6C8YpGczvFa6o0wlsFiG/hUTm+Y3cXbE7w1IoBvocXsS3LbqdiabeZMegA 1gCAWH8XBMcTgQyfoizP3iPlwma06MriWYmChJIVWYjj9Jcs0vpEZ8zhozVEzi8vqPR0 9yIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=nbqWNAQSOp6xKsdqcJpjCAHrhGaJOXgDCPPly2Q9mFM=; b=HvSI0J7NTx8s4jfNgsiizTL+clmzPzBtH1Q9QsknPFhpfTnPxJRNf779ewnVQaCOlj NhUYAFTA6kEnfePbJoezySd0ZpNjN27BQM0bjsOol09rlRBjcjw2iuNrBinpf1t33E4a 3kOo7dDJzmKMmHUPLS5XBO61jW7xboArmnecUK5i9fvfwVo3ugtql0ziUl6t1CVpOzrH m6CcLUvtjoF8gGMY5UVsbZcY6XVWWO98+mV1VpaxoS6A+ZN1Q/UX3xP/KSRMxdvo7IUG ffB9EeXP3VbduNs2V2ZTp8o/WuC9esHwC4xTpkO3sPF3eAFt4v4cSiZ4NKpJx1cZ4HUx 67+Q== X-Gm-Message-State: AMke39ngXdPAt8lxBaUqnqFtzqA5coWzexdn/BG8Ms22UOxn7XOZ/gacCFQHTF9/t0rf3J68 X-Received: by 10.200.36.81 with SMTP id d17mr3705649qtd.99.1487959045634; Fri, 24 Feb 2017 09:57:25 -0800 (PST) Received: from mutt-hbsd ([63.88.83.66]) by smtp.gmail.com with ESMTPSA id 30sm5231781qtr.38.2017.02.24.09.57.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 24 Feb 2017 09:57:24 -0800 (PST) Date: Fri, 24 Feb 2017 12:57:24 -0500 From: Shawn Webb To: Milan Obuch Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD on Pine64 experience Message-ID: <20170224175724.25y7a6jeubxlzusc@mutt-hbsd> References: <20170220124619.7f04ad6a@zeta.dino.sk> <20170224182831.76c15809@zeta.dino.sk> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="65337z2jv62m22xr" Content-Disposition: inline In-Reply-To: <20170224182831.76c15809@zeta.dino.sk> X-Operating-System: FreeBSD mutt-hbsd 12.0-CURRENT-HBSD FreeBSD 12.0-CURRENT-HBSD X-PGP-Key: http://pgp.mit.edu/pks/lookup?op=vindex&search=0x6A84658F52456EEE User-Agent: NeoMutt/20170206 (1.7.2) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Feb 2017 17:57:27 -0000 --65337z2jv62m22xr Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Feb 24, 2017 at 06:28:31PM +0100, Milan Obuch wrote: > On Mon, 20 Feb 2017 12:46:19 +0100 > Milan Obuch wrote: >=20 > > Hi, > >=20 > > some time ago I've got Pine64 board with 1 GB RAM. I decided to put > > FreeBSD on it as I saw arm64 architecture being worked on. First I > > tried to build u-boot, it worked somehow, but I was not able to find > > out the way boot works here, and did not find much time to play > > afterwards. >=20 > I completed full rebuild with sources at svn revision 313999 now. It > took almost four days... but no problems so far, everything seems to be > stable, just some spurious interrupts were detected over the build, > maybe ten over those four days. >=20 > [ snip ] >=20 > > env ABI=3DFreeBSD:11:aarch64 pkg install aarch64-binutils > >=20 > > which installed both pkg and aarch64-binutils packages. I know from my > > earlier attempts to cross compile world for arm64 it was enough to > > build world, but it was not enough for native build. Trouble was our > > build environment is sanitized and aarch64-binutils package is > > installed into /usr/local/aarch64-freebsd/{bin,lib} directories, so > > they are not in path. I did not find other way to get it working > > without too much fussing with makefiles et all, but simple crude hack > > worked - I created links with > >=20 > > ln -s /usr/local/aarch64-freebsd/bin/* /bin > > >=20 > Actually only ld needs this, so >=20 > ln -s /usr/local/aarch64-freebsd/bin/ld /bin >=20 > was enough. Also, with no deeper analysis, it seems it is necessary > just for early stage of building toolchain (beginning of 'make > buildworld'). And now, after svn upgrade to version 314213, it seems to > be not necessary anymore... I just fired next buildworld... >=20 > > Nothing more was necessary for native buildworld/buildkernel to > > succeed. At this point after nfs mounting /usr/port I was able to > > build ports. > >=20 > > When trying installworld, it proceeded almost flawlessly, just at the > > end following error was reported: > >=20 > > =3D=3D=3D> etc (install) > > =3D=3D=3D> etc/newsyslog.conf.d (install) > > =3D=3D=3D> etc/sendmail (install) =20 > > cd /usr/src/etc/../share/man; make makedb > > makewhatis /usr/share/man > > makewhatis /usr/share/openssl/man > > : /usr/src/lib/libc/../../contrib/jemalloc/include/jemalloc/i= nternal/tsd.h:687: > > Failed assertion: "tsd_booted" *** Signal 6 > > >=20 > This problem remains, at least it occured again this time. Until the root cause of this problem is found, you can workaround it by disabling tcache via malloc.conf: ln -s tcache:false /etc/malloc.conf Thanks, --=20 Shawn Webb Cofounder and Security Engineer HardenedBSD GPG Key ID: 0x6A84658F52456EEE GPG Key Fingerprint: 2ABA B6BD EF6A F486 BE89 3D9E 6A84 658F 5245 6EEE --65337z2jv62m22xr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEKrq2ve9q9Ia+iT2eaoRlj1JFbu4FAliwdAEACgkQaoRlj1JF bu6i5w//S3CPF+coT/3SKJkV6jgWZjjynXvYYARxx9moia1YT3ElNk5kbH/j3v08 yyR4hhdIJed5j7xWvRImi6oQeJWtl+QE3ihBcL373t+GHN2DhGFU7DQT3uwbIphx pUoYXhGfw/AD16rI9nUGzYtXqLSHNHw7T6mjpX2SLXQN0/V0U9XOyy/1jg57XGxf 29pwMpCE6klSj4t12hYAlRBLxl2nQG+LD9x5T34oogKEaNeFzHzMgzmeWQ6O22oH I7Beg6Emp8TyiiVydxH09bMSJECl/JAdvz21BiWV19EhLPkT90G7MFSGrw8bjhQO y+GTGcJHuGIsmnOB8D+o0M19C9lSJ6Rezb0IZhPaho9F7yFCLIyy8jJk47uKcYiz FIaIZHVC3SBCUWKUMh3SepeOjGy7sDbS52RfCDda0fDavxmSxNesRNQv25gO3rvK w5n0m6N/FjMXpYZb0DIMeZOscD7WsSZMAGf1n7u7OAoRDuBwHiXlJJ83mjmpnuGm df1p9iYdemRW1D5rEZNglEmInF4iJiCgQ9aacjnB/7UcXQWA/kkERIbs5MwudL0u Aq3r4BzdMovR0lDbbVCofoM2NRMjGlPmkSrGLQJ9CZQhVQ16wqx2w0IZ/3aFITtO xYfh1XXDAODsXihZpua7U5euhi2iqUq0QIdFPylDT+NatIbD1J0= =ctfI -----END PGP SIGNATURE----- --65337z2jv62m22xr--