Firefly开源社区

12345
发表新贴
打印 上一主题 下一主题

[Linux] 【代码开源】Station P2完全适配OpenWRT的Lede版本

692

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
692
发表于 2022-3-12 14:44:12        只看该作者  21#
Austin 发表于 2022-3-12 11:49
请问能否提供详细的编译操作指引?

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

使用道具 举报

113

积分

0

威望

0

贡献

技术小白

积分
113
发表于 2022-3-22 09:39:50        只看该作者  22#
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
回复

使用道具 举报

692

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
692
发表于 2022-3-29 14:45:48        只看该作者  23#
本帖最后由 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 ...
仓库有点问题,已经处理,你重新拉取代码
回复

使用道具 举报

81

积分

0

威望

0

贡献

技术小白

积分
81
发表于 2022-5-7 20:19:42        只看该作者  24#
现在可以了吗? 我也试了下拉不下来
回复

使用道具 举报

692

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
692
发表于 2022-5-10 11:00:05        只看该作者  25#
arychen 发表于 2022-5-7 20:19
现在可以了吗? 我也试了下拉不下来

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

使用道具 举报

6

积分

0

威望

0

贡献

吃瓜的群众

积分
6
发表于 2022-5-29 19:38:34        只看该作者  26#
yku 发表于 2021-8-24 22:18
我在OpenWrt上面跑docker没成功,版主有时间测试一下吧。

   我也是发现有这个问题.
回复

使用道具 举报

692

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
692
发表于 2022-6-1 08:44:39        只看该作者  27#
wx_Ivan_IeT 发表于 2022-5-29 19:38
我也是发现有这个问题.

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

使用道具 举报

6

积分

0

威望

0

贡献

吃瓜的群众

积分
6
发表于 2022-7-5 00:49:58        只看该作者  28#
大神快来,小白求教,编译出错:
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
  HOSTCC  scripts/basic/fixdep
/bin/sh: 1: cc: not found
scripts/Makefile.host:99: recipe for target 'scripts/basic/fixdep' failed
make[1]: *** [scripts/basic/fixdep] Error 127
Makefile:399: recipe for target 'scripts_basic' failed
make: *** [scripts_basic] 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$
回复

使用道具 举报

692

积分

0

威望

0

贡献

技术大神

Rank: 3Rank: 3

积分
692
发表于 2022-7-5 08:57:33        只看该作者  29#
xyam 发表于 2022-7-5 00:49
大神快来,小白求教,编译出错:
yi@yi:~/firefly_openwrt$ ./build.sh roc-rk3568-pc-openwrt.mk
proces ...

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

使用道具 举报

6

积分

0

威望

0

贡献

吃瓜的群众

积分
6
发表于 2022-7-6 23:08:34        只看该作者  30#
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
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/rockchip/boot_merger.o
  HOSTCC  tools/dumpimage.o
  HOSTCC  tools/rockchip/loaderimage.o
  HOSTCC  tools/mkimage.o
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/loaderimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/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[2]: “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
  CFGCHK  u-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 Jul  6 22:54:31 2022
Image 0 (uboot)
  Description:  U-Boot(64-bit)
  Created:      Wed Jul  6 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 Jul  6 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 Jul  6 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 Jul  6 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 Jul  6 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 Jul  6 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 Jul  6 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 Jul  6 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 Jul  6 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[1]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:578: recipe for target 'station_linux_defconfig' failed
make: *** [station_linux_defconfig] 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$

点评

安装好环境再编译吧,看下这个wiki:https://wiki.t-firefly.com/iCore-3568JQ/prepare_compile_linux.html#an-zhuang-yi-lai  发表于 2022-7-7 09:02
回复

使用道具 举报

返回列表
12345
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表