Add the Digi cross compilation toolchain to your PATH
# export PATH=/usr/local/DigiEL-4.2/bin:$PATH
Modify the busybox to your needs:
e.g. configure some additional features: # make xconfig -> Select Networking Utilities -> Check "sendmail" Save and Quit, graphical config you can also do this by patching .config of busybox by adding: CONFIG_SENDMAIL=yes
Check how to cross compile busybox in the Makefile
Typically you would need to change CROSS_COMPILE, CXX or CC in the Makefile or when callig make. This is very dependent on which application you try to re-compile. For busybox this can be done with: # make CROSS_COMPILE=arm-linux- This will generate a ARM9 busybox binary file in the local build directory: # file busybox busybox: ELF 32-bit LSB executable, ARM, ...
Install every file needed into your rootfs
Running "make install" will not do the job (without patching it), since this will install on your development PC and not into your Digi Embedded Linux project Just copy the busybox binary into your roofs under /bin and add a symbolic link for sendmail If you want this for only one project, add the commands to the add_files.sh of your project. If all your projects should contain the new busybox with sendmail, add this to the standard rootfs. Be sure to make a backup of your old rootfs_base before. # install busybox /usr/local/DigiEL-4.2/rootfs/rootfs_base/bin/busybox # cd /usr/local/DigiEL-4.2/rootfs/rootfs_base/bin # ln -s busybox sendmail
Build and deploy your project to the embedded module
..and test "sendmail". See the busybox or more general sendmail documentation in the web on how to use it.
Contact a Digi expert and get started today! CONTACT US