From owner-freebsd-arm@FreeBSD.ORG Sun Aug 15 11:55:41 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5058E106567A for ; Sun, 15 Aug 2010 11:55:41 +0000 (UTC) (envelope-from john@thinlinx.com) Received: from nschwqsrv02p.mx.bigpond.com (nschwqsrv02p.mx.bigpond.com [61.9.189.234]) by mx1.freebsd.org (Postfix) with ESMTP id E2FE58FC19 for ; Sun, 15 Aug 2010 11:55:40 +0000 (UTC) Received: from nschwotgx03p.mx.bigpond.com ([203.36.172.54]) by nschwmtas06p.mx.bigpond.com with ESMTP id <20100815105516.BSEA26010.nschwmtas06p.mx.bigpond.com@nschwotgx03p.mx.bigpond.com> for ; Sun, 15 Aug 2010 10:55:16 +0000 Received: from [192.168.25.1] (really [203.36.172.54]) by nschwotgx03p.mx.bigpond.com with ESMTP id <20100815105515.YEUS16083.nschwotgx03p.mx.bigpond.com@[192.168.25.1]> for ; Sun, 15 Aug 2010 10:55:15 +0000 From: John Nicholls To: freebsd-arm@freebsd.org Content-Type: text/plain Date: Sun, 15 Aug 2010 20:53:50 +1000 Message-Id: <1281869630.24339.63.camel@xeon.thinmesh.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A090202.4C67C794.00BE,ss=1,fgs=0 Subject: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 11:55:41 -0000 Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic work they have done with the FreeBSD port to the AT91SAM9G20. Great to see FreeBSD gaining more traction in the embedded World :) I have a couple of questions, (1) I noticed a significant performance boost under Linux when Linux ARM moved to EABI, are there any plans for a EABI FreeBSD version? http://wiki.debian.org/ArmEabiPort (2) I can build a Linux image which contains the Kernel and a root file system in one file which is great for network booting, can I do something similar with FreeBSD? From owner-freebsd-arm@FreeBSD.ORG Sun Aug 15 14:57:02 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 590FE1065697 for ; Sun, 15 Aug 2010 14:57:02 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1D4BD8FC18 for ; Sun, 15 Aug 2010 14:57:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7FEqdVZ038574; Sun, 15 Aug 2010 08:52:39 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 15 Aug 2010 08:53:12 -0600 (MDT) Message-Id: <20100815.085312.690091871549704621.imp@bsdimp.com> To: john@thinlinx.com From: "M. Warner Losh" In-Reply-To: <1281869630.24339.63.camel@xeon.thinmesh.com> References: <1281869630.24339.63.camel@xeon.thinmesh.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 14:57:02 -0000 In message: <1281869630.24339.63.camel@xeon.thinmesh.com> John Nicholls writes: : Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic work : they have done with the FreeBSD port to the AT91SAM9G20. Great to see : FreeBSD gaining more traction in the embedded World :) : : I have a couple of questions, : : (1) I noticed a significant performance boost under Linux when Linux ARM : moved to EABI, are there any plans for a EABI FreeBSD version? : : http://wiki.debian.org/ArmEabiPort People have talked about it, but so far nothing concrete has been done, to my knowledge. : (2) I can build a Linux image which contains the Kernel and a root file : system in one file which is great for network booting, can I do : something similar with FreeBSD? Yes. You can add MD_ROOT and MD_ROOT_SIZE to your kernel config file. MD_ROOT_SIZE sets the size of the ram disk. You can build an image from a directory tree using makefs. You can use sys/tools/embed_mfs.sh into the image. Much of this can be automated with the MFS_IMAGE makeoption on arm. Warner From owner-freebsd-arm@FreeBSD.ORG Sun Aug 15 20:15:43 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E12021065693 for ; Sun, 15 Aug 2010 20:15:43 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id AF53F8FC13 for ; Sun, 15 Aug 2010 20:15:43 +0000 (UTC) Received: from compute2.internal (compute2.internal [10.202.2.42]) by gateway1.messagingengine.com (Postfix) with ESMTP id D18F22A7; Sun, 15 Aug 2010 16:15:42 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute2.internal (MEProxy); Sun, 15 Aug 2010 16:15:42 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=vgBDVbNer7tRz+aXvtMRE+p2RmE=; b=RzJpMGLCKtjLxlnNPMw3Q2JYHWFMOaQMdmNl/jjOirDjBFYc+tTPYbBMqo9UxbMZGQaPE/kDBbqN+KxieX3BDFpRHCWtuZe/VO3kgCKd4gTGRO0MZiLYX5RgGdYMB0HcrZ98J64DwWjj5+II71O2Q6/XZG1oUAq5tUPUBAk007Q= X-Sasl-enc: Qy8CZGzk5rdgNjr5JoYFYJ6KdBpBNuvRM3zfLQp80+TF 1281903342 Received: from localhost (8.241.69.111.dynamic.snap.net.nz [111.69.241.8]) by mail.messagingengine.com (Postfix) with ESMTPA id 4669B405356; Sun, 15 Aug 2010 16:15:41 -0400 (EDT) Date: Mon, 16 Aug 2010 08:15:33 +1200 From: Andrew Turner To: "M. Warner Losh" Message-ID: <20100816081533.30ff461f@fubar.geek.nz> In-Reply-To: <20100815.085312.690091871549704621.imp@bsdimp.com> References: <1281869630.24339.63.camel@xeon.thinmesh.com> <20100815.085312.690091871549704621.imp@bsdimp.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 20:15:44 -0000 On Sun, 15 Aug 2010 08:53:12 -0600 (MDT) "M. Warner Losh" wrote: > In message: <1281869630.24339.63.camel@xeon.thinmesh.com> > John Nicholls writes: > : Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic > work : they have done with the FreeBSD port to the AT91SAM9G20. Great > to see : FreeBSD gaining more traction in the embedded World :) > : > : I have a couple of questions, > : > : (1) I noticed a significant performance boost under Linux when > Linux ARM : moved to EABI, are there any plans for a EABI FreeBSD > version? : > : http://wiki.debian.org/ArmEabiPort > > People have talked about it, but so far nothing concrete has been > done, to my knowledge. I had a look at this over the weekend. I managed to get a userland compiled with the current abi into single user mode on a kernel compiled with -mabi=aapcs-linux (gnueabi). The main problem I found was the change in packing for structs causing strange behaviour in userland. My plan is to clean up the code and post it somewhere for further testing. Andrew From owner-freebsd-arm@FreeBSD.ORG Sun Aug 15 21:14:56 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AE45C1065674 for ; Sun, 15 Aug 2010 21:14:56 +0000 (UTC) (envelope-from john@thinlinx.com) Received: from nschwmtas05p.mx.bigpond.com (nschwmtas05p.mx.bigpond.com [61.9.189.149]) by mx1.freebsd.org (Postfix) with ESMTP id 49D9A8FC19 for ; Sun, 15 Aug 2010 21:14:55 +0000 (UTC) Received: from nschwotgx01p.mx.bigpond.com ([203.36.172.54]) by nschwmtas05p.mx.bigpond.com with ESMTP id <20100815211454.FUKM12312.nschwmtas05p.mx.bigpond.com@nschwotgx01p.mx.bigpond.com>; Sun, 15 Aug 2010 21:14:54 +0000 Received: from [192.168.25.1] (really [203.36.172.54]) by nschwotgx01p.mx.bigpond.com with ESMTP id <20100815211453.MGTI8424.nschwotgx01p.mx.bigpond.com@[192.168.25.1]>; Sun, 15 Aug 2010 21:14:53 +0000 From: John Nicholls To: "M. Warner Losh" In-Reply-To: <20100815.085312.690091871549704621.imp@bsdimp.com> References: <1281869630.24339.63.camel@xeon.thinmesh.com> <20100815.085312.690091871549704621.imp@bsdimp.com> Content-Type: text/plain Date: Mon, 16 Aug 2010 07:13:26 +1000 Message-Id: <1281906806.27697.9.camel@xeon.thinmesh.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A090206.4C6858CD.01C2,ss=1,fgs=0 Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 21:14:56 -0000 On Sun, 2010-08-15 at 08:53 -0600, M. Warner Losh wrote: > In message: <1281869630.24339.63.camel@xeon.thinmesh.com> > John Nicholls writes: > : Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic work > : they have done with the FreeBSD port to the AT91SAM9G20. Great to see > : FreeBSD gaining more traction in the embedded World :) > : > : I have a couple of questions, > : > : (1) I noticed a significant performance boost under Linux when Linux ARM > : moved to EABI, are there any plans for a EABI FreeBSD version? > : > : http://wiki.debian.org/ArmEabiPort > > People have talked about it, but so far nothing concrete has been > done, to my knowledge. OK, that's a pity... > : (2) I can build a Linux image which contains the Kernel and a root file > : system in one file which is great for network booting, can I do > : something similar with FreeBSD? > > Yes. You can add MD_ROOT and MD_ROOT_SIZE to your kernel config > file. MD_ROOT_SIZE sets the size of the ram disk. You can build an > image from a directory tree using makefs. You can use > sys/tools/embed_mfs.sh into the image. > > Much of this can be automated with the MFS_IMAGE makeoption on arm. Thanks for this Warner, is there any documentation such as a HOWTO somewhere? I want to create something similar to our Linux image which we have shrunk to about 8MB including the Linux Kernel, Xserver and Rdesktop. I have found NanoBSD, mfsBSD and miniBSD which look like good starting points also for small images John > Warner From owner-freebsd-arm@FreeBSD.ORG Sun Aug 15 21:24:56 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B9D5D10656A3 for ; Sun, 15 Aug 2010 21:24:56 +0000 (UTC) (envelope-from john@thinlinx.com) Received: from nskntmtas01p.mx.bigpond.com (nskntmtas01p.mx.bigpond.com [61.9.168.137]) by mx1.freebsd.org (Postfix) with ESMTP id 53C298FC1E for ; Sun, 15 Aug 2010 21:24:55 +0000 (UTC) Received: from nskntotgx03p.mx.bigpond.com ([203.36.172.54]) by nskntmtas01p.mx.bigpond.com with ESMTP id <20100815212453.IKYU13611.nskntmtas01p.mx.bigpond.com@nskntotgx03p.mx.bigpond.com>; Sun, 15 Aug 2010 21:24:53 +0000 Received: from [192.168.25.1] (really [203.36.172.54]) by nskntotgx03p.mx.bigpond.com with ESMTP id <20100815212452.WUSN13584.nskntotgx03p.mx.bigpond.com@[192.168.25.1]>; Sun, 15 Aug 2010 21:24:52 +0000 From: John Nicholls To: Andrew Turner In-Reply-To: <20100816081533.30ff461f@fubar.geek.nz> References: <1281869630.24339.63.camel@xeon.thinmesh.com> <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> Content-Type: text/plain Date: Mon, 16 Aug 2010 07:23:25 +1000 Message-Id: <1281907405.27697.19.camel@xeon.thinmesh.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A090201.4C685B25.009B,ss=1,fgs=0 Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 21:24:56 -0000 On Mon, 2010-08-16 at 08:15 +1200, Andrew Turner wrote: > On Sun, 15 Aug 2010 08:53:12 -0600 (MDT) > "M. Warner Losh" wrote: > > > In message: <1281869630.24339.63.camel@xeon.thinmesh.com> > > John Nicholls writes: > > : Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic > > work : they have done with the FreeBSD port to the AT91SAM9G20. Great > > to see : FreeBSD gaining more traction in the embedded World :) > > : > > : I have a couple of questions, > > : > > : (1) I noticed a significant performance boost under Linux when > > Linux ARM : moved to EABI, are there any plans for a EABI FreeBSD > > version? : > > : http://wiki.debian.org/ArmEabiPort > > > > People have talked about it, but so far nothing concrete has been > > done, to my knowledge. > > I had a look at this over the weekend. I managed to get a userland > compiled with the current abi into single user mode on a kernel > compiled with -mabi=aapcs-linux (gnueabi). The main problem I found > was the change in packing for structs causing strange behaviour in > userland. > > My plan is to clean up the code and post it somewhere for further > testing. That's great news Andrew! Debian Linux have dropped support for the old ARM and moved to ARMEL, I hope FreeBSD moves in this direction also... John > Andrew From owner-freebsd-arm@FreeBSD.ORG Sun Aug 15 21:36:13 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5EF3A1065694 for ; Sun, 15 Aug 2010 21:36:13 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id 1F4E18FC18 for ; Sun, 15 Aug 2010 21:36:13 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7FLY4XC041688; Sun, 15 Aug 2010 15:34:04 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sun, 15 Aug 2010 15:34:37 -0600 (MDT) Message-Id: <20100815.153437.722022410199781366.imp@bsdimp.com> To: john@thinlinx.com From: "M. Warner Losh" In-Reply-To: <1281907405.27697.19.camel@xeon.thinmesh.com> References: <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> <1281907405.27697.19.camel@xeon.thinmesh.com> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Aug 2010 21:36:13 -0000 In message: <1281907405.27697.19.camel@xeon.thinmesh.com> John Nicholls writes: : On Mon, 2010-08-16 at 08:15 +1200, Andrew Turner wrote: : > On Sun, 15 Aug 2010 08:53:12 -0600 (MDT) : > "M. Warner Losh" wrote: : > : > > In message: <1281869630.24339.63.camel@xeon.thinmesh.com> : > > John Nicholls writes: : > > : Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic : > > work : they have done with the FreeBSD port to the AT91SAM9G20. Great : > > to see : FreeBSD gaining more traction in the embedded World :) : > > : : > > : I have a couple of questions, : > > : : > > : (1) I noticed a significant performance boost under Linux when : > > Linux ARM : moved to EABI, are there any plans for a EABI FreeBSD : > > version? : : > > : http://wiki.debian.org/ArmEabiPort : > > : > > People have talked about it, but so far nothing concrete has been : > > done, to my knowledge. : > : > I had a look at this over the weekend. I managed to get a userland : > compiled with the current abi into single user mode on a kernel : > compiled with -mabi=aapcs-linux (gnueabi). The main problem I found : > was the change in packing for structs causing strange behaviour in : > userland. : > : > My plan is to clean up the code and post it somewhere for further : > testing. : : That's great news Andrew! : : Debian Linux have dropped support for the old ARM and moved to ARMEL, I : hope FreeBSD moves in this direction also... There was talk about NetBSD making this move too, but I don't know what became of it. I'm guessing it won't be a huge deal to make this work, just a bunch of elbow grease in the syscalls... Warner From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 04:08:25 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id ACEA710656A5 for ; Mon, 16 Aug 2010 04:08:25 +0000 (UTC) (envelope-from natarajsn@gmail.com) Received: from mail-wy0-f182.google.com (mail-wy0-f182.google.com [74.125.82.182]) by mx1.freebsd.org (Postfix) with ESMTP id 37ECB8FC15 for ; Mon, 16 Aug 2010 04:08:24 +0000 (UTC) Received: by wyj26 with SMTP id 26so6584776wyj.13 for ; Sun, 15 Aug 2010 21:08:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=awGQ1Pg1w8qvE7E9OIbph7EVfAfSE9O7jtGRIaGgO9U=; b=GxbWsRuszaa3ZhDOYsgL7HrVlYrnKqrmaf39nOtZMq+/XtwqBwUP1zzTiwJVCKGZpk Alxm2WH8+bMNVsB0lXPC/YPMgLIIWQHr0MUHDpDwA/Ru8voygq9rsqEGXJkLmGgnjIYd QENilDa23P0VbVbCp0GtGw7WE15NyiWFGSzx8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=iv3lxez1kKea65pZomehtY4YGnyQ8I/72vKilHmzVS1lEZZPWp5kE4AIdIHDm0LaLe iyYv+en6ZGqYFC42dd5Of56SEhzAH/khOPdl4JixuXxit7Q4eBkWcQ4tediaY7LNalYw wvMvRHOuw+oNQyBOt3pWsEKmD75ckCBa91K2E= MIME-Version: 1.0 Received: by 10.227.152.149 with SMTP id g21mr3795006wbw.228.1281930389585; Sun, 15 Aug 2010 20:46:29 -0700 (PDT) Received: by 10.227.152.148 with HTTP; Sun, 15 Aug 2010 20:46:28 -0700 (PDT) In-Reply-To: <20100815.153437.722022410199781366.imp@bsdimp.com> References: <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> <1281907405.27697.19.camel@xeon.thinmesh.com> <20100815.153437.722022410199781366.imp@bsdimp.com> Date: Mon, 16 Aug 2010 09:16:28 +0530 Message-ID: From: Nataraj S Narayan To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 04:08:25 -0000 Hi Warner and other friends I am on at91sam9263ek , presently working on arm-linux-uclibc. May I have some HOWTO as to getting the kernel and FS on FreeBSD for the said board? Hopefully your work on at91sam9260ek would suit me? Of course, I do have to source installed. I am using FreeBSD 8.0-RELEASE ,only at the user level mainly. I find FreeBSD quite good for cross compiling QT and freepascal (www.freepascal.org) code for arm-linux. Warm regards Nataraj On Mon, Aug 16, 2010 at 3:04 AM, M. Warner Losh wrote: > In message: <1281907405.27697.19.camel@xeon.thinmesh.com> > John Nicholls writes: > : On Mon, 2010-08-16 at 08:15 +1200, Andrew Turner wrote: > : > On Sun, 15 Aug 2010 08:53:12 -0600 (MDT) > : > "M. Warner Losh" wrote: > : > > : > > In message: <1281869630.24339.63.camel@xeon.thinmesh.com> > : > > John Nicholls writes: > : > > : Special thanks to Yohanes Nugroho & Greg Ansley for the fantastic > : > > work : they have done with the FreeBSD port to the AT91SAM9G20. Great > : > > to see : FreeBSD gaining more traction in the embedded World :) > : > > : > : > > : I have a couple of questions, > : > > : > : > > : (1) I noticed a significant performance boost under Linux when > : > > Linux ARM : moved to EABI, are there any plans for a EABI FreeBSD > : > > version? : > : > > : http://wiki.debian.org/ArmEabiPort > : > > > : > > People have talked about it, but so far nothing concrete has been > : > > done, to my knowledge. > : > > : > I had a look at this over the weekend. I managed to get a userland > : > compiled with the current abi into single user mode on a kernel > : > compiled with -mabi=aapcs-linux (gnueabi). The main problem I found > : > was the change in packing for structs causing strange behaviour in > : > userland. > : > > : > My plan is to clean up the code and post it somewhere for further > : > testing. > : > : That's great news Andrew! > : > : Debian Linux have dropped support for the old ARM and moved to ARMEL, I > : hope FreeBSD moves in this direction also... > > There was talk about NetBSD making this move too, but I don't know > what became of it. > > I'm guessing it won't be a huge deal to make this work, just a bunch > of elbow grease in the syscalls... > > Warner > _______________________________________________ > freebsd-arm@freebsd.org mailing list > http://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 Aug 16 10:04:52 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 433EB1065694 for ; Mon, 16 Aug 2010 10:04:52 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 109B98FC18 for ; Mon, 16 Aug 2010 10:04:49 +0000 (UTC) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 0C66E143; Mon, 16 Aug 2010 06:04:49 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 16 Aug 2010 06:04:49 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=8GiwHdyuzWwccb6y1Uw3IPz89Vc=; b=kslvMquwOJ61X047RX/Lj2kKiBpRnT0RKnN5hm3m0s3PipUiFdP4/aOLICzLg9folErF4rtufImpOxL9vQwkJSbw69J3evEw+7XyZYscj9NGcRrA7h8HWtwaF3nlK5RIO665Y+hYm1PT1rSjp0uUpulecbXQlEGJXhOCWRwaknA= X-Sasl-enc: QZtHZ/1SVMQugr8pfHaQ1NRaOgLlqOc4pPeTMX0d5afd 1281953088 Received: from localhost (8.241.69.111.dynamic.snap.net.nz [111.69.241.8]) by mail.messagingengine.com (Postfix) with ESMTPA id 8A3D0405727; Mon, 16 Aug 2010 06:04:47 -0400 (EDT) Date: Mon, 16 Aug 2010 22:04:40 +1200 From: Andrew Turner To: John Nicholls Message-ID: <20100816220440.68019f91@fubar.geek.nz> In-Reply-To: <1281907405.27697.19.camel@xeon.thinmesh.com> References: <1281869630.24339.63.camel@xeon.thinmesh.com> <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> <1281907405.27697.19.camel@xeon.thinmesh.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 10:04:52 -0000 On Mon, 16 Aug 2010 07:23:25 +1000 John Nicholls wrote: > Debian Linux have dropped support for the old ARM and moved to ARMEL, > I hope FreeBSD moves in this direction also... The idea is to allow the kernel to be compiled with gnueabi providing a compat layer for older binaries. There will still be support for them but as a module similar to how 32bit binaries are supported on various 64bit architectures. Andrew From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 10:13:31 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6736E10656A5 for ; Mon, 16 Aug 2010 10:13:31 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 347148FC17 for ; Mon, 16 Aug 2010 10:13:30 +0000 (UTC) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 89BF496; Mon, 16 Aug 2010 06:13:30 -0400 (EDT) Received: from frontend2.messagingengine.com ([10.202.2.161]) by compute3.internal (MEProxy); Mon, 16 Aug 2010 06:13:30 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=XGeI4Ojeh4B01rvBVo4ms+D1gSU=; b=ZC+M/6Ru9my+5ZKCAzprN7A/CVJBFNbsJz9eDfPYsdG0JuAThLxiDeIywHU7X0PZxYkmxAZNo0mqwkkBTnhiTz7gAxxJgsq5/o2gUDjM7lfx3zkb1tzbbYbz9HQ+6/sRwO/mQSSYnUdvTkO0PR61BPzegAr43h0W63FeXiYUuAc= X-Sasl-enc: iYD3TK6u+lQWZiBpdyn4v40agcEXnZPj2GHtmNDa2FCb 1281953609 Received: from localhost (8.241.69.111.dynamic.snap.net.nz [111.69.241.8]) by mail.messagingengine.com (Postfix) with ESMTPA id 141D55E44FC; Mon, 16 Aug 2010 06:13:28 -0400 (EDT) Date: Mon, 16 Aug 2010 22:13:21 +1200 From: Andrew Turner To: "M. Warner Losh" Message-ID: <20100816221321.180cf466@fubar.geek.nz> In-Reply-To: <20100815.153437.722022410199781366.imp@bsdimp.com> References: <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> <1281907405.27697.19.camel@xeon.thinmesh.com> <20100815.153437.722022410199781366.imp@bsdimp.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 10:13:31 -0000 On Sun, 15 Aug 2010 15:34:37 -0600 (MDT) "M. Warner Losh" wrote: > There was talk about NetBSD making this move too, but I don't know > what became of it. I haven't looked at if NetBSD supports it or not. My work was mostly a weekend hacking to prove it is possible. > I'm guessing it won't be a huge deal to make this work, just a bunch > of elbow grease in the syscalls... The main problem is getting a list of syscalls that need to be changed. I found I could boot to single user mode by only changing stat and fstat. I'm currently in the process of converting my hack to using the same method to provide 32 bit and Linux compatability support. We also need to decide if we follow what Linux has done where it changed it's syscall ABI when it moved to the EABI. They changed from reading the instruction from memory to get the syscall number to storing it in r7. The idea is to reduce the cost of the data cache miss as the page will be in the instruction cache. I hacked up some code to do the same but haven't had a chance to properly benchmark the change yet. Andrew From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 10:32:02 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 369B01065696 for ; Mon, 16 Aug 2010 10:32:02 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 087E98FC13 for ; Mon, 16 Aug 2010 10:32:01 +0000 (UTC) Received: from compute3.internal (compute3.internal [10.202.2.43]) by gateway1.messagingengine.com (Postfix) with ESMTP id 5B30C338 for ; Mon, 16 Aug 2010 06:32:01 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute3.internal (MEProxy); Mon, 16 Aug 2010 06:32:01 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:subject:message-id:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=w2fx5PsQt8WFBcPS9QOyKcO2MRs=; b=q6Kx8cbiS+Ql6eOEBiR2vL8/KmI1fuxcQYHu7sYW5U1IItL3vgcvYoiNMbRx7dTPtgr1stpbRtU5kW8CZN+j1tj3PHw6Rpi/yEdKfxkg5Ut+Mo5tUxq4BdVL841/opjGVxUaWNbY1x586MCMY/ircLrUAttzCNtXpQaIVEBtYHg= X-Sasl-enc: PbNmw7fKtnMug0Oawat1L9q0YZ0s8Zxr+gO+luNski1I 1281954720 Received: from localhost (8.241.69.111.dynamic.snap.net.nz [111.69.241.8]) by mail.messagingengine.com (Postfix) with ESMTPA id 638354056D5 for ; Mon, 16 Aug 2010 06:32:00 -0400 (EDT) Date: Mon, 16 Aug 2010 22:31:53 +1200 From: Andrew Turner To: freebsd-arm@freebsd.org Message-ID: <20100816223153.31b36dba@fubar.geek.nz> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Update syscall handling X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 10:32:02 -0000 As part of my work on getting the kernel running with the EABI I updated how syscalls are handled to use the common syscallenter/syscallret functions. I moved the arg parsing code to cpu_fetch_syscall_args where it belongs and removed the duplicate code from syscall to be replaced with syscallenter and syscallret. I've tested on my LN2410SBC but would like a review before committing. The td->td_ar == NULL check is from the original function. Do we still need it? ARM appears to be the only arch with this check. Andrew [1] http://fubar.geek.nz/files/freebsd/freebsd-arm-syscall.diff From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 11:06:55 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AC85910656A3 for ; Mon, 16 Aug 2010 11:06:55 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9A5CA8FC08 for ; Mon, 16 Aug 2010 11:06:55 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7GB6tTt058816 for ; Mon, 16 Aug 2010 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7GB6ttE058814 for freebsd-arm@FreeBSD.org; Mon, 16 Aug 2010 11:06:55 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 16 Aug 2010 11:06:55 GMT Message-Id: <201008161106.o7GB6ttE058814@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-arm@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-arm@FreeBSD.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 11:06:55 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/149288 arm mail/dovecot causes panic during configure on Sheevapl o arm/148474 arm MMC timeout too short durring enumeration of cards. o arm/134368 arm [patch] nslu2_led driver for the LEDs on the NSLU2 o arm/134338 arm [patch] Lock GPIO accesses on ixp425 4 problems total. From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 16:30:23 2010 Return-Path: Delivered-To: freebsd-arm@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5D3191065673; Mon, 16 Aug 2010 16:30:23 +0000 (UTC) (envelope-from imp@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 333A88FC1C; Mon, 16 Aug 2010 16:30:23 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o7GGUNh6078897; Mon, 16 Aug 2010 16:30:23 GMT (envelope-from imp@freefall.freebsd.org) Received: (from imp@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o7GGUMn1078866; Mon, 16 Aug 2010 10:30:22 -0600 (MDT) (envelope-from imp) Date: Mon, 16 Aug 2010 10:30:22 -0600 (MDT) Message-Id: <201008161630.o7GGUMn1078866@freefall.freebsd.org> To: gja@ansley.com, imp@FreeBSD.org, freebsd-arm@FreeBSD.org From: imp@FreeBSD.org Cc: Subject: Re: arm/148474: MMC timeout too short durring enumeration of cards. X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 16:30:23 -0000 Synopsis: MMC timeout too short durring enumeration of cards. State-Changed-From-To: open->closed State-Changed-By: imp State-Changed-When: Mon Aug 16 10:29:49 MDT 2010 State-Changed-Why: Turns out this was caused by a timing bug (or other heisenbug). Closing. http://www.freebsd.org/cgi/query-pr.cgi?pr=148474 From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 16:33:26 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 534181065675 for ; Mon, 16 Aug 2010 16:33:26 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (bsdimp.com [199.45.160.85]) by mx1.freebsd.org (Postfix) with ESMTP id C7B318FC13 for ; Mon, 16 Aug 2010 16:33:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by harmony.bsdimp.com (8.14.3/8.14.1) with ESMTP id o7GGRf5D051021; Mon, 16 Aug 2010 10:27:41 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Mon, 16 Aug 2010 10:28:15 -0600 (MDT) Message-Id: <20100816.102815.72112000494883288.imp@bsdimp.com> To: andrew@fubar.geek.nz From: "M. Warner Losh" In-Reply-To: <20100816221321.180cf466@fubar.geek.nz> References: <1281907405.27697.19.camel@xeon.thinmesh.com> <20100815.153437.722022410199781366.imp@bsdimp.com> <20100816221321.180cf466@fubar.geek.nz> X-Mailer: Mew version 6.3 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 16:33:26 -0000 In message: <20100816221321.180cf466@fubar.geek.nz> Andrew Turner writes: : On Sun, 15 Aug 2010 15:34:37 -0600 (MDT) : "M. Warner Losh" wrote: : > There was talk about NetBSD making this move too, but I don't know : > what became of it. : I haven't looked at if NetBSD supports it or not. My work was mostly a : weekend hacking to prove it is possible. : : > I'm guessing it won't be a huge deal to make this work, just a bunch : > of elbow grease in the syscalls... : : The main problem is getting a list of syscalls that need to be changed. : I found I could boot to single user mode by only changing stat and : fstat. I'm currently in the process of converting my hack to using the : same method to provide 32 bit and Linux compatability support. Sadly, you're going to have to step through each one and see if it changes. On MIPS, we had to do similar things for n32/n64 support since some syscalls it mattered for. But n32 support is by far the weirdest ABI beast in the jungle. So we're going to have multiple image activators on ARM? Is that the plan? Or is there some other way that you had in mind... : We also need to decide if we follow what Linux has done where it : changed it's syscall ABI when it moved to the EABI. They changed from : reading the instruction from memory to get the syscall number to : storing it in r7. The idea is to reduce the cost of the data cache miss : as the page will be in the instruction cache. I hacked up some code to : do the same but haven't had a chance to properly benchmark the change : yet. I think this is a good change as well. The compat layer can easily cope. Are there other ABI issues we wish to fix at the same time? And will this also help solve the funky alignment issues we've had with ARM elsewhere in the kernel causing problems either in structure sizes or unaligned accesses? Are there other implications we need to worry about? Are you going to try to support both the current ABI and EABI in the current source tree? Warner From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 20:43:03 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 409B1106567A for ; Mon, 16 Aug 2010 20:43:03 +0000 (UTC) (envelope-from john@thinlinx.com) Received: from nskntmtas03p.mx.bigpond.com (nskntmtas03p.mx.bigpond.com [61.9.168.143]) by mx1.freebsd.org (Postfix) with ESMTP id CD74D8FC19 for ; Mon, 16 Aug 2010 20:43:02 +0000 (UTC) Received: from nskntotgx03p.mx.bigpond.com ([203.36.172.54]) by nskntmtas03p.mx.bigpond.com with ESMTP id <20100816204301.VFRO23327.nskntmtas03p.mx.bigpond.com@nskntotgx03p.mx.bigpond.com>; Mon, 16 Aug 2010 20:43:01 +0000 Received: from [192.168.25.1] (really [203.36.172.54]) by nskntotgx03p.mx.bigpond.com with ESMTP id <20100816204300.BWMX13584.nskntotgx03p.mx.bigpond.com@[192.168.25.1]>; Mon, 16 Aug 2010 20:43:00 +0000 From: John Nicholls To: Andrew Turner In-Reply-To: <20100816220440.68019f91@fubar.geek.nz> References: <1281869630.24339.63.camel@xeon.thinmesh.com> <20100815.085312.690091871549704621.imp@bsdimp.com> <20100816081533.30ff461f@fubar.geek.nz> <1281907405.27697.19.camel@xeon.thinmesh.com> <20100816220440.68019f91@fubar.geek.nz> Content-Type: text/plain Date: Tue, 17 Aug 2010 06:41:25 +1000 Message-Id: <1281991285.717.14.camel@xeon.thinmesh.com> Mime-Version: 1.0 X-Mailer: Evolution 2.22.3.1 Content-Transfer-Encoding: 7bit X-RPD-ScanID: Class unknown; VirusThreatLevel unknown, RefID str=0001.0A090203.4C69A2D4.0163,ss=1,fgs=0 Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 20:43:03 -0000 On Mon, 2010-08-16 at 22:04 +1200, Andrew Turner wrote: > On Mon, 16 Aug 2010 07:23:25 +1000 > John Nicholls wrote: > > Debian Linux have dropped support for the old ARM and moved to ARMEL, > > I hope FreeBSD moves in this direction also... > The idea is to allow the kernel to be compiled with gnueabi providing a > compat layer for older binaries. There will still be support for them > but as a module similar to how 32bit binaries are supported on various > 64bit architectures. Fantastic news to hear FreeBSD is moving in this direction, I think this will definitely accelerate the adoption of FreeBSD in embedded devices Thanks Andrew > Andrew From owner-freebsd-arm@FreeBSD.ORG Mon Aug 16 21:03:59 2010 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 06DEE10656A8 for ; Mon, 16 Aug 2010 21:03:59 +0000 (UTC) (envelope-from andrew@fubar.geek.nz) Received: from out1.smtp.messagingengine.com (out1.smtp.messagingengine.com [66.111.4.25]) by mx1.freebsd.org (Postfix) with ESMTP id 48F048FC16 for ; Mon, 16 Aug 2010 21:03:58 +0000 (UTC) Received: from compute1.internal (compute1.internal [10.202.2.41]) by gateway1.messagingengine.com (Postfix) with ESMTP id 629C94D1; Mon, 16 Aug 2010 17:03:57 -0400 (EDT) Received: from frontend1.messagingengine.com ([10.202.2.160]) by compute1.internal (MEProxy); Mon, 16 Aug 2010 17:03:57 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=messagingengine.com; h=date:from:to:cc:subject:message-id:in-reply-to:references:mime-version:content-type:content-transfer-encoding; s=smtpout; bh=r2fw4WD3g/paGE0f8AJ+1Yb3ygw=; b=NC/K0+14+/UNnoHsBDGzripSpCnt8bqZGKWoEujes6O3id6PJ0AAwXMfLBcT6cN7rEEI/It6OzkMfX2UOnNlPOoyjhYxJSq2d+z36n6ZX+RfKvo8enfKrirlY/pmcozx2BI0GqURatW7H9+BpTyFL8qbplS1m64XbgVxZTKRveY= X-Sasl-enc: +d6/UsFkEImlYWUZxe24yjSiS9mZ6Bsw9LOeEjHuDi26 1281992636 Received: from localhost (97.242.69.111.dynamic.snap.net.nz [111.69.242.97]) by mail.messagingengine.com (Postfix) with ESMTPA id B992B405EAA; Mon, 16 Aug 2010 17:03:55 -0400 (EDT) Date: Tue, 17 Aug 2010 09:03:47 +1200 From: Andrew Turner To: "M. Warner Losh" Message-ID: <20100817090347.6fdb6665@fubar.geek.nz> In-Reply-To: <20100816.102815.72112000494883288.imp@bsdimp.com> References: <1281907405.27697.19.camel@xeon.thinmesh.com> <20100815.153437.722022410199781366.imp@bsdimp.com> <20100816221321.180cf466@fubar.geek.nz> <20100816.102815.72112000494883288.imp@bsdimp.com> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.20.1; i386-portbld-freebsd8.0) X-Pirate: Arrrr Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: freebsd-arm@FreeBSD.org Subject: Re: FreeBSD EABI ARM & Network boot image howto? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Aug 2010 21:03:59 -0000 On Mon, 16 Aug 2010 10:28:15 -0600 (MDT) "M. Warner Losh" wrote: > In message: <20100816221321.180cf466@fubar.geek.nz> > Andrew Turner writes: > : On Sun, 15 Aug 2010 15:34:37 -0600 (MDT) > : "M. Warner Losh" wrote: > : > There was talk about NetBSD making this move too, but I don't know > : > what became of it. > : I haven't looked at if NetBSD supports it or not. My work was > mostly a : weekend hacking to prove it is possible. > : > : > I'm guessing it won't be a huge deal to make this work, just a > bunch : > of elbow grease in the syscalls... > : > : The main problem is getting a list of syscalls that need to be > changed. : I found I could boot to single user mode by only changing > stat and : fstat. I'm currently in the process of converting my hack > to using the : same method to provide 32 bit and Linux compatability > support. > > Sadly, you're going to have to step through each one and see if it > changes. On MIPS, we had to do similar things for n32/n64 support > since some syscalls it mattered for. But n32 support is by far the > weirdest ABI beast in the jungle. I have managed to find some of the structs that need a compat version. I'm also looking at what syscalls are reimplemented for freebsd32. > So we're going to have multiple image activators on ARM? Is that the > plan? Or is there some other way that you had in mind... I haven't looked in to this yet. > : We also need to decide if we follow what Linux has done where it > : changed it's syscall ABI when it moved to the EABI. They changed > from : reading the instruction from memory to get the syscall number > to : storing it in r7. The idea is to reduce the cost of the data > cache miss : as the page will be in the instruction cache. I hacked > up some code to : do the same but haven't had a chance to properly > benchmark the change : yet. > > I think this is a good change as well. The compat layer can easily > cope. Some of the code in trap.c needs to be updated for this first. > Are there other ABI issues we wish to fix at the same time? I don't know of any other ABI issues. If anyone else does I'm happy to look into them. > And will > this also help solve the funky alignment issues we've had with ARM > elsewhere in the kernel causing problems either in structure sizes or > unaligned accesses? With the EABI the alignment of structs is determined by the contents where the current ABI they are aligned to 4 bytes. The packing is different with 64 bit components. They will start on a 64 bit boundary. I've already found some issues e.g. struct stat. I haven't looked at e.g. how broken the network stack is (if at all). > Are there other implications we need to worry about? Are you going to > try to support both the current ABI and EABI in the current source > tree? I was going to support both for userland only when the kernel is built with EABI. If the kernel is built with the current ABI userland needs to also be built with it. Andrew From owner-freebsd-arm@FreeBSD.ORG Fri Aug 20 13:48:29 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A834A1065742 for ; Fri, 20 Aug 2010 13:48:29 +0000 (UTC) (envelope-from toshi@ruby.ocn.ne.jp) Received: from smtp.ruby.ocn.ne.jp (ruby.ocn.ne.jp [61.207.12.164]) by mx1.freebsd.org (Postfix) with ESMTP id 442248FC20 for ; Fri, 20 Aug 2010 13:48:28 +0000 (UTC) Received: from localhost (p3118-ipad208sizuokaden.shizuoka.ocn.ne.jp [58.92.253.118]) by smtp.ruby.ocn.ne.jp (Postfix) with ESMTP id B8E523312; Fri, 20 Aug 2010 22:15:27 +0900 (JST) Date: Fri, 20 Aug 2010 22:15:26 +0900 (JST) Message-Id: <20100820.221526.193682492.toshi@ruby.ocn.ne.jp> To: freebsd-arm@freebsd.org From: SAITOU Toshihide In-Reply-To: <4C531E13.1070008@ansley.com> References: <4C531E13.1070008@ansley.com> X-GPG-fingerprint: 34B3 0B6A 8520 F5B0 EBC7 69F6 C055 9F8A 0D49 F8FC X-Mailer: Mew version 6.2.51 on Emacs 22.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: at91sam9260: Patches X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 13:48:29 -0000 In message: <4C531E13.1070008@ansley.com> Greg Ansley writes: > The following diff on top of my previous diff adds support > for the AT91SAM9260 chip and Atmel AT91SAM9260-EK Evaluation > card. > > Using config file SAM9G20EK you can boot on both the 9260 > and 9G20 based development cards with the same binary. Thank you for your patch! My AT91SAM9XE256 board(*1) boot with this patch. I only need is to edit the sys/arm/at91/at91reg.h to fake up. (#define ARCH_ID_AT91SAM9XE256 0x329a93a0) (*1) BLANCE-EX/ARM9: very similar to the AT91SAM9XE-EK but using LAN8187 Ether PHY and NAND flash is replaced with NOR flash. U-Boot 1.3.4 (Aug 11 2010 - 10:05:04) DRAM: 64 MB In: serial Out: serial Err: serial Net: macb0 macb0: Starting autonegotiation... macb0: Autonegotiation complete macb0: link up, 10Mbps half-duplex (lpa: 0x4021) Hit any key to stop autoboot: 0 macb0: link up, 10Mbps half-duplex (lpa: 0x4021) Using macb0 device TFTP from server 192.168.1.1; our IP address is 192.168.1.11 Filename 'kernel.bin'. Load address: 0x20000000 Loading: ################################################################# ################################################################# ################################# done Bytes transferred = 2382132 (245934 hex) ## Starting application at 0x20000000 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2010 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 9.0-CURRENT #25: Fri Aug 20 21:47:19 JST 2010 toshi@:/usr/obj/arm.arm/usr/src9/sys/SAM9G20EK_ME arm CPU: ARM926EJ-S rev 5 (ARM9EJ-S core) DC enabled IC enabled WB enabled LABT 16KB/32B 4-way Instruction cache 8KB/32B 4-way write-back-locking-C Data cache real memory = 67108864 (64 MB) avail memory = 62169088 (59 MB) atmelarm0: on motherboard at91sam92600: on atmelarm0 at91_pmc0: mem 0xdffffc00-0xdffffcff irq 1 on atmelarm0 at91_pmc0: Primary: 18432000 Hz PLLA: 198 MHz CPU: 198 MHz MCK: 99 MHz at91_rst0: mem 0xdffffd00-0xdffffd0f irq 1 on atmelarm0 at91_rst0: [FILTER] at91_rst0: Reset cause: Power On. at91_pit0: toshi pit 00 at91_pit0: mem 0xdffffd30-0xdffffd39 irq 1 on atmelarm0 at91_pit0: toshi pit 01 at91_pit0: [FILTER] Timecounter "AT91SAM9 timer" frequency 6208000 Hz quality 1000 at91_pio0: mem 0xdffff400-0xdffff5ff irq 2 on atmelarm0 at91_pio0: ABSR: 0x3e400c3b OSR: 0 PSR:0xc00002c4 ODSR: 0 at91_pio0: [FILTER] at91_pio1: mem 0xdffff600-0xdffff7ff irq 3 on atmelarm0 at91_pio1: ABSR: 0 OSR: 0 PSR:0xc03f3f0f ODSR: 0 at91_pio1: [FILTER] at91_pio2: mem 0xdffff800-0xdffff9ff irq 4 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x800 PSR:0xfbcf ODSR: 0x800 at91_pio2: [FILTER] at91_mci0: mem 0xdffa8000-0xdffabfff irq 9 on atmelarm0 at91_mci0: [ITHREAD] mmc0: on at91_mci0 uart0: mem 0xdffff200-0xdffff3ff irq 1 on atmelarm0 uart0: [FILTER]]W,.]L??console (115200,n,8,1) uart1: mem 0xdffb0000-0xdffb3fff irq 6 on atmelarm0 uart1: [FILTER] uart2: mem 0xdffb4000-0xdffb7fff irq 7 on atmelarm0 uart2: [FILTER] uart3: mem 0xdffb8000-0xdffbbfff irq 8 on atmelarm0 uart3: [FILTER] uart4: mem 0xdffd0000-0xdffd3fff irq 23 on atmelarm0 uart4: [FILTER] uart5: mem 0xdffd4000-0xdffd7fff irq 24 on atmelarm0 uart5: [FILTER] uart6: mem 0xdffd8000-0xdffdbfff irq 25 on atmelarm0 uart6: [FILTER] ate0: mem 0xdffc4000-0xdffc7fff irq 21 on atmelarm0 miibus0: on ate0 ukphy0: PHY 6 on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ate0: Ethernet address: 9e:5e:26:d4:92:10 ate0: [ITHREAD] Timecounters tick every 10.000 msec mmcsd0: 947MB at mmc0 30MHz/4bit GEOM: mmcsd0: partition 2 does not start on a track boundary. GEOM: mmcsd0: partition 2 does not end on a track boundary. GEOM: mmcsd0: partition 1 does not start on a track boundary. GEOM: mmcsd0: partition 1 does not end on a track boundary. GEOM: mmcsd0s2: geometry does not match label (64h,32s != 32h,63s). Trying to mount root from ufs:/dev/mmcsd0s2a warning: no time-of-day clock registered, system time will not be set accurately Setting hostuuid: be52fc2b-a537-11df-bebc-005043014b1e. Setting hostid: 0x12a57e64. No suitable dump device was found. Entropy harvesting: interrupts ethernet point_to_point kickstart. swapon: /dev/da0s2b: No such file or directory Starting file system checks: /dev/mmcsd0s2a: FILE SYSTEM CLEAN; SKIPPING CHECKS /dev/mmcsd0s2a: clean, 277620 free (124 frags, 34687 blocks, 0.0% fragmentation) Mounting local file systems:. /etc/rc: WARNING: $hostname is not set -- see rc.conf(5). Starting Network: lo0 ate0. lo0: flags=8049 metric 0 mtu 16384 options=3 inet 127.0.0.1 netmask 0xff000000 ate0: flags=8802 metric 0 mtu 1500 options=80008 ether 9e:5e:26:d4:92:10 media: Ethernet autoselect (10baseT/UTP) status: active Starting devd. Starting Network: ate0. ate0: flags=8802 metric 0 mtu 1500 options=80008 ether 9e:5e:26:d4:92:10 media: Ethernet autoselect (10baseT/UTP) status: active Creating and/or trimming log files. Starting syslogd. /etc/rc: WARNING: Dump device does not exist. Savecore not run. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Clearing /tmp (X related). Updating motd:. Starting cron. Starting background file system checks in 60 seconds. Fri Aug 13 01:52:13 UTC 2010 FreeBSD/arm (Amnesiac) (ttyu0) login: SAITOU Toshihide From owner-freebsd-arm@FreeBSD.ORG Fri Aug 20 15:27:35 2010 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2B9591065694 for ; Fri, 20 Aug 2010 15:27:35 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id AC1248FC19 for ; Fri, 20 Aug 2010 15:27:34 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id o7KFRVXO009783 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 20 Aug 2010 17:27:32 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.4/8.14.4) with ESMTP id o7KFRJC8066936 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 20 Aug 2010 17:27:19 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id o7KFRItS047377; Fri, 20 Aug 2010 17:27:18 +0200 (CEST) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id o7KFRIq3047376; Fri, 20 Aug 2010 17:27:18 +0200 (CEST) (envelope-from ticso) Date: Fri, 20 Aug 2010 17:27:18 +0200 From: Bernd Walter To: SAITOU Toshihide Message-ID: <20100820152717.GX18689@cicely7.cicely.de> References: <4C531E13.1070008@ansley.com> <20100820.221526.193682492.toshi@ruby.ocn.ne.jp> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100820.221526.193682492.toshi@ruby.ocn.ne.jp> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: freebsd-arm@freebsd.org Subject: Re: at91sam9260: Patches X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 20 Aug 2010 15:27:35 -0000 On Fri, Aug 20, 2010 at 10:15:26PM +0900, SAITOU Toshihide wrote: > In message: <4C531E13.1070008@ansley.com> > Greg Ansley writes: > > The following diff on top of my previous diff adds support > > for the AT91SAM9260 chip and Atmel AT91SAM9260-EK Evaluation > > card. > > > > Using config file SAM9G20EK you can boot on both the 9260 > > and 9G20 based development cards with the same binary. > > Thank you for your patch! > > My AT91SAM9XE256 board(*1) boot with this patch. > I only need is to edit the sys/arm/at91/at91reg.h to fake up. > (#define ARCH_ID_AT91SAM9XE256 0x329a93a0) I've always wondered if it is reasonable to use the internal SRAM on AT91SAM9/RM9200 for time sensitive purpose like NIC DMA buffer, or often used kernel Tables. The AT91SAM9XE256 has 32k of it, which would be 8x 4k pages, but they all have a at least a few pages available. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.