BPI-SINOVOIP / BPI-R64-bsp-4.19

Supports Banana Pi BPI-R64 (MT7622) (Kernel 4.19)
12 stars 13 forks source link

compilation of uboot broken #1

Open frank-w opened 4 years ago

frank-w commented 4 years ago

while compiling uboot with build.sh i faced the following errors:

  LD      lib/built-in.o
lib/time.o: In function `__raw_writesb':
/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:80: multiple definition of `__raw_writesb'
lib/display_options.o:/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:80: first defined here
lib/time.o: In function `__raw_writesw':
/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:88: multiple definition of `__raw_writesw'
lib/display_options.o:/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:88: first defined here
lib/time.o: In function `__raw_writesl':
/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:98: multiple definition of `__raw_writesl'
lib/display_options.o:/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:98: first defined here
lib/time.o: In function `__raw_readsb':
/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:103: multiple definition of `__raw_readsb'
lib/display_options.o:/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:103: first defined here
lib/time.o: In function `__raw_readsw':
/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:110: multiple definition of `__raw_readsw'
lib/display_options.o:/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:110: first defined here
lib/time.o: In function `__raw_readsl':
/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:119: multiple definition of `__raw_readsl'
lib/display_options.o:/media/data_fast/bpi/kernel/BPI-R64-BSP-4.19/u-boot-mt/arch/arm/include/asm/io.h:119: first defined here

build uboot with make inside u-boot-mt folder is also broken because of fixed crosscompiler (hardcoded, not using env-var, i can fix) and somewhere is march set to armv5 which is invalid for r64 anch aarch64-crosscompiler

frank-w commented 4 years ago

mhm, got these errors also with my forked repo...maybe it's a gcc7-issue on ubuntu 18.4

gcc6 works so far

but i have found no way to switch between mt7531 and rtl8367s, i tried to change autoconf.h this way, but still mt7531 is included

#define  CONFIG_RTL8367 1
//#undef  CONFIG_RTL8367
//#define CONFIG_MT7531 1
#undef CONFIG_MT7531

how far is uboot-upstream-support for r64?

frank-w commented 4 years ago

i have fixed the gcc-issues in my repo: https://github.com/frank-w/u-boot/tree/bpi-r64 maybe you can take the relevant commits in yours

ray is working on uboot-upstream, but need some help with timers, emmc and ethernet