hi,
I had already cross-compile the trousers-0.3.3.2 :
[r...@happy trousers-0.3.3.2]# sh bootstrap.sh
[r...@happy trousers-0.3.3.2]# ./configure --host=arm-linux
--with-openssl=/usr/local/openssl
--prefix=/usr/tss
[r...@happy trousers-0.3.3.2]# make
-MF .deps/libtcs_a-rpc.Tpo -c -o libtcs_a-rpc.o `test -f 'rpc/tcstp/rpc.c' ||
echo './'`rpc/tcstp/rpc.c
rpc/tcstp/rpc.c: In function `recv_from_socket':
rpc/tcstp/rpc.c:62: warning: implicit declaration of function `recv'
rpc/tcstp/rpc.c: In function `send_to_socket':
rpc/tcstp/rpc.c:85: warning: implicit declaration of function `send'
make[2]: *** [libtcs_a-rpc.o] Error 1
make[2]: Leaving directory `/home/ytz/files/trousers-0.3.3.2/src/tcs'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ytz/files/trousers-0.3.3.2/src'
make: *** [all-recursive] Error 1
although it appears some errors, when I annotate
~/trousers-0.3.3.2/src/tcs/rpc/tcstp/rpc/tcstp/rpc.c:62 and
~/trousers-0.3.3.2/src/tcs/rpc/tcstp/rpc/tcstp/rpc.c:85
like this:
int
recv_from_socket(int sock, void *buffer, int size)
{
int recv_size = 0, recv_total = 0;
while (recv_total < size) {
errno = 0;
/*if ((recv_size = recv(sock, buffer+recv_total,
size-recv_total, 0)) <= 0) { //line 62
if (recv_size < 0) {
if (errno == EINTR)
continue;
LogError("Socket receive connection error:
%s.", strerror(errno));
} else {
LogDebug("Socket connection closed.");
}
return -1;
}*/
recv_total += recv_size;
}
return recv_total;
}
int
send_to_socket(int sock, void *buffer, int size)
{
int send_size = 0, send_total = 0;
while (send_total < size) {
/*if ((send_size = send(sock, buffer+send_total,
size-send_total, 0)) < 0) { //line 85
LogError("Socket send connection error: %s.",
strerror(errno));
return -1;
}*/
send_total += send_size;
}
return send_total;
}
then it make successfully,and it installed in the locations of: /usr/tss.
then I copied the /usr/tss directory to the rootfs directory: ~/rootfs/usr.
and then generate rootfs.cramfs by using "./mkcramfs rootfs rootfs.cramfs".
but after I download the rootfs.cramfs to the ARM platform,
and when I execute the test program ,
it will appear :Tspi_Context_Connect: Core service connection failed.
I think it is because the tcsd can't run,
because when I input : ./usr/tss/sbin/tcsd -f,
it will appear that likes:TCSD ERROR...
I have tried many times,but in vain.
How to transplant TSS to ARM platform correctly?
Thanks for suggestions.
(My English level is poor and this is the first time that I used English to
write a letter. I hope you can understand what I have write.Thanks!)
------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
TrouSerS-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/trousers-users