Library from L2.6.35_1.1.0_130130_MM_CODECS_BUNDLE

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Library from L2.6.35_1.1.0_130130_MM_CODECS_BUNDLE

626 Views
mikhailv
Contributor I

Good day guys!

I work with IMX287 and the latest version of LTIB from the site.

My question is about codecs as part fsl plugin. More specifically applies to the Speech codec type g723 g726 g729. Binary files are copied to /usr/lib and headers in /usr/include/imx-mm. I looked binaries libraries:

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-readelf -h rootfs/usr/lib/lib_g.723.1_dec_arm9_elinux.so

ELF Header:

  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

  Class:                             ELF32

  Data:                              2's complement, little endian

  Version:                           1 (current)

  OS/ABI:                            UNIX - System V

  ABI Version:                       0

  Type:                              DYN (Shared object file)

  Machine:                           ARM

  Version:                           0x1

  Entry point address:               0x1614

  Start of program headers:          52 (bytes into file)

  Start of section headers:          68972 (bytes into file)

  Flags:                             0x4000002, has entry point, Version4 EABI

  Size of this header:               52 (bytes)

  Size of program headers:           32 (bytes)

  Number of program headers:         5

  Size of section headers:           40 (bytes)

  Number of section headers:         31

  Section header string table index: 28

Now compare with a working project:

/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-readelf -h rootfs/usr/lib/libcpufreq.so

ELF Header:

  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

  Class:                             ELF32

  Data:                              2's complement, little endian

  Version:                           1 (current)

  OS/ABI:                            UNIX - System V

  ABI Version:                       0

  Type:                              DYN (Shared object file)

  Machine:                           ARM

  Version:                           0x1

  Entry point address:               0x1328

  Start of program headers:          52 (bytes into file)

  Start of section headers:          12804 (bytes into file)

  Flags:                             0x5000002, has entry point, Version5 EABI

  Size of this header:               52 (bytes)

  Size of program headers:           32 (bytes)

  Number of program headers:         6

  Size of section headers:           40 (bytes)

  Number of section headers:         27

  Section header string table index: 24

Pay attention to the flags. Will work my projects with libraries of codecs?

Labels (3)
Tags (2)
0 Kudos
2 Replies

500 Views
mikhailv
Contributor I

The problem remained. In the composition of MM CODECS BUNDLE on the target platform have compiled examples:

root@freescale ls /usr/share/imx-mm/audio-codec/examples/g729/bin/

total 36

-rwxr-xr-x 1 root root 8538 Jun  5 09:30 test_g.729ab_dec_arm11_elinux

-rwxr-xr-x 1 root root 8494 Jun  5 09:30 test_g.729ab_dec_arm9_elinux

-rwxr-xr-x 1 root root 8763 Jun  5 09:30 test_g.729ab_enc_arm11_elinux

-rwxr-xr-x 1 root root 8687 Jun  5 09:30 test_g.729ab_enc_arm9_elinux

root@freescale /usr/share/imx-mm/audio-codec/examples/g729/bin$ ./test_g.729ab_enc_arm9_elinux /usr/share/test/test.wav ttt 0

BLN_MAD-MMCODECS_G729AB_ARM_03.01.00_ARM9  build on Mar 21 2012 17:09:44

Input speech file:  /usr/share/test/test.wav

Output bitstream file:  ttt

VAD disabled

Illegal instruction

root@freescale /usr/share/imx-mm/audio-codec/examples/g729/bin$

On the host:

mik@mik-VBox:~/PPP/ltib$ /opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-readelf -h rootfs/usr/share/imx-mm/audio-codec/examples/g729/bin/test_g.729ab_enc_arm9_elinux

ELF Header:

  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00

  Class:                             ELF32

  Data:                              2's complement, little endian

  Version:                           1 (current)

  OS/ABI:                            UNIX - System V

  ABI Version:                       0

  Type:                              EXEC (Executable file)

  Machine:                           ARM

  Version:                           0x1

  Entry point address:               0x87e0

  Start of program headers:          52 (bytes into file)

  Start of section headers:          4996 (bytes into file)

  Flags:                             0x4000002, has entry point, Version4 EABI

  Size of this header:               52 (bytes)

  Size of program headers:           32 (bytes)

  Number of program headers:         7

  Size of section headers:           40 (bytes)

  Number of section headers:         29

  Section header string table index: 26

0 Kudos

500 Views
alejandrolozan1
NXP Employee
NXP Employee

Hi,

As far as I understand the EABI should be backwards compatible. Therefore the it is expected a working functionality.

Best Regards,

Alejandro