Ник:
Пароль:

Контакты

E-mail: info@starterkit.ru
тел.: +7 922 680-21-73
тел.: +7 922 680-21-74
Телеграм: t.me/starterkit_ru
Партнеры:
otladka.com.ua - г.Киев

Способы оплаты

User Info


Добро пожаловать,
Guest

Регистрация или входРегистрация или вход
Потеряли пароль?Потеряли пароль?

Ник:
Пароль:

ПользователейПользователей:1
Поисковых ботовПоисковых ботов:2
ГостейГостей:1

ОбновитьПодробнееВсегоВсего:4
Форум » starterkit.ru » ARM
imx233 sd card boot linux uncompress problem
itmicro
Добавлено 24.10.2010 11:37 Сообщение: 31
itmicro
0

Пункты: 2274
Регистрация: 20.10.2010
Dear My Friend,

I realized that you already gave me the answer about SDD19xx. The patch you gave me includes this one. Thanks,

Regards,

Цитата
Hello,

Dear my friend,great news once again :)) I could eventually mount the ext2 file system to my kernel properly. I have been working silly mistake. I was trying to copy rootfs.ext2 image instead of my rootfs directory to the mmcblk0p2 partition of MMC. It is done now.

Next step is getting my tft panel worked with my device. I realized that you have written a very nice driver for SSD19xx and put it into kernel which you given in your web site. When I try to compile that, I get many errors. How can I adapt your driver into my linux kernel comes from Freescale BSP.

Thanks,


Цитата
Hello,

Actually, for testing purpose I download ready to use image from freescale web site and wrote into sd card memory ext2 partition which I created. The reason choosing ready image , LTIB does not provide an option to create a custom rootfs.ext image for SD/MMC. It only gives ramdisk support for ext2 image genaration. You can check this link : http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX23EVK&fpsp=1&tab=Design_Tools_Tab

File name which includes ready to use images is : L2.6.31_MX23_SDK_1005_IMAGE

Meanwhile, how can I get rootfs.ext image properly by myself ? Do you have any proper one for booting my device on mmc1 and mmblk0p2 for ext2 ? Thanks,



Цитата
Цитата

how can I pass init= option to kernel ? Would you tell me proper definition about that.


The default first process created by the kernel init=/sbin/init, you can change this by passing the command line init=/path/to/my/init but it does not solve your problem

Boot options --->
(console=ttyAM0,115200 init=/path/to/my/init ssp1=mmc root=/dev/mmcblk0p2 rootfstype=ext2 rootwait) Default kernel command string

Your root file system does not include /sbin/init - as I wrote it is not properly built or empty or incorrectly recorded. How do you write rootfs on SD/MMC?

PS where can I download your rootfs image to check it out?
Спуститься к концу Подняться к началу
Персональная информация
itmicro
Добавлено 25.10.2010 12:20 Сообщение: 32
itmicro
0

Пункты: 2274
Регистрация: 20.10.2010
Hi,

I am tryind to use 16 bit LCD interface reconfiguring ssd1963 driver.

static void mpulcd_init_lcdif(void)
{

lcdif_write(HW_LCDIF_CTRL_CLR,
BM_LCDIF_CTRL_CLKGATE |
BM_LCDIF_CTRL_SFTRST);

lcdif_write(HW_LCDIF_CTRL,
BF_LCDIF_CTRL_LCD_DATABUS_WIDTH(BV_LCDIF_CTRL_LCD_DATABUS_WIDTH__16_BIT) |
BF_LCDIF_CTRL_WORD_LENGTH(BV_LCDIF_CTRL_WORD_LENGTH__16_BIT));

lcdif_write(HW_LCDIF_TIMING, 0x01010101);

lcdif_write(HW_PINCTRL_MUXSEL2_CLR, 0x11111111);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x0000c000);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000c00);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000300);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x000000c0);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000030);

}

What is wrong with above code ? Although I configured LCDIF Data Bus as 16 bit, I cant see anything on LCDD8 to LCD15. What do you think ? Do you have any patch or reference source related 16 bit MCU interface TFT LCD panel driving ? The panel I want to drive based on ILI93xx. Thanks,



Цитата
Dear My Friend,

I realized that you already gave me the answer about SDD19xx. The patch you gave me includes this one. Thanks,

Regards,

Цитата
Hello,

Dear my friend,great news once again :)) I could eventually mount the ext2 file system to my kernel properly. I have been working silly mistake. I was trying to copy rootfs.ext2 image instead of my rootfs directory to the mmcblk0p2 partition of MMC. It is done now.

Next step is getting my tft panel worked with my device. I realized that you have written a very nice driver for SSD19xx and put it into kernel which you given in your web site. When I try to compile that, I get many errors. How can I adapt your driver into my linux kernel comes from Freescale BSP.

Thanks,


Цитата
Hello,

Actually, for testing purpose I download ready to use image from freescale web site and wrote into sd card memory ext2 partition which I created. The reason choosing ready image , LTIB does not provide an option to create a custom rootfs.ext image for SD/MMC. It only gives ramdisk support for ext2 image genaration. You can check this link : http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX23EVK&fpsp=1&tab=Design_Tools_Tab

File name which includes ready to use images is : L2.6.31_MX23_SDK_1005_IMAGE

Meanwhile, how can I get rootfs.ext image properly by myself ? Do you have any proper one for booting my device on mmc1 and mmblk0p2 for ext2 ? Thanks,



Цитата
Цитата

how can I pass init= option to kernel ? Would you tell me proper definition about that.


The default first process created by the kernel init=/sbin/init, you can change this by passing the command line init=/path/to/my/init but it does not solve your problem

Boot options --->
(console=ttyAM0,115200 init=/path/to/my/init ssp1=mmc root=/dev/mmcblk0p2 rootfstype=ext2 rootwait) Default kernel command string

Your root file system does not include /sbin/init - as I wrote it is not properly built or empty or incorrectly recorded. How do you write rootfs on SD/MMC?

PS where can I download your rootfs image to check it out?
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 25.10.2010 16:12 Редактировалось 25.10.2010 16:16 Сообщение: 33
sasamy
4.70

Пункты: 77241
Регистрация: 14.08.2009
Цитата

lcdif_write(HW_PINCTRL_MUXSEL2_CLR, 0x11111111);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x0000c000);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000c00);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000300);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x000000c0);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000030);



+#define lcdif_read(reg) __raw_readl(>>>REGS_LCDIF_BASE<<< + reg)
+#define lcdif_write(reg,val) __raw_writel(val, >>>REGS_LCDIF_BASE<<< + reg)

These functions work only with registers LCDIF

Цитата

What is wrong with above code ? Although I configured LCDIF Data Bus as 16 bit, I cant see anything on LCDD8 to LCD15.


Probably you are using our patch, we use the LQFP128 there are only 8-bit bus, use the original file linux-2.6.31/arch/arm/mach-mx23/mx23evk_pins.k and make your changes. Use "parallel RGB mode" and not "parallel system mode" will be a much better choice for you.
Спуститься к концу Подняться к началу
Персональная информация
itmicro
Добавлено 25.10.2010 17:05 Сообщение: 34
itmicro
0

Пункты: 2274
Регистрация: 20.10.2010
I think the correct definition might be as below :

__raw_writel(0x11111111,PINCTRL_BASE_ADDR + HW_PINCTRL_MUXSEL2_CLR);//&#35774;&#32622;16&#20301;&#30340;&#31471;&#21475;&#20026;16&#20301;LCD&#30340;&#25968;&#25454;&#20301;
__raw_writel(0x0000c000,PINCTRL_BASE_ADDR + HW_PINCTRL_MUXSEL3_CLR);//&#35774;&#32622;LCD&#20351;&#33021;
__raw_writel(0x00000c00,PINCTRL_BASE_ADDR + HW_PINCTRL_MUXSEL3_CLR);//&#35774;&#32622;LCD_CS&#31471;&#21475;
__raw_writel(0x00000300,PINCTRL_BASE_ADDR + HW_PINCTRL_MUXSEL3_CLR);//&#35774;&#32622;LCD_WR&#31471;&#21475;
__raw_writel(0x000000c0,PINCTRL_BASE_ADDR + HW_PINCTRL_MUXSEL3_CLR);//&#35774;&#32622;LCD_RS&#31471;&#21475;
__raw_writel(0x00000030,PINCTRL_BASE_ADDR + HW_PINCTRL_MUXSEL3_CLR);//&#35774;&#32622;LCD_RE


Code snipped above is for I think belongs to BGA package mux2 register conditioning. How can I adapt this into 128QFP package. I want to configure LCD IF for 128 QFP imx233 as 16 bit lcd data bus. Can you help me please ? Thanks

Цитата
Цитата

lcdif_write(HW_PINCTRL_MUXSEL2_CLR, 0x11111111);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x0000c000);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000c00);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000300);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x000000c0);
lcdif_write(HW_PINCTRL_MUXSEL3_CLR, 0x00000030);



+#define lcdif_read(reg) __raw_readl(>>>REGS_LCDIF_BASE<<< + reg)
+#define lcdif_write(reg,val) __raw_writel(val, >>>REGS_LCDIF_BASE<<< + reg)

These functions work only with registers LCDIF

Цитата

What is wrong with above code ? Although I configured LCDIF Data Bus as 16 bit, I cant see anything on LCDD8 to LCD15.


Probably you are using our patch, we use the LQFP128 there are only 8-bit bus, use the original file linux-2.6.31/arch/arm/mach-mx23/mx23evk_pins.k and make your changes. Use "parallel RGB mode" and not "parallel system mode" will be a much better choice for you.
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 25.10.2010 18:26 Сообщение: 35
sasamy
4.70

Пункты: 77241
Регистрация: 14.08.2009
Цитата

Code snipped above is for I think belongs to BGA package mux2 register conditioning. How can I adapt this into 128QFP package. I want to configure LCD IF for 128 QFP imx233 as 16 bit lcd data bus. Can you help me please ?


I'm not sure that this is possible, I worked only from 8-bit bus. See "i.MX23 Applications Processor Reference Manual" - Table 1-1. i.MX23 Functions by Package.
LQFP128
• 8-bit serial RGB mode
• ITU-R BT.656 8-bit+clock mode
• 8-bit system mode
Спуститься к концу Подняться к началу
Персональная информация
Форум » starterkit.ru » ARM