Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Sep 2017 16:39:44 +0900 (JST)
From:      Mori Hiroki <yamori813@yahoo.co.jp>
To:        Warner Losh <imp@bsdimp.com>, "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Hang up at boot on armv5t
Message-ID:  <586157.40149.qm@web101704.mail.ssk.yahoo.co.jp>
In-Reply-To: <CANCZdfo46j=jCV8uu=x4p2bqTaJitoMb7tobXBbMOd5R0SZUsg@mail.gmail.com>
References:  <509836.65470.qm@web101704.mail.ssk.yahoo.co.jp> <CANCZdfo8hAYHn79=mXqcyE85ghWs1FQHK=LBcf1p7nQSQDeusQ@mail.gmail.com> <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> <CANCZdfo46j=jCV8uu=x4p2bqTaJitoMb7tobXBbMOd5R0SZUsg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi=0A=0AI found more hang up commit on armv5t.=A0=0A=0Acommit e7430120e9c80=
c0786dc0e9f54e336634932de4c(r323391)=0AAuthor: alc <alc@FreeBSD.org>=0ADate=
: =A0 Sun Sep 10 17:46:03 2017 +0000=0A=0AThis is more complex commit. How =
make workaround on armv5t?=0A=0A=0A----- Original Message -----=0A>From: Wa=
rner Losh <imp@bsdimp.com>=0A>To: Mori Hiroki <yamori813@yahoo.co.jp>; Mate=
usz Guzik <mjguzik@gmail.com> =0A>Cc: "freebsd-arm@freebsd.org" <freebsd-ar=
m@freebsd.org>=0A>Date: 2017/9/27, Wed 13:01=0A>Subject: Re: Hang up at boo=
t on armv5t=0A> =0A>=0A>Well, you could do something cheezy like #ifndef ar=
m :)=0A>=0A>=0A>If you do that in the latest sources, does it solve the pro=
blem?=0A>=0A>=0A>diff --git a/sys/sys/systm.h b/sys/sys/systm.h=0A>index dd=
ebe0a6843..484784466a3 100644=0A>--- a/sys/sys/systm.h=0A>+++ b/sys/sys/sys=
tm.h=0A>@@ -258,12 +258,14 @@ void =A0 =A0 =A0hexdump(const void *ptr, int =
length, const char *hdr, int flags);=0A>=A0#define ovbcopy(f, t, l) bcopy((=
f), (t), (l))=0A>=A0void =A0 bcopy(const void * _Nonnull from, void * _Nonn=
ull to, size_t len);=0A>=A0void =A0 bzero(void * _Nonnull buf, size_t len);=
=0A>+#ifndef arm=0A>=A0#define bzero(buf, len) ({ =A0 =A0 =A0 =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 \=0A>=A0 =A0 =A0 =A0 if (__builtin_constant=
_p(len) && (len) <=3D 64) =A0 \=0A>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 __builti=
n_memset((buf), 0, (len)); =A0 =A0 =A0\=0A>=A0 =A0 =A0 =A0 else =A0 =A0 =A0=
 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =
=A0\=0A>=A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 bzero((buf), (len)); =A0 =A0 =A0 =
=A0 =A0 =A0 =A0 =A0 =A0 =A0\=0A>=A0})=0A>+#endif=0A>=A0void =A0 explicit_bz=
ero(void * _Nonnull, size_t);=0A>=0A>=0A>=A0void =A0 *memcpy(void * _Nonnul=
l to, const void * _Nonnull from, size_t len);=0A=0AI think "#ifndef=A0__ar=
m__" is good rather than "#ifndef arm".=0A=0AThis is good before=A0r323391.=
=0A=0A>=0A>=0A>And is this built with gcc or clang? What version?=0A=0AFree=
BSD clang version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM 5.0.=
0=0Asvn)=0A=0AHiroki Mori=0A>=0A>=0A>Warner=0A>=0A>=0A>On Tue, Sep 26, 2017=
 at 9:55 PM, Mori Hiroki <yamori813@yahoo.co.jp> wrote:=0A>=0A>Hi.=0A>>=0A>=
>I found out hang up problem cause of this commit.=0A>>=0A>>commit 20b4bc44=
be9bc985b74f8d5a01a24e 302e2a44ff=0A>>Author: mjg <mjg@FreeBSD.org>=0A>>Dat=
e: =A0 Fri Sep 8 20:09:14 2017 +0000=0A>>=0A>>How to fix these commit ?=0A>=
>=0A>>Hiroki Mori=0A>>=0A>>=0A>>----- Original Message -----=0A>>> From: Mo=
ri Hiroki <yamori813@yahoo.co.jp>=0A>>=0A>>> To: "freebsd-arm@freebsd.org" =
<freebsd-arm@freebsd.org>=0A>>> Cc:=0A>>> Date: 2017/9/27, Wed 10:42=0A>>> =
Subject: Re: Hang up at boot on armv5t=0A>>>=0A>>> Hi.=0A>>>=0A>>> I still =
investigate this problem.=0A>>>=0A>>> I found other problem.=0A>>>=0A>>> Th=
is commit make panic on armv5t(RT1310).=0A>>>=0A>>> commit 1db0a229476afafe=
06f2bc9749f673 8e6cc6d047=0A>>> Author: markj <markj@FreeBSD.org>=0A>>> Dat=
e: =A0 Thu Sep 7 21:43:39 2017 +0000=0A>>>=0A>>> https://gist.github.com/ y=
amori813/ dc3740085996af505d669446175170 6f=0A>>>=0A>>>=0A>>> Hiroki Mori=
=0A>>>=0A>>>=0A>>> ----- Original Message -----=0A>>>>=A0 From: Mori Hiroki=
 <yamori813@yahoo.co.jp>=0A>>>>=A0 To: Warner Losh <imp@bsdimp.com>=0A>>>>=
=A0 Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>=0A>>>>=A0 Date:=
 2017/9/19, Tue 15:27=0A>>>>=A0 Subject: Re: Hang up at boot on armv5t=0A>>=
>>=0A>>>>=A0 Hi=0A>>>>=0A>>>>=A0 ----- Original Message -----=0A>>>>>=A0 Fr=
om: Warner Losh <imp@bsdimp.com>=0A>>>>>=A0 To: Mori Hiroki <yamori813@yaho=
o.co.jp>=0A>>>>>=A0 Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>=
=0A>>>>>=A0 Date: 2017/9/19, Tue 00:32=0A>>>>>=A0 Subject: Re: Hang up at b=
oot on armv5t=0A>>>>>=0A>>>>>=0A>>>>>=0A>>>>>=0A>>>>>=0A>>>>>=0A>>>>>=A0 On=
 Mon, Sep 18, 2017 at 12:59 AM, Mori Hiroki=0A>>> <yamori813@yahoo.co.jp>=
=0A>>>>=A0 wrote:=0A>>>>>=0A>>>>>=A0 Hi=0A>>>>>>=0A>>>>>>=A0 Now head is hu=
ng up at boot on armv5t.=A0=0A>>>>>>=0A>>>>>>=A0 KDB: debugger backends: dd=
b=0A>>>>>>=A0 KDB: current backend: ddb=0A>>>>>>=A0 Copyright (c) 1992-2017=
 The FreeBSD Project.=0A>>>>>>=A0 Copyright (c) 1979, 1980, 1983, 1986, 198=
8, 1989, 1991, 1992, 1993,=0A>>> 1994=0A>>>>>>=A0 =A0 =A0 =A0 =A0 The Regen=
ts of the University of California. All rights=0A>>>>=A0 reserved.=0A>>>>>>=
=A0 FreeBSD is a registered trademark of The FreeBSD Foundation.=0A>>>>>>=
=A0 FreeBSD 12.0-CURRENT #2 a3dbcdd(zrouter)-dirty: Mon Sep 11 18:04:22=0A>=
>> JST=0A>>>>=A0 2017=0A>>>>>>=A0 =A0 =A0 hiroki@microserver:/storage/ home=
/hiroki/obj/storage/home/=0A>>>>=A0 hiroki/zrouter/tmp/=0A>>>>>>=A0 arm.arm=
/storage/home/hiroki/ freebsd/sys/Buffalo_WZR2-G300N arm=0A>>>>>>=A0 FreeBS=
D clang version 5.0.0 (tags/RELEASE_500/final 312559) (based=0A>>> on=0A>>>=
>=A0 LLVM 5.0.0=0A>>>>>>=A0 svn)=0A>>>>>>=0A>>>>>>=A0 Last month build is f=
ine.=0A>>>>>>=0A>>>>>>=A0 https://gist.github.com/ yamori813/ 88224f1c96c9c=
592fb611b12a15e4a=0A>>> b5=0A>>>>>=0A>>>>>=0A>>>>>=A0 You might want to do =
a binary search between the working and broken=0A>>> builds=0A>>>>=A0 to se=
e where it breaks. Without that, it's hard to make progress.=0A>>>>>=0A>>>>=
>=0A>>>>>=A0 Warner=A0=0A>>>>=0A>>>>=0A>>>>=A0 This is RT1310 build by sys/=
arm/ralink.=0A>>>>=0A>>>>=A0 I get debug log by VERBOSE_SYSINIT.=0A>>>>=0A>=
>>>=0A>>>>=A0 Copyright (c) 1992-2017 The FreeBSD Project.=0A>>>>=A0 Copyri=
ght (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994=0A>>>>=
=A0 =A0 =A0 =A0 =A0 The Regents of the University of California. All rights=
 reserved.=0A>>>>=A0 FreeBSD is a registered trademark of The FreeBSD Found=
ation.=0A>>>>=A0 FreeBSD 12.0-CURRENT #1 a3dbcdd(zrouter)-dirty: Tue Sep 19=
 15:03:43 JST=0A>>> 2017=0A>>>>=A0 =A0 =A0=0A>>> hiroki@microserver:/storag=
e/ home/hiroki/obj/storage/home/ hiroki/zrouter/tmp/=0A>>>>=A0 arm.arm/stor=
age/home/hiroki/ freebsd/sys/Buffalo_WZR2-G300N arm=0A>>>>=A0 FreeBSD clang=
 version 5.0.0 (tags/RELEASE_500/final 312559) (based on LLVM=0A>>> 5.0.0=
=0A>>>>=A0 svn)=0A>>>>=A0 subsystem 1000000=0A>>>>=A0 =A0=A0 0xc01c1674(0).=
.. done.=0A>>>>=A0 =A0=A0 0xc01d3a0c(0)... done.=0A>>>>=A0 subsystem 180000=
0=0A>>>>=A0 =A0=A0 0xc00b9cb4(0)... done.=0A>>>>=A0 =A0=A0 0xc0097fc4(0)...=
 done.=0A>>>>=A0 =A0=A0 0xc0097c00(0xc0280580)...=A0=0A>>>>=0A>>>>=A0 I che=
cked last address by objdump -D.=0A>>>>=0A>>>>=A0 c0097c00 <malloc_init>:=
=0A>>>>=A0 c0280580 <M_GEOM>:=0A>>>>=0A>>>>=A0 What is wrong ?=0A>>>>=0A>>>=
>=A0 I use git repository on build. If I change git branch then arm platfor=
m is=0A>>> build=0A>>>>=A0 take=0A>>>>=0A>>>>=A0 =A06 hour by my server. It=
 is very hard debugging.=A0=0A>>>>=0A>>>>=A0 Hiroki Mori=0A>>>>=0A>>>>=A0 _=
_____________________________ _________________=0A>>>>=A0 freebsd-arm@freeb=
sd.org mailing list=0A>>>>=A0 https://lists.freebsd.org/ mailman/listinfo/f=
reebsd-arm=0A>>>>=A0 To unsubscribe, send any mail to=0A>>> "freebsd-arm-un=
subscribe@ freebsd.org"=0A>>>>=0A>>> ______________________________ _______=
__________=0A>>> freebsd-arm@freebsd.org mailing list=0A>>> https://lists.f=
reebsd.org/ mailman/listinfo/freebsd-arm=0A>>> To unsubscribe, send any mai=
l to "freebsd-arm-unsubscribe@ freebsd.org"=0A>>>=0A>>_____________________=
_________ _________________=0A>>freebsd-arm@freebsd.org mailing list=0A>>ht=
tps://lists.freebsd.org/ mailman/listinfo/freebsd-arm=0A>>To unsubscribe, s=
end any mail to "freebsd-arm-unsubscribe@ freebsd.org"=0A>>=0A>=0A>=0A>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?586157.40149.qm>