porting BSP to custom board

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

porting BSP to custom board

1,325 次查看
caohaifeng
Contributor IV

Hello, I have two questions about porting BSP to my custom board.

Question1.

chapter 11.3.3 of i.MX53 System Development User’s Guide, board_init() is implemented inside board/freescale/mx53_loco/mx53_loco.c

gd->bd->bi_arch_number = MACH_TYPE_MX53_LOCO,

If I port u-boot to my custom board(imx534 based), Does it should be changed to MACH_TYPE_MX53_<custom signal>, and how?

Should I add an item like MACH_TYPE_MX53_XXX 3274 in linux/arch/arm/tools/mach-types.h ?

Question2.

I copied two files in  linux/../mach-mx5 directory, mx53_loco.c and mx53_loco_pmic_mc34708.c, and renamed them. Further more,I replace all loco in these two files to my custom signal. When I compiled it ,got some error messages at xxx_susend_enter、machine_is_mx53_xxx etc.

error:MACH_TYPE_MX53_XXX undeclared here

error:implicit declaration of funtion 'mx53_xxx_init_mc34708'

I will appreciate if anyone can reply.

Regards,

Haifeng

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

945 次查看
caohaifeng
Contributor IV

I have solved it.

0 项奖励
回复

945 次查看
ottawa-imx6
Contributor IV

If you could... Please provide your solution and mark it as solved. That way the forums can benefit others.

Thank you.

0 项奖励
回复