Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Mar 2018 17:14:02 -0600
From:      Ian Lepore <ian@freebsd.org>
To:        Mori Hiroki <yamori813@yahoo.co.jp>, Warner Losh <imp@bsdimp.com>
Cc:        "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
Subject:   Re: Dose clang support armv4
Message-ID:  <1520982842.84937.282.camel@freebsd.org>
In-Reply-To: <173804.55612.qm@web101713.mail.ssk.yahoo.co.jp>
References:  <815937.99592.qm@web101711.mail.ssk.yahoo.co.jp> <340750.57914.qm@web101714.mail.ssk.yahoo.co.jp> <CANCZdfqqSqC2Rj0wSQJuxRb7=OEGUBQmnq6HW6MJnYn-qOmM%2BQ@mail.gmail.com> <1520876476.84937.226.camel@freebsd.org> <173804.55612.qm@web101713.mail.ssk.yahoo.co.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 2018-03-13 at 15:28 +0900, Mori Hiroki wrote:
> Hi
> 
> Thanks for reply.
> 
> I'm sorry last log is missing geom_flashmap dts entry.
> 
> I use to cfi rootfs.
> 
> 
> Now rootfs mount and execute init.
> 
> https://gist.github.com/yamori813/ae047a28a825aac255e436fd8ccaf785
> 
> 

I think clang defaults to armv4t if the arch is just 'arm'.  You should
be able to fix this by building everything with CPUTYPE=armv4.  Put
that in your make.conf file.  If you are doing a cross build do not put
it in your main /etc/make.conf, instead create another file somewhere,
and add this to the make command line when you crossbuild:  
__MAKE_CONF=/somewhere/make.conf 

You will have to rebuild everything (make clean).

-- Ian

> init is broken at armv4. 
> 
> I checked init is not use arm4t instrauction(bx).
> 
> I seem crt problem on armv4.
> 
> BTW I post review geom_flashmap scan capability.
> This is same as geom_map capability.
> 
> https://reviews.freebsd.org/D13648
> 
> 
> This is ad hoc method. But It's useful for flash file system. 
> 
> Thanks
> 
> Hiroki Mori
> 
> ----- Original Message -----
> > 
> > From: Ian Lepore <ian@freebsd.org>
> > To: Warner Losh <imp@bsdimp.com>; Mori Hiroki <yamori813@yahoo.co.j
> > p>
> > Cc: "freebsd-arm@freebsd.org" <freebsd-arm@freebsd.org>
> > Date: 2018/3/13, Tue 02:41
> > Subject: Re: Dose clang support armv4
> > 
> > On Mon, 2018-03-12 at 10:43 -0600, Warner Losh wrote:
> > > 
> > >  Hi Mori-san,
> > > 
> > >  I've not tried my armv4 boards with clang 6 yet.
> > > 
> > >  However, you are hanging in mountroot. What's normally printed
> > > there?
> > >  Ian
> > >  just did some things to fix it for USB ad ZFS. Maybe that broke
> > > this
> > >  use
> > >  case accidentally.
> > > 
> > >  Warner
> > > 
> > Unfortunately, my only armv4/5 system that's anywhere close to
> > bootable
> >  right now is a Dreamplug, and it also hangs at mountroot, but for
> > a
> > different reason: somehow its ethernet driver gets a continuous "RX
> > error" interrupt storm (and my rootfs is on nfs).  I haven't had
> > time
> > to try putting together a rootfs on sdcard or sata to see if it
> > boots
> > all the way.
> > 
> > -- Ian
> > 
> _______________________________________________
> 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
> "
> 



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