[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
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 p...@lespocky.de 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] 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 m.olbr...@pengutronix.dewrote: 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