From owner-freebsd-arm@freebsd.org Wed Apr 13 02:43:47 2016 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 D3ABFB0E34F for ; Wed, 13 Apr 2016 02:43:47 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: from mail-yw0-x243.google.com (mail-yw0-x243.google.com [IPv6:2607:f8b0:4002:c05::243]) (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 A8ED11B13 for ; Wed, 13 Apr 2016 02:43:47 +0000 (UTC) (envelope-from embaudarm@gmail.com) Received: by mail-yw0-x243.google.com with SMTP id h6so4875872ywc.1 for ; Tue, 12 Apr 2016 19:43:47 -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; bh=nMjXWkFxcOV2rov2fRuXPZorB/7cW1lv93K0ijhN25U=; b=c8tHCBVzV4WVkw1go2fSRWygwWpM9dd1TmlVb6IPiP268Nn6uZ6ldMQAMJaggrf48c kvmhlSIxIQC77Ki3UDhWLZlUTMUxSNMQhBlzYgVRU3/RdwpoKhAFeJKB7qnCQjDNSI8o neAEQMM+qGp3QRszJX/UllMWszmz9UoD0jI4e/EQHKurk+lLDH7v/xJX/ADspxR8s0lQ +jTcHyvvMx5B23iHbA9bAOBDY62MvxI9dalrKeWmxt22mhLJ672HdjEjl671TxBJtmRy awUFpZBBfHSC5W2rM6G7URuHiL5uW7cF9AzBTO50KUHe/zqyFhdjsa68ofCelq/HZhPn nCtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=nMjXWkFxcOV2rov2fRuXPZorB/7cW1lv93K0ijhN25U=; b=CYy/QQoPVq/tG94qPozLeTPoX06A0wndPRf6QAqcb1xmEngh5yWfvfZkXng93IshwY 3iPoxMFaU6CZDdqkNailxGbWEHI8O0816nydCBBrvRHEFHMmRwbPcx5EH61t7ZPlQTWE si9tRJgGlnhKwW3Iy6VnjQbW7oPqZqJWXs22qxJuL0vpzsf+4FSEqMVnpWcy/xX4tV5c K0Agx1Qr3NDpYTcV6BkTCnOhJDFzl5jsZl8+NV1/XXnquIaqTHK3Rjy16AG0mH6NYvZL ZwnESA32ow37Et1nWALzCkdC4IEpgAnXdvmFqHTB5ijiHVBdj7fQt/daZvs9L/OnbNE9 Orkw== X-Gm-Message-State: AOPr4FWDjAa5cTW2d9B03gp0i3syay63WTS2kgz67irg4EMnvhI+W1Z64KyTjNIDGQpMqMB4Milo1EP6IOGJeA== MIME-Version: 1.0 X-Received: by 10.129.155.137 with SMTP id s131mr3590526ywg.24.1460515426766; Tue, 12 Apr 2016 19:43:46 -0700 (PDT) Received: by 10.83.35.73 with HTTP; Tue, 12 Apr 2016 19:43:46 -0700 (PDT) Date: Tue, 12 Apr 2016 22:43:46 -0400 Message-ID: Subject: Some Success on Zynq/Zybo Boot! From: Emb Aud To: freebsd-arm Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Apr 2016 02:43:47 -0000 Thanks everyone for the help, and to Thomas Skibo for blazing the trail with his FreeBSD/Zynq experiments. I was able to make a little progress today, and I wanted to share my results. I don't want to use U-Boot, but for now I am using it for development purposes. So, today I made my own build of FreeBSD 10.3 for Arm. I copied the stock 10.3 ZEDBOARD config to my own ZYBO config file, with the following changes: 22c22,23 < ident ZEDBOARD --- > ident ZYBO > 91a93,94 > device rgephy # Zybo ethernet > I noticed that there are a lot of differences between the 10.3 ZEDBOARD config and the "head" ZEDBOARD config. That's something I need to look into at some point. Then I compiled everything using the instructions here: https://wiki.freebsd.org/FreeBSD/arm/crossbuild Next, I created an SD-Card image using these instructions: https://wiki.freebsd.org/FreeBSD/arm/Zedboard Then I copied all of Skibo's MS-DOS boot files from here: http://www.skibo.net/zedbsd/ (zybo_extrafiles.tgz) My image still needed a little tweaking, so I had to: 1. create a /boot/msdos mount point 2. copy Skibo's fstab into my /etc/ 3. copy Skibo's rc.conf into my /etc/ 4. copy Skibo's board.dtb file into /boot/kernel/ At this point I now have an image that boots FreeBSD 10.3 on the Zybo. Now that I have a known good kernel and base system install, I can begin working on my own custom bootloader. I'm thinking about putting a copy of the kernel on the MS-DOS partition -- or in my case the Xilinx Boot Image File -- where I can have easy access to it without having to write code to navigate UFS.