Re: [ptxdist] UBIFS generation question
Thanks Alex, I have it all working now. Jeff On Thu, Nov 1, 2012 at 1:37 PM, Alexander Dahl wrote: > Hei Jeff, > > On 01.11.2012 19:22, Jeff Horn wrote: > > echo $(shell git rev-parse --verify HEAD) > $(ROOTDIR)/etc/revision > > I personally use `git describe --tags` for this, but that's more a > question of taste. > > > That works fine for creating the file in the platform/root directory. > When > > I started to use the UBI image I noticed that file was missing from my > root > > filesystem. I see that the ubi.make script does a targetinstall to > > platform/images/working_dir and then generates the UBI image from there. > > Which obviously does not have my revision. How can I fix/modify my line > > above so it makes it into both the root directory and the UBI image. > > What about creating the file in projectroot/etc/revision, putting a > placeholder e.g. @REVISION@ in it and using something like this in your > rule: > > @$(call install_alternative, somepackage, 0, 0, 0644, \ > /etc/revision) > @$(call install_replace, somepackage, /etc/revision, \ > @REVISION@, $(shell git rev-pares --verify HEAD) ) > > Like this the file gets in the package file and should be installed in > the UBI image. We have a similar approach working in our BSP. > > Greets > Alex > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > > -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] UBIFS generation question
Hi, I currently add the git commit to my BSP by adding this to a custom overlay rule. echo $(shell git rev-parse --verify HEAD) > $(ROOTDIR)/etc/revision That works fine for creating the file in the platform/root directory. When I started to use the UBI image I noticed that file was missing from my root filesystem. I see that the ubi.make script does a targetinstall to platform/images/working_dir and then generates the UBI image from there. Which obviously does not have my revision. How can I fix/modify my line above so it makes it into both the root directory and the UBI image. I'm on ptxdist-2011.07.0 Thanks in advance, Jeff -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] Generate Developer SDK from Ptxdist
Hi All, I'm looking to see if anyone else is using Ptxdist to generate an SDK along with the BSP. We are supporting Qt in our BSP and I would like to create a stand alone developer workstation for our target. I see there is a host-qt built with the BSP but it's configured differently than the target - which obviously makes sense. For my use case, would it make sense to override the host-qt install to mirror that of target except for the windowing (QWS vs X11)? Or would you suggest building the host-qt outside of ptxdist? My goal is to build a developer VM image so a developer can compile and test the application on x86 and then just cross compile the app for target deployment. I already was able to assemble the cross compiled Qt libs from ptxdist and I can cross compile an app using Qt Creator. I am just trying to determine the best way to handle the host Qt libs. Any feedback or suggestions are much appreciated. Thanks, Jeff -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] mxs-utils and the MX28
I have this working. I created a imx-bootlets.in (added to the boot loaders section) and imx-bootlets.make file and Ptxdist builds the SB files just fine. I just need to figure out how to add a dependency on the kernel build. Jeff On Tue, Jan 31, 2012 at 6:41 PM, Jeff Horn wrote: > Hi, > > I have a Ptxdist (2011.07.0) build for the MX53 and I and looking at also > building for the mx28. I see under the platformconfig bootloaders there is > a mxs-utils option for the mx28/23. That all built and now I see the > elftosb host binary which I know is used in the FSL SDK. Do I need to > build the mx28 bootlets out of Ptxdist and then us the elftosb, much like > the SDK, to create the bootable SB file? I'm lost on this last step of > creating the bootlets like the mx28 SDK so I can use Ptxdist for the mx28. > Any pointers is much appreciated. > > Thanks, > Jeff > -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] mxs-utils and the MX28
Hi, I have a Ptxdist (2011.07.0) build for the MX53 and I and looking at also building for the mx28. I see under the platformconfig bootloaders there is a mxs-utils option for the mx28/23. That all built and now I see the elftosb host binary which I know is used in the FSL SDK. Do I need to build the mx28 bootlets out of Ptxdist and then us the elftosb, much like the SDK, to create the bootable SB file? I'm lost on this last step of creating the bootlets like the mx28 SDK so I can use Ptxdist for the mx28. Any pointers is much appreciated. Thanks, Jeff -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] i.MX28 OSELAS toolchain
Hi, I'm using Ptxdist (2011-07.0) and the OSELAS toolchain (1.99.3.8) to test out the i.MX28. Is the arm-v5te-linux-gnueabi_gcc-4.3.2_glibc-2.8_binutils-2.18_kernel-2.6.27-sanitized the correct toolchain? Thanks in advance, Jeff -- ptxdist mailing list ptxdist@pengutronix.de
Re: [ptxdist] Custom kernel archive
Thanks for the response. Yes, this is from within a clean tree. The exact error is "mv will not overwrite just created." For now I just do a local clone and delete the .git directory and then compress the folder and that works. If I get a little more time I'll look a little deeper. Thanks, Jeff On Wed, Jan 4, 2012 at 2:00 AM, Michael Olbrich wrote: > Hi, > > On Tue, Dec 27, 2011 at 02:02:37PM -0800, Jeff Horn wrote: > > I am using Ptxdist 2011.07.0 and I am trying to build the kernel from an > > archive generated by git archive. I have a local kernel git tree and > once > > the kernel is built and tested (loaded over nfs) I thought I could > compress > > it and add it to the src directory and then add the version to my > platform > > config. When I do that I get several errors that mv will not overwrite > > just created during extract. If I manually uncompress the archive and > then > > just add the kernel state flags the compile stage works fine. I'm not > > using the local kernel option because I was hoping I could just add the > > archive to the src folder and have the build run from that. Does this > > sound doable? > > It should work. Is this a clean build? What's the exact error? Please send > the relevant section of the logfile. > > Michael > > -- > Pengutronix e.K. | | > Industrial Linux Solutions | http://www.pengutronix.de/ | > Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0| > Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917- | > > -- > ptxdist mailing list > ptxdist@pengutronix.de > -- ptxdist mailing list ptxdist@pengutronix.de
[ptxdist] Custom kernel archive
Hi, I am using Ptxdist 2011.07.0 and I am trying to build the kernel from an archive generated by git archive. I have a local kernel git tree and once the kernel is built and tested (loaded over nfs) I thought I could compress it and add it to the src directory and then add the version to my platform config. When I do that I get several errors that mv will not overwrite just created during extract. If I manually uncompress the archive and then just add the kernel state flags the compile stage works fine. I'm not using the local kernel option because I was hoping I could just add the archive to the src folder and have the build run from that. Does this sound doable? Thanks, Jeff -- ptxdist mailing list ptxdist@pengutronix.de