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.

Rebuilded Bios Differences

Other Parts Discussed in Thread: SYSBIOS

Hi community,

I rebuild sysbios with no change. When i compare bios and rebuild-bios directory, there are a lot of diferences. For example inside of "..\packages\ti\bios\package\build.cfg";

in the original "pkg.build.libraries[]" & "pkg.build.libDesc[]" have some members inside.

in the rebuild-project "pkg.build.libraries[]" & "pkg.build.libDesc[]" have no member inside.

There are my steps for compile SYSBIOS:

1- cd ti/bios_6_37_03_30
2- make -f bios.mak XDC_INSTALL_DIR=/home/srt/ti/xdctools_3_25_06_96 clean
3- make -f bios.mak XDC_INSTALL_DIR=/home/srt/ti/xdctools_3_25_06_96 
4- make -f bios.mak XDC_INSTALL_DIR=/home/srt/ti/xdctools_3_25_06_96 DESTDIR=/home/srt/ti/rebuilt-sysbios install-packages

I want to rebuild SYSBIOS with exactly same outputs, but i cant. How can i get the exactly same files?

Best Regards,

Srt

  • Hi Srt,

    Which version of the compiler did you build with?

    Steve
  • Hi Steven,

    Im using "gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux" for cross compiler.

    Srt
  • Srt,

    Ok, that version of the compiler is newer than the one that SYS/BIOS 6.37.03.33 was built with (it used gcc-arm-none-eabi-4_7-2012q4).  Ideally, you would want to ensure that you're using the same versions as listed in the Dependencies section of the release notes.

    But, I'm thinking that the difference you are seeing in the Build.cfg file may be due to the settings in your bios.mak file.

    What values did you set for the targets in the bios.mak file?  If you look at the file, the default for the gnu targets (and all targerts) is undefined:

    gnu.targets.arm.M3 ?=
    gnu.targets.arm.M4 ?=
    gnu.targets.arm.M4F ?=
    
    gnu.targets.arm.A8F ?=
    gnu.targets.arm.A15F ?=

    You need to define the above for the targets you want to build for.

    I believe the contents of that array that you see in Build.cfg is dependent on the targets you are building for.

    Please make sure that you have set up everything correctly that's needed for a proper rebuild of SYS/BIOS.

    You can find the details on this in the BIOS User's Guide, Appendix A: Rebuilding SYS/BIOS.

    Steve

  • A colleague of mine noticed that it looks like you're using the Linux version of the gcc tool chain.

    The Linux flavor builds apps that are expected to run under Linux OS.  You need to use the bare-metal version of the  GNU compiler (can be found in older CCS or directly installed from https://launchpad.net/gcc-arm-embedded/+milestone/4.7-2012-q4-major).

    Steve

  • Hi Steve,

    I read the doc “www.ti.com/lit/ug/spruex3o/spruex3o.pdf”, for rebuild sysbios. It says  “SYS/BIOS ships with a bios.mak file in the top-level installation directory. This makefile enables you to easily (re)build SYS/BIOS using your choice of compilers and desired "targets"". So i tried with these options like you said:

                    Compiler: gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux

                    Target: gnu.targets.arm.A15F

    These is nothing changed. I will download "https://launchpad.net/gcc-arm-embedded/+milestone/4.7-2012-q4-major" and try with it as soon as possible. I will write here after testing 4.7-2012-q4-major.

    Thank you,

    Best Regards.

    Srt

  • Hi Steve,

    I tried with 4.7-2012-q4-major. When i rebuild Sysbios, there are a lot of diferences again. When i compare outputs of with "4.7-2012-q4-major" sysbios AND "gcc-linaro-arm-linux-gnueabihf-4.7-2013.03-20130313_linux" sysbios , two of them are almost same.

    I cant get the same sysbios outputs yet.

    Best Regards,

    Srt
  • srt35 said:
    When i rebuild Sysbios, there are a lot of diferences again.

    What are the differences you are seeing?

    Are most of these differences in sub folders that start with "package"?  (for example, "ti/sysbios/knl/package").

    If so, you should be aware that the folder called "package" is most always a generated folder, and so all files or folders found within it would also be generated.  Often these files will be different due to minor/insignificant changes, such as time stamps.

    Are you seeing differences like this?

    Steve