Closed mentaal closed 4 years ago
Hi @mentaal,
I probably don't have enough environment information here so please let me know and I'll add it.
Can you share the Buildroot version ?
Also it seems old kernel headers don't define this flag (what is your version ?).
Just for test purpose, can you try with this patch https://github.com/texierp/genimage/commit/8b040c90ffb7308020e1dec074b3a81f13af4491 (Just put the patch under buildroot/package/genimage)
Thanks !
Thanks very much for the prompt reply! Much appreciated. I'm still finding my way with buildroot so please bare with me.
I tried the latest on master first and then I tried buildroot tag 2019.11.1.
I tried using the zynqmp_zcu106_defconfig
default configuration and left everything as default.
You're right in that I do appear to be using old kernel headers. Apparently 4.9.x is what I am using. I can see this in the aforementioned defconfig file:
BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
I'll try that patch shortly. Thanks!
@texierp I've been trying to apply that patch you mention but I'm having problems with it. This is just down to my understanding of buildroot I'm sure.
Some more info about my environment first:
I've tried an "out of tree build" in that I am trying to build with O=tmp_build
. Why did I do this? It just seemed like a handy thing to do as a starting point, to not pollute the buildroot parent directory too much and I will need to support multiple environments so it's something I have to get to grips with anyway.
I tried placing the patch within buildroot/package/genimage
as you suggested and then tried rebuild with make which doesn't work in that I don't see it applying the patch.
After reading the buildroot training material I have (from bootlin) I see that my BR2_GLOBAL_PATCH_DIR
points to board/zynqmp/patches
. I tried creating a board/zynqmp/patches/genimage/0001-util-define-AT_NO_AUTOMOUNT-if-needed.patch
which similarly didn't work. I also tried placing it at board/zynqmp/patches/host-genimage
without success.
I know this is off track from my initial question but I'm hoping this is something you just know off the top of your head...
Ah, nevermind, I have managed to apply the patch. I need to do a dirclean
first.
For what it's worth, the patch does indeed allow genimage to build.
@texierp a pull request for the patch (with an extra comment about old kernel header) would be great.
@texierp a pull request for the patch (with an extra comment about old kernel header) would be great.
@michaelolbrich sure, I will do ;), I was waiting for confirmation from @mentaal
Thanks !
Hi All, I am not sure if this is the right place to post this , apologies in advance if it's not.
I am using buildroot to build a linux environment for an FPGA platform. It gets to the point where it attempts to build genimage which is where it's failing at:
I am using
v11
apparently.Any suggestions welcome. I probably don't have enough environment information here so please let me know and I'll add it.