how to use float operation in uboot codes

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

how to use float operation in uboot codes

944 次查看
yibhan
Contributor III

Hi guys,

I am porting some of functions those are using float operation, after build, there are some of link error.

My kernel version is 4.14.98 and u-boot version is kernel's package.

link error is below:

"undefined reference to '__aeabi_fmul'"

Should I modify compile and link option? if so, where can i modify and some of points.

Please share me.

标签 (3)
0 项奖励
2 回复数

902 次查看
Yuri
NXP Employee
NXP Employee

yibhan@eosystem.com 

Hello,

   U-boot is not intended to support floating point; it should provide minimal

options just to boot a Linux system. You may look at Chapter 3 (Porting U-Boot)

of ''i.MX_Porting_Guide.pdf" in NXP Linux documentation and try to modify

building options in make file, but, again, floating point support has been never

tested and guaranteed. 

Regards,

Yuri.

0 项奖励

902 次查看
yibhan
Contributor III

My psudo codes is below:

float pdiff = (float) (int temp);

float ratio = (float) (int temp1(/ (int temp2);

int tmpval = (int) ( int temp3 + pdiff * ratio);

0 项奖励