Fujitsu DTV/STB solution driver (FAPex driver) Documentation [V01L00R00]


Booting Methods for Linux

Table of Contents

Introduction
Command line arguments
ROM loader booting

2nd level 'booter' booting

References

Back to top

Introduction

This document describes only how to setup for each booting method for Linux environment.
The BurnFlash4Linux_61.bat is a batch file to write to Flash.

Command line arguments

The BurnFlash4Linux_61.bat tool creates the flash image data and burns it to Flash memory.
You can select the booting method with this tool. This batch command can be executed within the "${FAPI_TREE_TOP}\applications\BurnFlash4Linux" directory under MB86H61 SDK environment (RTOS development environment):

  • BurnFlash4Linux_61.bat -boot=<booter type> -firm=<firmware registration type> -load=<kernel loading address>

booter type

  • rom : ROM boot loader booting
  • slot : 2nd level 'booter' booting

firmware registration type

  • external : External Solution
  • embedded : Embedded Solution

kernel loading address

Please set the hex value whitch added 0x20008000 and size of "Memory Size for Video/Audio Firmware" at "meke menuconfig". (This default value is 0x22008000.)

Note:
As for details about the level-1 loader called ROM boot loader and the level-2 loader called 'booter', please refer to the "Booting Methods" of "MB86H61 SDK documentation" .
For information how to write to Flash, please refer the 7. Flash boot of Install guide for Linux.
Back to top

ROM loader booting

Method 1: External Solution

[Setting and Command]
On Linux development environment, please make loadable-modules with "make menuconfig" as follows:

---- menu config
  Device Drivers  --->
    Multimedia devices  --->
     <M> Fujitsu DTV/STB solution
           Fujitsu DTV/STB extension module configuration  --->
             Fujitsu DTV/STB extension module functional configuration  --->
               :
              <M> Function Driver of WFE : Audio Decoder
              [ ]   Reboot the Audio firmware
               :
     <M>   Fujitsu DTV/STB core device driver
             Fujitsu DTV/STB core module configuration  --->
              <M> FAPI Core Driver Layer and FAPI Register Access Layer
              [ ]   Firmware Booting Method : [*] Embedded Solution / [ ] External Solution
              [*]   FAPI Register Access Layer is build as inline function.


The following command can be executed within the "${FAPI_TREE_TOP}\applications\BurnFlash4Linux" directory under MB86H61 SDK environment (RTOS development environment):

BurnFlash4Linux_61.bat -boot=rom -firm=external

Method 2: Embedded Solution

[Setting and Command]
On Linux development environment, please make loadable-modules with "make menuconfig" as follows:

---- menu config
  Device Drivers  --->
    Multimedia devices  --->
     <M> Fujitsu DTV/STB solution
     <M>   Fujitsu DTV/STB core device driver
             Fujitsu DTV/STB core module configuration  --->
              <M> FAPI Core Driver Layer and FAPI Register Access Layer
              [*]   Firmware Booting Method : [*] Embedded Solution / [ ] External Solution
              [*]   FAPI Register Access Layer is build as inline function.


The following command can be executed within the "${FAPI_TREE_TOP}\applications\BurnFlash4Linux" directory under MB86H61 SDK environment (RTOS development environment):

BurnFlash4Linux_61.bat -boot=rom -firm=embedded
Back to top

2nd level 'booter' booting

The example of slot parameter is described in BurnFlash4Linux_61.bat file as follows:


rem ////////////////////////////////////////////////////////////////////////////
rem //
rem // slot parameters (It is necessary if booter type is "slot")
rem //
rem ////////////////////////////////////////////////////////////////////////////

set BOOTER_SLOT_NAME="fapex_Linux_demo"
set BOOTER_SLOT_0=1
set BOOTER_SLOT_1=2
set BOOTER_IMGVENDOR="fmc"
set BOOTER_SLOT_VERSION=1
set BOOTER_SLOT_COMPRESS=off
set BOOTER_SLOT_OFFSETS=0x00140000 0x00800000

set BOOTER_SLOT_INDEX=%BOOTER_SLOT_0%

for /f "tokens=1,2 delims= " %%a in ("%BOOTER_SLOT_OFFSETS%") do (
    if "%BOOTER_SLOT_INDEX%"=="%BOOTER_SLOT_0%" (
        set BOOTER_SLOT_OFFSET=%%a
    ) else (
        set BOOTER_SLOT_OFFSET=%%b
    )
)
:SLOT_PARAM_END


Method 1: External Solution

[Setting and Command]
On Linux development environment, please make loadable-modules with "make menuconfig" as follows:

---- menu config
  Device Drivers  --->
    Multimedia devices  --->
     <M> Fujitsu DTV/STB solution
           Fujitsu DTV/STB extension module configuration  --->
             Fujitsu DTV/STB extension module functional configuration  --->
               :
              <M> Function Driver of WFE : Audio Decoder
              [*]   Reboot the Audio firmware
               :
     <M>   Fujitsu DTV/STB core device driver
             Fujitsu DTV/STB core module configuration  --->
              <M> FAPI Core Driver Layer and FAPI Register Access Layer
              [ ]   Firmware Booting Method : [*] Embedded Solution / [ ] External Solution
              [*]   FAPI Register Access Layer is build as inline function.


The following command can be executed within the "${FAPI_TREE_TOP}\applications\BurnFlash4Linux" directory under MB86H61 SDK environment (RTOS development environment):

BurnFlash4Linux.bat -boot=slot -firm=external

Method 2: Embedded Solution

[Setting and Command]
On Linux development environment, please make loadable-modules with "make menuconfig" as follows:

---- menu config
  Device Drivers  --->
    Multimedia devices  --->
     <M> Fujitsu DTV/STB solution
     <M>   Fujitsu DTV/STB core device driver
             Fujitsu DTV/STB core module configuration  --->
              <M> FAPI Core Driver Layer and FAPI Register Access Layer
              [*]   Firmware Booting Method : [*] Embedded Solution / [ ] External Solution
              [*]   FAPI Register Access Layer is build as inline function.


The following command can be executed within the "${FAPI_TREE_TOP}\applications\BurnFlash4Linux" directory under MB86H61 SDK environment (RTOS development environment):

BurnFlash4Linux_61.bat -boot=slot -firm=embedded
Back to top

References

  • MB86H61 SDK documentation
    Startup / ROM Boot Loader
    Startup / Booting Methods
    Applications / Bootloader 'booter' Application


Copyright © 2006-2010 by Fujitsu Semiconductor Europe GmbH
Copyright © 2008-2010 by Fujitsu Semiconductor Limited

Disclaimer:
Please note that the use of this has been based on the terms and conditions of "DK Consent Letter (For Linux)" agreement between you and Fujitsu Semiconductor Limited.
The contents of this document may be revised without prior notice. Contact our sales department for confirmation. The information in this document are presented as is, no license is granted by implication or otherwise.
More...

FUJITSU sales representatives