Toybrick

TB-RK3568x linux sdk编译问题

JHC

新手上路

积分
13
楼主
发表于 2021-11-4 14:38:25    查看: 8127|回复: 3 | [复制链接]    打印 | 只看该作者
请问一下TB-RK3568x linux sdk怎么编译?
回复

使用道具 举报

395876134

版主

积分
1099
沙发
发表于 2021-11-12 14:47:56 | 只看该作者
编译kernel么?如果是编译kernel,请参考wiki。
回复

使用道具 举报

zhangtaozt6

新手上路

积分
33
板凳
发表于 2021-12-25 00:02:50 | 只看该作者
按照wiki的方法:
为android11编译kernel

① 下载boot.img到kernel目录的上级目录,下载地址:https://eyun.baidu.com/s/3c2W6VhI#sharelink/path=%2F

② ./make-android.sh arm64 ../ rk3568-toybrick-core-android-x0 11
③ 根据‘arch/arm64/boot/dts/rockchip/rk3568-toybrick.dtsi’里的pmu_io_domains配置各路vccio的电压

为Debian编译kernel

① ./make-linux.sh arm64
② 根据‘arch/arm64/boot/dts/rockchip/rk3568-toybrick.dtsi’里的pmu_io_domains配置各路vccio的电压

5、android生成boot.img,linux生成boot_linux.img

我用的是./make-linux.sh arm64,但是编译不过啊,
ubuntu@ubuntu:~/Downloads/kernel$ ./make-linux.sh arm64
#
# configuration written to .config
#
arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:40: LSE atomics not supported by binutils
arch/arm64/Makefile:48: Detected assembler with broken .inst; disassembly will be unreliable
scripts/kconfig/conf  --syncconfig Kconfig
arch/arm64/Makefile:27: ld does not support --fix-cortex-a53-843419; kernel may be susceptible to erratum
arch/arm64/Makefile:40: LSE atomics not supported by binutils
arch/arm64/Makefile:48: Detected assembler with broken .inst; disassembly will be unreliable
  CC      scripts/mod/empty.o
  CC      scripts/mod/devicetable-offsets.s
gcc: error: unrecognized command line option '-mlittle-endian'; did you mean '-fconvert=little-endian'?
gcc: error: unrecognized command line option '-mlittle-endian'; did you mean '-fconvert=little-endian'?
scripts/Makefile.build:131: recipe for target 'scripts/mod/devicetable-offsets.s' failed
make[2]: *** [scripts/mod/devicetable-offsets.s] Error 1
make[2]: *** Waiting for unfinished jobs....
scripts/Makefile.build:333: recipe for target 'scripts/mod/empty.o' failed
make[2]: *** [scripts/mod/empty.o] Error 1
scripts/Makefile.build:637: recipe for target 'scripts/mod' failed
make[1]: *** [scripts/mod] Error 2
Makefile:1211: recipe for target 'scripts' failed
make: *** [scripts] Error 2
cp: cannot stat 'arch/arm64/boot/Image': No such file or directory
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-android-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])
arch/arm64/boot/dts/rockchip/rk3399pro-toybrick-prox-linux-x1.dtb: Warning (gpios_property): /edp_panel: Missing property '#gpio-cells' in node /cpus/cpu@0 or bad phandle (referred from enable-gpios[0])

是不是codebase哪里不对?已经是develop-4.19的branch了
ubuntu@ubuntu:~/Downloads/kernel$ git branch -a
* develop-4.19
  remotes/origin/96ai
  remotes/origin/HEAD -> origin/develop-4.19
  remotes/origin/develop-4.19
  remotes/origin/develop-4.19-rt87
  remotes/origin/eaidk310
  remotes/origin/eaidk610
  remotes/origin/ruihe
  remotes/origin/rv1126-develop-4.19
  remotes/origin/stable
  remotes/origin/stable-9.0
回复

使用道具 举报

zhangtaozt6

新手上路

积分
33
地板
发表于 2021-12-25 10:00:52 | 只看该作者
zhangtaozt6 发表于 2021-12-25 00:02
按照wiki的方法:
为android11编译kernel

问题解决了,是编译器的文件夹名字写错了
回复

使用道具 举报

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

本版积分规则

产品中心 购买渠道 开源社区 Wiki教程 资料下载 关于Toybrick


快速回复 返回顶部 返回列表