Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compilation of uboot broken #1

Open
frank-w opened this issue Sep 15, 2019 · 2 comments
Open

compilation of uboot broken #1

frank-w opened this issue Sep 15, 2019 · 2 comments

Comments

@frank-w
Copy link

frank-w commented Sep 15, 2019

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 frank-w changed the title compile of uboot broken compilation of uboot broken Sep 15, 2019
@frank-w
Copy link
Author

frank-w commented Sep 18, 2019

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
Copy link
Author

frank-w commented Oct 31, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant