how to configure rootfs directory in ltib with mx233 ?

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

how to configure rootfs directory in ltib with mx233 ?

2,279 次查看
Marc_ng
Contributor I

hi,

i have a problem with imx233 board.

i try to execute linux 2.6.28 from SDcard on ssp2 port.

 

i use freescale BSP guide to create bootable sdcard, i make 2 partitions :

1'st : bootlet with 16MB and ontrack DM6 aux3 and imx233_linux.sb.

2nd : Linux partition (id=83) with rootfs filesystems.

 

i set ltib to use mmc card on SSP2 :

 

package list -> (console=ttyAM0,115200 root=/dev/mmcblk0p2 rw rootwait ssp2=mmc ssp1=spi1)

 

but when i start imx233 with sd card, linux try to get rootfs on ssp1.

why linux try to use SSP1 ???

标记 (1)
0 项奖励
回复
4 回复数

2,138 次查看
SimonJohnson
Contributor I

Hi Marc,

 

did you find a solutrion to this problem. We are trying to do the same thing and cannot get past "Waiting for root device..." We have poked around in device.c file in mx23 arch path and changed SSP1 ref to SSP2 where it seems to be relevant but to no effect.

 

Did you find a solution?

 

Regards,

 

Simon

0 项奖励
回复

2,138 次查看
Balaji_ng
Contributor III

Hi,

I think it is configured using a structure called stmp3xxxmmc_platform_data. It accepts some function pointers. You may find it in the following file.

<ltib_directory>/rpm/BUILD/arch/arm/mach-stmp378x/stmp378x_devb.c

 

A simple cscope search will get the location of those function definitions.

 

Regards,

Balaji.V

0 项奖励
回复

2,138 次查看
Marc_ng
Contributor I

hi,

thanks for response.

i set  ssp2=mmc ssp1=spi1 on all lines.

i'ts looks the mmc code is hard writen inside code from freescale.

 

does someone have successfully start ltib compiled linux on imx233 with mmc card on SSP2 port ?

0 项奖励
回复

2,138 次查看
Balaji_ng
Contributor III

hi,

     there is another command line in your attachment, that takes ssp1=mmc (alternative kernel command line option-4). have you taken care of that?

Regards,

Balaji.V

0 项奖励
回复