Dose clang support armv4
Mori Hiroki
yamori813 at yahoo.co.jp
Fri Mar 23 08:08:20 UTC 2018
Hi
I use ZRouter build system and make arm-boot image.
I add to armv4 setting ZRouter.
Also I make change to mov from bx instruction at this
directory assembly code.
secure/lib/libcrypto/arm/
contrib/compiler-rt/lib/builtins/arm/
I checked bx instruction at kernel and init binary.
There is nothing. It's right armv4 binary.
If dts have bad geom_flashmap infomation then
hang up at pause() at vfs_mountroot.c.
This time can't use break.
I think nearly close...
Hiroki Mori
----- Original Message -----
> From: Ian Lepore <ian at freebsd.org>
> To: Mori Hiroki <yamori813 at yahoo.co.jp>; Warner Losh <imp at bsdimp.com>
> Cc: "freebsd-arm at freebsd.org" <freebsd-arm at freebsd.org>
> Date: 2018/3/14, Wed 08:14
> Subject: Re: Dose clang support armv4
>
> 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