Ник:
Пароль:

Контакты

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

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

Ник:
Пароль:

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

ОбновитьПодробнееВсегоВсего:6
Форум » starterkit.ru » ARM
imx233 sd card boot linux uncompress problem
itmicro
Добавлено 20.10.2010 23:49
0
Сообщение: 1
itmicro
0

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

I developed my own board from scratch. I have set required OTP bit for booting SD card as MBR. After that, when I power up my board, I get serial the same serial output repeateadly and contiuesly as below :

----------------------------------------------------------

PowerPrep start initialize power...
Battery Voltage = 1.69V
No battery or bad battery detected!!!.Dis3
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001

Undefined Instruction
r14_un

----------------------------------------------------------

what can I do to get rid of this problem ? What may cause this problem. May this related to DDR RAM ? What do you recommend ?

So, my imx233 MCUs come from fabric directly. In this case, do I have to set any OTP bit for using this kind of memory ( MT46V32M16P (512Mbit)) ?

I took imx23EVK Linux BSP as reference. I know that imx23EVK is also using the same DDR1(MT46V32M16P (512Mbit)) RAM but two pieces (2xMT46V32M16P) . In this case, do I have to do any settings in Linux BSP to use single DDR1 instead of two ? How can I make these settings If I have to do.Would you give me some recommendation about that ? Thank you for your kind replies.

Regards,
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 21.10.2010 01:40 Редактировалось 21.10.2010 02:08 Сообщение: 2
sasamy
4.70

Пункты: 77047
Регистрация: 14.08.2009
Hi.

Цитата

So, my imx233 MCUs come from fabric directly. In this case, do I have to set any OTP bit for using this kind of memory ( MT46V32M16P (512Mbit)) ?


For using of memory we changed nothing, only for support SD/MMC:
Цитата

To enable SD/MMC MBR support in the i.MX23 SoC ROM:
HW_OCOTP_ROM0[3]: 1
To configure the i.MX23 SoC ROM to use PWM3 pin for SD/MMC power gate
control:
HW_OCOTP_ROM0[20]: 0
HW_COOTP_ROM0[21]: 1



Цитата

In this case, do I have to do any settings in Linux BSP to use single DDR1 instead of two ?


We have single chip DDR1 and we changed nothing in a kernel.

Цитата

what can I do to get rid of this problem ? What may cause this problem. May this related to DDR RAM ? What do you recommend ?


1 Probably loading through mfg-tools will give to more debug information.
2 Try to load this image with sd/mmc
http://sasamy.narod.ru/linux.sb
3 Try up supply voltage 5,5 V
Спуститься к концу Подняться к началу
Персональная информация
itmicro
Добавлено 21.10.2010 11:30 Сообщение: 3
itmicro
0

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

Цитата

So, my imx233 MCUs come from fabric directly. In this case, do I have to set any OTP bit for using this kind of memory ( MT46V32M16P (512Mbit)) ?


For using of memory we changed nothing, only for support SD/MMC:
Цитата

To enable SD/MMC MBR support in the i.MX23 SoC ROM:
HW_OCOTP_ROM0[3]: 1
To configure the i.MX23 SoC ROM to use PWM3 pin for SD/MMC power gate
control:
HW_OCOTP_ROM0[20]: 0
HW_COOTP_ROM0[21]: 1



Цитата

In this case, do I have to do any settings in Linux BSP to use single DDR1 instead of two ?


We have single chip DDR1 and we changed nothing in a kernel.

Цитата

what can I do to get rid of this problem ? What may cause this problem. May this related to DDR RAM ? What do you recommend ?


1 Probably loading through mfg-tools will give to more debug information.
2 Try to load this image with sd/mmc
http://sasamy.narod.ru/linux.sb
3 Try up supply voltage 5,5 V


Hello

I tried to boot my board with linux.sb you recommend. Only diffrence is that I don get repeadetly output any more but only once at powe up like below :

--------------------------------------------------------------------------
Note : with your linux.sb, I get output below only once at power up

PowerPrep start initialize power...
Battery Voltage = 0.58V
No battery or bad battery detected!!!.Dis1
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001

---------------------------------------------------------------------

--------------------------------------------------------------------------
Note : with my imx233_linux.sb, I get output below repeatedly after power up

PowerPrep start initialize power...
Battery Voltage = 1.69V
No battery or bad battery detected!!!.Dis3
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001

Undefined Instruction
r14_un
---------------------------------------------------------------------

You recommended me to up supply voltage to 5.5 V. I dont use battery in my appllication so I did not connect battery input anywhere. It is unconnected. I suply the imx233 only with 5V DC supplyusing supply pin of imx233. In this case, should I also connect battery input to 5V DC even I dont use real battery ?

Thanks
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 21.10.2010 12:26 Сообщение: 4
sasamy
4.70

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

Цитата

I suply the imx233 only with 5V DC supplyusing supply pin of imx233. In this case, should I also connect battery input to 5V DC even I dont use real battery ?


No - it is not necessary. Circuite of our board you can find here
http://www.starterkit.ru/html/doc/SK-iMX233.pdf
Спуститься к концу Подняться к началу
Персональная информация
itmicro
Добавлено 21.10.2010 13:14 Сообщение: 5
itmicro
0

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

Do you have any other recommendation for checking my board ? What do you think about serial output I sent to you. Is this related to DDR RAM ? Do you recommend any clue for understanding ?

How many layer you use in your pcb ? 4-layer or 2-layer ?

Thanks,


Цитата
Hi

Цитата

I suply the imx233 only with 5V DC supplyusing supply pin of imx233. In this case, should I also connect battery input to 5V DC even I dont use real battery ?


No - it is not necessary. Circuite of our board you can find here
http://www.starterkit.ru/html/doc/SK-iMX233.pdf
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 21.10.2010 13:15 Сообщение: 6
sasamy
4.70

Пункты: 77047
Регистрация: 14.08.2009
Try to load this images with sd/mmc
http://sasamy.narod.ru/linux_testmem.sb
http://sasamy.narod.ru/linux_testmem_evk.sb
contain the simple test of sdram and some initialization for evk boards in the bootloader
Спуститься к концу Подняться к началу
Персональная информация
itmicro
Добавлено 21.10.2010 14:03 Сообщение: 7
itmicro
0

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

Output for the linux_testmem.sb :

PowerPrep start initialize power...
Battery Voltage = 0.63V
No battery or bad battery detected!!!.Dis7
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001
start test memory accress

Output for the linux_testmem_evk.sb :

PowerPrep start initialize power...
Battery Voltage = 0.64V
No battery or bad battery detected!!!.Dis1
EVK board
EMI_CTRL 0x1C084040
FRAC 0x92926192
init_ddr_mt46v32m16_133Mhz
power 0x00820710
Frac 0x92926192
start change cpu freq
hbus 0x00000003
cpu 0x00010001
start test memory accress

It seems board is stucked in DDR phase. What do you say ?

Цитата
Try to load this images with sd/mmc
http://sasamy.narod.ru/linux_testmem.sb
http://sasamy.narod.ru/linux_testmem_evk.sb
contain the simple test of sdram and some initialization for evk boards in the bootloader
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 21.10.2010 14:44 Сообщение: 8
sasamy
4.70

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

It seems board is stucked in DDR phase. What do you say ?


Need more information to be sure, try this image
http://sasamy.narod.ru/linux_memtest_1M_verbose.sb
Спуститься к концу Подняться к началу
Персональная информация
itmicro
Добавлено 21.10.2010 14:52 Сообщение: 9
itmicro
0

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

I have good news. I just checked all critical solders on the baord and it worked. I passed the memory check. After that I tried your linux.sb. It seems ok. it prompted me imx233 login and password. May i know login and password for linux.sb ?

Meanwhile, after I retried your linux.sb , I reload my own binary as imx233_linux.sb. There is a kernel panic as below :

..
.....
......

Failed to add route HP MUX->HPR
ALSA device list:
#0: MXS EVK (mxs adc/dac)
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
mxs-rtc mxs-rtc.0: setting system clock to 1970-01-01 00:00:11 UTC (11)
Waiting for root device /dev/mmcblk0p2...
mmc0: new high speed SD card at address 1234
mmcblk0: mmc0:1234 SA02G 1.83 GiB
mmcblk0: p1 p2
EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 179:2.
Freeing init memory: 136K
Warning: unable to open an initial console.
Kernel panic - not syncing: No init found. Try passing init= option to kernel.


What is wrong with my imx233_linux.sb configuration. What do you think ? Thank you,



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

It seems board is stucked in DDR phase. What do you say ?


Need more information to be sure, try this image
http://sasamy.narod.ru/linux_memtest_1M_verbose.sb
Спуститься к концу Подняться к началу
Персональная информация
sasamy
Добавлено 21.10.2010 15:18 Сообщение: 10
sasamy
4.70

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

I have good news. I just checked all critical solders on the baord and it worked. I passed the memory check.


great news :-)

Цитата

May i know login and password for linux.sb ?


superuser root without a password

Цитата

Warning: unable to open an initial console.


No devices /dev/console found - it is not critical

Цитата

Kernel panic - not syncing: No init found. Try passing init= option to kernel.


my kernel is compiled with built-in root file system in the initramfs, the filesystem on the disk is either absent or not properly assembled
Спуститься к концу Подняться к началу
Персональная информация
Форум » starterkit.ru » ARM