Realtek 8382M 8380M SDK编译

2、编译内核过程中遇到的问题:
问题一:
arch/mips/kernel/asm-offsets.c:230: error: invalid 'asm': invalid use of '%X'
arch/mips/kernel/asm-offsets.c:231: error: invalid 'asm': invalid use of '%X'
arch/mips/kernel/asm-offsets.c:232: error: invalid 'asm': invalid use of '%X'

修改方法:打开arch/mips/kernel/asm-offsets.c
#define constant(string, member) \
    __asm__("\n@@@" string "%X0" : : "ri" (member))
=>
#define constant(string, member) \
    __asm__("\n@@@" string "%0" : : "ri" (member))


问题二:
  arch/mips/math-emu/built-in.o: In function `ieee754dp_format':
(.text+0x2f24): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_format':
(.text+0x2f24): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x495c): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x495c): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x4eb0): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_mul':
(.text+0x4eb0): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x539c): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x539c): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x5690): undefined reference to `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_sub':
(.text+0x5690): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o:(.text+0x5c0c): more undefined references to
`__ucmpdi2' follow
arch/mips/math-emu/built-in.o: In function `ieee754dp_add':
(.text+0x5c0c): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
arch/mips/math-emu/built-in.o: In function `ieee754dp_add':
(.text+0x5fc8): relocation truncated to fit: R_MIPS_26 against `__ucmpdi2'
解决方法:
在最新的linux内核(我是从2.6.30)上找到arch/mips/lib/ucmpdi2.c 把它copy到我编译的版本的一致路
径下,而后修改arch/mips/lib/Makefile。
                                                                                             
讨论QQ:2404117679                

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Realtek Switch SDK是由瑞昱(Realtek)开发的一款交换机软件开发工具包。交换机是计算机网络中扮演着关键角色的设备,负责将来自不同设备的数据包转发到目标设备。Realtek Switch SDK提供了一系列软件函数和应用程序接口(API),让开发者可以基于其开发自己的交换机应用软件。 Realtek Switch SDK具有以下特点和优势: 1. 灵活性:Realtek Switch SDK提供了丰富的接口和功能,开发者可以通过使用SDK中的函数和数据结构来实现各种复杂的交换机功能。开发者可以根据自己的需求自由选择和配置交换机的功能和特性。 2. 高性能:Realtek Switch SDK经过优化,能够提供出色的性能。它可以实现高速数据包转发和处理,能够满足高带宽和低延迟的需求。 3. 扩展性:Realtek Switch SDK支持多种不同类型的交换机硬件平台,包括不同的芯片和总线架构。这使得开发者可以在不同的硬件平台上使用相同的开发工具和代码,提高了开发效率和灵活性。 4. 可靠性:Realtek是一家知名的芯片设计和制造公司,其产品以其稳定性和可靠性而闻名。使用Realtek Switch SDK可以借助Realtek的技术积累和经验,开发出高质量的交换机应用。 总而言之,Realtek Switch SDK是一款功能强大、性能优越、灵活可扩展的交换机软件开发工具包,可以帮助开发者快速开发出高质量的交换机应用。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值