You are on page 1of 5

1

Introduction
These are 8 tests which I will put in the same directory with all the previous tests in Ubuntu_Equinox64. There are README file and Makefile for each of them. equinox@ubuntuequinox:/media/sysbuild/software/LinuxTestSoftware$ ld Common/ EquinoxTest/ memtester-4.2.2/ SPItest/ DevMem/ GPIOTest/ SnorTest/ SramTest/ EquinoxTest included the following modules: ModemSerialTest/ RTCTest/ UartLoopTest/ CPURTCTest/ LANTest/ ModemTest/ USBTest/ CPURegsTest/ SerialTest/ (need minor debug) The last 2 needs some more works, the CPURegsTest needs help from Broadcom and USBTest we need to change the file system on the old kernel usbfs to the new udev. Root Hub files pointers are changed from /proc/bus/usb to /dev/bus/usb/ as well. Details at the each step.

1. CPURTCTest/
----------- CPU/RTC ------------1. CPU Test Processor : ARMv6-compatible processor rev 5 (v6l) BogoMIPS : 265.42 Features : swp half thumb fastmult edsp java CPU implementer : 0x41 CPU architecture: 6TEJ CPU variant : 0x1 CPU part : 0xb36 CPU revision : 5 Hardware : Broadcom BCM5892 Chip Revision : 0000 Serial : 0000000000000000 2. Real Time Clock rtc_time : 09:48:15 rtc_date : 2012-09-13 alrm_time : 03:33:00 alrm_date : 2012-09-02 alarm_IRQ : no alrm_pending : no update IRQ enabled : no periodic IRQ enabled : no periodic IRQ frequency : 1024 max user IRQ frequency : 64 24hr : yes periodic_IRQ : no

2 update_IRQ : no HPET_emulated : yes BCD : yes DST_enable : no periodic_freq : 1024 batt_status : okay 1. CPU 2. Real Time Clock

2. RTCTest/ (change clock)


tovantran@Satellite:~/Ctest/EquinoxFinalTest/RTCTest$ ./rtc -h 10 -m 20 -s 12 (change time) 10:20:12

3. LANTest/
tovantran@Satellite:~/Ctest/EquinoxFinalTest/LANTest$ ./ping -d 72.30.38.140 PING: 72.30.38.140 --------10 times-----------Echo reply from: 72.30.38.140 seq=1 ttl=51 time=818.54 ms Echo reply from: 72.30.38.140 seq=2 ttl=51 time=1008.04 ms Echo reply from: 72.30.38.140 seq=3 ttl=51 time=1040.42 ms Echo reply from: 72.30.38.140 seq=4 ttl=51 time=1216.28 ms Echo reply from: 72.30.38.140 seq=5 ttl=51 time=1388.93 ms Echo reply from: 72.30.38.140 seq=7 ttl=51 time=186.71 ms Echo reply from: 72.30.38.140 seq=8 ttl=51 time=321.77 ms Echo reply from: 72.30.38.140 seq=9 ttl=51 time=412.96 ms Echo reply from: 72.30.38.140 seq=10 ttl=51 time=265.21 ms

4. ModemTest
tovantran@Satellite:~/Ctest/EquinoxFinalTest/ModemTest$ ./ublox opening modem fd =3 modem =0x81e8008 modem open Send ATZ OK tovantran@Satellite:~/Ctest/EquinoxFinalTest/ModemTest$ ./ublox ATI (ask manufacture ID) opening modem fd =3 modem =0x8525008 modem open Send ATI ATI

3 LISA-U200-01S-00 Unplug modem show errors: tovantran@Satellite:~/Ctest/EquinoxFinalTest/ModemTest$ ./ublox opening modem chmod: cannot access `/dev/ttyACM0': No such file or directory Can't open modem: is modem connected?

5. GSMTest(gsm call)
tovantran@Satellite:~/Ctest/EquinoxFinalTest/ModemTest$ ./ublox AT*99# opening modem fd =3 modem =0x898a008 modem open Send AT*99# OK No SIM it will fail tovantran@Satellite:~/Ctest/EquinoxFinalTest/ModemTest$ ./ublox AT*99# opening modem fd =3 modem =0x994f008 modem open Send AT*99# AT*99# +CME ERROR: 100 (error code at Test Code of http://www.tovantran.com/equinox)

6. UartLoopTest
674 Write and Read back from Uart of 12x12 675 Write and Read back from Uart of 12x12 676 Write and Read back from Uart of 12x12 677 Write and Read back from Uart of 12x12 678 Write and Read back from Uart of 12x12 679 Write and Read back from Uart of 12x12 680 Write and Read back from Uart of 12x12 681 Write and Read back from Uart of 12x12 682 Write and Read back from Uart of 12x12

4 683 Write and Read back from Uart of 12x12 684 Write and Read back from Uart of 12x12

7. ModemSerialTest
tovantran@Satellite:~/Ctest/EquinoxFinalTest/ModemSerialTest$ ./ublox opening serial 0 Write and Read back from Serial Port of Modem ttyACM0 1 Write and Read back from Serial Port of Modem ttyACM0 2 Write and Read back from Serial Port of Modem ttyACM0 3 Write and Read back from Serial Port of Modem ttyACM0 4 Write and Read back from Serial Port of Modem ttyACM0 5 Write and Read back from Serial Port of Modem ttyACM0 6 Write and Read back from Serial Port of Modem ttyACM0 7 Write and Read back from Serial Port of Modem ttyACM0 8 Write and Read back from Serial Port of Modem ttyACM0

8. USBTest (Not working yet don't suport usbfs not found ~/proc/bus/usb)
tovantran@Satellite:~/Ctest/EquinoxFinalTest/USBTest$ ./testusb must specify '-a' or '-D dev', or DEVICE=/proc/bus/usb/BBB/DDD in env usage: ./testusb [-an] [-D dev] [-c iterations] [-t testnum] [-s packetsize] [-g sglen] [-v vary] tovantran@Satellite:~/Ctest/EquinoxFinalTest/USBTest$ ./testusb -a usbfs files are missing Solutions: 1. Use an older kernel (2.6.31.17 or 2.6.31.18 for instance). 2. Compile your own kernel with usbfs enabled (not going to go into how you do that exactly, as the info is available simply by searching Google for "ubuntu compile kernel usbfs"). 3. Try to make it works with a new udev The new kernel file system for USB is changed from /proc/bus/usb usbfs file system to a new /dev/bus/usb udev dynamic device manager. Will continue to work because this is a good test.

9. SerialTest (need minor debug)


On the command you must include six items in the following order, they are: 1. The device name Ex: ttyS0 for com1, ttyS1 for com2, etc 2. Baud Rate Ex: 38400 3. Number of Data Bits Ex: 8 4. Number of Stop Bits Ex: 0 or 1

5 5. Parity Ex: 0=none, 1=odd, 2=even 6. Format of data received: 1=hex, 2=dec, 3=hex/asc, 4=dec/asc, 5=asc Example command line: com ttyS0 38400 8 0 0 4

10. CPURegsTest (Need help from Broadcom)


I have problem with this test and they are running around like chicken without the head. Broadcom does not have a good support for their products: First email to Broadcom: Hi, I work for Flextronics prototype using BCM5892, I downloaded the cp0 test code samplesw-1.3.tar.bz2 ~/Downloads/Develop/samplesw/cp0$ ls cp0dump.c Makefile prid_decode.c equinox@ubuntuequinox:~/Downloads/Develop/samplesw/cp0$ All *.c has include the following which file not found. #include <sb1250-include/sbmips.h> #include <sb1250-include/sbmips.h> Please help I just write the CPU test code for the company, thanks, ./.tv

You might also like