cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
swawryk
Contributor
Contributor
8,817 Views
Registered: ‎06-09-2014

Adding software packages to PetaLinux system?

It appears that the set of software packages available in "petalinux-v2014.4-final/components/packages-repo/plnx-repo" for a PetaLinux system is very limited, and I haven't found any doco about extending it.

 

I've been writing an ALSA soundcard device driver module and would like to install PulseAudio and some ALSA and PulseAudio utilities to test it and make use of it.  Are there any suggested or prefered ways of doing this?  Are there other options?  Or should I give up on PetaLinux and figure out how to add my module to another linux flavour like Linaro?

 

Steve

7 Replies
achutha
Xilinx Employee
Xilinx Employee
8,788 Views
Registered: ‎07-01-2010

http://www.xilinx.com/support/answers/55998.html

 

Can you check this and see if this helps?

 

Regards,

Achutha

 

---------------------------------------------------------------------------------------------
Kindly note- Please mark the Answer as "Accept as solution" if information provided is helpful.

Give Kudos to a post which you think is helpful and reply oriented.
----------------------------------------------------------------------------------------
0 Kudos
swawryk
Contributor
Contributor
8,780 Views
Registered: ‎06-09-2014

Thanks Achutha.  Interesting idea.  The drawback I guess is that this needs manual dependency management and would have to be done for all the library dependencies.  I'm not yet sure that I want to go that way.

0 Kudos
linnj
Xilinx Employee
Xilinx Employee
8,768 Views
Registered: ‎09-10-2008

Yocto is likely a better direction to go and there is a Xilinx layer.

 

Thanks

John

0 Kudos
swawryk
Contributor
Contributor
8,748 Views
Registered: ‎06-09-2014

Thanks John.  I've taken a quick look and it superficially looks promising.  It appears to support application development, but do you know off the top of your head if it will support the kernel driver module I've been devloping?

 

Steve

0 Kudos
linnj
Xilinx Employee
Xilinx Employee
8,739 Views
Registered: ‎09-10-2008

Hi Steve,

I'm not an expert but it appears to me you can do anything in Yocto if you know how. It's a bit complicated and getting thru the layers of bitbake and stuff are not trivial but in the end it's a good tool. So you need to plan enough time would be my advice to learn it.

Thanks
John
0 Kudos
rankeney
Participant
Participant
8,702 Views
Registered: ‎11-26-2014

Adding modules is relatively easy. You can do a petalinux-create -t module -n alps --enable and it will set up a directory in which you can create the module. After a petalinux-build, the module will be installed when you boot.

 

If you're interested in building software directly in Petalinux, have a look at https://zynqing.wordpress.com/2015/10/13/compiling-on-petalinux/ where I describe a C/C++ Clang-based compiler that runs on Petalinux. I've built a few elaborate things this way, but not a kernel. It's fairly slow to build anything big, but sometimes easier than cross-compiling, and it has a gdb debugger you can use.

 

Robert

swawryk
Contributor
Contributor
8,690 Views
Registered: ‎06-09-2014

Thanks Robert, but the question was about 3rd party package and software repository.  I already have modules and apps under petalinux.

0 Kudos