Hi,
After I modifying the cmdline file and make install ,I get the following Error output :
Ridgerun Linux SDK
Board configuration: Leopard Board DM365
Installation system of uboot images over TFTP for host 192.168.1.109
Please be sure u-boot is running on port /dev/ttyS1 and none process (like minicom) is using it
u-boot port /dev/ttyS1
Performing handshake with u-boot...
Trying to identify NAND block size... detected 0x20000
Verifying if kernel needs to be installed...
Kernel doesn't need to be loaded, since checksums match on board and host
File system doesn't needs to be loaded
Verifying if kernel command line needs to be installed...
Uboot <= setenv bootargs 'davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=NTSC davinci_display.cont2_bufsize=3145728 vpfe_capture.cont_bufoffset=3145728 vpfe_capture.cont_bufsize=3145728 video=davincifb:osd1=0x0x8:osd0=720x480x16,1350K@0,0 console=ttyS0,115200n8 dm365_imp.oper_mode=0 vpfe_capture.interface=1 mem=99M root=/dev/nfs nfsroot=${nfshost}:${rootpath} rw ip=dhcp mtdparts=davinci_nand.0:4096k(UBOOT),4352k(KERNEL),204800k(FS)'
Error: the bootloader didn't echo our command, maybe it froze. This is the log of the last command:
setenv bootargs 'davinci_enc_mngr.ch0_output=COMPOSITE davinci_enc_mngr.ch0_mode=NTSC davinci_display.cont2_bufsize=3145728 vpfe_capture.cont_bufoffset=3145728 vpfe_capture.cont_bufsize=3145728 video=davincifb:osd1=0x0x8:osd0=720x480x16,1350K@0,0 console=ttyS0,115200n8 dm365_imp.oper_mode=0 vpfe_capture.interface=1 mem=99M root=/dev/nfs nfsroot=${nfshost}:${rootpath} rw ip=dhcp mtdparts=davinci_nand.0:4096k(UBOOT),4352k(KERNEL),204800k(FS)'
DM365 LEOPARD #
make: *** [install] Error 255
root@davicwxc-desktop:/home/davicwxc/LeopardBoardDM365sdkEVAL2011Q2#
The bold is the place modifyed by myself . Befor executing the commond "make install" , I have executed the following commond in the u-boot envirnment :
DM365 LEOPARD #setenv nfshost 192.168.1.109
DM365 LEOPARD #setenv rootpath /home/davicwxc/LeopardBoardDM365sdkEVAL2011Q2/fs/fs
DM365 LEOPARD #saveenv
But I don't understand why it exports the above Error .
Somebody help me ? Thanks very much !
Have you tried these commands at the DEVDIR root (in the same order, one by one):
`make env`
make cmdline
make
make install
make installcmdline
The first command will create the environment and the second will create the cmdline, make is just to be sure, and install will install everything, make installcmdline will install the cmdline (again just to be sure)
Please run those commands at the root of the DEVDIR where you're working at, if you are using NFS at that devdir the address of the file system and others will be automatically placed at your command line. Also remember to choose NFS file system and others at the make config menu.
Also this guide may help you:
www.ridgerun.com/.../DM365_Leopard_SDK_2011Q2_Getting_Started_Guide
Carlos AgueroEmbedded Software EngineerRidgeRun
Hi Taylor,
I have faced this problem before.For some unknown reason, when you modify the $DEVDIR/images/cmdline in Ubuntu with gedit, it makes the file unusable.I edit that in windows with Notepad++ and then copy it back before issuing the 'make install' command.
Try changing your editor and it works.Morteza
The reason is gedit/nano or whatever is added a linefeed at the end (0x0a character,) you will notice if you open a vanilla cmdline file in a hex editor there are 2 spaces at the end of the file and no new line. This is whats breaking it.
see : askubuntu.com/.../how-to-stop-gedit-gvim-vim-nano-from-adding-end-of-file-newline-char
for a fix.
Thanks for the feedback.
It is a really good practice to post back to the community.