From owner-freebsd-arm@FreeBSD.ORG Tue Feb 15 21:28:31 2011 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 D8D901065698 for ; Tue, 15 Feb 2011 21:28:31 +0000 (UTC) (envelope-from johny.mattsson@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 663A28FC12 for ; Tue, 15 Feb 2011 21:28:31 +0000 (UTC) Received: by wyf19 with SMTP id 19so639040wyf.13 for ; Tue, 15 Feb 2011 13:28:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; bh=3qPsxxpJR2Alvjr52hvogEQa+mkCOl/81ng9BMVLOHE=; b=fiK7GTp0QqpWXUbLpjhk1/D9IbKEHI/rXw2kw3POQnxDFBQeflYpyrGQ//hPaK+xU/ f5mekdwbULrr5MukeUaFLy4ecK/KudTS8XkU37sd9zOfGzJZtxolP7Uo/HipixypB581 wnqNzt7fVn9wNmlV5FHIw8Z5XqYeve22iuqMs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=dFLGB1N2UgX/wpN5SKeqh+V/Kw3ize4kQC0U38iS8rcVDmzr0r/xkygfCnDL/v7VLb +CHADdFEHWE8jA30u8KRJB8VfDUlkqfIYe9ih7lvBy79bZgkNiopMoanpjVejnH9VSlU SXAaVD0kU7sYiXzAJikH8ufRmGKjlSKhFoI8E= MIME-Version: 1.0 Received: by 10.216.87.131 with SMTP id y3mr1376054wee.3.1297803803710; Tue, 15 Feb 2011 13:03:23 -0800 (PST) Sender: johny.mattsson@gmail.com Received: by 10.216.170.85 with HTTP; Tue, 15 Feb 2011 13:03:23 -0800 (PST) In-Reply-To: <20110215194313.c9141c1c.torfinn.ingolfsen@broadpark.no> References: <20110206181659.869861bf.torfinn.ingolfsen@broadpark.no> <201102062331.01760.hselasky@c2i.net> <20110207163835.41be5884.torfinn.ingolfsen@broadpark.no> <201102071656.11633.milu@dat.pl> <20110207204429.ae2fa012.torfinn.ingolfsen@broadpark.no> <20110207213437.9839d476.torfinn.ingolfsen@broadpark.no> <20110212003203.c4ed07d8.torfinn.ingolfsen@broadpark.no> <20110215194313.c9141c1c.torfinn.ingolfsen@broadpark.no> Date: Wed, 16 Feb 2011 08:03:23 +1100 X-Google-Sender-Auth: Kgy7aCOP9VvxgL__FzyWYo2AklY Message-ID: From: Johny Mattsson To: Torfinn Ingolfsen Content-Type: text/plain; charset=UTF-8 Cc: freebsd-arm@freebsd.org Subject: Re: FreeBSD on a DockStar - doesn't mount root 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: Tue, 15 Feb 2011 21:28:31 -0000 On 16 February 2011 05:43, Torfinn Ingolfsen wrote: > Aha. Is there no way to pass FreeBSD kernel arguments (or what you call it) via U-Boot? The short answer is no. The slightly longer answer is that it would be possible if you were booting into ubldr instead of the kernel directly. However that requires that your U-Boot is built with the API option enabled, and even if you get that far you then learn that ubldr doesn't grok MBR/FATs and can't find the kernel, and if you try to go for a raw BSD disk/UFS you find that U-Boot doesn't grok that, and can't find ubldr in the first place. In the end it was quicker for me to just recompile a couple of kernels than patch one or the other to work with my setup. Should I find myself with some extra spare time, I would like to go back and see if I can improve this situation. Right now that doesn't seem likely to happen any time soon however. Regards, /Johny Last minute edit: I don't think I ever tried placing ubldr directly into the onboard flash and booting into it from there. That might be a workable option, but you'll need to be careful of the load addresses of the various U-Boots, ubldr and kernel - it's very easy to overload one with another.