Documents:
Apollo Test System/Diagnostics
Apollo Test System - Design
All these tests are done
equinox@ubuntuequinox:/media/sysbuild/software/LinuxTestSoftware$ ls
Common DevMem GPIOTest memtester-4.2.2 SnorTest SPItest SramTest
equinox@ubuntuequinox:/media/sysbuild/software/LinuxTestSoftware$
Module DevMem (how to compile it)
I took devmem2.c source from /LinuxTestSoftware and using Eclipse create a project and setup up for cross compiler as same as I did with diag. Ref. see post Eclipse for ARM11
change name to DevMem2 and it works after compiling I uploaded to target.
#tftp -g -r DevMem2 host/server IP (i.e. tftp -g -r DevMem2 10.100.100.184)
# ./DevMem2
Usage: ./DevMem2 { address } [ type [ data ] ]
address : memory address to act upon
type : access operation type : [b]yte, [h]alfword, [w]ord
data : data to be written
# ./DevMem2 0x40000001 b 0x55
/dev/mem opened.
Memory mapped at address 0x40140000.
Value at address 0x40000001 (0x40140001): 0x5F
Written 0x55; readback 0x55
All the tests I did see this link
Module ModemTest
Modem Test
Before write to modem need to chmod to read/write by everyone
tovantran@Satellite:~/Ctest$ sudo chmod 666 /dev/ttyACM0
[sudo] password for tovantran:
tovantran@Satellite:~/Ctest$ ./ublox1
opening modem
modem open
1, ./ublox1, AT
AT
OK
tovantran@Satellite:~/Ctest/ModemTest$ ./ublox AT*99#
opening modem
fd =3
modem =0x9f30008
modem open
Send AT*99#
CONNECT
tovantran@Satellite:~/Ctest/ModemTest$ ./ublox AT+CMGF=1
opening modem
fd =3
modem =0x94fe008
modem open
Send AT+CMGF=1
+CME ERROR: 100
tovantran@Satellite:~/Ctest/ModemTest$ ./ublox AT+CMGS=098415719
opening modem
fd =3
modem =0x9918008
modem open
Send AT+CMGS=098415719
>
tovantran@Satellite:~/Ctest/ModemTest$ ./ublox
opening modem
[sudo] password for tovantran:
chmod: cannot access `/dev/ttyACM0': No such file or directory
Can't open modem: is modem connected?
tovantran@Satellite:~/Ctest/ModemTest$
Module PingTest (LANTest)
equinox@ubuntuequinox:~/CtestACER/PingTest$ ./ping -d yahoo.com
PING: 98.139.183.24
--------10 times------------
Echo reply from: 98.139.183.24 seq=1 ttl=49 time=538.24 ms
Echo reply from: 98.139.183.24 seq=2 ttl=49 time=397.02 ms
Echo reply from: 98.139.183.24 seq=3 ttl=49 time=452.00 ms
Echo reply from: 98.139.183.24 seq=4 ttl=49 time=357.36 ms
Echo reply from: 98.139.183.24 seq=5 ttl=49 time=206.01 ms
Echo reply from: 98.139.183.24 seq=6 ttl=49 time=293.01 ms
Echo reply from: 98.139.183.24 seq=7 ttl=49 time=246.01 ms
Echo reply from: 98.139.183.24 seq=8 ttl=49 time=465.03 ms
Echo reply from: 98.139.183.24 seq=9 ttl=49 time=362.02 ms
Echo reply from: 98.139.183.24 seq=10 ttl=49 time=514.03 ms
--- Ping 98.139.183.24 statistics ---
sent: 10 rcvd: 10 loss: 0%
equinox@ubuntuequinox:~/CtestACER/PingTest$ ./ping -h
Usage: ping [-c count] [-w time] [-q] [-D delay]
[-h] [-R] [-t] -d target
Options:
-c count --count count Send $count probes
-w time --time-to-wait time Wait $time milliseconds for reply
-q --quiet Print only statistics string
-D time --delay time Wait $delay millisecond for sending next probe
-h --help Show this help and exit
-R --record-route Set the ip's record-route option
-t num --ttl num Set ttl to $num
-d target --destination target Set target to ping
Module SerialTest (From Modem)
Module UartTest (From 12x12)
Module GSMTest
tovantran@Satellite:~/Ctest/ModemTest$ ./ublox AT*99#
opening modem
fd =3
modem =0x9f30008
modem open
Send AT*99#
CONNECT
Test Code Result