(toppers-users 3552) Re: Issues on SafeG/NT-/T-ASP/IDEA6410 execution

Roman Kochanek roman.kochanek @ rub.de
2011年 10月 7日 (金) 16:31:37 JST


Hey Daniel,

your proposed changes are working but have a "strange" side effect.
Depending on the length (number of chars) of the output the execution is
running properly or not. From my point of view it has something to do
with the scheduling of the RTOS on the secure world and switches between
the two worlds. Could you provide me some information about the
scheduling of the RTOS and especially how the "jump" is done from the
nt-rtos to the t-rtos? In the source code I only see the call inside the
btask towards the secure monitor/non-secure world. Could you also
explain the changes (idea6410nt.h) in more detail?
A further question is if you could provide a short instruction to run a
native linux kernel on the nt-side? The available instruction describes
patching the linux kernel but unfortunately the
safeg-linux-XXXXX-all.patch is not included for the IDEA 6410 board.
Using the provided patches in the idea 6410 folder, a large number of
errors occur while executing the patch on the android linux kernel sources.

Log:
U-Boot 1.1.6 (Sep 22 2011 - 11:14:58) for SMDK6410

****************************************
**    UT-S3C6410/idea6410 SD boot v0.20
**    ShenZhen Urbetter Technology   
**    Http://www.urbetter.com         
****************************************

CPU:     S3C6410 @ 532MHz
         Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART
(SYNC Mode)
Board:   SMDK6410
DRAM:    128 MB
Flash:   0 kB
NAND:    256 MB
In:      serial
Out:     serial
Err:     serial
Hit any key to stop autoboot:  0
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:40:5c:26:0a:5b
TFTP from server 192.168.2.153; our IP address is 192.168.2.222
Filename 'safeg.bin'.
Load address: 0x57800000
Loading: T T #######
done
Bytes transferred = 34448 (8690 hex)
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:40:5c:26:0a:5b
TFTP from server 192.168.2.153; our IP address is 192.168.2.222
Filename 'trust.bin'.
Load address: 0x57a00000
Loading: T #####
done
Bytes transferred = 21024 (5220 hex)
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:40:5c:26:0a:5b
TFTP from server 192.168.2.153; our IP address is 192.168.2.222
Filename 'non-trust.bin'.
Load address: 0x57c00000
Loading: T ##
done
Bytes transferred = 8376 (20b8 hex)
## Starting application at 0x57808640 ...

TOPPERS/ASP Kernel Release 1.6.0 for IDEA6410T(ARM) (Sep 30 2011, 11:50:05)
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
                            Toyohashi Univ. of Technology, JAPAN
Copyright (C) 2004-2010 by Embedded and Real-Time Systems Laboratory
            Graduate School of Information Science, Nagoya Univ., JAPAN

Trust-ASP: Sample program starts (exinf = 0).
Trust-ASP: *(0x7F008820)=0x1111
(1) Trust-ASP: Sample program starts (exinf = 0).
(2) Trust-ASP: Sample program starts (exinf = 0).
(5) Trust-ASP: *(0x7F008824)=0x3F(should be F)
NON-Trust: hello!
12345 cyclic
(4) Trust-ASP: *(0x7F008824)=0x3A(should be 0)
(5) Trust-ASP: *(0x7F008824)=0x3F(should be F)
(4) Trust-ASP: *(0x7F008824)=0x3A(should be 0)
(5) Trust-ASP: *(0x7F008824)=0x3F(should be F)
(4) Trust-ASP: *(0x7F008824)=0x3A(should be 0)

U-Boot 1.1.6 (Sep 22 2011 - 11:14:58) for SMDK6410

****************************************
**    UT-S3C6410/idea6410 SD boot v0.20
**    ShenZhen Urbetter Technology   
**    Http://www.urbetter.com         
****************************************

CPU:     S3C6410 @ 532MHz
         Fclk = 532MHz, Hclk = 133MHz, Pclk = 66MHz, Serial = CLKUART
(SYNC Mode)
Board:   SMDK6410
DRAM:    128 MB
Flash:   0 kB
NAND:    256 MB
In:      serial
Out:     serial
Err:     serial
Hit any key to stop autoboot:  0
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:40:5c:26:0a:5b
TFTP from server 192.168.2.153; our IP address is 192.168.2.222
Filename 'safeg.bin'.
Load address: 0x57800000
Loading: T T #######
done
Bytes transferred = 34448 (8690 hex)
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:40:5c:26:0a:5b
TFTP from server 192.168.2.153; our IP address is 192.168.2.222
Filename 'trust.bin'.
Load address: 0x57a00000
Loading: T #####
done
Bytes transferred = 21024 (5220 hex)
dm9000 i/o: 0x18000300, id: 0x90000a46
MAC: 00:40:5c:26:0a:5b
TFTP from server 192.168.2.153; our IP address is 192.168.2.222
Filename 'non-trust.bin'.
Load address: 0x57c00000
Loading: T ##
done
Bytes transferred = 8344 (2098 hex)
## Starting application at 0x57808640 ...

TOPPERS/ASP Kernel Release 1.6.0 for IDEA6410T(ARM) (Sep 30 2011, 11:52:10)
Copyright (C) 2000-2003 by Embedded and Real-Time Systems Laboratory
                            Toyohashi Univ. of Technology, JAPAN
Copyright (C) 2004-2010 by Embedded and Real-Time Systems Laboratory
            Graduate School of Information Science, Nagoya Univ., JAPAN

Trust-ASP: Sample program starts (exinf = 0).
Trust-ASP: *(0x7F008820)=0x1111
(1) Trust-ASP: Sample program starts (exinf = 0).
(2) Trust-ASP: Sample program starts (exinf = 0).
(5) Trust-ASP: *(0x7F008824)=0x3F(should be F)
NON-Trust: hello!
2345 cyclic
2345 cyclic
2345 cyclic
(4) Trust-ASP: *(0x7F008824)=0x3A(should be 0)
2345 cyclic
2345 cyclic
(5) Trust-ASP: *(0x7F008824)=0x3F(should be F)
2345 cyclic
2345 cyclic
(4) Trust-ASP: *(0x7F008824)=0x3A(should be 0)
2345 cyclic
2345 cyclic
2345 cyclic
(5) Trust-ASP: *(0x7F008824)=0x3F(should be F)
2345 cyclic
2345 cyclic
(4) Trust-ASP: *(0x7F008824)=0x3A(should be 0)
2345 cyclic