Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: build release fails for evbearmv7hf-eb (Re: CVS commit: src/sys/arch)



On 12/19/15 12:51, Rin Okuyama wrote:
Hi,

On 2015/12/17 17:02, Nick Hudson wrote:
Module Name:    src
Committed By:    skrll
Date:        Thu Dec 17 08:02:42 UTC 2015

Modified Files:
    src/sys/arch/arm/cortex: a9_mpsubr.S
    src/sys/arch/evbarm/rpi: rpi2_start.S

Log Message:
Check for hypervisor mode in cortex_init and exit if the cpu started
there.

Needed by latest RPI firmware.

After this commit, building release fails for evbearmv7hf-eb; it stops
when compiling kernels BCM5301X and CUBIEBOARD:

  % ./build.sh -U -m evbearmv7hf-eb -j 16 tools release
  ...
  # compile BCM5301X/bcm53xx_start.o
/var/build/tools/bin/armv7eb--netbsdelf-eabihf-gcc -x assembler-with-cpp -D_LOCORE -Wa,--fatal-warnings --sysroot=/var/build/dest/evbarm -mcpu=cortex-a9 -mfpu=neon -DKERNEL_BASES_EQUAL -DKERNEL_BASE_VOFFSET=0 -I. -I/var/build/src/sys/../common/lib/libx86emu -I/var/build/src/sys/../common/include -I/var/build/src/sys/arch -I/var/build/src/sys -nostdinc -D__HAVE_MM_MD_DIRECT_MAPPED_PHYS -D__HAVE_MM_MD_CACHE_ALIASING -D__HAVE_FAST_SOFTINTS -D__HAVE_CPU_UAREA_ALLOC_IDLELWP -D__HAVE_CPU_COUNTER -D__HAVE_PCI_CONF_HOOK -DKERNEL_BASE_EXT=0x80000000 -DARM_GENERIC_TODR -DRNDVERBOSE -DDIAGNOSTIC -DDEBUG -D_KERNEL -D_KERNEL_OPT -std=gnu99 -I/var/build/src/sys/lib/libkern/../../../common/lib/libc/quad -I/var/build/src/sys/lib/libkern/../../../common/lib/libc/string -I/var/build/src/sys/lib/libkern/../../../common/lib/libc/arch/arm/string -c /var/build/src/sys/arch/evbarm/bcm53xx/bcm53xx_start.S -o bcm53xx_start.o
  /var/build/src/sys/arch/arm/cortex/a9_mpsubr.S: Assembler messages:
/var/build/src/sys/arch/arm/cortex/a9_mpsubr.S:364: Error: Banked registers are not available with this architecture. -- `msr elr_hyp,lr' /var/build/src/sys/arch/arm/cortex/a9_mpsubr.S:365: Error: selected processor does not support ARM mode `eret'
  *** [bcm53xx_start.o] Error code 1

The same messages appear for CUBIEBOARD. These kernels are to be built
with -mcpu=cortex-a9 and -mcpu=cortex-a8, respectively. Other kernels,
ALLWINNER_A80, BPI, CUBIETRUC, and KHUMMINGBIRD_A31 are successfully
built, and they are to be compiled with -mcpu=cortex-a7.

Yeah, I'm about to fix this.

Sorry for the breakage.

Nick


Home | Main Index | Thread Index | Old Index