From owner-freebsd-arm@FreeBSD.ORG Tue Oct 9 06:56:09 2012 Return-Path: Delivered-To: arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 469DFB3 for ; Tue, 9 Oct 2012 06:56:09 +0000 (UTC) (envelope-from ganbold@gmail.com) Received: from mail-ee0-f54.google.com (mail-ee0-f54.google.com [74.125.83.54]) by mx1.freebsd.org (Postfix) with ESMTP id C3E098FC0A for ; Tue, 9 Oct 2012 06:56:08 +0000 (UTC) Received: by mail-ee0-f54.google.com with SMTP id c50so3491300eek.13 for ; Mon, 08 Oct 2012 23:56:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=6jSJ+rLeyoS9u38xj783jN7ZuxF7tEMbaypamDYD/Ys=; b=DI/ARg0OlwiOitRT6gMknYfEKx2TDTALN/2C4PXLTCxas9v5Hykgcttv+ormUTPF+r Rco+jRxpCxNMLAQ7nHOMnqxPTgL4+kFopYociTcTMe5X5avf6P40R1YkM1eOmb4BKk5+ X6510NLTNUm35OCYL/P/pJd4Vp+oQl55FuIeRdLCcGSTQa8U5iQsYkkJrT1ga7psj3oo 6F+bHj/2GAThm5c0PgaIbhl9cuXu9frfiGDF2RfPnf2kzeZzNHCgbHytJ2RuLWg5ZEze OHl/SOAaK42aPfwBP87ha1/2T7wd8ZGmF9IXbVAvqRpi858yiedMAgG8vXIDGUaQKnEC vk9A== MIME-Version: 1.0 Received: by 10.14.199.132 with SMTP id x4mr20789626een.37.1349755655445; Mon, 08 Oct 2012 21:07:35 -0700 (PDT) Received: by 10.14.140.205 with HTTP; Mon, 8 Oct 2012 21:07:35 -0700 (PDT) In-Reply-To: <5679C679-A434-4714-BE61-4DC093DA7F34@kientzle.com> References: <0DCAC001-FF06-431A-A486-2B50BE913B0D@bsdimp.com> <7E18623F-3945-4EA0-B332-5A5C717B20F0@kientzle.com> <9896AA3E-D8A0-4CE8-8160-4672AA07388F@cheney.net> <6B74ADD7-3266-4919-BEB4-B10E0C1BAB58@kientzle.com> <5679C679-A434-4714-BE61-4DC093DA7F34@kientzle.com> Date: Tue, 9 Oct 2012 12:07:35 +0800 Message-ID: Subject: Re: Towards an ARM system-building script From: Ganbold Tsagaankhuu To: Tim Kientzle Content-Type: text/plain; charset=ISO-8859-1 Cc: arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Oct 2012 06:56:09 -0000 On Mon, Sep 24, 2012 at 2:55 AM, Tim Kientzle wrote: > On Sep 4, 2012, at 9:52 PM, Tim Kientzle wrote: >> On Sep 4, 2012, at 9:33 PM, Dave Cheney wrote: >> >>> Sorry to butt in on this discussion, but how feasible would it be to adapt this build script to the pandaboard. I understand there may be a config in svn similar to the beaglebone which may be applicable. >> >> I've started tinkering with ideas for generalizing my >> BeagleBone script so it can build system images for >> other boards. > > I've made significant progress and would > appreciate any feedback: > > github.com/kientzle/freebsd-beaglebone > > This has been massively refactored so it can > build system images for a variety of > ARM-based boards. Right now: > > * BeagleBone builds and boots cleanly again. ;-) > In particular, I've caught up with some changes to > ubldr in -CURRENT and switched to using the > stable DENX U-Boot sources instead of the > rapidly-evolving (and often broken) TI/Arago sources. > > * PandaBoard: I have a completely untested > sketch. Someone with a PandaBoard will need > to work through the U-Boot configuration to make > this work. I tried your script on PandaBoard ES. Basically it works with some modifications/considerations: 1. PANDABOARD kernel config should be modified to use mmcsd card as root. 2. u-boot build complains about the board was configured to support THUMB mode 3. Maybe there is need some more patches to have correct u-boot.bin, since it looks for uImage for instance 4. I didn't dig into ubldr/u-boot much, instead modified uEnv.txt to load kernel.bin from first partition which is FAT. I tried 8MB of FAT. 5. I used MLO, u-boot.bin from http://people.freebsd.org/~gonzo/pandaboard/ So how does ubldr work? Can it load kernel.bin from second partition in case of PandaBoard? Ganbold > > * RaspberryPi: I have a completely untested > sketch that will need more work before it can > build a bootable image. > > Others? If you're interested in adding support for > other boards, let me know. All the boards above: > * Are ARMv6-based. > * Have a kernel configuration in -CURRENT > * Boot from an MBR-partitioned SD card or USB stick > * Boot using U-Boot and ubldr > > It should be pretty straightforward to add support > for other boards that meet these criteria. The hardest > part is working up the correct U-Boot patches; hopefully > the existing BeagleBone patches will prove helpful > to anyone who wants to work on this. > > Tim > > _______________________________________________ > 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"