From owner-freebsd-arm@freebsd.org Sun Jul 26 07:39:19 2015 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3DCC9A9ACC for ; Sun, 26 Jul 2015 07:39:18 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: from mail-lb0-x22e.google.com (mail-lb0-x22e.google.com [IPv6:2a00:1450:4010:c04::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 6E308C8F for ; Sun, 26 Jul 2015 07:39:18 +0000 (UTC) (envelope-from russ.haley@gmail.com) Received: by lblf12 with SMTP id f12so36536608lbl.2 for ; Sun, 26 Jul 2015 00:39:15 -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 :content-type; bh=S7tWPsvg+DCC3JU87vBY7o4huN0A7flOXxi4HWaGcXg=; b=TjlECcx1DmVUfxv+Ac4BcCoHmmkfNw0sHewqePWFkdVzAk/giCa68jf37fvC8aNKyJ VNyitlW1S+B1KsHgjjLaHiX0g11bSESbB4mI9L0ParS/LZH4EGMm2AhhvxzY9vqInojU LRWThG+ypKL4EYKdipqXhxBSIOG5xFwV2H38T7xPJICH4m2pbt6JoOp/GI3ssg1Lg9cn 2lKKVL6tdygiRtiGovy9r8/bA/u7bZdDvyWbg235BlMFGB6Epf5DPvVo9XXe2bq0oPrZ qfbxUWuFZElnsJnyqGAkt2NxqRUZ92+1m/HYr+hSoMZMHIZnksN+zRgit2WZcBHlzmaN S4VA== MIME-Version: 1.0 X-Received: by 10.112.24.71 with SMTP id s7mr20843089lbf.37.1437896354993; Sun, 26 Jul 2015 00:39:14 -0700 (PDT) Received: by 10.152.180.166 with HTTP; Sun, 26 Jul 2015 00:39:14 -0700 (PDT) In-Reply-To: References: Date: Sun, 26 Jul 2015 00:39:14 -0700 Message-ID: Subject: Fwd: HummingBoard Boot From: Russell Haley To: freebsd-arm Content-Type: text/plain; charset=UTF-8 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Jul 2015 07:39:19 -0000 Okay, gonna answer my own questions. I keep forgetting that trying to skirt building the code in the projects means I miss all the good documentation in there as well! 1&2) I think I understand this: the u-boot image is created to look in the fat partition for ubldr and uEnv.txt? This seems to be evidenced by the file patch-include_configs_mx6__cubox-1.h 2a) looked into the port for u-boot-cubox-hummingboard and say that Ian was kind enough to document that the SPL and the u-boot.img is combined into a file called u-boot.imx. I also actually READ the text on the pages for the snapshots and found out it contains a couple of images. I can only seem to access one so I created a memory device and I am copying it to an SD card now. I'm building from source again as well just to be safe. Thanks, Russ ---------- Forwarded message ---------- From: Russell Haley Date: Sat, Jul 25, 2015 at 4:59 PM Subject: HummingBoard Boot To: freebsd-arm Hi there, Ian, thanks for all your great updates on the arm iMX6 pages. I went out and picked up a hummingboard and I'm trying to put this all together. I was able to find and flash the u-boot image for the cubox-hummingboard. Ian, thank you again for your efforts there. However, there are two things that are not clear to me from the iMX6 page: 1) where does the u-boot environment variable file go? 2) where do I put ubldr on the SD? I am thinking within the first 1 MB? 2b) I noticed in a Linux image the boot loader had an SDL file and a u-boot.imx file. Your instruction on the iMx6 page verified that is the process. However, the files installed from the pkgng system is only a u-boot.imx file. Am I missing anopther piece? Finally, I will go back and get my head in crochet again soon, but I was wondering if it's possible for me to just use the current snapshot release from the website? ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/FreeBSD-11.0-CURRENT-arm-armv6-CUBOX-HUMMINGBOARD-20150722-r285794.img.xz I opened it up and it seemed to be a fat filesystem and a ufs filesystem (I didn't go any further than this. Is this ubldr and rootfs with kernel in /sys/?). I'm hoping I can just do this: sudo pkg install u-boot-cubox-hummingboard cd /usr/local/share/u-boot/u-boot-cubox-hummingboard dd if=u-boot.imx of=/dev/da2 bs=1k oseek=1 conv=sync cd /usr/snapshot/current wget ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0/FreeBSD-11.0-CURRENT-arm-armv6-CUBOX-HUMMINGBOARD-20150722-r285794.img.xz dd if=FreeBSD-11.0-CURRENT-arm-armv6-CUBOX-HUMMINGBOARD-20150722-r285794.img.xz of=/dev/da2 bs=1k seek=1024 boot! Thanks Russ p.s. I bought the freeBSD driver book. I am trying to obsorb it as fast as I can. Is there a particular driver that I could/should dig in on from the list on the iMX6 page? Is there something I can help debug or document?