From owner-freebsd-arm@freebsd.org Wed Jun 22 12:33:44 2016 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 25F04AC56C9 for ; Wed, 22 Jun 2016 12:33:44 +0000 (UTC) (envelope-from usenet@ulrich-grey.de) Received: from mo6-p00-ob.smtp.rzone.de (mo6-p00-ob.smtp.rzone.de [IPv6:2a01:238:20a:202:5300::7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.smtp.rzone.de", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BF4201AFD for ; Wed, 22 Jun 2016 12:33:42 +0000 (UTC) (envelope-from usenet@ulrich-grey.de) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1466598819; l=1486; s=domk; d=ulrich-grey.de; h=Content-Transfer-Encoding:Content-Type:Mime-Version:Subject:To:From: Date; bh=kkDRCBta1mnUBFHTZMCdnl7ZqADnCH9Ez8gYFMC4pvA=; b=Ft6V/yKHGmiKQIYYPC5yCQFhCWM8dEpomLF9PRxOGRQqFeriGGJmQkLlCoDBnKtMbmk B0JfcPxlUUgiKlJN93h2aVMPg8lUekOk3++GSw0i5MHSAJcKOB2LobS74/FpzYhVV50kf Wr2diN1xaNnBvto6NcVZ94/9nBUa17Lk+cc= X-RZG-AUTH: :OX8Be0W8W+pMC3rDLL/lo2xV/LZTbZkYhOcjg8suic3iYr/B8J9Lzp3TJg49sMv7uA== X-RZG-CLASS-ID: mo00 Received: from work (p54869E05.dip0.t-ipconnect.de [84.134.158.5]) by smtp.strato.de (RZmta 38.6 DYNA|AUTH) with ESMTPSA id j06d4es5MCXcMAe (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (curve secp521r1 with 521 ECDH bits, eq. 15360 bits RSA)) (Client did not present a certificate) for ; Wed, 22 Jun 2016 14:33:38 +0200 (CEST) Date: Wed, 22 Jun 2016 14:33:37 +0200 From: Ulrich Grey To: freebsd-arm@freebsd.org Subject: FreeBSD CURRENT on CUBOX-i 4x4-300-D using 4GB RAM Message-Id: <20160622143337.367658276477078d6dff779f@ulrich-grey.de> Organization: - X-Mailer: Sylpheed 3.4.3 (GTK+ 2.24.28; armv6-portbld-freebsd11.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 Jun 2016 12:33:44 -0000 I have built a new u-boot using sysutils/u-boot-cubox-hummingboard, but substituting the u-boot source tree from ports with a freshly cloned one: git clone https://github.com/SolidRun/u-boot-imx6.git Applying the patches from the port delivered a rejected chunk whom I have applied "manually". After building I have copied the u-boot.imx file to the image file as described in the README file. Booting the system, ca. 4GB (instead of 2GB) of RAM was recognized: FreeBSD 11.0-ALPHA3 #2 r301815M: Sat Jun 11 05:11:51 UTC 2016 root@wqtest.intranet:/usr/obj/usr/src/sys/IMX6 arm FreeBSD clang version 3.8.0 (tags/RELEASE_380/final 262564) (based on LLVM 3.8.0) VT: init without driver. CPU: Cortex A9-r2 rev 10 (Cortex-A core) Supported features: ARM_ISA THUMB2 JAZELLE THUMBEE ARMv4 Security_Ext WB enabled LABT branch prediction disabled LoUU:2 LoC:2 LoUIS:2 Cache level 1: 32KB/32B 4-way data cache WB Read-Alloc Write-Alloc 32KB/32B 4-way instruction cache Read-Alloc real memory = 4025483264 (3839 MB) avail memory = 3933708288 (3751 MB) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs But I was not able to use the external USB harddisks. I got error messages like: usb_err_nomem kstack allocation failed. After I added kern.nbuf="8000" to /boot/loader.conf, the error messages disappeared. The value "8000" is a guess, the old value was around 7100. As a test I have successfully build a new kernel. Only USB1 port is working.