Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: some binaries crash with SIGILL on Zybo-Z7-20
Nick Hudson wrote:
> You should really run a evbarm-earmv7hf userland on Zybo. You've got a swp
> because evbarm defaults to armv5 and
>
> https://nxr.netbsd.org/xref/src/sys/arch/arm/include/lock.h#76
>
I valuely remember a similar problem when I (mis)compiled rpi2 few
years ago but it wasn't something subtle like this one.
With ./build.sh -m evbarm -a earmv7hf, atf tests start fine and I
see a lot of Passed and a couple of Failed results.
> It's very likely your chip doesn't support swp{,b}
It doesn't. I compiled a simple program with __asm__ volatile("swp
%0, %1, [%2]" ...) and it indeed crashes with SIGILL.
> hw.machdep.id_isar[3:0] is zero if they aren't
I don't see this sysctl variable on my box.
# sysctl hw
hw.machine = evbarm
hw.model = Cortex-A9 r3p0 (Cortex V7A core)
hw.ncpu = 2
hw.byteorder = 1234
hw.physmem = 536870912
hw.usermem = 536862720
hw.pagesize = 8192
hw.disknames = ld0
hw.machine_arch = earmv7hf
hw.alignbytes = 7
hw.cnmagic = \x27\x01
hw.physmem64 = 536870912
hw.usermem64 = 536862720
hw.iostatnames = ld0
hw.ncpuonline = 2
hw.uhso.autoswitch = 1
hw.firmware.path =
/libdata/firmware:/usr/libdata/firmware:/usr/pkg/libdata/firmware:/usr/pkg/libdata
--
Alex
Home |
Main Index |
Thread Index |
Old Index