From owner-freebsd-arm@freebsd.org Thu Sep 28 09:19:44 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 E1E6BE2D7E7 for ; Thu, 28 Sep 2017 09:19:44 +0000 (UTC) (envelope-from noname.esst@yahoo.com) Received: from sonic317-49.consmr.mail.gq1.yahoo.com (sonic317-49.consmr.mail.gq1.yahoo.com [98.137.66.175]) (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 BC3BC76DB2 for ; Thu, 28 Sep 2017 09:19:44 +0000 (UTC) (envelope-from noname.esst@yahoo.com) X-YMail-OSG: OdI64gYVM1nzPnF2HG78fpiL9ID.j4z45Us9AugFOLAH8wsrgxhMZgO.atQz_Vn k1_OTP.zYlGP5OGVl9VASV6NW7y6PIrhV.e8_q6qmtS7EDZ..wYzkabEyi88PfvCuCaXYhgscUz8 IfgS1ZceQMOGUUu8Vf8z6_ObA7XT3PKiuex7FFG80kX_QUhoOb69MUqUKAn83sT7XemI1mzY9NpM N9rP_kV5DRAKnvJz.67aq1Lqx5X7SqBb_BOldF9nMWxIL0.8hBqdsY5mGe0LxIZMTh7HpwXzPY0N 9S8kkLu2M5QIxfVX8Dc2lhr2o.vhrg9XbDfi3pbQJTSqL3yPMSK8e3j9tF1lT7DARi5rv9Mvg6gQ DA4HaqfLYGt4PXi4z3CIab0NbgeYG3xAhEy6UGclrIt5AC8O3wx8SzhhGINgs14rglDVqSq1fK78 zxOC9yS6fFbALQQuvmP.62usRsKIR0a7MrkLjHNC_IZgfLWcSsI4YIiFoYRq1hlkquw-- Received: from sonic.gate.mail.ne1.yahoo.com by sonic317.consmr.mail.gq1.yahoo.com with HTTP; Thu, 28 Sep 2017 09:19:43 +0000 Date: Thu, 28 Sep 2017 09:15:42 +0000 (UTC) From: Nomad Esst Reply-To: Nomad Esst To: Emmanuel Vadot Cc: Nomad Esst via freebsd-arm Message-ID: <1825224273.10951257.1506590142784@mail.yahoo.com> In-Reply-To: <20170927161819.6e36cd53a76f9e75b782a3b3@bidouilliste.com> References: <312104517.10213240.1506511560284.ref@mail.yahoo.com> <312104517.10213240.1506511560284@mail.yahoo.com> <20170927161819.6e36cd53a76f9e75b782a3b3@bidouilliste.com> Subject: Re: FreeBSD 11 on Banana-Pi M3 A83t MIME-Version: 1.0 X-Mailer: WebService/1.1.10521 YahooMailNeo Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Thu, 28 Sep 2017 09:19:45 -0000 Thank you EmmanuelI'm trying to install u-boot-master according to the inst= ruction mentioned in Fresh ports:=C2=A0 #cd /usr/ports/sysutils/u-boot-master/ && make install clean But I don't have this directory! I tried to install it using pkg install: #pkg install sysutils/u-boot-master But I get this error: Updating FreeBSD repository catalogue...FreeBSD repository is up to date.Al= l repositories are up to date.pkg: No packages available to install matchin= g 'sysutils/u-boot-master' have been found in the repositories Please help me solve this.=C2=A0 Thanks in advance=C2=A0=20 On Wednesday, September 27, 2017 5:48 PM, Emmanuel Vadot wrote: =20 On Wed, 27 Sep 2017 11:26:00 +0000 (UTC) Nomad Esst via freebsd-arm wrote: > Hello allI have created an image using Crochet build tool for my BPi M3 b= oard. I have burnt it on it's on-board 4GB EMMC. When I try to boot the boa= rd, I get the following error: >=20 > U-Boot SPL 2016.05 (Aug 13 2017 - 05:07:01)DRAM: 2048 MiBCard did not res= pond to voltage select!Could not determine boot source > resetting ... > What should I do? > Thanks in advance. Our U-Boot is probably not recent enough to support the eMMC. A83T support is not really great even in Linux or U-Boot. You could try updating u-boot to use the u-boot-master port (which curently track the 2017.07 version of U-Boot). --=20 Emmanuel Vadot =20 From owner-freebsd-arm@freebsd.org Thu Sep 28 09:29:55 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 D2FCFE2DA7E for ; Thu, 28 Sep 2017 09:29:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-it0-x22f.google.com (mail-it0-x22f.google.com [IPv6:2607:f8b0:4001:c0b::22f]) (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 A275B771DD for ; Thu, 28 Sep 2017 09:29:55 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-it0-x22f.google.com with SMTP id c195so500984itb.1 for ; Thu, 28 Sep 2017 02:29:55 -0700 (PDT) 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; bh=/SHp1Tf+DnrzZLJlJKJ9JE5zhOY5mIoeMcb+lXVdQ24=; b=NNv0zCPWwroaQKS52wVHdgefIfY6K490hkRmTLEi/nQx/4PVC5LUm8iUPsV9EPKU5S PZpjVDY3YXq2EocyTlE5ocebdHljlKIa7Jh3ch8O4+8JM5CSLTEyelWUFKHSEC1r3NwR RCb/BTuGAC78X1a9hB5Efs2U4gAeH/XiTa/QngzCVIc8KVB7NuY0EWKtCE07t64rEi7U /HwuMT6YDZpDjyB2vI5XEjGSOXYhG8zYjqZwnMruY1q3/CsdvYWh7ALaB1t35Fq4zhTX 0NEf0EQM+N+0NDEwt61hBeE38D1sLKOVNsD7B+4BHQnVEmGfQ/z6rQGIO76XWy/wmKDu 6dcw== 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; bh=/SHp1Tf+DnrzZLJlJKJ9JE5zhOY5mIoeMcb+lXVdQ24=; b=Tww4WbGWFto40+7h8bntOPuxFyymZ2iPcvnogjrShfsYYhMZZM7fY4HgWnGDt1TqR5 oFgmxnZwO1x4VK/AjDCAlUdZCTu80NUeXb/HrwAxCyiM9Wa7Q2i+MxZuCuZyEdO3RYHs JwidMkkAlRGOsmAuSzCocLBiX35PlxBgMp0OaOGPdQrfUiZo3/4PCkQ//cEkEkAg87y1 R0XziW5aUcM+AzBflYsMvNdckebXircEyAG9kyoTWx2+ecURui87kcX3m9BLicXLFLI1 ahJgZ3A0GjWU14WB6G8jSeoFM9IX4rAZ1CtjOfSYT6P4nHeXFxEG7rdl8bsZQYQ28kNq U8DA== X-Gm-Message-State: AMCzsaX6di+WGLza8LuxvNSEfAlsAA9n/ZS2xVtwFQ8YEc5Lnqws4gct +sjOtsbx2acYg6PplXSbL5aEDiyfSsuSS97fuYlaaw== X-Google-Smtp-Source: AOwi7QCpA453YXjHM55Q2gVlAD/n6TD+9itBdXuwnHiUVvAxo0GsTGOBQYP4cGQwELlQ32uZ4e49q41Cwc5fUcRwsuE= X-Received: by 10.36.6.18 with SMTP id 18mr602206itv.15.1506590994657; Thu, 28 Sep 2017 02:29:54 -0700 (PDT) MIME-Version: 1.0 Sender: wlosh@bsdimp.com Received: by 10.79.2.194 with HTTP; Thu, 28 Sep 2017 02:29:53 -0700 (PDT) X-Originating-IP: [2603:300b:6:5100:f996:822c:89a6:8ee4] In-Reply-To: <586157.40149.qm@web101704.mail.ssk.yahoo.co.jp> References: <509836.65470.qm@web101704.mail.ssk.yahoo.co.jp> <818825.27559.qm@web101705.mail.ssk.yahoo.co.jp> <323129.32331.qm@web101720.mail.ssk.yahoo.co.jp> <317452.45869.qm@web101717.mail.ssk.yahoo.co.jp> <586157.40149.qm@web101704.mail.ssk.yahoo.co.jp> From: Warner Losh Date: Thu, 28 Sep 2017 03:29:53 -0600 X-Google-Sender-Auth: 4uAhpN8cSD936ugSMZqRfv8QMD8 Message-ID: Subject: Re: Hang up at boot on armv5t To: Mori Hiroki Cc: "freebsd-arm@freebsd.org" Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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: Thu, 28 Sep 2017 09:29:55 -0000 what happens if you back out these two chunks of the diff: @@ -355,13 +572,13 @@ blist_print(blist_t bl) * * This is the core of the allocator and is optimized for the * BLIST_BMAP_RADIX block allocation case. Otherwise, execution - * time is proportional to log2(count) + log2(BLIST_BMAP_RADIX). + * time is proportional to log2(count) + bitpos time. */ static daddr_t blst_leaf_alloc(blmeta_t *scan, daddr_t blk, int count, daddr_t cursor) { u_daddr_t mask; - int count1, hi, lo, mid, num_shifts, range1, range_ext; + int count1, lo, num_shifts, range1, range_ext; if (count == BLIST_BMAP_RADIX) { /*@@ -419,17 +636,10 @@ blst_leaf_alloc(blmeta_t *scan, daddr_t blk, int count, daddr_t cursor) /* * The least significant set bit in mask marks the start of the first * available range of sufficient size. Clear all the bits but that one, - * and then perform a binary search to find its position. + * and then find its position. */ mask &= -mask; - hi = BLIST_BMAP_RADIX - count1; - while (lo + 1 < hi) { - mid = (lo + hi) >> 1; - if ((mask >> mid) != 0) - lo = mid; - else - hi = mid; - } + lo = bitpos(mask); /* * Set in mask exactly the bits being allocated, and clear them from since bitpos doesn't start at BLIST_BMAP_RADIX - count1 for 'hi', but instead assumes count1 is 0, and lo should start at 0 as well. Warner On Thu, Sep 28, 2017 at 1:39 AM, Mori Hiroki wrote: > Hi > > I found more hang up commit on armv5t. > > commit e7430120e9c80c0786dc0e9f54e336634932de4c(r323391) > Author: alc > Date: Sun Sep 10 17:46:03 2017 +0000 > > This is more complex commit. How make workaround on armv5t? > > > ----- Original Message ----- > >From: Warner Losh > >To: Mori Hiroki ; Mateusz Guzik > > >Cc: "freebsd-arm@freebsd.org" > >Date: 2017/9/27, Wed 13:01 > >Subject: Re: Hang up at boot on armv5t > > > > > >Well, you could do something cheezy like #ifndef arm :) > > > > > >If you do that in the latest sources, does it solve the problem? > > > > > >diff --git a/sys/sys/systm.h b/sys/sys/systm.h > >index ddebe0a6843..484784466a3 100644 > >--- a/sys/sys/systm.h > >+++ b/sys/sys/systm.h > >@@ -258,12 +258,14 @@ void hexdump(const void *ptr, int length, > const char *hdr, int flags); > > #define ovbcopy(f, t, l) bcopy((f), (t), (l)) > > void bcopy(const void * _Nonnull from, void * _Nonnull to, size_t len); > > void bzero(void * _Nonnull buf, size_t len); > >+#ifndef arm > > #define bzero(buf, len) ({ \ > > if (__builtin_constant_p(len) && (len) <= 64) \ > > __builtin_memset((buf), 0, (len)); \ > > else \ > > bzero((buf), (len)); \ > > }) > >+#endif > > void explicit_bzero(void * _Nonnull, size_t); > > > > > > void *memcpy(void * _Nonnull to, const void * _Nonnull from, size_t > len); > > I think "#ifndef __arm__" is good rather than "#ifndef arm". > > This is good before r323391. > > > > > > >And is this built with gcc or clang? What version? > > FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM > 5.0.0 > svn) > > Hiroki Mori > > > > > >Warner > > > > > >On Tue, Sep 26, 2017 at 9:55 PM, Mori Hiroki > wrote: > > > >Hi. > >> > >>I found out hang up problem cause of this commit. > >> > >>commit 20b4bc44be9bc985b74f8d5a01a24e 302e2a44ff > >>Author: mjg > >>Date: Fri Sep 8 20:09:14 2017 +0000 > >> > >>How to fix these commit ? > >> > >>Hiroki Mori > >> > >> > >>----- Original Message ----- > >>> From: Mori Hiroki > >> > >>> To: "freebsd-arm@freebsd.org" > >>> Cc: > >>> Date: 2017/9/27, Wed 10:42 > >>> Subject: Re: Hang up at boot on armv5t > >>> > >>> Hi. > >>> > >>> I still investigate this problem. > >>> > >>> I found other problem. > >>> > >>> This commit make panic on armv5t(RT1310). > >>> > >>> commit 1db0a229476afafe06f2bc9749f673 8e6cc6d047 > >>> Author: markj > >>> Date: Thu Sep 7 21:43:39 2017 +0000 > >>> > >>> https://gist.github.com/ yamori813/ dc3740085996af505d669446175170 6f > >>> > >>> > >>> Hiroki Mori > >>> > >>> > >>> ----- Original Message ----- > >>>> From: Mori Hiroki > >>>> To: Warner Losh > >>>> Cc: "freebsd-arm@freebsd.org" > >>>> Date: 2017/9/19, Tue 15:27 > >>>> Subject: Re: Hang up at boot on armv5t > >>>> > >>>> Hi > >>>> > >>>> ----- Original Message ----- > >>>>> From: Warner Losh > >>>>> To: Mori Hiroki > >>>>> Cc: "freebsd-arm@freebsd.org" > >>>>> Date: 2017/9/19, Tue 00:32 > >>>>> Subject: Re: Hang up at boot on armv5t > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> > >>>>> On Mon, Sep 18, 2017 at 12:59 AM, Mori Hiroki > >>> > >>>> wrote: > >>>>> > >>>>> Hi > >>>>>> > >>>>>> Now head is hung up at boot on armv5t. > >>>>>> > >>>>>> KDB: debugger backends: ddb > >>>>>> KDB: current backend: ddb > >>>>>> Copyright (c) 1992-2017 The FreeBSD Project. > >>>>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > >>> 1994 > >>>>>> The Regents of the University of California. All rights > >>>> reserved. > >>>>>> FreeBSD is a registered trademark of The FreeBSD Foundation. > >>>>>> FreeBSD 12.0-CURRENT #2 a3dbcdd(zrouter)-dirty: Mon Sep 11 18:04:22 > >>> JST > >>>> 2017 > >>>>>> hiroki@microserver:/storage/ home/hiroki/obj/storage/home/ > >>>> hiroki/zrouter/tmp/ > >>>>>> arm.arm/storage/home/hiroki/ freebsd/sys/Buffalo_WZR2-G300N arm > >>>>>> FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based > >>> on > >>>> LLVM 5.0.0 > >>>>>> svn) > >>>>>> > >>>>>> Last month build is fine. > >>>>>> > >>>>>> https://gist.github.com/ yamori813/ 88224f1c96c9c592fb611b12a15e4a > >>> b5 > >>>>> > >>>>> > >>>>> You might want to do a binary search between the working and broken > >>> builds > >>>> to see where it breaks. Without that, it's hard to make progress. > >>>>> > >>>>> > >>>>> Warner > >>>> > >>>> > >>>> This is RT1310 build by sys/arm/ralink. > >>>> > >>>> I get debug log by VERBOSE_SYSINIT. > >>>> > >>>> > >>>> Copyright (c) 1992-2017 The FreeBSD Project. > >>>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, > 1994 > >>>> The Regents of the University of California. All rights > reserved. > >>>> FreeBSD is a registered trademark of The FreeBSD Foundation. > >>>> FreeBSD 12.0-CURRENT #1 a3dbcdd(zrouter)-dirty: Tue Sep 19 15:03:43 > JST > >>> 2017 > >>>> > >>> hiroki@microserver:/storage/ home/hiroki/obj/storage/home/ > hiroki/zrouter/tmp/ > >>>> arm.arm/storage/home/hiroki/ freebsd/sys/Buffalo_WZR2-G300N arm > >>>> FreeBSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based > on LLVM > >>> 5.0.0 > >>>> svn) > >>>> subsystem 1000000 > >>>> 0xc01c1674(0)... done. > >>>> 0xc01d3a0c(0)... done. > >>>> subsystem 1800000 > >>>> 0xc00b9cb4(0)... done. > >>>> 0xc0097fc4(0)... done. > >>>> 0xc0097c00(0xc0280580)... > >>>> > >>>> I checked last address by objdump -D. > >>>> > >>>> c0097c00 : > >>>> c0280580 : > >>>> > >>>> What is wrong ? > >>>> > >>>> I use git repository on build. If I change git branch then arm > platform is > >>> build > >>>> take > >>>> > >>>> 6 hour by my server. It is very hard debugging. > >>>> > >>>> Hiroki Mori > >>>> > >>>> ______________________________ _________________ > >>>> 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" > >>>> > >>> ______________________________ _________________ > >>> 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 > " > >>> > >>______________________________ _________________ > >>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" > >> > > > > > > >