Skip to content
This repository

What is ITBOK? 

nssriharsha edited this page · 20 revisions


ITBOK stands for '''Is The Board OK'''. It is a collection of level-zero codes integrated to U-Boot. It helps users to check the functionality of various peripherals available on CraneBoard. Currently Memory (DDR, Flash), TV-OUT, MMC, OTG Host and Ethernet tests are supported in ITBOK. The user can access to ITBOK by issuing '''itbok''' command(Menu based) at the U-Boot prompt.

AM3517_CRANE # itbok

------------------------------------
ITBOK version 1.0.0
------------------------------------
--------------------------------------
         CRANE - ITBOK MENU
--------------------------------------
  1. Run All Tests (Options 2 to 10)
  2. Run RAM Test
  3. Run NAND Test
  4. Run Ethernet Test
  5. Run MMC Test
  6. Run OTG Host Test
  7. Run TV-out Test
  8. Run GPIO Test
  9. EXIT
--------------------------------------
         CRANE - ITBOK MENU
--------------------------------------
Please enter test option:

**Memory Test **

This section tests memory read/write,data bus and address bus available on CraneBoard

Starting SDRAM Test...
SDRAM Start address 0x81800000, End address 0x87ffffff
Running data bus test...PASSED
Running address bus test...PASSED
Running memory Read/Write test... Please wait...
PASSED
SDRAM Test Completed... PASS

You can also perform memtest and below mentioned is the screen shot for the same:

AM3517_CRANE # mtest 81000000 81000100 K 100
Pattern FFFFFF80  Writing...  Reading...Tested 256 iteration(s) with 0 errors.
AM3517_CRANE # mtest 81000000 81000100 K 1
Pattern 00000000  Writing...  Reading...Tested 1 iteration(s) with 0 errors.
AM3517_CRANE # mtest 81000000 81000100 K 10
Pattern FFFFFFF8  Writing...  Reading...Tested 16 iteration(s) with 0 errors.

NAND Test

NAND Test checks for bad blocks by performing writing and erasing on the blocks.

Starting NAND Test...
  009e0000
Bad NAND Block Count 1
Running Erase Test...Please wait...Start Block : 283, End Block : 345
PASSED
Running Write test...Please wait...Start Block : 283, End Block : 345
PASSED
Running Read test...Please wait...Start Block : 283, End Block : 345
PASSED
Running Erase Test...Please wait...Start Block : 1103, End Block : 1165
PASSED
Running Write test...Please wait...Start Block : 1103, End Block : 1165
PASSED
Running Read test...Please wait...Start Block : 1103, End Block : 1165
PASSED
Running Erase Test...Please wait...Start Block : 1922, End Block : 1984
PASSED
Running Write test...Please wait...Start Block : 1922, End Block : 1984
PASSED
Running Read test...Please wait...Start Block : 1922, End Block : 1984
PASSED
Erase nand after completing the Nand write read test...
Running Erase Test...Please wait...Start Block : 283, End Block : 345
Running Erase Test...Please wait...Start Block : 1103, End Block : 1165
Running Erase Test...Please wait...Start Block : 1922, End Block : 1984
Nand Test Completed... PASS

Ethernet test

Ethernet test validates the Ethernet functionality by executing Ping Utility. To test Ethernet, the server ip and ip address of EVM should be set as environment variables as shown below :

setenv serverip xxx.xxx.xx.xxx
setenv ipaddr xxx.xxx.xx.xxx
setenv gatewayip xxx.xxx.xx.x
save

Starting Ethernet Test...
Server IP address is 192.168.15.84
Using DaVinci EMAC device
host is alive
Ethernet Test Completed... PASS

MMC Test

MMC Test validates MMC Read/Write interface accordingly

Performing MMC R/W tests.
Writing SD/MMC...Card state 0x900, i= 0
card transfer state 1
Start block = 512
number of block = 512
pattern = a5
Card state 0x900, i= 0
card Address = 0x40000
CMD: 0x18000000, Status: 0x11
CMD: 0x11000000, Status: 0x1
Verifying the data.....done.
MMC Raw Read Write Test Completed Successfully
MMC Test in 24MHz mode Completed... PASS

OTG Host Test

OTG Host test validates the OTG port on CraneBoard. Connect a FAT16 formatted USBDrive to CraneBoard through OTG Adaptor and follow the onscreen instructions

Insert the USB pendrive formatted with FAT(16) only to OTG port and press any to continue .......

Starting OTG Host Test...
USB:   scanning bus for devices... 1 USB Device(s) found
=================================================
   scanning bus for storage devices... 1 Storage Device(s) found
=================================================
Reading USB drive info .............
1: Mass Storage,  USB Revision 2.0
 - SanDisk U3 Cruzer Micro 0266531B7192CA34
 - Class: (from Interface) Mass Storage
 - PacketSize: 64  Configurations: 1
 - Vendor: 0x0781  Product 0x5406 Version 2.0
   Configuration: 1
 - Interfaces: 1 Bus Powered 200mA
 Interface: 0
 - Alternate Setting 0, Endpoints: 2
 - Class Mass Storage, Transp. SCSI, Bulk only
 - Endpoint 1 In Bulk MaxPacket 512
 - Endpoint 2 Out Bulk MaxPacket 512

=================================================
OTG Host Device File system info.
Interface:  USB
Device 0: Vendor: SanDisk  Rev: ã4Çi Prod: 4ciÆÓ
                                              §N3f8Íq
        Type: Removable Hard Disk
        Capacity: 1907.9 MB = 1.8 GB (3907583 x 512)
Partition 1: Filesystem: FAT32 "NO NAME    "
=================================================
Listing files from USB device  .............
        soft/
  250   autorun.inf
        package/
  242   usbval.txt
   44   winshark_readme.txt.txt
 18125552   wireshark-win32-1.2.9.exe
 3371   board_test_summary.txt

5 file(s), 2 dir(s)
=================================================
OTG Host Test Completed... PASS

TV Out Test

TV Out test validates the Composite video out port on Craneboard. Make sure the CVBS Cable is connected b/w TV(CVBS Port) and CraneBoard before executing the TV-Out test.

Starting TV-OUT Test...
Displaying colorbar in PAL-60 standard
Is the colorbar displayed on TV in PAL-60 standard proper?(y/n): y
Colorbar test in PAL-60 standard... PASSED
Displaying GREEN color in NTSC-M standard
Is the TV screen in GREEN color, NTSC-M standard proper? (y/n): y
Fillcolor test in GREEN color, NTSC-M standard... PASSED

TVOUT Test Completed... PASS

GPIO Test

GPIO Test validates DSS GPIO, MMC GPIO and I2C2 GPIO, while performing this requires expansion connectors connected at J11,J12 and J16

 Interface clock enabled
 Functional clock enabled
 started saving mux values
 Saving mux values - Passed
 ***********************************************************
 Starting GPIO test...
 Expansion Connector Test
 ========================
     1. Test all GPIOs
     2. Test DSS GPIO
    3. Test MMC GPIO
    4. Test CCDC GPIO - Not Available
    5. Test i2c2 GPIO
    6. Exit and back to ITBOK Menu
 Please enter test option: 1

 DSS - GPIOs are set
 GPIO combination        68<==>52        - Success
 GPIO combination        69<==>67        - Success
 GPIO combination        71<==>70        - Success
 GPIO combination        73<==>72        - Success
 GPIO combination        75<==>74        - Success
 GPIO combination        76<==>66        - Success
 GPIO combination        77<==>83        - Success
 GPIO combination        79<==>184       - Success
 GPIO combination        82<==>80        - Success
 GPIO combination        85<==>86        - Success
 GPIO combination        87<==>88        - Success
 GPIO combination        89<==>92        - Success
 GPIO combination        90<==>91        - Success
 GPIO combination        93<==>84        - Success
 GPIO combination        185<==>81       - Success
 ---------------------------------------------------
DSS left and right GPIOs combination - driven high... PASS
---------------------------------------------------
GPIO combination        68<==>52        - Success
GPIO combination        69<==>67        - Success
GPIO combination        71<==>70        - Success
GPIO combination        73<==>72        - Success
GPIO combination        75<==>74        - Success
GPIO combination        76<==>66        - Success
GPIO combination        77<==>83        - Success
GPIO combination        79<==>184       - Success
GPIO combination        82<==>80        - Success
GPIO combination        85<==>86        - Success
GPIO combination        87<==>88        - Success
GPIO combination        89<==>92        - Success
GPIO combination        90<==>91        - Success
GPIO combination        93<==>84        - Success
GPIO combination        185<==>81       - Success
---------------------------------------------------
DSS left and right GPIOs combination - driven low... PASS
---------------------------------------------------
GPIO combination        52<==>68        - Success
GPIO combination        67<==>69        - Success
GPIO combination        70<==>71        - Success
GPIO combination        72<==>73        - Success
GPIO combination        74<==>75        - Success
GPIO combination        66<==>76        - Success
GPIO combination        83<==>77        - Success
GPIO combination        184<==>79       - Success
GPIO combination        80<==>82        - Success
GPIO combination        86<==>85        - Success
GPIO combination        88<==>87        - Success
GPIO combination        92<==>89        - Success
GPIO combination        91<==>90        - Success
GPIO combination        84<==>93        - Success
GPIO combination        81<==>185       - Success
---------------------------------------------------
DSS right and left GPIOs combination - driven high... PASS
---------------------------------------------------
GPIO combination        52<==>68        - Success
GPIO combination        67<==>69        - Success
GPIO combination        70<==>71        - Success
GPIO combination        72<==>73        - Success
GPIO combination        74<==>75        - Success
GPIO combination        66<==>76        - Success
GPIO combination        83<==>77        - Success
GPIO combination        184<==>79       - Success
GPIO combination        80<==>82        - Success
GPIO combination        86<==>85        - Success
GPIO combination        88<==>87        - Success
GPIO combination        92<==>89        - Success
GPIO combination        91<==>90        - Success
GPIO combination        84<==>93        - Success
GPIO combination        81<==>185       - Success
---------------------------------------------------
DSS right and left GPIOs combination - driven low... PASS
---------------------------------------------------
MMC - GPIOs are set
GPIO combination        140<==>139      - Success
GPIO combination        141<==>136      - Success
GPIO combination        142<==>138      - Success
GPIO combination        143<==>137      - Success
GPIO combination        156<==>131      - Success
GPIO combination        157<==>130      - Success
GPIO combination        158<==>135      - Success
GPIO combination        159<==>132      - Success
GPIO combination        161<==>133      - Success
GPIO combination        162<==>134      - Success
---------------------------------------------------
MMC left and right GPIOs combination - driven high... PASS
---------------------------------------------------
GPIO combination        140<==>139      - Success
GPIO combination        141<==>136      - Success
GPIO combination        142<==>138      - Success
GPIO combination        143<==>137      - Success
GPIO combination        156<==>131      - Success
GPIO combination        157<==>130      - Success
GPIO combination        158<==>135      - Success
GPIO combination        159<==>132      - Success
GPIO combination        161<==>133      - Success
GPIO combination        162<==>134      - Success
---------------------------------------------------
MMC left and right GPIOs combination - driven low... PASS
---------------------------------------------------
GPIO combination        139<==>140      - Success
GPIO combination        136<==>141      - Success
GPIO combination        138<==>142      - Success
GPIO combination        137<==>143      - Success
GPIO combination        131<==>156      - Success
GPIO combination        130<==>157      - Success
GPIO combination        135<==>158      - Success
 GPIO combination        132<==>159      - Success
GPIO combination        133<==>161      - Success
GPIO combination        134<==>162      - Success
---------------------------------------------------
MMC right and left GPIOs combination - driven high... PASS
---------------------------------------------------
GPIO combination        139<==>140      - Success
GPIO combination        136<==>141      - Success
GPIO combination        138<==>142      - Success
GPIO combination        137<==>143      - Success
GPIO combination        131<==>156      - Success
GPIO combination        130<==>157      - Success
GPIO combination        135<==>158      - Success
GPIO combination        132<==>159      - Success
GPIO combination        133<==>161      - Success
GPIO combination        134<==>162      - Success
---------------------------------------------------
MMC right and left GPIOs combination - driven low... PASS
---------------------------------------------------
i2c2 - GPIOs are set
GPIO combination        183<==>168 - Success
---------------------------------------------------
I2C2 right and left GPIO combination - driven low... PASS
---------------------------------------------------
GPIO combination        183<==>168 - Success
---------------------------------------------------
I2C2 right and left GPIO combination - driven high... PASS
---------------------------------------------------
GPIO combination        168<==>183 - Success
---------------------------------------------------
 I2C2 left and right GPIO combination - driven low... PASS
---------------------------------------------------
 GPIO combination        168<==>183 - Success
---------------------------------------------------
I2C2 left and right GPIO combination - driven high... PASS
 ---------------------------------------------------
 Restoring mux values - Passed
-----------------------------
 ***** GPIO test finished*****
Something went wrong with that request. Please try again.