Difference between revisions of "The bootloader X-loader"

From IGEP - ISEE Wiki

Jump to: navigation, search
(Quality assurance: Test Cases)
(Quality assurance: Test Cases)
Line 46: Line 46:
  
 
== Status table ==
 
== Status table ==
 
{| border="1"
 
|-
 
! '''Release'''
 
! ''' #001 '''
 
! ''' #002 '''
 
! ''' #003 '''
 
! ''' #004 '''
 
|-
 
|  for-next 
 
|   PASS  
 
|     
 
|   PASS  
 
|     
 
|}
 
  
 
== Test case definitions ==
 
== Test case definitions ==
Line 66: Line 51:
 
''' #001 : SDCARD boot '''
 
''' #001 : SDCARD boot '''
  
How to test: Create a bootable SD card (FAT partition) and put inside x-loader. Result should be like :
+
How to test: Put x-loader to sdcard and check if booting. Result should be like :
  
 
  Texas Instruments X-Loader 1.5.0 (May  5 2011 - 09:59:19)
 
  Texas Instruments X-Loader 1.5.0 (May  5 2011 - 09:59:19)
Line 73: Line 58:
 
  ## Ready for binary (kermit) download to 0x80008000 at 115200 bps...
 
  ## Ready for binary (kermit) download to 0x80008000 at 115200 bps...
  
''' #002 : ONENAND boot '''
+
''' #002 : Load u-boot from SD-card '''
 +
 
 +
How to test: Put x-loader and u-boot to SD-card and check if booting. Result should be like :
 +
 
 +
Texas Instruments X-Loader 1.5.0 (May  5 2011 - 09:59:19)
 +
Reading boot sector
 +
Loading u-boot.bin from mmc
 +
 
 +
U-Boot 2011.03-00406-gf92edd8 (May 05 2011 - 13:01:04)
 +
 
 +
''' #003 : ONENAND boot '''
  
 
How to test: Put x-loader to onenand and check if booting. Result should be like :
 
How to test: Put x-loader to onenand and check if booting. Result should be like :
Line 81: Line 76:
 
  ## Ready for binary (kermit) download to 0x80008000 at 115200 bps...
 
  ## Ready for binary (kermit) download to 0x80008000 at 115200 bps...
  
''' #003 : Load u-boot from SD-card '''
+
Script : flash x-loader
 +
 
 +
mmc rescan 0
 +
fatload mmc 0:1 0x80300000 mlo
 +
onenand erase 0 0x80000
 +
onenand write 0x80300000 0 0x80000
 +
 
 +
''' #004 : Load u-boot from onenand '''
  
 
How to test: Put x-loader and u-boot to SD-card and check if booting. Result should be like :
 
How to test: Put x-loader and u-boot to SD-card and check if booting. Result should be like :
  
  Texas Instruments X-Loader 1.5.0 (May 5 2011 - 09:59:19)
+
  Texas Instruments X-Loader 1.5.0 (May 19 2011 - 10:47:12)
  Reading boot sector
+
  Detected Numonyx OneNAND 4G Flash
  Loading u-boot.bin from mmc
+
  Loading u-boot.bin from onenand
  
  U-Boot 2011.03-00406-gf92edd8 (May 05 2011 - 13:01:04)
+
  U-Boot 2011.03-00532-g638a48e (May 19 2011 - 11:43:43)
  
''' #004 : Load u-boot from onenand '''
+
Script : flash u-boot
  
How to test: Put x-loader and u-boot to SD-card and check if booting. Result should be like :
+
mmc rescan 0
 +
fatload mmc 0 0x80300000 u-boot.bin
 +
onenand erase 0x80000 0x180000
 +
onenand write 0x80300000 0x80000 0x180000
  
 
= Changelog =
 
= Changelog =

Revision as of 13:47, 19 May 2011

X-loader for IGEP platforms

First of all setup the build environment sourcing this script

$ source /usr/local/poky/eabi-glibc/arm/environment-setup

or

$ source /usr/local/poky/eabi-glibc/environment-setup-arm-none-linux-gnueabi

if you have updated your SDK environment to latest version (see Ubuntu 8.04 IGEP v2.0 SDK Virtual Machine)

X-loader v1.4.4-2 (stable)

Download the IGEP X-loader sources and follow next steps:

$ wget http://downloads.igep.es/sources/x-loader-1.4.4-2.tar.gz
$ tar xzf x-loader-1.4.4-2.tar.gz
$ cd x-loader-1.4.4-2
$ scripts/./autobuild.sh arm-none-linux-gnueabi-

The result will be :

  • For IGEP v2 platform
    • x-load-ddp.bin.ift in autobuild/igep0020/flash directory (for OneNAND DDP)
    • x-load.bin.ift in autobuild/igep0020/sdcard directory (for SD card)
  • For OMAP3 IGEP module
    • x-load-ddp.bin.ift in autobuild/igep0030/flash directory (for OneNAND DDP)
    • x-load.bin.ift in autobuild/igep0030/sdcard directory (for SD card)

X-loader development

Note: The 'master' branch is where the development work takes place and you should use this if you're after to work with the latest cutting edge developments. It is possible trunk can suffer temporary periods of instability while new features are developed and if this is undesirable we recommend using one of the release branches. Use ONLY for development purposes.

Clone the GIT repository from git.igep.es

$ git clone git://git.igep.es/pub/scm/x-loader.git
$ cd x-loader
$ git checkout origin/for-next -b for-next

and build with

$ cd x-loader
$ scripts/./autobuild.sh arm-none-linux-gnueabi-

The result will be :

  • x-load.bin.ift in autobuild/igep00x0/ directory

Quality assurance: Test Cases

Status table

Test case definitions

#001 : SDCARD boot

How to test: Put x-loader to sdcard and check if booting. Result should be like :

Texas Instruments X-Loader 1.5.0 (May  5 2011 - 09:59:19)
Reading boot sector
u-boot.bin not found or blank nand contents - attempting serial boot . . .
## Ready for binary (kermit) download to 0x80008000 at 115200 bps...

#002 : Load u-boot from SD-card

How to test: Put x-loader and u-boot to SD-card and check if booting. Result should be like :

Texas Instruments X-Loader 1.5.0 (May  5 2011 - 09:59:19)
Reading boot sector
Loading u-boot.bin from mmc
U-Boot 2011.03-00406-gf92edd8 (May 05 2011 - 13:01:04)

#003 : ONENAND boot

How to test: Put x-loader to onenand and check if booting. Result should be like :

Texas Instruments X-Loader 1.5.0 (May  5 2011 - 09:59:19)
u-boot.bin not found or blank nand contents - attempting serial boot . . .
## Ready for binary (kermit) download to 0x80008000 at 115200 bps...

Script : flash x-loader

mmc rescan 0
fatload mmc 0:1 0x80300000 mlo
onenand erase 0 0x80000
onenand write 0x80300000 0 0x80000

#004 : Load u-boot from onenand

How to test: Put x-loader and u-boot to SD-card and check if booting. Result should be like :

Texas Instruments X-Loader 1.5.0 (May 19 2011 - 10:47:12)
Detected Numonyx OneNAND 4G Flash
Loading u-boot.bin from onenand
U-Boot 2011.03-00532-g638a48e (May 19 2011 - 11:43:43)

Script : flash u-boot

mmc rescan 0
fatload mmc 0 0x80300000 u-boot.bin
onenand erase 0x80000 0x180000
onenand write 0x80300000 0x80000 0x180000

Changelog