osx 下编译 rk3399 openwrt 记录

最新的 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
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值