2008-08-21 00:46:23 Problem in running LTP
Aravinda SH (INDIA)
Message: 60785
Hi All,
I am having STAMP 537 board. I wanted to test LTP on this board for which I followed following document
http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel&s[]=linux&s[]=test
According to which I downloaded 'ltp/trunk' and 'ltp-full-20071031'
Then I compiled 'ltp-full-20071031' and installed as root. Which I put it in checkouts/testsuits/ltp. Then I ran 'ltp_auto_test.exp' attached is the log. As per the log the reset board script is not working.
Then I went with one more script 'run_kernel_test.exp' which gave different erros. I have attached the log file here. Am I missing something? The document does not list any of such settings.
Please advise me on the same.
kernel_test_log
ltp_auto_test.log
QuoteReplyEditDelete
2008-08-21 06:27:26 Re: Problem in running LTP
Yi Li (CHINA)
Message: 60820
> cc1: error: unrecognized command line option "-mcpu=bf537-0.2"
What is your kernel version? Your toolchain and kernel version need to match.
QuoteReplyEditDelete
2008-09-01 01:26:10 Re: Problem in running LTP
Aravinda SH (INDIA)
Message: 61455
Thanks Li,
Sorry for delayed reply. I downloaded the latest toolchain and image from blackfin web and here are those.
1. blackfin-toolchain-08r1.5-14.i386.tar.gz
2. blackfin-toolchain-elf-gcc-4.1-08r1.5-14.i386.tar.gz
3. linux-bf537-stamp-2008R1(2).5-RC3
I utarred the toolchains to /opt directory and received the following error while compiling ltp.
The following error when I exported the indicated tool paths in http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel&s[]=linux&s[]=test
make[1]: Entering directory `/home/aravinda/Public/Blackfin/ltp-full-20071031/lib'
bfin-uclinux-gcc -Wall -D__uClinux__ -Dlinux -mstack-check-l1 -DUCLINUX -I../include -Wall -DUCLINUX -c -o dataascii.o dataascii.c
dataascii.c:32:19: error: stdio.h: No such file or directory
dataascii.c:33:20: error: string.h: No such file or directory
dataascii.c: In function ‘dataasciigenâ€:
dataascii.c:62: error: ‘NULL†undeclared (first use in this function)
dataascii.c:62: error: (Each undeclared identifier is reported only once
dataascii.c:62: error: for each function it appears in.)
dataascii.c:68: warning: implicit declaration of function ‘strlenâ€
dataascii.c:68: warning: incompatible implicit declaration of built-in function ‘strlenâ€
dataascii.c: In function ‘dataasciichkâ€:
dataascii.c:98: error: ‘NULL†undeclared (first use in this function)
dataascii.c:104: warning: incompatible implicit declaration of built-in function ‘strlenâ€
dataascii.c:114: warning: implicit declaration of function ‘sprintfâ€
dataascii.c:114: warning: incompatible implicit declaration of built-in function ‘sprintfâ€
dataascii.c:121: warning: incompatible implicit declaration of built-in function ‘sprintfâ€
make[1]: *** [dataascii.o] Error 1
make[1]: Leaving directory `/home/aravinda/Public/Blackfin/ltp-full-20071031/lib'
make: *** [uclinux_libltp.a] Error 2
These errors I got when I exopted only blackfin uclinux tools path
make[1]: Entering directory `/home/aravinda/Public/Blackfin/ltp-full-20071031/lib'
bfin-uclinux-gcc -Wall -D__uClinux__ -Dlinux -mstack-check-l1 -DUCLINUX -I../include -Wall -DUCLINUX -c -o dataascii.o dataascii.c
make[1]: bfin-uclinux-gcc: Command not found
make[1]: *** [dataascii.o] Error 127
make[1]: Leaving directory `/home/aravinda/Public/Blackfin/ltp-full-20071031/lib'
make: *** [uclinux_libltp.a] Error 2
Sorry I have less time and could not debug what is the cause. Can I know easy fix to this.
Thanks
Aravinda
QuoteReplyEditDelete
2008-09-01 11:57:43 Re: Problem in running LTP
Mike Frysinger (UNITED STATES)
Message: 61486
you have not installed the toolchain fully. please read the toolchain install documentation, or read the FAQ.
QuoteReplyEditDelete
2008-09-10 09:32:51 Re: Problem in running LTP
Aravinda SH (INDIA)
Message: 61890
Thanks for the feed back, I could able to build and run the script. But I have issues here.
1. build_ltp.sh fails to download latest ltp. I downloaded manually and then commented the download part in this script so it worked.
2. I ran "ltp_auto_test.exp" and it got stuck at the point where it tries to reset the board. The following message is displayed and it gets stuck here
"ltp/reset_board: command not found or followed by ? to see other options."
Then I did hard reset by pressing SW9 on my BF537 board, which failed to boot and see the error messages in the attached file.
3. When I did hard reset BF537 prints message saying "Hit any key to stop autoboot:" here none of the keys from keyboard works.
Then I opened kermit and did reboot, it worked fine (I have loaded latest uImage onto BF537)
Thanks
Aravinda
ltp_auto_test.exp-Sep-10-2008-15-43-detailed-log
QuoteReplyEditDelete
2008-09-16 07:50:57 Re: Problem in running LTP
Aravinda SH (INDIA)
Message: 62244
Hello,
I did not get reponse for my query, can any one help me out?
Thanks
QuoteReplyEditDelete
2008-09-16 16:19:53 Re: Problem in running LTP
Mike Frysinger (UNITED STATES)
Message: 62266
you need to fix your u-boot. the ltp scripts do not configure u-boot for you.
QuoteReplyEditDelete
2008-09-17 01:38:52 Re: Problem in running LTP
Sonic Zhang (CHINA)
Message: 62277
A reset cable connected with the parallel port and a reset utility running in your host are necessary to do the reset. If you don't have these ready, the LTP regression script can't run properly.
But, you can run all LTP test cases manually.
QuoteReplyEditDelete
2008-09-17 01:43:52 Re: Problem in running LTP
Sonic Zhang (CHINA)
Message: 62278
The reset utility "reset_board.c" can be found in the uboot SVN tree under folder uboot_test_suite.
QuoteReplyEditDelete
2008-09-17 02:01:44 Re: Problem in running LTP
Aravinda SH (INDIA)
Message: 62279
Mike I am not sure how to fix uboot issue. Because I have loaded latest uImage with loadb command and it works fine if the below stated booting method is followed.
1. Power on the board and press space bar to get bf537 command prompt
2. Execute 'bootm' command if 'uImage' is loaded or 'boote' if 'linux' image is loaded.
My board does not boot diectly from power on or reset switch. Do I need to change any of the settings to get it booted directly when reset switch (SW9) is pressed.
Or does reset_board.exp would fix the issue as suggested by Sonic.
Thanks
QuoteReplyEditDelete
2008-09-17 02:09:13 Re: Problem in running LTP
Mike Frysinger (UNITED STATES)
Message: 62280
you need to change your u-boot configuration so it works automatically. the LTP scripts will not do this for you.