From owner-freebsd-arm@FreeBSD.ORG Sat Sep 27 06:19:15 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 377E2B4B for ; Sat, 27 Sep 2014 06:19:15 +0000 (UTC) Received: from mail-qg0-x233.google.com (mail-qg0-x233.google.com [IPv6:2607:f8b0:400d:c04::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id EB8D11C6 for ; Sat, 27 Sep 2014 06:19:14 +0000 (UTC) Received: by mail-qg0-f51.google.com with SMTP id a108so9823253qge.24 for ; Fri, 26 Sep 2014 23:19:14 -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=Zel0CyNOzUnmb0pE+0wVFMyOO8A67pbWrCA8uHnHuXQ=; b=b7sKvPi/a66buvYYAci44z9zxTlfXMi1Cc/tEgllkgazGM9j7uyJdRfs01T5Hzn7XE a3Jj9B2BZimID4afK9r3pwIzVf5+3AVdUxmzxK7c/cmYMH/gfqFqMFeUdlFmd3llCWCm kT00vrBSEOYmQZi6VSPBYwz3c3wuEvYEtFfEc/jkpJFOUk6beLCoWc43R7664tTZHMMN 9YJQBdXcrWjWtg6zIsqDCWa+NY9vTnRQwt0Qi/QCC6RZHEpaPaqkc+QlNTTaLxwbDA5g m6HDjcQkt++1EIO8eC3vfOzJSr0rfK92dQhTHTe2yeZJrXTXY8gsUio6EJttGC9yo15k W3kw== MIME-Version: 1.0 X-Received: by 10.224.129.66 with SMTP id n2mr35339484qas.34.1411798754109; Fri, 26 Sep 2014 23:19:14 -0700 (PDT) Received: by 10.140.154.15 with HTTP; Fri, 26 Sep 2014 23:19:14 -0700 (PDT) In-Reply-To: References: Date: Fri, 26 Sep 2014 23:19:14 -0700 Message-ID: Subject: Re: Digi CCWMX53 From: Russell Haley To: Rui Paulo Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: freebsd-arm@freebsd.org X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Sep 2014 06:19:15 -0000 Fantastic, Thanks so much Warner and Rui. Rui I've been pouring over your page trying to glean as much as I could from it. I'm working with someone else and he tried booting from the addresses on your page but since I wasn't building with the cross compiler the kernel was never going to boot. He was wondering why the offset for the go command when booting from the network (setenv bootcmd 'dhcp; tftpboot 0x70800000 kernel.ccwmx53; go 0x70800100')? I can't wait to try this out! Thanks Guys! Russ On Fri, Sep 26, 2014 at 10:56 PM, Rui Paulo wrote: > Hi, > > > On Sep 26, 2014, at 22:38, Russell Haley wrote: > > > > Hello, > > > > I am trying to build for a DIgi CCWMX53 and was actually able to get a > > kernel to build (holy cow I did it!!!) but I have failed to get it to > boot. > > I'll outline my steps below but I am also seeking answers for the > following > > questions: > > > > 1) Can anyone give me the correct u-boot enviroment variables or > reference > > to the u-boot process to boot the completed freebsd kernel. Specifically > on > > a CCWMX53 if possible, but I have linux references to port from. Where > > would I look for an example? > > This is my setup: > > https://wiki.freebsd.org/Digi-CCWMX53 > > I boot from the network because we don't support the MTD flash layout > yet. We can put a kernel in flash, but the kernel won't be able to read > the MTD partition layout and we can't boot rootfs from there. You can use > a USB stick. > > If you want to build U-Boot from source on FreeBSD, here's my fork: > https://github.com/rpaulo/uboot-ccwmx53-digi > > > 2) Do I need to create a cross compiler? Reference 1 says yes, reference > > two says no. Help! > > You always need it when building on x86. > > > Okay this is my process. It is performed in a 9.1-RELEASE jail within a > > PC-BSD 10 VM with 4 GB ram and 4 cores. > > > > svn checkout https://svn0.us-west.FreeBSD.org/base/head /usr/src > > > > cd /usr/src > > > > make TARGET=arm TARGET_ARCH=arm -j10 buildworld > > > > make TARGET=arm TARGET_ARCH=arm KERNCONF=DIGI-CCWMX53 buildkernel > > Like Warner said, you need armv6. > > -- > Rui Paulo > > > >