2008-08-07 02:10:20     How to run LTP on BF537 Board

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-08-07 02:10:20     How to run LTP on BF537 Board

Aravinda SH (INDIA)

Message: 60066   

 

Hi All,

 

I have new BF537 board, which I boot using boote command to boot. My elf image resides at 0x1000000. So now the uClinux is running on kermit.

 

I want to execute ltp on this board, for which I have downloaded trunk from blackfin website. Then I modified board_info.exp and kernel_config.exp.

 

Then I am following the link below  to execute "run_kernel_test.exp"

 

http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel&s[]=ltp.

 

I am getting the following error when I execute "run_kernel_test.exp"

 

Testing on 192.168.110.204 with BF537-STAMP-STD (BF5xx) flat slab(p2) ICACHE(on) DCACHE(on) write_through dma

[: 38: ==: unexpected operator

rm: missing operand

Try `rm --help' for more information.

Here is the difference between lastrun and thisrun test results:

 

ls: cannot access build*kernel_log*: No such file or directory

grep: build*kernel_log*: No such file or directory

Empty file: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/lastrun/test_summary/build_kernel_fail_log .

No compare for build_kernel_fail_log .

Empty file: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/thisrun/test_summary/build_kernel_fail_log .

Empty file: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/lastrun/test_summary/fail_summary .

No compare for fail_summary .

Empty file: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/thisrun/test_summary/fail_summary .

Empty file: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/lastrun/test_summary/pass_summary .

No compare for pass_summary .

Empty file: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/thisrun/test_summary/pass_summary .

No difference in test results.

 

#########Test Summary #############

 

 

######The following build kernel fails:#######

 

 

############ Pass Num is: 0.#############

 

 

############ Fail Num is: 0.#############

 

 

#########Test Log #################

 

##### Testing is done with: BF537-STAMP-STD.

##### CPU: BF5xx.

##### REVISION: 0.0.

##### UCLINUX_DIST_PATH: /home/aravinda/Public/Blackfin/checkouts.

##### BINARY_FORMAT: flat.

##### ALLOCATOR: slab(p2).

##### ICACHE: on, DCACHE: on, POLICY is write_through.

##### UART_MODE: dma.

##### Test results are in folder: /home/aravinda/Public/Blackfin/test_scripts/uclinux-dist/logs/2008_Aug_07_12_28.

Testing on BF537-STAMP-STD (BF5xx) flat slab(p2) ICACHE(on) DCACHE(on) write_through dma

../kernel_test: 125: Syntax error: "(" unexpected

 

I might be missing some thing, can one guide me on this.

 

Thanks

 

Aravinda

QuoteReplyEditDelete

 

 

2008-08-07 03:52:55     Re: How to run LTP on BF537 Board

Yi Li (CHINA)

Message: 60072   

 

What is your detailed steps to run the test?

 

Also the document is a little outdated. We will update the doc and please try again.

QuoteReplyEditDelete

 

 

2008-08-07 04:31:56     Re: How to run LTP on BF537 Board

Aravinda SH (INDIA)

Message: 60073   

 

When the modifications are expected?

 

The detailed steps are here. The board is loaded with the linux image using loadb command. And then booted using boote command. Not 'tftp_boot' did not work. Image is loaded at 0x1000000 and elf image is not found at 0x2000000.

 

With the boote command uClinux is booting and working fine. The configured the ipaddress using "ifconfig eth0 <ipaddres>

 

Then I downloaded the test project from "svn checkout svn://firewall-sources.blackfin.uclinux.org:80/svn/uclinux-dist/trunk ."

 

Then the expect scripts, kernel_test, run_kernel_test and board_config are modified to have correct test project path, ip address etc.,

 

Then I ran 'run_kernel_test' and got the above errors.

 

I am observing one more problem, after running and stopping this script I am getting this erroe message continuosly on my host console.

 

Thu Aug  7 13:59:26 IST 2008. Process: hald-addon-stor, ID: 5122 to be killed.

kill: 38: Operation not permitted

 

[: 38: ==: unexpected operator

Thu Aug  7 13:59:57 IST 2008. Process: hald-addon-stor, ID: 5122 to be killed.

kill: 38: Operation not permitted

 

[: 38: ==: unexpected operator

I need to stop this using ctrl+c, but even then these message keeps on coming. Is there something wrong, some process is bieng run in background.

 

 

 

Thanks

 

 

 

 

QuoteReplyEditDelete

 

 

2008-08-07 09:15:33     Re: How to run LTP on BF537 Board

Yi Li (CHINA)

Message: 60102   

 

http://docs.blackfin.uclinux.org/doku.php?id=testing_the_linux_kernel&s[]=ltp

 

It is been updated. Please note the script will reset the board sometimes. If you don't have a cable to assert reset pin of the board, reset cannot be done.

QuoteReplyEditDelete

 

 

2008-08-13 03:07:00     Re: How to run LTP on BF537 Board

Aravinda SH (INDIA)

Message: 60365   

 

Thanks YiLi,

 

I have few more doubts before running the tests.

 

After making ltp install as root, I am cunfused with the next step. I am not able to find "ltp_auto_test.exp" script. Do I need to checkout supporting projects to run LTP. I am not very much clear about this documentation.

 

Do I need to copy whole ltp (ltp-full-20071031/) project into /home/test/work/cruise/checkouts/uclinux-dist/testsuites/ltp or what.

 

Thanks

 

Aravinda

Attachments

    Outcomes