ADDING NEW PACKAGE ON LTIB IMX53 BSP

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

ADDING NEW PACKAGE ON LTIB IMX53 BSP

8,980 Views
nichosim
Contributor II

Hello,

We are trying to add a new package (we need the dpkg) in linux 11.05 IMX53 BSP.

Currently we have downloaded the dpkg for the host virtual machine, but we are not able to add the dpkg as component of the imx53 bsp.

We would need to build the dpkg for the imx53 kernel...

Anyone have experience on this?

How we can do it?

Labels (2)
11 Replies

5,621 Views
BrilliantovKiri
Senior Contributor I

This is a very simple:
1. copy source in /opt/freescale/pkgs
2. create file source_name.md5
md5sum source_name > source_name.md5
3. create directory in <you_ltib_dir>dist/lfs-5.1/<you_package> and copy spec-file to it

After this you can use ltib for build package:
1. ./ltib -m prep -p package.spec
2. ./ltib -m scbuild -p package.spec
3. ./ltib -m scdeploy -p package.spec

5,621 Views
aleksandrmuravi
Contributor III

Hello.

I like your post, but where can i get spec file?

Kirill Brilliantov написал(а):

This is a very simple:
1. copy source in /opt/freescale/pkgs
2. create file source_name.md5
md5sum source_name > source_name.md5
3. create directory in <you_ltib_dir>dist/lfs-5.1/<you_package> and copy spec-file to it

After this you can use ltib for build package:
1. ./ltib -m prep -p package.spec
2. ./ltib -m scbuild -p package.spec
3. ./ltib -m scdeploy -p package.spec

0 Kudos
Reply

5,620 Views
BrilliantovKiri
Senior Contributor I

Hello, Aleksandr!

If you havn't spec-file you can write it, it not very hard :smileyhappy:

5,621 Views
aleksandrmuravi
Contributor III

Thak you for reply.

Alreadu done.

Regards.

0 Kudos
Reply

5,621 Views
nichosim
Contributor II

Dear Kirill, thank so much!

we have already done the packages, but we don't have the spec file...

So we have copied from a template changing some parameters, but the "./ltib -m prep -p dpkg.spec" return an error, you can see this picture...


SnipImage.JPG


What it depends??

Thanks

Best Regards

0 Kudos
Reply

5,620 Views
BrilliantovKiri
Senior Contributor I

Hello, nichosim!

On you picture I see what you use dpkg as name instend dpkg.spec. For use "short" name you should insert you package in <ltib_dir>/config/userspace/extra_packages.lkc and <ltib_dir>/config/userspace/pkg_map, but I not check this :smileywink:

5,620 Views
nichosim
Contributor II

You are right!! thank you, with your suggestion I have done the ./ltib -m prep -p dpkg.spec but now i have a problem on the second line...


After a succesful prep we are trying to launch ./ltib -m scbuild -p dpkg.spec but we got this error:


>>>   autom4te: unknown language: Autoconf-without-aclocal-m4
See this picture for reference..

SnipImage.JPG


And i don't know what it depend...

Any Idea?

0 Kudos
Reply

5,620 Views
BrilliantovKiri
Senior Contributor I

You have incorrect spec-file, please post it.

Среда, 10 апреля 2013, 7:48 -07:00 от nichosim <admin@community.freescale.com>:

>

>ADDING NEW PACKAGE ON LTIB IMX53 BSP created by nichosim in i.MX Community - View the full discussion

0 Kudos
Reply

5,619 Views
nichosim
Contributor II

Hi Kirill,

attached you can find my dpkg.spec file...

thank you for your time..

0 Kudos
Reply

5,620 Views
BrilliantovKiri
Senior Contributor I

Hmm, it looks correct, please post full log.

0 Kudos
Reply

5,620 Views
OtavioSalvador
Senior Contributor II

I think you'll have a bad time in integration dpkg on the LTIB as a whole. You may want to look at Yocto which:

  • has MX53 support
  • has ipk (opkg), deb (dpkg) and rpm support
  • has an updated set of recipes

Yocto has a good community around it and currently most commonly used SoCs from i.MX platform is already supported by the meta-fsl-arm layer.

You can find more information how to make a build at https://community.freescale.com/docs/DOC-94023

0 Kudos
Reply