elftosb valid db file

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

elftosb valid db file

475 次查看
IvanRia
Contributor II

i have bd file:

sources
{
image=extern(0);
}

constants
{
IVT_ADDR = 0x8000;
}

section (0)
{
load image;
load ivt (entry = image:ResetHandler) > IVT_ADDR;
hab call IVT_ADDR;

}



for imx28 processor but i get following error when compiling sb file:

error: line 14: invalid source name 'image'

with the following command:

./elftosb -d -V -z -f mx28 -p "\." -c mx28evk.bd -o test.sb

help me change the file mx28evk.bd to make it correct

0 项奖励
2 回复数

458 次查看
Yuri
NXP Employee
NXP Employee

@IvanRia 
Hello,

  please try the following (input file test.elf is added):

elftosb -d -V -z -f mx28 -p "\." -c mx28evk.bd -o test.sb test.elf

Regards,
Yuri.

0 项奖励

465 次查看
IvanRia
Contributor II

figured out, extern(0) is an analogue of argv[1]

0 项奖励