From owner-freebsd-arm@freebsd.org Tue Jul 18 11:11:04 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 1FB4BCFEC01 for ; Tue, 18 Jul 2017 11:11:04 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.92]) (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 D89C86A297; Tue, 18 Jul 2017 11:11:03 +0000 (UTC) (envelope-from ronald-lists@klop.ws) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1dXQ9v-0004l9-Nb; Tue, 18 Jul 2017 12:55:20 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: "Ian Lepore" , "Russell Haley" Cc: freebsd-arm Subject: Re: BBB & IMX6 Hummingboard SDIO driver References: <1500258608.22314.63.camel@freebsd.org> <1500316477.22314.91.camel@freebsd.org> Date: Tue, 18 Jul 2017 12:55:14 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/1.0 (Win32) X-Authenticated-As-Hash: bdb49c4ff80bd276e321aade33e76e02752072e2 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: / X-Spam-Score: -0.2 X-Spam-Status: No, score=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 autolearn=disabled version=3.4.0 X-Scan-Signature: 535c43b1e2e4460e348b3940d95530cd 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: Tue, 18 Jul 2017 11:11:04 -0000 On Mon, 17 Jul 2017 22:57:21 +0200, Russell Haley wrote: > My installworld is failing? > > Steps so far: > #Make a memdisk to speed things up > mkdir /mnt/memdisk > mkdir /mnt/uboot > > truncate -s 1024M bbb.img > sudo mdconfig -f bbb.img > > gpart create -s mbr md0 > gpart add -t fat32 -b 1M -s 50M md0 > newfs_msdos -F32 /dev/md0s1 > gpart add -t freebsd md0 > sudo newfs /dev/md0s2 > > #build > > make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 -j10 buildworld > make -DNO_CLEAN TARGET=arm TARGET_ARCH=armv6 > KERNCONF=BEAGLEBONE-MMCCAM -j10 buildkernel > > #install > sudo mount_msdosfs /dev/md0s1 /mnt/uboot/ > sudo mount /dev/md0s2 /mnt/memdisk/ > sudo make TARGET_ARCH=armv6 DESTDIR=/mnt/memdisk installworld > distribution > > build error (full output is here: https://pastebin.com/VU3XDt5u): > > -------------------------------------------------------------- >>>> Installing everything > -------------------------------------------------------------- > cd /usr/home/russellh/FreeBSD/hummingboard/src; make -f Makefile.inc1 > install > ===> lib (install) > ===> lib/csu (install) > ===> lib/csu/arm (install) > cc -target armv6-gnueabihf-freebsd12.0 > --sysroot=/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp > -B/usr/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/tmp/usr/bin > -O -pipe -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/common > -I/usr/home/russellh/FreeBSD/hummingboard/src/lib/libc/include > -std=gnu99 -Wsystem-headers -Werror -Wall -Wno-format-y2k -W > -Wno-unused-parameter -Wstrict-prototypes -Wmissing-prototypes > -Wpointer-arith -Wreturn-type -Wcast-qual -Wwrite-strings -Wswitch > -Wshadow -Wunused-parameter -Wcast-align -Wchar-subscripts -Winline > -Wnested-externs -Wredundant-decls -Wold-style-definition > -Wno-pointer-sign -Wthread-safety -Wno-empty-body -Wno-string-plus-int > -Wno-unused-const-variable -Qunused-arguments > ERROR-tried-to-rebuild-during-make-install -mlong-calls -S -o crt1.s > /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm/crt1.c > /tmp/install.t1fF66Xy/sh: cc: not found > *** Error code 127 'cc: not found' This happens to me if I forget to set SRCDIR or OBJDIR (from the top of my head, I'm not on my FreeBSD machine right now). It looks in the default (but wrong) directory then. Ronald. > > Stop. > make[6]: stopped in > /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu/arm > *** Error code 1 > > Stop. > make[5]: stopped in > /usr/home/russellh/FreeBSD/hummingboard/src/lib/csu > *** Error code 1 > > Stop. > make[4]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src/lib > *** Error code 1 > > Stop. > make[3]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > *** Error code 1 > > Stop. > make[2]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > *** Error code 1 > > Stop. > make[1]: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > *** Error code 1 > > Stop. > make: stopped in /usr/home/russellh/FreeBSD/hummingboard/src > > > > Thanks, > Russ > > On Mon, Jul 17, 2017 at 11:39 AM, Russell Haley > wrote: >> On Mon, Jul 17, 2017 at 11:34 AM, Ian Lepore wrote: >>> On Mon, 2017-07-17 at 11:32 -0700, Russell Haley wrote: >>>> On Sun, Jul 16, 2017 at 7:30 PM, Ian Lepore wrote: >>>> > >>>> > On Sun, 2017-07-16 at 17:41 -0700, Russell Haley wrote: >>>> > > >>>> > > Hi, >>>> > > >>>> > > I'm building for a BBB and I think I've got almost everything but >>>> > > I >>>> > > er... can't find the dtb file or the uEnv.txt file. Any help >>>> > > would be >>>> > > grand? I have a feeling I'm going to have to beg/borrow/steal a >>>> > > uEnv.txt file from a pre-built image. >>>> > > >>>> > > As I'm going through the process of re-learning the build steps, >>>> > > i >>>> > > thought of a couple of things that I either didn't see or >>>> > > couldn't >>>> > > find on the website: >>>> > > >>>> > > - A list of boards and their kernel config files >>>> > > - An easy reference on where to find the bits after the build. >>>> > > yes, >>>> > > yes, it's in the handbook. >>>> > > - Since u-boot has been standardised now, it would be nice to >>>> > > have a >>>> > > section on where to get u-boot and the other bits needed to boot. >>>> > > >>>> > > Anyway, I've got an unprecedented week with no work and no kids, >>>> > > so >>>> > > I'm going to do what any sane person would do during a beautiful >>>> > > July >>>> > > summer: play with FreeBSD! >>>> > > >>>> > > My end goal - and this is a stretch target - is to try and adopt >>>> > > Illyia's SDIO driver. I'm not sure how far I'll get, or much time >>>> > > I'll >>>> > > have after my week is up, but that's what my objective is. I've >>>> > > built >>>> > > the system using the kernel config BEAGLEBONE-MMCCAM in the blind >>>> > > hope >>>> > > that it will use his drivers? Once I get that working and can >>>> > > verify >>>> > > it in dtrace (maybe? yet another rabbit hole!) I want to get it >>>> > > working on my IMX6 hummingboard. >>>> > > >>>> > > oh, and I suppose I should open up some code, eh? >>>> > > >>>> > > Okay, now why isn't my PC computer seeing my sd cards? grrr... ;) >>>> > > >>>> > > Cheers, >>>> > > >>>> > > Russ >>>> > You don't need a uenv.txt file. It was always optional, and with >>>> > the >>>> > latest uboot stuff it's completely gone. >>>> > >>>> > -- Ian >>>> Thanks Ian. >>>> >>>> DTB files are apparently generated with buildworld. >>>> >>>> https://wiki.freebsd.org/FlattenedDeviceTree >>>> >>>> I know they are generated with a specific tool (the name of which I >>>> forget) . I'm surprised it's not it's own target or at least part of >>>> buildkernel. >>>> >>>> Russ >>> >>> The DTB files installed on our distributed images are built from >>> sys/modules/dtb (which makes them part of the kernel build unless you >>> go out of your way to build them by themselves). >> >> EBK (Error Behind Keyboard): Forgot the single quotes in my find >> command. oops. Thanks! >> >> russellh@prescott:~/FreeBSD/hummingboard/obj/arm.armv6/usr/home/russellh/FreeBSD/hummingboard/src/sys% >> find . -name '*dtb*' >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-boneblack.dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/ufw.dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bonegreen.dtb >> ./BEAGLEBONE-MMCCAM/modules/usr/home/russellh/FreeBSD/hummingboard/src/sys/modules/dtb/am335x/am335x-bone.dtb > _______________________________________________ > freebsd-arm@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-arm > To unsubscribe, send any mail to "freebsd-arm-unsubscribe@freebsd.org"