From owner-freebsd-arm@FreeBSD.ORG Sat Sep 27 20:31:20 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.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id C567AC7D for ; Sat, 27 Sep 2014 20:31:20 +0000 (UTC) Received: from mail-qa0-x22b.google.com (mail-qa0-x22b.google.com [IPv6:2607:f8b0:400d:c00::22b]) (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 860EFE1F for ; Sat, 27 Sep 2014 20:31:20 +0000 (UTC) Received: by mail-qa0-f43.google.com with SMTP id i13so7407000qae.16 for ; Sat, 27 Sep 2014 13:31:19 -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=T/loemO2Ncw2/qdZsa8oHyG4xtEZ9SbDfu26ZvMGZU0=; b=PrvvPv6vcIziD4UsWTUJd4FNwQalPQOJe5UfHS2HlkBJ7pYR8RIwXOJXI4jakgTcqA tCxAtcwq7GTtwYW2B3aD94fjWRZK7thjuzZDytDR5HSC14Bx79c+no5Mcwov1LpnV0ct ifs7MneXSyrNt7K0O/B8869wRGi7cPCMm1acRLUIR6X4c/S2ano4ILWUyCgbtKJkJ9A1 bb6cj1VKK/aOhbptjwN/7lIa9/PmXXBTaK5mu/9oICiF8qYRsBLPehaXoDH7yj7eFsXh 0kdicAhT2YPtNXm2xM/KeQCUVhT/u3K+B2fQJRb5QkrpHX5R44Gqt0KkUmkXYU8UiEe1 mNEQ== MIME-Version: 1.0 X-Received: by 10.140.40.169 with SMTP id x38mr45679662qgx.73.1411849879694; Sat, 27 Sep 2014 13:31:19 -0700 (PDT) Received: by 10.140.154.15 with HTTP; Sat, 27 Sep 2014 13:31:19 -0700 (PDT) In-Reply-To: References: Date: Sat, 27 Sep 2014 13:31:19 -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 20:31:21 -0000 Rui, So no MTD means the NAND on the SOM is out, but can I boot the kernel and load rootfs from the microSD, like in this example: - ARNDALE5250 # setenv bootcmd "fatload mmc 0:1 0x40f00000 kernel.bin; go 0x40f00000" ARNDALE5250 # saveenv ARNDALE5250 # boot from https://wiki.freebsd.org/FreeBSD/arm/ArndaleBoard 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 > > > >