Firefly_Javier 发表于 2022-3-12 14:44:12

Austin 发表于 2022-3-12 11:49
请问能否提供详细的编译操作指引?

3568J也有相关的OpenWRT编译文档:
https://wiki.t-firefly.com/Core-3568J/openwrt.html

Austin 发表于 2022-3-22 09:39:50

Firefly_Javier 发表于 2022-3-12 14:44
3568J也有相关的OpenWRT编译文档:
https://wiki.t-firefly.com/Core-3568J/openwrt.html

# .repo/repo/repo sync -c --no-clone-bundle
warning: redirecting to https://gitlab.com/firefly-linux/manifests.git/
Fetching project device/rockchip
Fetching project openwrt_sdk/lede
Fetching project tools
Fetching project rkbin
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Cannot fetch tools
Fetching project prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu
error: Cannot fetch rkbin
error: Cannot fetch device/rockchip
error: Cannot fetch openwrt_sdk/lede
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.



ssh: connect to host git.t-firefly.com port 8022: Connection timed out
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: Cannot fetch prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu

error: Exited sync due to fetch errors

Firefly_Javier 发表于 2022-3-29 14:45:48

本帖最后由 Firefly_Javier 于 2022-3-29 15:20 编辑

Austin 发表于 2022-3-22 09:39
# .repo/repo/repo sync -c --no-clone-bundle
warning: redirecting to https://gitlab.com/firefly-li ...仓库有点问题,已经处理,你重新拉取代码

arychen 发表于 2022-5-7 20:19:42

现在可以了吗? 我也试了下拉不下来

Firefly_Javier 发表于 2022-5-10 11:00:05

arychen 发表于 2022-5-7 20:19
现在可以了吗? 我也试了下拉不下来

已经可以的呀,有没有log信息

wx_Ivan_IeT 发表于 2022-5-29 19:38:34

yku 发表于 2021-8-24 22:18
我在OpenWrt上面跑docker没成功,版主有时间测试一下吧。

   我也是发现有这个问题.

Firefly_Javier 发表于 2022-6-1 08:44:39

wx_Ivan_IeT 发表于 2022-5-29 19:38
我也是发现有这个问题.

是LEDE还是OpenWRT? 有具体log吗?

xyam 发表于 2022-7-5 00:49:58

大神快来,小白求教,编译出错:
yi@yi:~/firefly_openwrt$ ./build.sh roc-rk3568-pc-openwrt.mk
processing option: roc-rk3568-pc-openwrt.mk
switching to board: /home/yi/firefly_openwrt/device/rockchip/rk356x/roc-rk3568-pc-openwrt.mk
yi@yi:~/firefly_openwrt$ ./build.sh all
processing option: all
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk356x
TARGET_UBOOT_CONFIG=firefly-rk3568
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=station_linux_defconfig
TARGET_KERNEL_DTS=rk3568-firefly-roc-pc
TARGET_TOOLCHAIN_CONFIG=
TARGET_BUILDROOT_CONFIG=
TARGET_RECOVERY_CONFIG=
TARGET_PCBA_CONFIG=
TARGET_RAMBOOT_CONFIG=
============================================
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3568
=========================================
grep: .config: No such file or directory
## make firefly-rk3568_defconfig -j8
HOSTCCscripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make: *** Error 127
Makefile:399: recipe for target 'scripts_basic' failed
make: *** Error 2
ERROR: Running build_uboot failed!
ERROR: exit code 2 from line 488:
    ./make.sh $RK_UBOOT_DEFCONFIG $UBOOT_COMPILE_COMMANDS
yi@yi:~/firefly_openwrt$

Firefly_Javier 发表于 2022-7-5 08:57:33

xyam 发表于 2022-7-5 00:49
大神快来,小白求教,编译出错:
yi@yi:~/firefly_openwrt$ ./build.sh roc-rk3568-pc-openwrt.mk
proces ...

环境问题:sudo apt-get install build-essential

xyam 发表于 2022-7-6 23:08:34

Firefly_Javier 发表于 2022-7-5 08:57
环境问题:sudo apt-get install build-essential

谢谢大神指点,Uboot编译成功,可kernel又失败了,是什么原因呢?

yi@yi-dn:~/firefly_openwrt$ ./build.sh roc-rk3568-pc-openwrt.mk
processing option: roc-rk3568-pc-openwrt.mk
switching to board: /home/yi/firefly_openwrt/device/rockchip/rk356x/roc-rk3568-pc-openwrt.mk
yi@yi-dn:~/firefly_openwrt$ ./build.sh all
processing option: all
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk356x
TARGET_UBOOT_CONFIG=firefly-rk3568
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=station_linux_defconfig
TARGET_KERNEL_DTS=rk3568-firefly-roc-pc
TARGET_TOOLCHAIN_CONFIG=
TARGET_BUILDROOT_CONFIG=
TARGET_RECOVERY_CONFIG=
TARGET_PCBA_CONFIG=
TARGET_RAMBOOT_CONFIG=
============================================
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3568
=========================================
## make firefly-rk3568_defconfig -j8
#
# configuration written to .config
#
/home/yi/firefly_openwrt/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
scripts/kconfig/conf--silentoldconfig Kconfig
CHK   include/config.h
CFG   u-boot.cfg
GEN   include/autoconf.mk.dep
CFG   tpl/u-boot.cfg
CFG   spl/u-boot.cfg
GEN   include/autoconf.mk
GEN   tpl/include/autoconf.mk
GEN   spl/include/autoconf.mk
CHK   include/config/uboot.release
CHK   include/generated/timestamp_autogenerated.h
UPD   include/generated/timestamp_autogenerated.h
CHK   include/config.h
CFG   u-boot.cfg
CHK   include/generated/version_autogenerated.h
CHK   include/generated/generic-asm-offsets.h
CHK   include/generated/asm-offsets.h
HOSTCCtools/mkenvimage.o
HOSTCCtools/fit_image.o
HOSTCCtools/image-host.o
HOSTCCtools/rockchip/boot_merger.o
HOSTCCtools/dumpimage.o
HOSTCCtools/rockchip/loaderimage.o
HOSTCCtools/mkimage.o
HOSTLDtools/mkenvimage
HOSTLDtools/loaderimage
HOSTLDtools/mkimage
HOSTLDtools/dumpimage
HOSTLDtools/boot_merger
CC      arch/arm/cpu/armv8/fwcall.o
LD      arch/arm/cpu/armv8/built-in.o
CC      common/main.o
CC      cmd/version.o
LD      common/built-in.o
LD      cmd/built-in.o
CC      drivers/usb/gadget/f_fastboot.o
CC      lib/display_options.o
LD      lib/built-in.o
LD      drivers/usb/gadget/built-in.o
LD      u-boot
OBJCOPY u-boot.srec
OBJCOPY u-boot-nodtb.bin
SYM   u-boot.sym
start=$(/home/yi/firefly_openwrt/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/yi/firefly_openwrt/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00a00000 $start $end
make: “arch/arm/dts/rk3568-firefly.dtb”已是最新。
COPY    u-boot.dtb
CAT   u-boot-dtb.bin
MKIMAGE u-boot.img
MKIMAGE u-boot-dtb.img
COPY    u-boot.bin
ALIGN   u-boot.bin
CC      spl/common/spl/spl.o
CC      tpl/arch/arm/cpu/armv8/fwcall.o
CC      spl/arch/arm/cpu/armv8/fwcall.o
CC      tpl/arch/arm/mach-rockchip/tpl.o
LD      tpl/arch/arm/cpu/armv8/built-in.o
LD      tpl/arch/arm/mach-rockchip/built-in.o
LD      spl/arch/arm/cpu/armv8/built-in.o
COPY    spl/u-boot-spl.dtb
LD      spl/common/spl/built-in.o
CC      spl/lib/display_options.o
LD      tpl/u-boot-tpl
OBJCOPY tpl/u-boot-tpl-nodtb.bin
COPY    tpl/u-boot-tpl.bin
LD      spl/lib/built-in.o
LD      spl/u-boot-spl
OBJCOPY spl/u-boot-spl-nodtb.bin
CAT   spl/u-boot-spl-dtb.bin
COPY    spl/u-boot-spl.bin
CFGCHKu-boot.cfg
/home/yi/firefly_openwrt/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
SEC=1
pack u-boot.itb okay! Input: /home/yi/firefly_openwrt/rkbin/RKTRUST/RK3568TRUST.ini

FIT description: FIT Image with ATF/OP-TEE/U-Boot
Created:         Wed Jul6 22:54:31 2022
Image 0 (uboot)
Description:U-Boot(64-bit)
Created:      Wed Jul6 22:54:31 2022
Type:         Standalone Program
Compression:uncompressed
Data Size:    1189408 Bytes = 1161.53 KiB = 1.13 MiB
Architecture: AArch64
Load Address: 0x00a00000
Entry Point:unavailable
Hash algo:    sha256
Hash value:   27cb00517c8a1fdf203a43d8c6ce08ca8ad0a2229a538285c081647c17fa4c48
Image 1 (atf-1)
Description:ARM Trusted Firmware
Created:      Wed Jul6 22:54:31 2022
Type:         Firmware
Compression:uncompressed
Data Size:    155648 Bytes = 152.00 KiB = 0.15 MiB
Architecture: AArch64
Load Address: 0x00040000
Hash algo:    sha256
Hash value:   fe4f274c0624c2d7e7b9aa0d5b40a3331801664bf625367702d2116dbe452466
Image 2 (atf-2)
Description:ARM Trusted Firmware
Created:      Wed Jul6 22:54:31 2022
Type:         Firmware
Compression:uncompressed
Data Size:    19531 Bytes = 19.07 KiB = 0.02 MiB
Architecture: AArch64
Load Address: 0x00068000
Hash algo:    sha256
Hash value:   8d440360954c39a1d9a1eb604c0642e7201f4a47679272a9885cfd46205aa418
Image 3 (atf-3)
Description:ARM Trusted Firmware
Created:      Wed Jul6 22:54:31 2022
Type:         Firmware
Compression:uncompressed
Data Size:    8192 Bytes = 8.00 KiB = 0.01 MiB
Architecture: AArch64
Load Address: 0xfdcd0000
Hash algo:    sha256
Hash value:   e410275b51692587b5d09c794ae13f2dcd4d187bd6ab1eb2998bf18d44750876
Image 4 (atf-4)
Description:ARM Trusted Firmware
Created:      Wed Jul6 22:54:31 2022
Type:         Firmware
Compression:uncompressed
Data Size:    8192 Bytes = 8.00 KiB = 0.01 MiB
Architecture: AArch64
Load Address: 0xfdcc9000
Hash algo:    sha256
Hash value:   990c53fc0167a7bcd877235f09a3ac6911841c978a4e270d89f6259ec1d36144
Image 5 (atf-5)
Description:ARM Trusted Firmware
Created:      Wed Jul6 22:54:31 2022
Type:         Firmware
Compression:uncompressed
Data Size:    7668 Bytes = 7.49 KiB = 0.01 MiB
Architecture: AArch64
Load Address: 0x00066000
Hash algo:    sha256
Hash value:   315a4195a9f6536f971c695a79fcab4870363fc7fc97f355bd091d8d7092261a
Image 6 (optee)
Description:OP-TEE
Created:      Wed Jul6 22:54:31 2022
Type:         Firmware
Compression:uncompressed
Data Size:    453056 Bytes = 442.44 KiB = 0.43 MiB
Architecture: AArch64
Load Address: 0x08400000
Hash algo:    sha256
Hash value:   5a22c90dfc99feef08d4ce66236d36ffde04e9d0c3c275d934a63f1c32aa45c3
Image 7 (fdt)
Description:U-Boot dtb
Created:      Wed Jul6 22:54:31 2022
Type:         Flat Device Tree
Compression:uncompressed
Data Size:    15115 Bytes = 14.76 KiB = 0.01 MiB
Architecture: AArch64
Hash algo:    sha256
Hash value:   30938731debb4198eb74f983facf8e81a2a52dfccdbac4a0a35ddeccaba3402a
Default Configuration: 'conf'
Configuration 0 (conf)
Description:rk3568-firefly
Kernel:       unavailable
Firmware:   atf-1
FDT:          fdt
Loadables:    uboot
                atf-2
                atf-3
                atf-4
                atf-5
                optee
/home/yi/firefly_openwrt/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
pack loader ok.(rk356x_spl_loader_v1.11.111.bin)(0.09)
pack loader(SPL) okay! Input: /home/yi/firefly_openwrt/rkbin/RKBOOT/RK3568MINIALL.ini

/home/yi/firefly_openwrt/u-boot
pack loader with new: spl/u-boot-spl.bin

Image(no-signed, version=0):uboot.img (FIT with uboot, trust...) is ready
Image(no-signed):rk356x_spl_loader_v1.11.111.bin (with spl, ddr, usbplug) is ready
pack uboot.img okay! Input: /home/yi/firefly_openwrt/rkbin/RKTRUST/RK3568TRUST.ini

Platform RK3568 is build OK, with new .config(make firefly-rk3568_defconfig -j8)
Wed Jul6 22:54:32 CST 2022
/home/yi/firefly_openwrt/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
Image Type:   Rockchip RK35 (SD/MMC) boot image
Init Data Size: 59392 bytes
Boot Data Size: 229376 bytes
Input:
    /home/yi/firefly_openwrt/rkbin/RKBOOT/RK3568MINIALL.ini
    /home/yi/firefly_openwrt/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.11.bin
    /home/yi/firefly_openwrt/rkbin/bin/rk35/rk356x_spl_v1.11.bin

Pack rk3568 idblock.bin okay!

Running build_uboot succeeded.
Skipping build_loader for missing configs:RK_LOADER_BUILD_TARGET.
============Start building kernel============
TARGET_ARCH          =arm64
TARGET_KERNEL_CONFIG =station_linux_defconfig
TARGET_KERNEL_DTS    =rk3568-firefly-roc-pc
TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
/home/yi/firefly_openwrt
YACC    scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make: *** Error 127
Makefile:578: recipe for target 'station_linux_defconfig' failed
make: *** Error 2
ERROR: Running build_kernel failed!
ERROR: exit code 2 from line 560:
    make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG $RK_KERNEL_DEFCONFIG_FRAGMENT
yi@yi-dn:~/firefly_openwrt$
页: 1 2 [3] 4 5
查看完整版本: 【代码开源】Station P2完全适配OpenWRT的Lede版本