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.

Linux: SA LLD Example run in linux user space fail



Tool/software: Linux

Hi,sir,

I want to test sa module,now copy saBasicExample_k2h.out from rootfs prebuild by ti.

I only run rmServer.out and saBasicExample_k2h.out. Maybe I lost some action to init environment need by SA??

The error message as follow.


root@k2hk-evm:~#

rmServer.out /usr/bin/device/k2h/global-resource-list.dtb /usr/bin/device/k2h/policy_dsp_arm.dtb
Starting rmServer.out
Daemon returned 0 as return value.
root@k2hk-evm:~#
root@k2hk-evm:~#
root@k2hk-evm:~#

root@k2hk-evm:~# ./saBasicExample_k2h.out


------- SA Basic Example Starting ---------


Initialized RM_Client0

initQmss: Initialized Free Descriptors.
Unable to open below cppi tx channels...presuming linux has already enabled it
0 1 2 3 4 5 6 8
Unable to open below cppi Rx channels...presuming linux has already enabled it
0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Instantiating SALLD ... DONE

Instantiating SALLD Channel 0 ...
DONE

Opening SALLD Channel 0 ...
SALLD Channel 0: General Configuration
SALLD Channel 0: Key Configuration
SALLD Channel 0: Enable Tx
SALLD Channel 0: Enable Rx
SALLD channel 0: Register SA Info
DONE

Routing Pkt 1 to PA: BufPtr = 0xb6cfb200, pkt at 0xb6cb6006, size = 170
SA IPSEC ESP test (/home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/sa-lld-test/03.00.00.14-r2.1/git/ti/drv/sa/example/SaBasicExample/src/tests/test1.c:401): Did not find SA reply in queue 950
Routing Pkt 2 to PA: BufPtr = 0xb6cfb400, pkt at 0xb6cb60b6, size = 170
SA IPSEC ESP test (/home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/sa-lld-test/03.00.00.14-r2.1/git/ti/drv/sa/example/SaBasicExample/src/tests/test1.c:401): Did not find SA reply in queue 950
Routing Pkt 3 to PA: BufPtr = 0xb6cfb500, pkt at 0xb6cb6166, size = 170
SA IPSEC ESP test (/home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/sa-lld-test/03.00.00.14-r2.1/git/ti/drv/sa/example/SaBasicExample/src/tests/test1.c:401): Did not find SA reply in queue 950
Routing Pkt 4 to PA: BufPtr = 0xb6cfb600, pkt at 0xb6cb6216, size = 170
SA IPSEC ESP test (/home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/sa-lld-test/03.00.00.14-r2.1/git/ti/drv/sa/example/SaBasicExample/src/tests/test1.c:401): Did not find SA reply in queue 950
Routing Pkt 5 to PA: BufPtr = 0xb6cfb700, pkt at 0xb6cb62c6, size = 170
SA IPSEC ESP test (/home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/sa-lld-test/03.00.00.14-r2.1/git/ti/drv/sa/example/SaBasicExample/src/tests/test1.c:401): Did not find SA reply in queue 950
SALLD channel 0: Send Null Packet
SALLD channel 0: Send Null Packet
salldSim_get_stats: Stats is not available in time
Chan 0 (IPSEC) Statistics:
----------------------------------------------------
numPktsEncHi = 0x00000000
numPktsEncLo = 0x00000000
numPktsDecHi = 0x00000000
numPktsDecLo = 0x00000000
numBytesEncHi = 0x00000000
numBytesEncLo = 0x00000000
numBytesDecHi = 0x00000000
numBytesDecLo = 0x00000000
numReplayOld = 0
numReplayDup = 0
numAuthFail = 0
txESN = 0x22222220
txSN = 0x12121212
rxESN = 0x11111110
Closing SALLD Channel 0 ...
SALLD channel 0: Send Null Packet
SALLD channel 0: UnRegister Sw Info
SALLD channel 0: Send Null Packet
DONE

SA IPSEC ESP test: PASSED
verifyTestFramework: Expected 64 entry count in the free descriptor queue (900), found 60
verifyTestFramework: Expected 16 entry count in linked buffer queue 1 (903), found 15
topLevelTest (/home/gtbldadm/processor-sdk-linux-rt-krogoth-build/build-CORTEX_1/arago-tmp-external-linaro-toolchain/work/k2hk_evm-linux-gnueabi/sa-lld-test/03.00.00.14-r2.1/git/ti/drv/sa/example/SaBasicExample/src/armv7/linux/fw_main.c:424): verifyTestFramework returned error after test SA IPSEC ESP test. Exiting.
root@k2hk-evm:~#