From owner-freebsd-arm@freebsd.org Wed Jan 18 01:04:15 2017 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 55DEACB4458 for ; Wed, 18 Jan 2017 01:04:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-io0-x231.google.com (mail-io0-x231.google.com [IPv6:2607:f8b0:4001:c06::231]) (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 1BDFF1BB2 for ; Wed, 18 Jan 2017 01:04:15 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-io0-x231.google.com with SMTP id l66so787641ioi.1 for ; Tue, 17 Jan 2017 17:04:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc:content-transfer-encoding; bh=NAgBl86eumv3AjXWttenyUvKCwGIvhGE8yNTiTtTRow=; b=Y9NRQSO9TQf6OMAZ3DYRiZ08eiqUpazDffdF2lw60TAgOVjmFE45hdzGUx0Y9t9cO7 iz8Dv79jJkhn2kl6eMRZVdwXkShJzE4R7ImNdwgyqCHoH8mvpDKC3AXVv/2No/AplHCT q1IZpvj2yPy702O7kQx4z9j8fEH9ppaRTYOIj+gS4oqcX0mn3xHS7Wcl+C48YAVOgXkr h870PpxL9+4bL0F/n+9fvcTMpsMnZILLgqM8pF9qXJH+OeVEOYVLBwJBHM6garTyvSt+ IqRaso1+FeDYw7vFyqg4tQPpMZ32nONuz8OQnybIcsNmDZCvV8w9CAKC+0xuN0S8IvER 1mIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc:content-transfer-encoding; bh=NAgBl86eumv3AjXWttenyUvKCwGIvhGE8yNTiTtTRow=; b=bgqykLNvBgGmEK3iyg/jrkawPg5+CpGr8lRR/TRBB1PrDg2QPZ2ZjL8nrL+vnVE6BA NnGOIfLvQH4m7MyPPluynKdNlUiO+GQnhNAqkrSK6r3+08uGpfyJHowVLe3yVYHcmka8 nRG5MmzFNFmeE1heWi0TlhYN/PwRB5SiWqNRLCeDIktQj1zqO4RKq7OXBIZ8jkvAEgV+ VB5AdL8fRJM77XvCiJTty7EObvcRgbEcoJKCECaA9fA4mSRZdnZ7s7KWmUsXCIx8QnFQ tp/F751NTjIdzjAsVTmrDPo4ej+FFVIcJtNrTUmkQ7wObmCMQJqvSp6dpIOHpc7zvr6Y XZyQ== X-Gm-Message-State: AIkVDXI+T5cGuPJZyqgNKbSMmrVvObOoCxObO99DhpP6N5GUW2QYRL+hQeXeccv75HWz4E2G3FaaxMFH0B1W7g== X-Received: by 10.107.139.131 with SMTP id n125mr1267871iod.166.1484701454274; Tue, 17 Jan 2017 17:04:14 -0800 (PST) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.145.217 with HTTP; Tue, 17 Jan 2017 17:04:13 -0800 (PST) X-Originating-IP: [50.253.99.174] In-Reply-To: <58C09F42-D34B-4B84-A894-7147613214B9@yahoo.com> References: <640059E8-B9DD-4289-BA59-2E02A4D91F87@yahoo.com> <20170116173329.GH13006@home.opsec.eu> <58C09F42-D34B-4B84-A894-7147613214B9@yahoo.com> From: Warner Losh Date: Tue, 17 Jan 2017 18:04:13 -0700 X-Google-Sender-Auth: miHSDjSLEWjRTZnw-4V08ewcDtQ Message-ID: Subject: Re: u-boot ports for Zedboard and Zybo To: Thomas Skibo Cc: Kurt Jaeger , "freebsd-arm@freebsd.org" Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jan 2017 01:04:15 -0000 On Mon, Jan 16, 2017 at 12:38 PM, Thomas Skibo wrot= e: > >> On Jan 16, 2017, at 10:20 AM, Warner Losh wrote: >> >> Any chance you could rebase this onto the new u-boot-master framework? >> Or are the changes not yet merged back into u-boot upstream? >> >> Warner >> >> > > Oh, wait, here=E2=80=99s the breakage: > > arm-none-eabi-gcc -Wp,-MD,cmd/.bootm.o.d -nostdinc -isystem /usr/local= /lib/gcc/arm-none-eabi/6.3.0/include -Iinclude -I./arch/arm/include -incl= ude ./include/linux/kconfig.h -D__KERNEL__ -D__UBOOT__ -Wall -Wstrict-proto= types -Wno-format-security -fno-builtin -ffreestanding -Os -fno-stack-prote= ctor -fno-delete-null-pointer-checks -g -fstack-usage -Wno-format-nonlitera= l -Werror=3Ddate-time -D__ARM__ -marm -mno-thumb-interwork -mabi=3Daapcs-li= nux -mword-relocations -fno-pic -mno-unaligned-access -ffunction-sections -= fdata-sections -fno-common -ffixed-r9 -msoft-float -pipe -march=3Darmv7-a -= D__LINUX_ARM_ARCH__=3D7 -I./arch/arm/mach-zynq/include -D"KBUILD_STR(s)= =3D#s" -D"KBUILD_BASENAME=3DKBUILD_STR(bootm)" -D"KBUILD_MODNAME=3DKBUILD_= STR(bootm)" -c -o cmd/bootm.o cmd/bootm.c > api/api_storage.c: In function 'dev_read_stor': > api/api_storage.c:337:9: error: 'struct blk_desc' has no member named 'bl= ock_read' > if ((dd->block_read) =3D=3D NULL) { > ^~ > api/api_storage.c:342:11: error: 'struct blk_desc' has no member named 'b= lock_read' > return dd->block_read(dd, start, len, buf); > ^~ > api/api_storage.c:343:1: warning: control reaches end of non-void functio= n [-Wreturn-type] > } > ^ > > > I have run into a lot of trouble with the API when I try to build from th= e official u-boot repository. For some reason, the Xilinx repository works= better despite that they don=E2=80=99t enable CONFIG_API on any of their b= oards. Does that mean you have a fix? :) I'm happy to add stuff to the u-boot ports branch (or do pull requests, which atm are a little complicated). Warner