[SOLVED] boot failure after finish simple test

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

[SOLVED] boot failure after finish simple test

1,921 Views
Galax
Contributor I

Hello,

when I try to boot over network it fails with:

 

PowerPrep start initialize power...                                            
Battery Voltage = 4.24V                                                        
boot from battery. 5v input not detected                                       
Sep 22 201117:37:55                                                            
FRAC 0x92925552                                                                
memory type is mDDR                                                            
                   Wait for ddr ready 1power 0x00820616                        
Frac 0x92925552                                                                
start change cpu freq                                                          
hbus 0x00000003                                                                
cpu 0x00010001                                                                 
start test memory accress                                                      
ddr2 0x40000000                                                                
0x00000000 error value 0x0407B0AA                                              
0x00000001 error value 0xBAAAAAAA                                              
0x00000002 error value 0x0407B0AA                                              
0x00000003 error value 0xAAAAAAAA                                              
0x00000004 error value 0x0407B0AA

 

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

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

 

0x000003DA error value 0x000003D7                                              
0x000003DB error value 0x000003D8                                              
0x000003DC error value 0x000003D7                                              
0x000003DD error value 0x000003D8                                              
0x000003DE error value 0x000003D7                                              
0x000003DF error value 0x000003D8                                              
0x000003E0 error value 0x000003D7                                              
0x000003E1 error value 0x000003D8                                              
0x000003E2 error value 0x000003D7                                              
0x000003E3 error value 0x000003D8                                              
0x000003E4 error value 0x000003D7                                              
0x000003E5 error value 0x000003D8                                              
0x000003E6 error value 0x000003D7                                              
0x000003E7 error value 0x000003D8                                              
finish simple test

 

Sometimes it stops here, sometimes it reboots in an infinte loop.

I don't understand if it's an hardware problem or if I'm wrong in crosscompilation because the SDs Demo (Linux and CE) work perfectly.

 

Sorry for my English

Thank you



 


Tags (1)
0 Kudos
9 Replies

1,254 Views
Galax
Contributor I

I solved out the problem!

When I burned the Sd Card I selected Using MDDR at boot stream option in Package list and this is not correct to boot over network.

After when I DEselected the Using MDDR at boot stream option I did not regenerate the output boot stream images
 with ./ltib -p boot_stream.spec -f command.

Thanks to everybody!

0 Kudos

1,254 Views
Galax
Contributor I
Thank you very much!
0 Kudos

1,254 Views
daiane_angolini
NXP Employee
NXP Employee
As I know,  the script from http://imxcommunity.org/forum/topics/creating-bootable-sd-for-linux... is the latest and is correct
0 Kudos

1,254 Views
Galax
Contributor I

Thanks to everybody for yours replies.

 

I've found that the problem is about the mk_mx28_sd/mk_hdr.sh scripts or about my host because using an Adeneo's virtual machine (Ubuntu 10.10) it works fine.(In this machine, the two Adeneo's scripts are not the same of the attachment, see below).

So my board it's not broken, it's a problem of my host.

 

May I ask you what machine is better to use to setup the host for the i.mx28 demo board?

Now I use an Ubuntu 10.04 LTS 64Bits.

In the documentation Freescale certificates Ubuntu 9.04 and 9.10 but now they're not supported already.

 

Where can I find the right mk_mx28_sd/mk_hdr.sh scripts?
Following Daiane Angiolini's link I've found this scripts(see attchments).
Are they correct?
Also are they correct just with some Linux distros or with every distros?

 

Thanks to everybody and congratulations for this active community and it works.

Alessandro

0 Kudos

1,254 Views
BryanJI
Contributor I

This is simple bcos of you DDR2 memery access fail. If your memory access have problem, how can you go further.

Your code pass power_prep but stop when boot_prep. Check code in Ltib, imx-bootlet package.

Make sure your DDR2 works.

0 Kudos

1,254 Views
daiane_angolini
NXP Employee
NXP Employee

Please, take a look on this

http://imxcommunity.org/forum/topics/creating-bootable-sd-for-linux-on-imx28-evm

 

Your error is not caused by any LTIB mistake. I mean, you don´t reach even kernel. You need to keep your eyes on bootloader.

 

I believe you want to load u-boot from SDCard, but your sdcard may be corrupted. In this case, you will reach the other bootloader from imx28 memory (sorry, I forgot it name).

 

I will look for something else on some documentation. Please, try the latest script to create SDCard and let me know.

0 Kudos

1,254 Views
ZeeFrench
NXP Employee
NXP Employee

Hello Alessandro,

 

Given the powerprep debug information, you must be on your own board and if standard SD image work, you have probably same DDR2 as on EVK. So why are you using mDDR option in ltib ? This send a define to bootprep to initialised you EMI ctrl for mobile DDR (cf init-mx28.c) which explain all the errors in the memory access test.

 

Best Regards, ZF.

Alessandro Galassini said:

I've selected Using MDDR at boot stream

...                                               
start test memory accress                                                      
ddr2 0x40000000                                                                 

                                

0 Kudos

1,254 Views
Galax
Contributor I

First of all thank you for you reply!
I'm so sorry...you are right.

I'm working on a imx28 with an Ubuntu 10.04 LTS 64 Bit machine (Not virtual machine).
I'm working with the L2.6.35_10.12.01_SDK_source_bundle.tar.gz.

Suddenly simple test reports a lot of errors but just with my sd to boot over network.

So I decided to reconfigure ltib, I'm not an expert yet.

I did in terminal:

./ltib -m distclean
./ltib -c

I selected platform type imx28 and Minimum bootable root filesystem packages profile 
After I changed:
Toolchain (ARMv5te gcc-4.1.2,Multi-lib,gnueabi/glibc-2.5-nptl-3)
In package list I've deselected imx-test e imx-lib and I've selected Using MDDR at boot stream
In target options configuration I've selected start networking(no dhcp, just enabled eth0)
In target Image generation I've changed Target image in ext2.gz ramdisk.

I left all other options as I found it (see attachment)
I've saved and crosscompilation started.

I flashed the SD with the script mk_mx28_sd with the command
./mk_mx28_sd -u /dev/sdc
I attach the output.

Note: I've to comment line 224 to use mk_mx28_sd script. I've found it on the net.

I've inserted the sd card in the socket 0 with 1001 DIP switch combination, I've attached debag uart and lan ethernet cable in the lower connector.

I've opened minicom and pressed the power button.
That's the output:

PowerPrep start initialize power...                                            
Battery Voltage = 4.24V                                                        
boot from battery. 5v input not detected                                       
Sep 23 201111:17:07                                                            
FRAC 0x92925552                                                                
memory type is mDDR                                                            
                   Wait for ddr ready 1power 0x00820616                        
Frac 0x92925552                                                                
start change cpu freq                                                          
hbus 0x00000003                                                                
cpu 0x00010001                                                                 
start test memory accress                                                      
ddr2 0x40000000                                                                
0x00000000 error value 0x0407B0AA                                              
0x00000001 error value 0xBBAAAAAB
      
......other error............

0x000003E6 error value 0x000003D7                                             
0x000003E7 error value 0x000003D8                                             
finish simple test

Sometimes it stops here, sometimes it reboots in an infinte loop.

It's so strange because if I use the demo Sdcard with linux and Win CE it works.
In Linux Sd Card'system if I launch the top command I can see the Giga of RAM.

I don't undestand where I'm wrong and what memory is corrupted.
I've tried with another SD card but I've got the same errors.

For more accurate details see attachment.
Any help is appreciated
Thank you very much.

PS:Sorry for my terrible English

0 Kudos

1,254 Views
daiane_angolini
NXP Employee
NXP Employee

Sorry.

 

I did not understand which is your board?

 

What is your bootloader?

 

What was the steps you followed, in case I would reprocude it?

 

Please, when you ask something you should give as much information as possible, otherwise, nobody will help you.

0 Kudos