<div dir="ltr"><div>So after further investigation, I'm fairly sure awk is actually present in the target image. Here are my reasons why I feel that this is the case:</div><div><br></div><div>-I looked at the busybox menuconfig GUI that comes up when I run "bitbake -c menuconfig busybox" and it says awk is built-in. <br></div><div>-I looked at various def-config files I found by just doing a "grep -rn "CONFIG_AWK"" and found that CONFIG_AWK seems to have been enabled throughout the project (there was the line CONFIG_AWK=y uncommented in the various def-config files I mentioned). <br></div><div>-I have an older version of the target image that my coworker (who has since left the company) created. I just need to rebuild this image because I am trying to add some kernel modules to the image. When I run the command "awk" in the console for the T4240 RDB when the older version of the image is loaded, I do see the gawk help info come up. This shows awk is present in the older image.</div><div><br></div><div>But looking at what Khem Raj mentioned, perhaps bitbake is just not finding the awk because it's actually in /usr/bin when bitbake expects it to be in /bin? Though I am a little confused about the link you sent, Khem Raj. How do exactly do I apply this patch? I'm assuming we have to change the file ver_linux? I did a "find . -name "ver_linux"" and I see multiple results:</div><div><br></div><div>
bash-4.2$ find . -name "ver_linux"<br>./build_t4240rdb-64b/tmp/work/ppc64e6500-fsl-linux/linux-libc-headers/4.1-r0/linux-4.1/scripts/ver_linux<br>./build_t4240rdb-64b/tmp/work/ppce6500-fslmllib32-linux/lib32-linux-libc-headers/4.1-r0/linux-4.1/scripts/ver_linux<br>./build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/kernel-devsrc/1.0-r0/package/usr/src/kernel/scripts/ver_linux<br>./build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/kernel-devsrc/1.0-r0/image/usr/src/kernel/scripts/ver_linux<br>./build_t4240rdb-64b/tmp/work/t4240rdb_64b-fsl-linux/kernel-devsrc/1.0-r0/packages-split/kernel-devsrc/usr/src/kernel/scripts/ver_linux<br>./build_t4240rdb-64b/tmp/work-shared/t4240rdb-64b/kernel-source/scripts/ver_linux<br>./build_t4240rdb/tmp/work/ppc64e6500-fslmllib64-linux/lib64-linux-libc-headers/4.1-r0/linux-4.1/scripts/ver_linux<br>./build_t4240rdb/tmp/work/ppce6500-fsl-linux/linux-libc-headers/4.1-r0/linux-4.1/scripts/ver_linux<br>./build_t4240rdb/tmp/work-shared/t4240rdb/kernel-source/scripts/ver_linux <br></div><div><br></div><div>Now the build I'm working on is
build_t4240rdb-64b so the last three results in that search probably don't matter. Though there are still six more results for when I search ver_linux. So I'm not sure which one I need to change. Moreover, all of the ver_linux files I found more or less look like the following:</div><div><br></div><div><a href="https://gist.github.com/WayneZhenLi/c7475cf382a80bfd2de31e82c40c1677">https://gist.github.com/WayneZhenLi/c7475cf382a80bfd2de31e82c40c1677</a></div><div><br></div><div>Which seems to be very different from the ver_linux file mentioned in the patch. This further confuses me on how to apply the patch. <br></div><div><br></div><div>Or maybe do you guys think maybe the patch isn't the solution here? Maybe there's some other reason bitbake isn't finding the awk?<br></div><div><br></div><div>-Thanks!, Wayne Li<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Nov 13, 2019 at 10:57 AM Khem Raj <<a href="mailto:raj.khem@gmail.com">raj.khem@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 2019-11-13 at 10:33 +0200, Adrian Bunk wrote:<br>
> On Tue, Nov 12, 2019 at 04:08:48PM -0600, Wayne Li wrote:<br>
> > Dear Yocto Developers,<br>
> > <br>
> > I'm trying to to build a Yocto kernel for a T4240 RDB. When I run<br>
> > "bitbake<br>
> > fsl-image-full" to build the entire linux image, I get an error<br>
> > that says<br>
> > "Can't install kernel-devsrc-1.0-r0@t4240rdb_64b: no package<br>
> > provides<br>
> > /bin/awk". Here's the entire error print that I see:<br>
> > <br>
> > <a href="https://gist.github.com/WayneZhenLi/e35f65081092cf1f24df29ec369c701c" rel="noreferrer" target="_blank">https://gist.github.com/WayneZhenLi/e35f65081092cf1f24df29ec369c701c</a><br>
> > <br>
> > Anyway I'm confused about this error because /bin/awk does<br>
> > exist. Like if<br>
> > I run "/bin/awk" in the console I see help info come up describing<br>
> > how to<br>
> > use a program called "gawk". Why can't bitbake find /bin/awk<br>
> > then? Or am<br>
> > I misunderstanding what this error is trying to say? I mean I'm<br>
> > assuming<br>
> > it's just not able to find /bin/awk but maybe the error means<br>
> > something<br>
> > else? Or maybe /bin/awk is actually relative to some path? Let me<br>
> > know<br>
> > your thoughts.<br>
> <br>
> /bin/awk is missing on your target image that will run on the T4240<br>
> RDB.<br>
> <br>
> The smallest implementation is to enable CONFIG_AWK in your busybox<br>
> config.<br>
> <br>
<br>
import something like below patch into your kernel will help too<br>
<br>
<a href="https://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto/commit/?id=8af11c1cdd8fa08217e702b57cf96e9030db52b2" rel="noreferrer" target="_blank">https://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto/commit/?id=8af11c1cdd8fa08217e702b57cf96e9030db52b2</a><br>
<br>
> > -Thanks!, Wayne Li<br>
> <br>
> cu<br>
> Adrian<br>
> <br>
> -- <br>
> <br>
> "Is there not promise of rain?" Ling Tan asked suddenly out<br>
> of the darkness. There had been need of rain for many days.<br>
> "Only a promise," Lao Er said.<br>
> Pearl S. Buck - Dragon Seed<br>
> <br>
<br>
</blockquote></div>