Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[General] Error when building the Linux SDK

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883

【General】 Error when building the Linux SDK

Posted at 5/28/2022 15:04:25      View:4532 | Replies:14        Print     [Copy Link] 1#
I am trying to build ubuntu firmware for R1 using the instruction.

https://wiki.t-firefly.com/en/Cl ... tion.html#linux-sdk

When I run the build, I get an error.

  1. user@user-VirtualBox:~/r1/rk3399_linux_release_v2.5.1_20210301$ ./build.sh kernel
  2. processing option: kernel
  3. ============Start building kernel============
  4. TARGET_ARCH          =arm64
  5. TARGET_KERNEL_CONFIG =firefly_linux_defconfig
  6. TARGET_KERNEL_DTS    =rk3399-firefly-CS-R1-jd4-sub
  7. TARGET_KERNEL_CONFIG_FRAGMENT =
  8. ==========================================
  9. /home/user/r1/rk3399_linux_release_v2.5.1_20210301
  10. #
  11. # configuration written to .config
  12. #
  13. scripts/kconfig/conf  --silentoldconfig Kconfig
  14.   CHK     include/config/kernel.release
  15.   CHK     include/generated/uapi/linux/version.h
  16.   HOSTLD  scripts/dtc/dtc
  17.   CHK     scripts/mod/devicetable-offsets.h
  18.   CHK     include/generated/utsrelease.h
  19. /usr/bin/ld: scripts/dtc/dtc-parser.tab.o:(.bss+0x10): повторное определение «yylloc»; scripts/dtc/dtc-lexer.lex.o:(.bss+0x0): здесь первое определение
  20. collect2: error: ld returned 1 exit status
  21. make[2]: *** [scripts/Makefile.host:100: scripts/dtc/dtc] Ошибка 1
  22. make[1]: *** [scripts/Makefile.build:484: scripts/dtc] Ошибка 2
  23. make: *** [Makefile:579: scripts] Error 2
  24. make: *** Waiting for unfinished jobs....
  25.   CHK     include/generated/timeconst.h
  26.   CHK     include/generated/bounds.h
  27.   CHK     include/generated/asm-offsets.h
  28.   CALL    scripts/checksyscalls.sh
  29. ERROR: Running build_kernel failed!
  30. ERROR: exit code 2 from line 721:
  31.     make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
Copy the code
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 5/29/2022 14:43:36      2#
895816513 Posted at 5/28/2022 12:29
Please confirm the installation of the following files

Yes, I have installed these packages, but some packages are missing from the repository.

E: Невозможно найти пакет python-linaro-image-tools
E: Невозможно найти пакет linaro-image-tools
E: Невозможно найти пакет libqt4-dev
E: Для пакета «python-matplotlib» не найден кандидат на установку

Which version Ubuntu is recommended to use ?

I use

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.10
DISTRIB_CODENAME=impish
DISTRIB_DESCRIPTION="Ubuntu 21.10"

Reviews

It is recommended to use docker to install the ubuntu18.04 container.  Posted at 5/31/2022 14:48
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 5/30/2022 01:11:41      3#
Switched to Ubuntu 18.04LTS, the build works without errors.
It is advisable to specify the Ubuntu version in the documentation so that you immediately know which version to use.

By the way, as an option, it is desirable to release a version of Docker with a build system (without sources).
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 5/30/2022 20:02:30      4#
rootfs  ubuntu is used to build the firmware for R1. The link from the wiki page for r1 leads to baidu, but it is not possible to download the archives (the service blocks sending outside of China). when trying to download rootfs from the firefly-rk3399 download page, it gives the message "not pages".


https://drive.google.com/drive/f ... VcG5Qc5qkgWaxnTi6-9


How can I build my own version of rootfs for R1 locally ?

Reviews

I'm very sorry, I have fixed the broken link, thank you for your reply. https://en.t-firefly.com/doc/download/71.html#other_117  Posted at 5/31/2022 14:52
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 5/31/2022 15:01:32      5#
895816513 Posted at 5/31/2022 09:50
Thanks for your suggestion, I have made the recommended changes.

Tnx

I wrote a Dockerfile that builds an image of an assembly system.

By the way, I have collected test firmware versions for R1. Can you check them (I don't have an AIO board to flash the rk3399-jd4 module if my firmware doesn't work correctly) ?

https://disk.yandex.ru/d/ZinDgPfp_C4xXg
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 5/31/2022 15:34:23      6#
It is also desirable to fix a few minor errors in the documentation (this is not critical, but it can confuse a beginner). Some commands have extra spaces after the dot. There are such typos in different pages for other models (rk3399-jd4). For example.

. /build.sh CS-R1-3399-jd4-sub-ubuntu.mk

#Fully automated compiled firmware
$ . /build.sh

#Partial compilation

$ . /build.sh kernel
$ . /build.sh uboot
$ . /build.sh recovery

# Run . /mkfirmware.sh will automatically update the link to rockdev/rootfs.img.
$ . /build.sh firmware
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 5/31/2022 19:49:47      7#
895816513 Posted at 5/31/2022 10:29
The sub board can be forcibly upgraded through the main board. If the firmware of the main board is  ...

Thanks. I have already downloaded these images and created firmware based on them

The question is, where can I find out how to build my version of rootfs correctly, what additional files\packages\settings special for firefly need to be used. I want to create a firmware with Armbian and AltLinux, which can be installed using standard BMC tools (now I have to manually write everything into modules and this takes a lot of time and is not suitable for mass use).
Reply

Use props Report

883

Credits

10

Prestige

12

Contribution

advanced

Rank: 4

Credits
883
Posted at 6/3/2022 17:58:13      8#
taylorchan067 Posted at 6/2/2022 19:03
Did you get the solution on how to fix it. Because I am facing the same issue with my device and not ...

Write in detail what problem you are talking about and on what device.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list