最新的 openwrt 已经支持 rockchip
但在 macos 下编译时,有错误:
__u64 未定义
In file included from include/linux/byteorder/little_endian.h:14:
include/linux/byteorder/swab.h:135:41: error: unknown type name '__u64'; did you mean '__s64'?
static __inline__ __u64 __swab64p(const __u64 *x)
^
/Volumes/works/openwrt_trunk/staging_dir/host/include/asm/types.h:19:44: note: '__s64' declared here
__extension__ typedef __signed__ long long __s64;
修改:openwrt_trunk/staging_dir/host/include/asm/types.h
#ifdef __GNUC__
// add by manfeel
__extension__ typedef unsigned long long __u64;
__extension__ typedef __signed__ long long __s64;
#else
单独运行:make package/boot/uboot-rockchip/compile V=s
又出现新的错误:
/bin/sh: line 1: 69638 Segmentation fault: 11
CFGCHK u-boot.cfg
./"arch/arm/mach-rockchip/make_fit_atf.py" \
arch/arm/dts/rk3399-nanopi-r4s.dtb > u-boot.its
COPY u-boot.bin
MKIMAGE u-boot.img
/bin/sh: line 1: 69638 Segmentation fault: 11 ./tools/mkimage -f auto -A arm -T firmware -C none -O u-boot -a 0x00200000 -e 0x00200000 -p 0x0 -n "U-Boot 2021.07""-OpenWrt-r19352-d7eba8059b for evb_rk3399 board" -E -b arch/arm/dts/rk3399-nanopi-r4s.dtb -d u-boot-nodtb.bin u-boot.img > /dev/null
make[3]: *** [Makefile:1423: u-boot.img] Error 139
make[3]: Leaving directory '/Volumes/works/openwrt_trunk/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r4s-rk3399/u-boot-2021.07'
make[2]: *** [Makefile:110: /Volumes/works/openwrt_trunk/build_dir/target-aarch64_generic_musl/u-boot-nanopi-r4s-rk3399/u-boot-2021.07/.built] Error 2
make[2]: Leaving directory '/Volumes/works/openwrt_trunk/package/bo