This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

PSP-04.02.00.07 migration - Kernel not booting , EVM3530/3730(hynix) Mistral EVM main board (Rev G)

Other Parts Discussed in Thread: AM3517

We have recently downloaded AM37xSDK_05_02_00_00 sdk as we wanted to migrate from psp-03.00.01.06 (kernel 2.6.32) to psp-04.02.00.07(kernel 2.6.37).  The MLO and uboot that came originally with the TI EVM3530/3730 Rev D (hynix) processor module along with Mistral EVM main board (Rev G) works fine withpsp-03.00.01.06 kernel.

After going through the "Requirement" section in "AM35x-OMAP35x-PSP 04.02.00.07 User Guide", it apppears that "AM37x/DM37x-GP ES2.0, CPU-OPP2 L3-165MHz" (this is what our current x-loader/uboot shows) module is not supported in psp-04.02.00.07 release.

As psp-04.02.00.07 kernel uses 1-bit hardware ECC for nand driver, we updated both MLO and u-boot from prebuilt-images (MLO-am37x-evm, u-boot-am37x-evm.bin) from the package.  MLO and u-boot images have been updated using Flash_Tool_01_06_00_00 with UART interface and also steps followed as per "Flash v1.6 User Guide" - section Example 1:  Flashing the AM/DM37x Evaluation Module (2.6.37 Kernel) choosing TARGET: AM37xx (Hynix).

Pre-built MLO and u-boot works OK with the pre-built uImage-am37x-evm.bin. This pre-built kernel also works fine with our nfs filesystem. ttyO0/network related changes were done to accomodate new kernel requirements.

We encounter kernel boot issue when we build linux-2.6.37-psp04.02.00.07.sdk and want to boot from our kernel built image with Pre-built MLO and u-boot.
It stops after "Uncompressing Linux... done, booting the kernel". We also tried enabling early printk to check debug messages but nothing comes.

There is no evm_defconfig for am37x in arch/arm/configs path. We use "make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm am3517_evm_defconfig", "make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm"  for kernel build. 

Also, x-load/uboot prompt does not come if we update x-load/uboot from our build images.   

Could you please look into this ?

==================
Current x-loader/uboot 
==================
Texas Instruments X-Loader 1.46 (Aug 16 2010 - 08:13:53)
Starting OS Bootloader...

U-Boot 2009.11 (Aug 16 2010 - 09:35:30)

AM37x/DM37x-GP ES2.0, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
I2C:   ready
DRAM:  256 MB
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Read back SMSC id 0x92200000
Die ID #561800011ff0000001592f3501002013
Net:   smc911x-0
Hit any key to stop autoboot:  0
OMAP3_EVM # pri
loadaddr=0x82000000
usbtty=cdc_acm
mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait
nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2
loadbootscript=fatload mmc 0 ${loadaddr} boot.scr
bootscript=echo Running bootscript from mmc ...; source ${loadaddr}
loaduimage=fatload mmc 0 ${loadaddr} uImage
mmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}
nandboot=echo Booting from nand ...; run nandargs; onenand read ${loadaddr} 280000 400000; bootm ${loadaddr}
dieid#=561800011ff0000001592f3501002013
ethact=smc911x-0
bootdelay=4
baudrate=115200
console=ttyS0,115200n8
gatewayip=10.135.0.5
netmask=255.255.255.192
bootfile=uImage
serverip=10.135.0.19
nfshost=10.135.0.19
ipaddr=10.135.0.32
autoload=yes
bootcmd=tftpboot 0x80000000 uImage; bootm
bootargs=mem=256M console=ttyS0,115200n8 noinitrd ip=dhcp rw root=/dev/nfs, nfsroot=10.135.0.19:/home/avijit/elfs/target/mistral_am35x-37x/workdir/dev_rootfs, nolock mpurate=100
0 vram=12M omapfb.vram=0:12M omapfb.vrfb=y omap_vout.vid1_static_vrfb_alloc=y omapfb.mode=dvi:800x600MR-32@60 omapdss.def_disp=dvi consoleblank=0
stdin=serial
stdout=serial
stderr=serial

Environment size: 1195/131068 bytes

=========================================
x-loader/uboot pre-built images from psp-04.02.00.07
==========================================
Texas Instruments X-Loader 1.51 (Jul  5 2011 - 22:25:05)
Booting from nand . . .
Starting OS Bootloader...


U-Boot 2010.06 (Jul 06 2011 - 14:01:34)

OMAP34xx/35xx-GP ES2.1, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
I2C:   ready
DRAM:  256 MiB
NAND:  HW ECC [Kernel/FS layout] selected
512 MiB
In:    serial
Out:   serial
Err:   serial
Read back SMSC id 0x92200000
Die ID #1b2a00029ff80000015f02690c018013
Net:   smc911x-0
Hit any key to stop autoboot:  0
smc911x: detected LAN9220 controller
smc911x: phy initialized
smc911x: MAC 00:50:c2:7e:94:ea
Using smc911x-0 device
TFTP from server 10.135.0.19; our IP address is 10.135.0.32
Filename 'uImage'.
Load address: 0x80000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #######################################
done
Bytes transferred = 3190724 (30afc4 hex)
## Booting kernel from Legacy Image at 80000000 ...
   Image Name:   Linux-2.6.37
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3190660 Bytes = 3 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

============
uboot env vars
============
OMAP3_EVM # pri
bootdelay=10
baudrate=115200
loadaddr=0x82000000
usbtty=cdc_acm
console=ttyO0,115200n8
dieid#=1b2a00029ff80000015f02690c018013
ethact=smc911x-0
bootfile=uImage
serverip=10.135.0.19
nfshost=10.135.0.19
ipaddr=10.135.0.32
bootcmd=tftpboot 0x80000000 uImage; bootm
bootargs=mem=256M console=ttyO0,115200n8 noinitrd ip=dhcp rw root=/dev/nfs, nfsroot=10.135.0.19:/home/avijit/elfs/target/mistral_am35x-37x/workdir/dev_rootfs, nolock mpurate=600
 vram=12M omapfb.vram=0:12M
stdin=serial
stdout=serial
stderr=serial

=============================================
Kernel compilation, mkimage tool in uboot tool PATH is set
==============================================
[linux-devkit]:/opt/AM37xSDK_05_02_00_00/psp/linux-2.6.37-psp04.02.00.07.sdk> make CROSS_COMPILE=arm-arago-linux-gnueabi- ARCH=arm uImage
......
......

  CHK     include/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: `include/generated/mach-types.h' is up to date.
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  Kernel: arch/arm/boot/Image is ready
  SHIPPED arch/arm/boot/compressed/lib1funcs.S
  AS      arch/arm/boot/compressed/lib1funcs.o
  LD      arch/arm/boot/compressed/vmlinux
  OBJCOPY arch/arm/boot/zImage
  Kernel: arch/arm/boot/zImage is ready
  UIMAGE  arch/arm/boot/uImage
Image Name:   Linux-2.6.37
Created:      Tue Jul 26 13:36:35 2011
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    3102504 Bytes = 3029.79 kB = 2.96 MB
Load Address: 80008000
Entry Point:  80008000
  Image arch/arm/boot/uImage is ready