This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Build armubl question:



Dear all:

I use OAMPL137 and want to boot from NAND flash, try to build the ARMUBL/DSPUBL from PSP. I follow the steps as wiki: "GSG:Building Software Components for OMAP-L1/AM1x" said. The program/source are:

1. CCS:  Version: 4.2.1.00004

2. ARMUBL/DSPUBL source codes come directly from "REL_LSP_02_20_00_07/PSP_02_20_00_07/board_utilities/armubl (dspubl)"

3. Import armubl project by select from ccs "Project->Import Legacy CCSv3.3 project"

4. Select menu "Project -> clean", "Project ->Rebuild all".

The questions are:

1. I got following warning messages after ARMUBL compilation, is it safe to ignore these messages or something I should setting?

    warning window:

    Severity and Description    Path    Resource    Location    Creation Time    Id
    creating output section ".const" without a SECTIONS specification        ubl    line 0    1299227456812    153
    entry-point symbol other than "_c_int00" specified:  "_boot"        ubl    line 0    1299227456812    154
    this assembly directive potentially unsafe inside a function    ubl/src    boot.c    line 89    1299227456812    152

   console window:

   "D:/CodeCompsoerWorkspace4/armubl/src/boot.c", line 89: warning: this assembly directive potentially unsafe inside a function
"C:\Users\CALVIN~1\AppData\Local\Temp\0587211", WARNING! at line 82:
 [W0000]
         Deprecated use of PSR; flag bits not specified, "cf" assumed
     MSR  cpsr, r0

warning: creating output section ".const" without a SECTIONS specification
warning: entry-point symbol other than "_c_int00" specified:  "_boot"

'hex470.exe' 不是內部或外部命令、可執行的程式或批次檔。

<above sentence means hex470.exe is neither internal, external command, executable or batch file>

2. I can't get the binary result "ubl-nand.bin", only get "ubl-nand.out". Are there some settings I miss?

3. If everything is fine, how do I convert ubl-nand.out into ubl-nand.bin, or it's binary fomrat already? Since the wiki says ARMUBL should be binary format?

 

extra questions as below:

4. The wiki said to use hexgen convert DSP ubl-nand.out into AIS format, by the command line tool 

hexgen -romid D800K001 -seqread -crc 1 -spiclk 0 -appln <PATH to ubl-nand.out> -output <dsp-nand-ais.bin>

Is it D800K001 (or D800K003 depending on the omapl137 chip we have or no matter what oampl137 chip we have on hand ?

 

  • Calvin

    CalvinTai said:

    1. I got following warning messages after ARMUBL compilation, is it safe to ignore these messages or something I should setting?

        warning window:

        Severity and Description    Path    Resource    Location    Creation Time    Id
        creating output section ".const" without a SECTIONS specification        ubl    line 0    1299227456812    153
        entry-point symbol other than "_c_int00" specified:  "_boot"        ubl    line 0    1299227456812    154
        this assembly directive potentially unsafe inside a function    ubl/src    boot.c    line 89    1299227456812    152

       console window:

       "D:/CodeCompsoerWorkspace4/armubl/src/boot.c", line 89: warning: this assembly directive potentially unsafe inside a function
    "C:\Users\CALVIN~1\AppData\Local\Temp\0587211", WARNING! at line 82:
     [W0000]
             Deprecated use of PSR; flag bits not specified, "cf" assumed
         MSR  cpsr, r0

    warning: creating output section ".const" without a SECTIONS specification
    warning: entry-point symbol other than "_c_int00" specified:  "_boot"

    'hex470.exe' 不是內部或外部命令、可執行的程式或批次檔。

    <above sentence means hex470.exe is neither internal, external command, executable or batch file>

     

    Warnings are typically OK in a build, however since these are specific to the Linux Support Package, I would recommend that you re-post this question in the E2E Linux forum since I am unfamiliar with LSP if you are curious to know exactly what they mean.

     

    CalvinTai said:
    2. I can't get the binary result "ubl-nand.bin", only get "ubl-nand.out". Are there some settings I miss?

    CCSv4 will build an absolute object file from the compilation with a .out file extension. This .out file then needs to be converted into a .bin file to store into the flash. So what you are getting from the compilation is expected

     

     

     

     

  • You should get the latest version of the PSP (3.20.x.x), since it comes with CCS4 projects which will probably fix most of the issues you are seeing.

    Jeff