From owner-freebsd-arm@freebsd.org Sun Jul 24 15:46:15 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 3FAE2BA3A57 for ; Sun, 24 Jul 2016 15:46:15 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) Received: from nm48-vm4.bullet.mail.bf1.yahoo.com (nm48-vm4.bullet.mail.bf1.yahoo.com [216.109.115.159]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id EF0931BD6 for ; Sun, 24 Jul 2016 15:46:14 +0000 (UTC) (envelope-from thomasskibo@yahoo.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1469375036; bh=iU7m3DGG+oqkRkNwDstW0qBekOLPnW+cCqLZmfFuLzM=; h=From:Subject:Date:Cc:To:From:Subject; b=bfF0L8MsIB7aZquaBDk8F1n6OATfK2H/b/Z9YcrIB13n60Up+18s8h8LOg2C106fM3KOqvpqoVlK6Fk/C6BGVmLyUmpGelT6nrsa8rzxt6mWsa1qXyrB4YlFENvHjNcYfBPir+HzwoJdRYjU4Q1AOnQjqRhiknTSrW7rZMsdsbkmGWciLvHdHWB3biEFjsBXDsJz5iTRNeNO4819qQ8+Kehzwv+vGUuQkWIUGIFD61SspZErBZSE6FhaUHHMnnXus5qMLqumKTbVVY0yC1N0USaV4Vvcfayzauc98rarq7GOIoitLOaR80IiCCxu9m1naE3v3PqarIlShajNzzoMLQ== Received: from [66.196.81.170] by nm48.bullet.mail.bf1.yahoo.com with NNFMP; 24 Jul 2016 15:43:56 -0000 Received: from [98.139.211.195] by tm16.bullet.mail.bf1.yahoo.com with NNFMP; 24 Jul 2016 15:43:56 -0000 Received: from [127.0.0.1] by smtp204.mail.bf1.yahoo.com with NNFMP; 24 Jul 2016 15:43:56 -0000 X-Yahoo-Newman-Id: 765817.25664.bm@smtp204.mail.bf1.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: 6yvX7uQVM1nxjC7Jw1wfwtPt8sjtAXCE9wAIeUzxvvUXnJA 9zEddYF9gTEB2Cc4houhvu5AcfPHpZpZCGSZBuGYpebTyaLUNC2Z0GQzPtJs Qx6Y_hQa8ftJPTgE56KjTe2s.Ik8amA5RMftIFSpKe.EtSUNt17UamE71G8J RO96MJIlWbKFKqStDxuamWGTvKvRc.l13G9DvPv5JrlMloRRx3IPBf3Pc7Z_ Et0lCs9qiL73ebvfp90Im8xvGfHkQN45n2y2NbcM2y.e2e1M5e4R._sffWp3 P08dJiWCK901dyrkOCmzf3MW04kjsvd._q2KJyJenil6CjpfxtKARFCuPh2A 6DQP9hzO8B9kM2txCyCLZEJeO2QWshFqwgKGebdm.kUaw8tInbVSq1StEndt Tl2VzorlFyT1eZ9APwrxythCw0nGtnOdhyBBsq.L3dMffzRnGcg1UYaPJXk3 I.wKfr40YRwq7T4RZC1.cGV.ZQOzHmZ85oPLlAhmrjwVIYF2dS139n.RXsfz xb2MDpgTEjQ__C2Tv8halZ9fYv7Uxt3qAN1.RdO6CIGPxTibThcMP4QRKxBm roVmNTiAyixDNFOAJp3oKlTH5NYU- X-Yahoo-SMTP: .8Dytk6swBAeTUTcf.ezO8BKaYfn.mUV From: Thomas Skibo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: Questions about writing custom boot loader, Zynq, Zybo Date: Sun, 24 Jul 2016 08:43:54 -0700 Message-Id: Cc: Thomas Skibo To: freebsd-arm@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) X-Mailer: Apple Mail (2.3124) X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 24 Jul 2016 15:46:15 -0000 > I have the following problems while the kernel is booting: >=20 > 1. RS232 port switches to double speed when the kernel starts printing > (230400 baud instead of 115200 baud). This may be due to a clock not getting initialized correctly. See = below. >=20 > 2. The ethernet driver cannot find the MAC address The ethernet address is set by u-boot. Without an ethernet address, the = driver (cgem) is supposed to pick a random one. >=20 > 3. Is there anything special about how the Zynq is configured in > ps7_init.c? Absolutely. ps7_init.c sets up all the clocks and DDR parameters and is = very board specific. This might be why you=E2=80=99re having problems = with the RS232 port. The clock settings may not match the clock values = in the dtb. >=20 > 4. Is the exact ps7_init.c that Thomas Skibo used for his Zybo = binaries > available anywhere? I build the u-boot binaries from sources at = https://github.com/Xilinx/u-boot-xlnx, specifically release v2016.1. = The ps7_init.c and ps7_init.h used are in directory = board/xilinx/zynq/zybo_hw_platform. There are ps7_init.[ch] for other = boards there too. =E2=80=94 Thomas Skibo thomasskibo@yahoo.com