18 Oct 2013 10:39 AM |
|
hello, i download and install ti-sdk-am3517-evm-06.00.00.00-Linux-x86-Install, then run "make linux_clean", "make linux" and "make linux_install", after that i download to ram using uboot "loady" command at 0x82000000 (or 0x80008000), after that "bootm 0x82000000 (or 0x80008000)". Booting kernel from Legacy Image at 80008000 ... Image Name: Linux-2.6.37 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3010184 Bytes = 2.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK XIP Kernel Image ... OK OK Starting kernel ... Systema hang at this point. Rules.make file #platform PLATFORM=am3517-evm #Architecture ARCH=armv7a #u-boot machine UBOOT_MACHINE=am3517_evm_config #Points to the root of the TI SDK export TI_SDK_PATH=/home/mariano/ti-sdk-am3517-evm-06.00.00.00 #root of the target file system for installing applications DESTDIR=/home/mariano/ti-sdk-am3517-evm-06.00.00.00/targetNFS #Points to the root of the Linux libraries and headers matching the #demo file system. export LINUX_DEVKIT_PATH=$(TI_SDK_PATH)/linux-devkit #Cross compiler prefix export CROSS_COMPILE=$(LINUX_DEVKIT_PATH)/sysroots/i686-arago-linux/usr/bin/arm-linux-gnueabihf- #Default CC value to be used when cross compiling. This is so that the #GNU Make default of "cc" is not used to point to the host compiler export CC=$(CROSS_COMPILE)gcc #Location of environment-setup file export ENV_SETUP=$(LINUX_DEVKIT_PATH)/environment-setup #The directory that points to the SDK kernel source tree LINUXKERNEL_INSTALL_DIR=$(TI_SDK_PATH)/board-support/linux-2.6.37-psp04.02.00.07 CFLAGS= -march=armv7-a -marm -mthumb-interwork -mfloat-abi=hard -mfpu=neon -mtune=cortex-a8 Any ideas or help thanks!!
|
|
|
|
steven.eckhoffBasic Member Posts:192
18 Oct 2013 10:48 AM |
|
Mariano, Please include your current U-Boot environment.
|
|
|
|
18 Oct 2013 10:49 AM |
|
AM3517_EVM # printenv bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi bootdelay=10 baudrate=115200 bootfile=uImage loadaddr=0x82000000 console=ttyS2,115200n8 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; nand read ${loadaddr} 280000 400000; bootm ${loadaddr} stdin=serial stdout=serial stderr=serial dieid#=38a0000100000000016b7f220d01a01c ethact=DaVinci EMAC Environment size: 859/131068 bytes
|
|
|
|
jemiahaNew Member Posts:10
18 Oct 2013 10:54 AM |
|
Mariano, Your 'console' environment variable is incorrect. It should be: console=ttyO2,115200n8 run these commands to change it and retry: AM3517_EVM # setenv console 'ttyO2,115200n8' AM3517_EVM # saveenv Saving Environment to NAND... Erasing Nand... Erasing at 0x260000 -- 100% complete. Writing to Nand... done AM3517_EVM # .
|
|
|
|
18 Oct 2013 11:03 AM |
|
I change console, but still the same hang AM3517_EVM # print bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi bootdelay=10 baudrate=115200 bootfile=uImage loadaddr=0x82000000 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; nand read ${loadaddr} 280000 400000; bootm ${loadaddr} dieid#=38a0000100000000016b7f220d01a01c ethact=DaVinci EMAC console=ttyO2,115200n8 stdin=serial stdout=serial stderr=serial Environment size: 859/131068 bytes AM3517_EVM # loady ## Ready for binary (ymodem) download to 0x82000000 at 115200 bps... CCxyzModem - CRC mode, 0(SOH)/2941(STX)/0(CAN) packets, 4 retries ## Total Size = 0x002deec8 = 3010248 Bytes AM3517_EVM # bootm 0x82000000 ## Booting kernel from Legacy Image at 82000000 ... Image Name: Linux-2.6.37 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3010184 Bytes = 2.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
|
|
|
|
steven.eckhoffBasic Member Posts:192
18 Oct 2013 11:05 AM |
|
Mariano, Print out your bootargs before you call bootm. I don't see where you are setting them.
|
|
|
|
18 Oct 2013 11:17 AM |
|
AM3517_EVM # setenv console 'ttyO2,115200n8' AM3517_EVM # saveenv Saving Environment to NAND... Erasing Nand... Erasing at 0x260000 -- 100% complete. Writing to Nand... done AM3517_EVM # printenv bootcmd=if mmc init; then if run loadbootscript; then run bootscript; else if run loaduimage; then run mmcboot; else run nandboot; fi; fi; else run nandboot; fi bootdelay=10 baudrate=115200 bootfile=uImage loadaddr=0x82000000 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; nand read ${loadaddr} 280000 400000; bootm ${loadaddr} dieid#=38a0000100000000016b7f220d01a01c ethact=DaVinci EMAC stdin=serial stdout=serial stderr=serial console=ttyO2,115200n8 Environment size: 859/131068 bytes AM3517_EVM # loady ## Ready for binary (ymodem) download to 0x82000000 at 115200 bps... CCxyzModem - CRC mode, 0(SOH)/2941(STX)/0(CAN) packets, 4 retries ## Total Size = 0x002deec8 = 3010248 Bytes AM3517_EVM # bootm 0x82000000 ## Booting kernel from Legacy Image at 82000000 ... Image Name: Linux-2.6.37 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3010184 Bytes = 2.9 MB Load Address: 80008000 Entry Point: 80008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... Uncompressing Linux... done, booting the kernel.
|
|
|
|
steven.eckhoffBasic Member Posts:192
18 Oct 2013 11:20 AM |
|
Mariano, The problem is that you are not passing any bootargs to the kernel.
|
|
|
|
18 Oct 2013 11:26 AM |
|
how i set this bootargs for my uImage?? thanks
|
|
|
|
steven.eckhoffBasic Member Posts:192
18 Oct 2013 11:46 AM |
|
You can do this in several ways. Take a look at the following two lines from your environment. mmcargs=setenv bootargs console=${console} root=/dev/mmcblk0p2 rw rootfstype=ext3 rootwait nandargs=setenv bootargs console=${console} root=/dev/mtdblock4 rw rootfstype=jffs2 You will need to specify the console, root mount point and other rootfs parameters. What kind of rootfs are you going to use?
|
|
|
|