From owner-freebsd-arm@FreeBSD.ORG Sat Sep 27 05:38:41 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7832F16E for ; Sat, 27 Sep 2014 05:38:41 +0000 (UTC) Received: from mail-qc0-x22d.google.com (mail-qc0-x22d.google.com [IPv6:2607:f8b0:400d:c01::22d]) (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 39C0EDF9 for ; Sat, 27 Sep 2014 05:38:41 +0000 (UTC) Received: by mail-qc0-f173.google.com with SMTP id r5so5523181qcx.18 for ; Fri, 26 Sep 2014 22:38:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=lAgRwhx+5BD4jui7x/CMO7/gw0mUHglZu5zIwR8dfS0=; b=v+4+z5urkcJ8WS58H1Lhhts/quqQh+anTvOQHgYnHqwWwI//Lzj54oJ05zd+Vb+f70 +so1TFFvHpG4UVIbvkS978XqUZJqUfrflk8C3ldGeJuZaunXq9E7DSAzENrTfjFz27BC VqP7X/OO1j1q8LGfYFjrmcUfIqd56qYT2NrHxl6kCs1klKLXsaygnIJSOm21iC8qjyef 3FVRAoccabQbmXVB8TXRPTdhH09BMpw50vqCYfzr1t5GQwEg20EMTnDMFQs0Kf/xxp3f d697InJyBhdTjHKZx6Rp2LnK6kWvfQk3FTD9/LHr0oCWOBcJhA83VZiisS+UL8dlG75Y ivrw== MIME-Version: 1.0 X-Received: by 10.224.137.193 with SMTP id x1mr36500378qat.56.1411796320329; Fri, 26 Sep 2014 22:38:40 -0700 (PDT) Received: by 10.140.154.15 with HTTP; Fri, 26 Sep 2014 22:38:40 -0700 (PDT) Date: Fri, 26 Sep 2014 22:38:40 -0700 Message-ID: Subject: Digi CCWMX53 From: Russell Haley To: freebsd-arm@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 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 05:38:41 -0000 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? 2) Do I need to create a cross compiler? Reference 1 says yes, reference two says no. Help! Ref.1 Build a cross compiler https://wiki.freebsd.org/FreeBSD/arm/ArndaleBoard Ref 2. No cross compiler/ make toolchain https://wiki.freebsd.org/A_Brief_Guide_To_Cross_Compiling_FreeBSD 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 # never got to this due to documented error in head release that I had. make TARGET=arm TARGET_ARCH=arm installworld Copy to sd card #To Wipe Disk sudo dd if=/dev/zero of=/dev/da1 bs=512 count=1 && sync && sync #u-boot image From CCWMX53 Starter Kit sudo dd if=u-boot-ccwmx53js.bin of=/dev/da1 bs=512 && sync && sync # lost the path from the build output that I got the kernel.bin file from. I have since deleted that jail sudo dd if=kernel.bin of=/dev/da1 bs=512 seek=2048 && sync && sync Many thanks and this has been an awesome ride. A shout out to Ray whos Raysblog got me started and Rui Paulo for starting the CCWMX53 port. My ultimate goal is to also learn about Mer and create a BSD licensed phone OS (PhoneBSD anyone?). I have a OnePlus I'm working to port to Sailfish right now too. Thanks, Dinsdale