how to rebulit uboot?

Questions and discussions about Xillinux

how to rebulit uboot?

Postby andylgh »

question:
I get the uboot code from : https://github.com/xillybus/xillinux-u-boot.
I read the uboot-patches/readme,there are five patch files:
0001-fpga-zynqpl-Fixed-bug-in-alignment-routine.patch
0001-zynq_common.h-Configuration-for-Xillinux.patch
0002-zynq_common.h-Configuration-for-Xillinux.patch
0002-zynq_common.h-One-second-delay-instead-of-3.patch
0003-zynq_common.h-One-second-delay-instead-of-3.patch
need i patch five files first,then to make uboot?
andylgh
 
Posts: 24
Joined:

Re: how to rebulit uboot?

Postby support »

Hello,

The xillinux branch of the git repository you pointed at contains the sources that were used to compile the U-boot utility that goes with Xillinux-2.0. You should therefore clone it into your hard disk and checkout out that branch, and build U-boot as usual. You may want to refer to this page:

http://xillybus.com/tutorials/uboot-hacking-howto-1

There is no need to apply any patches -- they are already included in the said branch.

Regards,
Eli
support
 
Posts: 802
Joined:

Re: how to rebulit uboot?

Postby andylgh »

i git the branch xillinux_uboot_xilinx,and use gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf to compile the uboot
make zynq_zed_config is success
make menuconfig is fail

can you show the step how to build xillinux_uboot_xilinx?????

andylgh@andylgh-virtual-machine:~/work/xillinux/xillinux-u-boot-xillinux$ make zynq_zed_config
Configuring for zynq_zed board...
andylgh@andylgh-virtual-machine:~/work/xillinux/xillinux-u-boot-xillinux$ make menuconfig
Generating include/autoconf.mk
In file included from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler.h:40:0,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/byteorder/little_endian.h:12,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/asm/byteorder.h:29,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/compiler.h:112,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/image.h:36,
from include/common.h:116:
/home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
Generating include/autoconf.mk.dep
In file included from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler.h:40:0,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/byteorder/little_endian.h:12,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/asm/byteorder.h:29,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/compiler.h:112,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/image.h:36,
from include/common.h:116:
/home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
make: *** No rule to make target 'menuconfig'. Stop.
andylgh
 
Posts: 24
Joined:

Re: how to rebulit uboot?

Postby andylgh »

use:make zynq_zed_config + make also fail

andylgh@andylgh-virtual-machine:~/work/xillinux/xillinux-u-boot-xillinux$ make zynq_zed_config
Configuring for zynq_zed board...
andylgh@andylgh-virtual-machine:~/work/xillinux/xillinux-u-boot-xillinux$ make
Generating include/autoconf.mk
In file included from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler.h:40:0,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/byteorder/little_endian.h:12,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/asm/byteorder.h:29,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/compiler.h:112,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/image.h:36,
from include/common.h:116:
/home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
Generating include/autoconf.mk.dep
In file included from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler.h:40:0,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/byteorder/little_endian.h:12,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/asm/byteorder.h:29,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/compiler.h:112,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/image.h:36,
from include/common.h:116:
/home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
arm-linux-gnueabihf-gcc -DDO_DEPS_ONLY \
-g -Os -ffunction-sections -fdata-sections -fno-common -ffixed-r8 -msoft-float -fno-strict-aliasing -mno-unaligned-access -D__KERNEL__ -I/home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include -fno-builtin -ffreestanding -nostdinc -isystem /home/andylgh/work/ebit_linux/tool/gcc-linaro-7.4.1-2019.02-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/7.4.1/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mno-thumb-interwork -mabi=aapcs-linux -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -Wno-format-nonliteral -Wno-format-security -fstack-usage \
-o lib/asm-offsets.s lib/asm-offsets.c -c -S
In file included from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler.h:40:0,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/byteorder/little_endian.h:12,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/asm/byteorder.h:29,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/compiler.h:112,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/image.h:36,
from /home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/common.h:116,
from lib/asm-offsets.c:18:
/home/andylgh/work/xillinux/xillinux-u-boot-xillinux/include/linux/compiler-gcc.h:87:1: fatal error: linux/compiler-gcc7.h: No such file or directory
#include gcc_header(__GNUC__)
^~~~
compilation terminated.
Makefile:714: recipe for target 'lib/asm-offsets.s' failed
andylgh
 
Posts: 24
Joined:

Re: how to rebulit uboot?

Postby support »

Hello,

This might not be the correct forum to address this issue. Your issue is highly U-boot specific, and there seems to be an problem with the build environment. I believe a U-boot related forum will suit this question better.

One thing to keep in mind is that Xillinux' U-boot version is quite old, so it might not play well with a recent build environment. This can be related, but not necessarily.

Regards,
Eli
support
 
Posts: 802
Joined:


Return to Xillinux (Linux distribution for Zynq-7000)