From owner-freebsd-arm@freebsd.org Fri Mar 23 08:08:20 2018 Return-Path: Delivered-To: freebsd-arm@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDFA1F516ED for ; Fri, 23 Mar 2018 08:08:19 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from nh602-vm5.bullet.mail.ssk.yahoo.co.jp (nh602-vm5.bullet.mail.ssk.yahoo.co.jp [182.22.90.30]) by mx1.freebsd.org (Postfix) with SMTP id 223C18622E for ; Fri, 23 Mar 2018 08:08:18 +0000 (UTC) (envelope-from yamori813@yahoo.co.jp) Received: from [182.22.66.106] by nh602.bullet.mail.ssk.yahoo.co.jp with NNFMP; 23 Mar 2018 08:05:06 -0000 Received: from [182.22.91.133] by t604.bullet.mail.ssk.yahoo.co.jp with NNFMP; 23 Mar 2018 08:05:06 -0000 Received: from [127.0.0.1] by omp606.mail.ssk.yahoo.co.jp with NNFMP; 23 Mar 2018 08:05:06 -0000 X-Yahoo-Newman-Property: ymail-3 X-Yahoo-Newman-Id: 38312.9063.bm@omp606.mail.ssk.yahoo.co.jp Received: (qmail 23292 invoked by uid 60001); 23 Mar 2018 08:05:05 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.jp; s=yj20110701; t=1521792305; bh=PrCjZQLb7yQrSmpvMiovar9IEiU8s7RcpNbN1KkCGNk=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hCViQ2QFBwfQ7iHjPwpTWFRJ0/Zi0CCQBEYph0jUhdSzdaLeSUkDl6XAEqOD5hj2qABqHNA+nlC6KCYISwLhD/tSrL7gIfRseTavWBGn4Sb7umXSk0oyVIfds64TxGyc5rMOzlaViob8WhE0xiYUDk0oiZIO9QsgyniMIMD+Wu4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=yj20110701; d=yahoo.co.jp; h=Message-ID:X-YMail-OSG:Received:X-Mailer:X-YMail-JAS:References:Date:From:Reply-To:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mtc3IFG340hxQ1/6mNzTLQBGpnf3frG6pwpqcBoY9pCK2BAthd2Mnbee8Rv5Za5N/qnD3Ym4UXfb52IkS3QAOebD9zSXEuTx4/WzVxn1scHX7dkb30HEbd5tupvNL3DLdCTR4a3iL2qVLFSLWwvB+yweQfX+vZqwl9wmqyb8dD0=; Message-ID: <879567.21647.qm@web101707.mail.ssk.yahoo.co.jp> X-YMail-OSG: 5nRTpcwVM1lOjcgLb35282xbPlC1PGo5yA0wUH0Rbv94jYveRuKs1d.Ct3TKaIOZ2eF0T9skRtVux73MjmBn9RelgyKTdh1sS80cphUiJBm6mReArxfL0bpEoL.vypWmZTkoXZwzYNUPdenQZOJ1kYZ4SkyDICwLK94voB2SqE3zb4cz3tS1JJxdsgyyX3levRLAJMpCUhXHyvm8gADZi_mcQuU74YtLxid98sL0kQB11pRRQ5DNk.m5ZGpqkHpkFCkV9SynlidN1RTlgBmngn8Sof66uDrzt3n_TMPC5tkC4rE3FvXTgO9hOTfVRrw3Uh1w3lSDNtcmeA06nWXNQ_Ie5yV0IE0a7p5trU0h0aAhwTljwWruu0MXEO6rcoeTUN5Xldj.PPXlu6wyQ_ZbNhiXTJpbD9yQPDj1dzxzR_Cr_eqmAiIyRA.C55czHWlumA4ad4oOE1_qIqU0lUYvhRmTARO6OlgYzxFlWAgV9n.N3RyG_vYBauykEPfCIdaDULbOYXzMgtcvizycM87tlVquW4RUu6hanFN9jTnETQyvSzZIxjb0pQPdHOWgfzWVj6LWfJ3nOPOWaGnAeHNLMmfCykyGnyX9vRPx3wwNOt1fR8xf1NZX51Qi0AKN1NG4 Received: from [203.165.91.75] by web101707.mail.ssk.yahoo.co.jp via HTTP; Fri, 23 Mar 2018 17:05:04 JST X-Mailer: YahooMailWebService/0.8.111_74 X-YMail-JAS: yFwkha8VM1lMVnIjB68dbE73fY4y7p._4LR7fPfMy83PVHjrhaLwTCj6x.q3eh2qo0tWdb1hIocnl8U4zOEojpqXU3ZWDYkwHNvy1wCb1SPqruEz4lcRuUr9JQOyXXpxtuzY References: <815937.99592.qm@web101711.mail.ssk.yahoo.co.jp> <340750.57914.qm@web101714.mail.ssk.yahoo.co.jp> <1520876476.84937.226.camel@freebsd.org> <173804.55612.qm@web101713.mail.ssk.yahoo.co.jp> <1520982842.84937.282.camel@freebsd.org> Date: Fri, 23 Mar 2018 17:05:04 +0900 (JST) From: Mori Hiroki Reply-To: Mori Hiroki Subject: Re: Dose clang support armv4 To: Ian Lepore , Warner Losh Cc: "freebsd-arm@freebsd.org" In-Reply-To: <1520982842.84937.282.camel@freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Mar 2018 08:08:20 -0000 Hi=0A=0AI use ZRouter build system and make arm-boot image.=0A=0AI add to a= rmv4 setting ZRouter.=0A=0AAlso I make change to mov from bx instruction at= this=A0=0Adirectory assembly code.=0A=0Asecure/lib/libcrypto/arm/=0Acontri= b/compiler-rt/lib/builtins/arm/=0A=0AI checked bx instruction at kernel and= init binary.=0A=0AThere is nothing.=A0It's right armv4 binary.=0A=0AIf dts= have bad geom_flashmap infomation then=0Ahang up at pause() at vfs_mountro= ot.c.=0AThis time can't use break.=0A=0AI think nearly close...=0A=0AHiroki= Mori=0A=0A----- Original Message -----=0A> From: Ian Lepore =0A> To: Mori Hiroki ; Warner Losh =0A> Cc: "freebsd-arm@freebsd.org" =0A> Date: 20= 18/3/14, Wed 08:14=0A> Subject: Re: Dose clang support armv4=0A> =0A> On Tu= e, 2018-03-13 at 15:28 +0900, Mori Hiroki wrote:=0A>>=A0=A0Hi=0A>> =0A>>=A0= =A0Thanks for reply.=0A>> =0A>>=A0=A0I'm sorry last log is missing geom_fla= shmap dts entry.=0A>> =0A>>=A0=A0I use to cfi rootfs.=0A>> =0A>> =0A>>=A0= =A0Now rootfs mount and execute init.=0A>> =0A>>=A0=A0https://gist.github.c= om/yamori813/ae047a28a825aac255e436fd8ccaf785=0A>> =0A>> =0A> =0A> I think = clang defaults to armv4t if the arch is just 'arm'. =A0You should=0A> be ab= le to fix this by building everything with CPUTYPE=3Darmv4. =A0Put=0A> that= in your make.conf file. =A0If you are doing a cross build do not put=0A> i= t in your main /etc/make.conf, instead create another file somewhere,=0A> a= nd add this to the make command line when you crossbuild: =A0=0A> __MAKE_CO= NF=3D/somewhere/make.conf=A0=0A> =0A> You will have to rebuild everything (= make clean).=0A> =0A> -- Ian=0A> =0A>>=A0=A0init is broken at armv4.=A0=0A>= > =0A>>=A0=A0I checked init is not use arm4t instrauction(bx).=0A>> =0A>>= =A0=A0I seem crt problem on armv4.=0A>> =0A>>=A0=A0BTW I post review geom_f= lashmap scan capability.=0A>>=A0=A0This is same as geom_map=A0capability.= =0A>> =0A>>=A0=A0https://reviews.freebsd.org/D13648=0A>> =0A>> =0A>>=A0=A0T= his is ad hoc method. But It's useful for flash file system.=A0=0A>> =0A>>= =A0=A0Thanks=0A>> =0A>>=A0=A0Hiroki Mori=0A>> =0A>>=A0=A0----- Original Mes= sage -----=0A>>=A0=A0> =0A>>=A0=A0> From: Ian Lepore =0A>>= =A0=A0> To: Warner Losh ; Mori Hiroki =0A> >=A0=A0> p>=0A>>=A0=A0> Cc: "freebsd-arm@freebsd.org" =0A> =0A>>=A0=A0> Date: 2018/3/13, Tue 02:41=0A>>=A0=A0> Subje= ct: Re: Dose clang support armv4=0A>>=A0=A0> =0A>>=A0=A0> On Mon, 2018-03-1= 2 at 10:43 -0600, Warner Losh wrote:=0A>>=A0=A0> > =0A>>=A0=A0> > =A0Hi Mor= i-san,=0A>>=A0=A0> > =0A>>=A0=A0> > =A0I've not tried my armv4 boards with = clang 6 yet.=0A>>=A0=A0> > =0A>>=A0=A0> > =A0However, you are hanging in mo= untroot. What's normally =0A> printed=0A>>=A0=A0> > there?=0A>>=A0=A0> > = =A0Ian=0A>>=A0=A0> > =A0just did some things to fix it for USB ad ZFS. Mayb= e that broke=0A>>=A0=A0> > this=0A>>=A0=A0> > =A0use=0A>>=A0=A0> > =A0case = accidentally.=0A>>=A0=A0> > =0A>>=A0=A0> > =A0Warner=0A>>=A0=A0> > =0A>>=A0= =A0> Unfortunately, my only armv4/5 system that's anywhere close to=0A>>=A0= =A0> bootable=0A>>=A0=A0> =A0right now is a Dreamplug, and it also hangs at= mountroot, but for=0A>>=A0=A0> a=0A>>=A0=A0> different reason: somehow its= ethernet driver gets a continuous =0A> "RX=0A>>=A0=A0> error" interrupt st= orm (and my rootfs is on nfs). =A0I haven't =0A> had=0A>>=A0=A0> time=0A>>= =A0=A0> to try putting together a rootfs on sdcard or sata to see if it=0A>= >=A0=A0> boots=0A>>=A0=A0> all the way.=0A>>=A0=A0> =0A>>=A0=A0> -- Ian=0A>= >=A0=A0> =0A>>=A0=A0_______________________________________________=0A>>=A0= =A0freebsd-arm@freebsd.org mailing list=0A>>=A0=A0https://lists.freebsd.org= /mailman/listinfo/freebsd-arm=0A>>=A0=A0To unsubscribe, send any mail to "f= reebsd-arm-unsubscribe@freebsd.org=0A>>=A0=A0"=0A>> =0A>