Dose clang support armv4

Ian Lepore ian at freebsd.org
Tue Mar 13 23:14:12 UTC 2018


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 at freebsd.org>
> > To: Warner Losh <imp at bsdimp.com>; Mori Hiroki <yamori813 at yahoo.co.j
> > p>
> > Cc: "freebsd-arm at freebsd.org" <freebsd-arm at 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 at freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-arm
> To unsubscribe, send any mail to "freebsd-arm-unsubscribe at freebsd.org
> "
> 


More information about the freebsd-arm mailing list