Compile Busybox for IMX6DL

cancel
Showing results for 
Search instead for 
Did you mean: 

Compile Busybox for IMX6DL

751 Views
martincarra
Contributor I

Hello all,

I've downloaded, installed and built YOCTO to compile busybox 1.24.2

I have ran the following steps:

1.- MACHINE=imx6dlsabresd DISTRO=poky source ./setup-environment base

2.- bitbake meta-toolchain

3.- executed fslc-wayland-glibc-x86_64-meta-toolchain-armv7at2hf-neon-toolchain-2.2.2.sh to install the SDK

4.- executed environment-setup-armv7at2hf-neon-fslc-linux-gnueabi from the console in which I am running the make of the busybox.

~/Projects/externals/busybox-1.24.2$ make
SPLIT include/autoconf.h -> include/config/*
GEN include/bbconfigopts.h
HOSTCC applets/usage
applets/usage.c: In function ‘main’:
applets/usage.c:52:3: warning: ignoring return value of ‘write’, declared with attribute warn_unused_result [-Wunused-result]
write(STDOUT_FILENO, usage_array[i].usage, strlen(usage_array[i].usage) + 1);
^
GEN include/usage_compressed.h
HOSTCC applets/applet_tables
applets/applet_tables.c: In function ‘main’:
applets/applet_tables.c:161:4: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result [-Wunused-result]
fgets(line_old, sizeof(line_old), fp);
^
GEN include/applet_tables.h
CC applets/applets.o
In file included from /opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/syslimits.h:7:0,
from /opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/limits.h:34,
from include/platform.h:141,
from include/libbb.h:13,
from include/busybox.h:8,
from applets/applets.c:9:
/opt/fslc-wayland/2.2.2/sysroots/x86_64-fslcsdk-linux/usr/lib/arm-fslc-linux-gnueabi/gcc/arm-fslc-linux-gnueabi/6.2.0/include-fixed/limits.h:168:61: error: no include path in which to search for limits.h
#include_next <limits.h> /* recurse down to the real one */
^
In file included from include/libbb.h:13:0,
from include/busybox.h:8,
from applets/applets.c:9:
include/platform.h:152:23: fatal error: byteswap.h: No such file or directory
# include <byteswap.h>
^
compilation terminated.
scripts/Makefile.build:197: recipe for target 'applets/applets.o' failed
make[1]: *** [applets/applets.o] Error 1
Makefile:372: recipe for target 'applets_dir' failed
make: *** [applets_dir] Error 2

Labels (3)
Tags (1)
0 Kudos
1 Reply

120 Views
diegoadrian
NXP Employee
NXP Employee

Hello,

Martín.

Probably you are initializing in a wrong way your DISTRO. Try with the following configuration.

$ DISTRO=fsl-imx-wayland MACHINE=imx6dlsabresd source fsl-setup-release.sh -b <build dir>

However, I highly recommend you to use the yocto compiler. Here you can see how to compile Busybox.

Yocto busybox menuconfig 

Furthermore, here you can find more information about yocto.

https://community.nxp.com/docs/DOC-94035 

I hope this can help you,

Best Regards,

Diego.

0 Kudos