- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
imagetool.c:(.text+0xa): undefined reference to `__stop_image_type'
/usr/bin/ld: imagetool.c:(.text+0x12): undefined reference to `__start_image_type'
/usr/bin/ld: tools/imagetool.o: in function `imagetool_verify_print_header':
imagetool.c:(.text+0x73): undefined reference to `__stop_image_type'
/usr/bin/ld: imagetool.c:(.text+0x7a): undefined reference to `__start_image_type'
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/Makefile.host:104: tools/dumpimage] Error 1
make: *** [Makefile:1900: tools] Error 2
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Sorry for the late reply.
If you are using the latest in the repo, there might be some bugs that was recently uploaded.
In the uboot repository, could checkout the branch "git checkout -b test-bootloader -t origin/socfpga_v2024.04" .
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello JingyangTeh,
Thanks for the response.
Please check the steps below,
1) git clone https://github.com/altera-opensource/u-boot-socfpga
2) git checkout -b test-bootloader -t origin/socfpga_v2022.10
3) cd arch/arm/mach-socfpga/cv_bsp_generator/
4) python cv_bsp_generator.py -i path/hps_isw_handoff/soc_system_hps_0 -o ~/software/bootloader/u-boot-socfpga/board/altera/cyclone5-socdk/qts
5) cd arch/arm/mach-socfpga/cv_bsp_generator/
6) export CROSS_COMPILE=~/software/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin/arm-none-linux-gnueabihf-
7) make socfpga_cyclone5_defconfig
Error message:
./tools/mkimage: unsupported type Altera SoCFPGA CV/AV preloader
make[1]: *** [scripts/Makefile.spl:426: spl/u-boot-spl.sfp] Error 1
make: *** [Makefile:2081: spl/u-boot-spl] Error 2
make: *** Deleting file 'spl/u-boot-spl'
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello JingyangTeh,
Please PFA error message
this document is suggesting to use uboot branch 2022.04, but I'm getting below error.
Can you please help with the issue.
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[1]: *** [scripts/Makefile.host:104: tools/dumpimage] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/Makefile.host:104: tools/mkimage] Error 1
make[1]: *** [scripts/Makefile.host:104: tools/fit_info] Error 1
make[1]: *** [scripts/Makefile.host:104: tools/fit_check_sign] Error 1
make: *** [Makefile:1900: tools] Error 2
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I think there is a missing parameter, try adding this before or after step 6:
export ARCH=arm
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello TruHy,
Tried adding
export ARCH=arm
but still getting same error
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
I tried the steps and able to build uboot successfully.
Could you try setting :
export CROSS_COMPILE=arm-none-linux-gnueabihf-
Also check the path for the compiler to be set properly:
tar xf gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz
rm gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf.tar.xz
Further more the cv_bsp_generator.pt needs to run using python2 instead of python3
export PATH=`pwd`/gcc-arm-11.2-2022.02-x86_64-arm-none-linux-gnueabihf/bin:$PATH
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello JingyangTeh,
I tried the steps but still gtting error. PFA.
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello JingyangTeh,
I'm using Ubuntu 20.04 linux system, can you share which linux environment you tried building uboot
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Could you try installing some pre-requisite packages below:
sudo apt-get install gawk wget git-core diffstat unzip texinfo \
gcc-multilib build-essential chrpath socat cpio python python3 \
python3-pip python3-pexpect xz-utils debianutils iputils-ping \
python3-git python3-jinja2 libegl1-mesa libsdl1.2-dev pylint3 xterm \
libncurses-dev gawk flex bison openssl libssl-dev
If not could you try building it in Ubuntu 22.04 with the packages above too.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello JingyangTeh,
PFA error received and details of issues received for both Ubuntu 20.04 and Ubuntu 22.04.
Building it in Ubuntu 22.04is successful, but zImage and Rootfs build is getting issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
PFA steps and terminal log on Ubuntu 20.04
Thanks,
snehal_p
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
Sorry for the late reply, I was OOO last week.
Have you installed the packages in my previous comment in your environment?
I tried building the steps but did not observe the error you are facing.
Regards
Jingyang, Teh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
Tried on another ubuntu 20.04 system, the build is successful. But on my system I still get the error even after installing the packages you have suggested.
Any suggesstions
Thanks,
snehal_p

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page