Dear all,<br><br>We are attempting to bring up a new MPC5121e board, somewhat based on the Silicon Turnkey&#39;s ADS5121 development board.  We are using a kernel and u-boot based on Freescale/STx&#39;s board support package.<br>
<br>We have successfully modified u-boot for the 64MB of DDR2 RAM, and we can use u-boot&#39;s (and the BDI&#39;s) memory test facility to check that the RAM is working.<br><br>Our problem is that as soon as control is passed from u-boot to Linux, the board immediately resets.  It appears that the kernel has been decompressed correctly, and the memory at 0x00000000 appears to be similar to the same memory on the ADS board at the same address.  i.e. We have some confidence that the kernel is being decompressed correctly. <br>
<br>With debug on, u-boot produces the following output on the console:<br><br>                                                                                                                                                                      <br>
U-Boot 2009.01-svn27683 (May 07 2009 - 15:35:15) MPC512X                                                                                                                   <br>                                                                                                                                                                           <br>
CPU:   MPC5121e rev. 2.0, Core e300c4 at 396 MHz, CSB at 198 MHz                                                                                                           <br>Board: ADS5121 rev. 0x0000 (CPLD rev. 0x00)                                                                                                                                <br>
I2C:   85 kHz,                                                                                                                                                             <br>85 kHz,                                                                                                                                                                    <br>
85 kHz,                                                                                                                                                                    <br>ready                                                                                                                                                                      <br>
DRAM:  64 MB                                                                                                                                                               <br>Top of RAM usable for U-Boot at: 04000000                                                                                                                                  <br>
Reserving 249k for U-Boot at: 03fc1000                                                                                                                                     <br>Reserving 520k for malloc() at: 03f3f000                                                                                                                                   <br>
Reserving 60 Bytes for Board Info at: 03f3efc4                                                                                                                             <br>Reserving 64 Bytes for Global Data at: 03f3ef84                                                                                                                            <br>
Stack Pointer at: 03f3ef68                                                                                                                                                 <br>New Stack Pointer is: 03f3ef68                                                                                                                                             <br>
Now running in RAM - U-Boot at: 03fc1000                                                                                                                                   <br>FLASH: flash detect cfi                                                                                                                                                    <br>
fwc addr fc000000 cmd f0 f0 8bit x 8 bit                                                                                                                                   <br>fwc addr fc000000 cmd ff ff 8bit x 8 bit                                                                                                                                   <br>
fwc addr fc000055 cmd 98 98 8bit x 8 bit                                                                                                                                   <br>is= cmd 51(Q) addr fc000010 is= 30 51                                                                                                                                      <br>
fwc addr fc000555 cmd 98 98 8bit x 8 bit                                                                                                                                   <br>is= cmd 51(Q) addr fc000010 is= 0 51                                                                                                                                       <br>
fwc addr fc000000 cmd f0 f0f0 16bit x 8 bit                                                                                                                                <br>fwc addr fc000000 cmd ff ffff 16bit x 8 bit                                                                                                                                <br>
fwc addr fc0000aa cmd 98 9898 16bit x 8 bit                                                                                                                                <br>is= cmd 51(Q) addr fc000020 is= 2032 5151                                                                                                                                  <br>
fwc addr fc000aaa cmd 98 9898 16bit x 8 bit                                                                                                                                <br>is= cmd 51(Q) addr fc000020 is= 2032 5151                                                                                                                                  <br>
fwc addr fc000000 cmd f0 00f0 16bit x 16 bit                                                                                                                               <br>fwc addr fc000000 cmd ff 00ff 16bit x 16 bit                                                                                                                               <br>
fwc addr fc0000aa cmd 98 0098 16bit x 16 bit                                                                                                                               <br>is= cmd 51(Q) addr fc000020 is= 2032 0051                                                                                                                                  <br>
fwc addr fc000aaa cmd 98 0098 16bit x 16 bit                                                                                                                               <br>is= cmd 51(Q) addr fc000020 is= 2032 0051                                                                                                                                  <br>
fwc addr fc000000 cmd f0 f0f0f0f0 32bit x 8 bit                                                                                                                            <br>fwc addr fc000000 cmd ff ffffffff 32bit x 8 bit                                                                                                                            <br>
fwc addr fc000154 cmd 98 98989898 32bit x 8 bit                                                                                                                            <br>is= cmd 51(Q) addr fc000040 is= 00510051 51515151                                                                                                                          <br>
fwc addr fc001554 cmd 98 98989898 32bit x 8 bit                                                                                                                            <br>is= cmd 51(Q) addr fc000040 is= 00510051 51515151                                                                                                                          <br>
fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>fwc addr fc000000 cmd ff 00ff00ff 32bit x 16 bit                                                                                                                           <br>
fwc addr fc000154 cmd 98 00980098 32bit x 16 bit                                                                                                                           <br>is= cmd 51(Q) addr fc000040 is= 00510051 00510051                                                                                                                          <br>
is= cmd 52(R) addr fc000044 is= 00520052 00520052                                                                                                                          <br>is= cmd 59(Y) addr fc000048 is= 00590059 00590059                                                                                                                          <br>
device interface is 2                                                                                                                                                      <br>found port 4 chip 2 port 32 bits chip 16 bits                                                                                                                              <br>
00 : 51 52 59 02 00 40 00 00 00 00 00 27 36 00 00 06  QRY..@.....&#39;6...                                                                                                     <br>10 : 06 09 13 03 05 03 02 19 02 00 06 00 01 ff 00 00  ................                                                                                                     <br>
20 : 02 00 00 00 00 00 00 00 00 00 00 00 00 00 00 01  ................                                                                                                     <br>fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>
fwc addr fc001554 cmd aa 00aa00aa 32bit x 16 bit                                                                                                                           <br>fwc addr fc000aa8 cmd 55 00550055 32bit x 16 bit                                                                                                                           <br>
fwc addr fc001554 cmd 90 00900090 32bit x 16 bit                                                                                                                           <br>fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>
fwc addr fc000154 cmd 98 00980098 32bit x 16 bit                                                                                                                           <br>manufacturer is 2                                                                                                                                                          <br>
manufacturer id is 0x1                                                                                                                                                     <br>device id is 0x227e                                                                                                                                                        <br>
device id2 is 0x0                                                                                                                                                          <br>cfi version is 0x3133                                                                                                                                                      <br>
size_ratio 2 port 32 bits chip 16 bits                                                                                                                                     <br>found 1 erase regions                                                                                                                                                      <br>
erase region 0: 0x020000ff                                                                                                                                                 <br>erase_region_count = 256 erase_region_size = 131072                                                                                                                        <br>
fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>flash_protect ON: from 0xFFF00000 to 0xFFF36FFF                                                                                                                            <br>
protect on 252                                                                                                                                                             <br>flash_protect ON: from 0xFFF40000 to 0xFFF7FFFF                                                                                                                            <br>
protect on 253                                                                                                                                                             <br>flash_protect ON: from 0xFFF80000 to 0xFFF81FFF                                                                                                                            <br>
protect on 254                                                                                                                                                             <br>64 MB                                                                                                                                                                      <br>
In:    serial                                                                                                                                                              <br>Out:   serial                                                                                                                                                              <br>
Err:   serial                                                                                                                                                              <br>i2c_write: failed to address chip                                                                                                                                          <br>
i2c_read: failed to address chip                                                                                                                                           <br>DVI Encoder Read: 0x00                                                                                                                                                     <br>
i2c_write: failed to address chip                                                                                                                                          <br>i2c_read: failed to address chip                                                                                                                                           <br>
DVI Encoder Read: 0x00                                                                                                                                                     <br>U-Boot relocated to 03fc1000                                                                                                                                               <br>
Net:   FEC ETHERNET                                                                                                                                                        <br>                                                                                                                                                                           <br>
Type &quot;run flash_nfs&quot; to mount root filesystem over NFS                                                                                                                     <br>                                                                                                                                                                           <br>
### main_loop entered: bootdelay=5                                                                                                                                         <br>                                                                                                                                                                           <br>
### main_loop: bootcmd=&quot;run cramfsboot&quot;                                                                                                                                    <br>Hit any key to stop autoboot:  0                                                                                                                                           <br>
=&gt;                                                                                                                                                                         <br>                                                                                                                                                                           <br>
U-Boot 2009.01-svn27683 (May 07 2009 - 15:35:15) MPC512X                                                                                                                   <br>                                                                                                                                                                           <br>
CPU:   MPC5121e rev. 2.0, Core e300c4 at 396 MHz, CSB at 198 MHz                                                                                                           <br>Board: ADS5121 rev. 0x0000 (CPLD rev. 0x00)                                                                                                                                <br>
I2C:   85 kHz,                                                                                                                                                             <br>85 kHz,                                                                                                                                                                    <br>
85 kHz,                                                                                                                                                                    <br>ready                                                                                                                                                                      <br>
DRAM:  64 MB                                                                                                                                                               <br>Top of RAM usable for U-Boot at: 04000000                                                                                                                                  <br>
Reserving 249k for U-Boot at: 03fc1000                                                                                                                                     <br>Reserving 520k for malloc() at: 03f3f000                                                                                                                                   <br>
Reserving 60 Bytes for Board Info at: 03f3efc4                                                                                                                             <br>Reserving 64 Bytes for Global Data at: 03f3ef84                                                                                                                            <br>
Stack Pointer at: 03f3ef68                                                                                                                                                 <br>New Stack Pointer is: 03f3ef68                                                                                                                                             <br>
Now running in RAM - U-Boot at: 03fc1000                                                                                                                                   <br>FLASH: flash detect cfi                                                                                                                                                    <br>
fwc addr fc000000 cmd f0 f0 8bit x 8 bit                                                                                                                                   <br>fwc addr fc000000 cmd ff ff 8bit x 8 bit                                                                                                                                   <br>
fwc addr fc000055 cmd 98 98 8bit x 8 bit                                                                                                                                   <br>is= cmd 51(Q) addr fc000010 is= 30 51                                                                                                                                      <br>
fwc addr fc000555 cmd 98 98 8bit x 8 bit                                                                                                                                   <br>is= cmd 51(Q) addr fc000010 is= 0 51                                                                                                                                       <br>
fwc addr fc000000 cmd f0 f0f0 16bit x 8 bit                                                                                                                                <br>fwc addr fc000000 cmd ff ffff 16bit x 8 bit                                                                                                                                <br>
fwc addr fc0000aa cmd 98 9898 16bit x 8 bit                                                                                                                                <br>is= cmd 51(Q) addr fc000020 is= 2032 5151                                                                                                                                  <br>
fwc addr fc000aaa cmd 98 9898 16bit x 8 bit                                                                                                                                <br>is= cmd 51(Q) addr fc000020 is= 2032 5151                                                                                                                                  <br>
fwc addr fc000000 cmd f0 00f0 16bit x 16 bit                                                                                                                               <br>fwc addr fc000000 cmd ff 00ff 16bit x 16 bit                                                                                                                               <br>
fwc addr fc0000aa cmd 98 0098 16bit x 16 bit                                                                                                                               <br>is= cmd 51(Q) addr fc000020 is= 2032 0051                                                                                                                                  <br>
fwc addr fc000aaa cmd 98 0098 16bit x 16 bit                                                                                                                               <br>is= cmd 51(Q) addr fc000020 is= 2032 0051                                                                                                                                  <br>
fwc addr fc000000 cmd f0 f0f0f0f0 32bit x 8 bit                                                                                                                            <br>fwc addr fc000000 cmd ff ffffffff 32bit x 8 bit                                                                                                                            <br>
fwc addr fc000154 cmd 98 98989898 32bit x 8 bit                                                                                                                            <br>is= cmd 51(Q) addr fc000040 is= 00510051 51515151                                                                                                                          <br>
fwc addr fc001554 cmd 98 98989898 32bit x 8 bit                                                                                                                            <br>is= cmd 51(Q) addr fc000040 is= 00510051 51515151                                                                                                                          <br>
fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>fwc addr fc000000 cmd ff 00ff00ff 32bit x 16 bit                                                                                                                           <br>
fwc addr fc000154 cmd 98 00980098 32bit x 16 bit                                                                                                                           <br>is= cmd 51(Q) addr fc000040 is= 00510051 00510051                                                                                                                          <br>
is= cmd 52(R) addr fc000044 is= 00520052 00520052                                                                                                                          <br>is= cmd 59(Y) addr fc000048 is= 00590059 00590059                                                                                                                          <br>
device interface is 2                                                                                                                                                      <br>found port 4 chip 2 port 32 bits chip 16 bits                                                                                                                              <br>
00 : 51 52 59 02 00 40 00 00 00 00 00 27 36 00 00 06  QRY..@.....&#39;6...                                                                                                     <br>10 : 06 09 13 03 05 03 02 19 02 00 06 00 01 ff 00 00  ................                                                                                                     <br>
20 : 02 00 00 00 00 00 00 00 00 00 00 00 00 f7 ff fd  ................                                                                                                     <br>fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>
fwc addr fc001554 cmd aa 00aa00aa 32bit x 16 bit                                                                                                                           <br>fwc addr fc000aa8 cmd 55 00550055 32bit x 16 bit                                                                                                                           <br>
fwc addr fc001554 cmd 90 00900090 32bit x 16 bit                                                                                                                           <br>fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>
fwc addr fc000154 cmd 98 00980098 32bit x 16 bit                                                                                                                           <br>manufacturer is 2                                                                                                                                                          <br>
manufacturer id is 0x1                                                                                                                                                     <br>device id is 0x227e                                                                                                                                                        <br>
device id2 is 0x0                                                                                                                                                          <br>cfi version is 0x3133                                                                                                                                                      <br>
size_ratio 2 port 32 bits chip 16 bits                                                                                                                                     <br>found 1 erase regions                                                                                                                                                      <br>
erase region 0: 0x020000ff                                                                                                                                                 <br>erase_region_count = 256 erase_region_size = 131072                                                                                                                        <br>
fwc addr fc000000 cmd f0 00f000f0 32bit x 16 bit                                                                                                                           <br>flash_protect ON: from 0xFFF00000 to 0xFFF36FFF                                                                                                                            <br>
protect on 252                                                                                                                                                             <br>flash_protect ON: from 0xFFF40000 to 0xFFF7FFFF                                                                                                                            <br>
protect on 253                                                                                                                                                             <br>flash_protect ON: from 0xFFF80000 to 0xFFF81FFF                                                                                                                            <br>
protect on 254                                                                                                                                                             <br>64 MB                                                                                                                                                                      <br>
In:    serial                                                                                                                                                              <br>Out:   serial                                                                                                                                                              <br>
Err:   serial                                                                                                                                                              <br>i2c_write: failed to address chip                                                                                                                                          <br>
i2c_read: failed to address chip                                                                                                                                           <br>DVI Encoder Read: 0x00                                                                                                                                                     <br>
i2c_write: failed to address chip                                                                                                                                          <br>i2c_read: failed to address chip                                                                                                                                           <br>
DVI Encoder Read: 0x00                                                                                                                                                     <br>U-Boot relocated to 03fc1000                                                                                                                                               <br>
Net:   FEC ETHERNET                                                                                                                                                        <br>                                                                                                                                                                           <br>
Type &quot;run flash_nfs&quot; to mount root filesystem over NFS                                                                                                                     <br>                                                                                                                                                                           <br>
### main_loop entered: bootdelay=5                                                                                                                                         <br>                                                                                                                                                                           <br>
### main_loop: bootcmd=&quot;run cramfsboot&quot;                                                                                                                                    <br>Hit any key to stop autoboot:  0                                                                                                                                           <br>
=&gt; boot                                                                                                                                                                    <br>## Current stack ends at 0x03f3e8f8                                                                                                                                        <br>
*  kernel: cmdline image address = 0xffc40000                                                                                                                              <br>## Booting kernel from Legacy Image at ffc40000 ...                                                                                                                        <br>
   Image Name:   Linux-2.6.24.6                                                                                                                                            <br>   Created:      2009-04-30   3:54:13 UTC                                                                                                                                  <br>
   Image Type:   PowerPC Linux Kernel Image (gzip compressed)                                                                                                              <br>   Data Size:    1782150 Bytes =  1.7 MB                                                                                                                                   <br>
   Load Address: 00000000                                                                                                                                                  <br>   Entry Point:  00000000                                                                                                                                                  <br>
   Verifying Checksum ... OK                                                                                                                                               <br>   kernel data at 0xffc40040, len = 0x001b3186 (1782150)                                                                                                                   <br>
## Skipping init Ramdisk                                                                                                                                                   <br>## No init Ramdisk                                                                                                                                                         <br>
   ramdisk start = 0x00000000, ramdisk end = 0x00000000                                                                                                                    <br>*  fdt: cmdline image address = 0xffec0000                                                                                                                                 <br>
## Checking for &#39;FDT&#39;/&#39;FDT Image&#39; at ffec0000                                                                                                                              <br>*  fdt: raw FDT blob                                                                                                                                                       <br>
## Flattened Device Tree blob at ffec0000                                                                                                                                  <br>   Booting using the fdt blob at 0xffec0000                                                                                                                                <br>
   of_flat_tree at 0xffec0000 size 0x00000e06                                                                                                                              <br>   Uncompressing Kernel Image ... OK                                                                                                                                       <br>
   kernel loaded at 0x00000000, end = 0x003ac244                                                                                                                           <br>## initrd_high = 0xffffffff, copy_to_ram = 1                                                                                                                               <br>
   ramdisk load start = 0x00000000, ramdisk load end = 0x00000000                                                                                                          <br>## device tree at 0xFFEC0000 ... 0xFFEC0E05 (len=15878=0x3E06)                                                                                                             <br>
   Loading Device Tree to 007fc000, end 007ffe05 ... OK                                                                                                                    <br>Updating property &#39;local-mac-address&#39; =  00 00 00 00 00 00                                                                                                                 <br>
Updating property &#39;address&#39; =  00 00 00 00 00 00                                                                                                                           <br>Updating property &#39;bus-frequency&#39; =  03 ef 14 80                                                                                                                           <br>
Updating property &#39;/cpus/PowerPC,5121@0/timebase-frequency&#39; =  02 f3 4f 60                                                                                                 <br>Updating property &#39;/cpus/PowerPC,5121@0/bus-frequency&#39; =  0b cd 3d 80                                                                                                      <br>
Updating property &#39;/cpus/PowerPC,5121@0/clock-frequency&#39; =  17 9a 7b 00                                                                                                    <br>Updating property &#39;bus-frequency&#39; =  03 ef 14 80                                                                                                                           <br>
## Transferring control to Linux (at address 00000000) ...                                                                                                                 <br>   Booting using OF flat tree... (at address 007fc000)                                                                                                                     <br>
<br>At this point, the board immediately resets.  There is no hint of life from the kernel from the console, although setting a breakpoint on the BDI at 0x0000000 and tracing through appears as though some code (although we don&#39;t know what) is being executed.<br>
<br>Our u-boot environment is as follows:<br><br>=&gt; printenv                                                                                                                                                                <br>
bootdelay=5                                                                                                                                                                <br>baudrate=115200                                                                                                                                                            <br>
loads_echo=1                                                                                                                                                               <br>preboot=echo;echo Type \&quot;run flash_nfs\&quot; to mount root filesystem over NFS;echo                                                                                            <br>
rootpath=/opt/eldk/ppc_6xx                                                                                                                                                 <br>hostname=gg200                                                                                                                                                             <br>
bootfile=gg200/uImage                                                                                                                                                      <br>loadaddr=400000                                                                                                                                                            <br>
u-boot_addr_r=200000                                                                                                                                                       <br>kernel_addr_r=600000                                                                                                                                                       <br>
fdt_addr_r=880000                                                                                                                                                          <br>ramdisk_addr_r=900000                                                                                                                                                      <br>
u-boot_addr=FFF00000                                                                                                                                                       <br>kernel_addr=FFC40000                                                                                                                                                       <br>
fdt_addr=FFEC0000                                                                                                                                                          <br>ramdisk_addr=FC040000                                                                                                                                                      <br>
ramdiskfile=ads5121/uRamdisk                                                                                                                                               <br>u-boot=ads5121/u-boot.bin                                                                                                                                                  <br>
bootfile=ads5121/uImage                                                                                                                                                    <br>fdtfile=ads5121/ads5121.dtb                                                                                                                                                <br>
rootpath=/opt/eldk/ppc_6xx                                                                                                                                                 <br>netdev=eth0                                                                                                                                                                <br>
consdev=ttyPSC0                                                                                                                                                            <br>nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath}                                                                                                   <br>
ramargs=setenv bootargs root=/dev/ram rw                                                                                                                                   <br>addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1                                                       <br>
addtty=setenv bootargs ${bootargs} console=${consdev},${baudrate}                                                                                                          <br>flash_nfs=run nfsargs addip addtty;bootm ${kernel_addr} - ${fdt_addr}                                                                                                      <br>
flash_self=run ramargs addip addtty;bootm ${kernel_addr} ${ramdisk_addr} ${fdt_addr}                                                                                       <br>net_nfs=tftp ${kernel_addr_r} ${bootfile};tftp ${fdt_addr_r} ${fdtfile};run nfsargs addip addtty;bootm ${kernel_addr_r} - ${fdt_addr_r}                                    <br>
net_self=tftp ${kernel_addr_r} ${bootfile};tftp ${ramdisk_addr_r} ${ramdiskfile};tftp ${fdt_addr_r} ${fdtfile};run ramargs addip addtty;bootm ${kernel_addr_r} ${ramdisk_a}<br>load=tftp ${u-boot_addr_r} ${u-boot}                                                                                                                                       <br>
update=protect off ${u-boot_addr} +${filesize};era ${u-boot_addr} +${filesize};cp.b ${u-boot_addr_r} ${u-boot_addr} ${filesize}                                            <br>upd=run load update                                                                                                                                                        <br>
ethact=FEC ETHERNET                                                                                                                                                        <br>cramfsboot=set bootargs root=/dev/mtdblock1 mem=64M; run addtty;bootm ${kernel_addr} - ${fdt_addr}                                                                         <br>
bootcmd=run cramfsboot                                                                                                                                                     <br>stdin=serial                                                                                                                                                               <br>
stdout=serial                                                                                                                                                              <br>stderr=serial                                                                                                                                                              <br>
                    <br>If anyone is able to provide some help as to where we should start looking for our problem (or how we can stop it from immediately rebooting, or trap the reboot on the BDI), we would be extremely grateful for the help.<br>
<br>Best regards<br>Damien.<br><br><br><br><br><br><br>