Coreutils cksum missing.
-
Hi All,
I want to use the cksum command which is part of coreutils, or rather should be.
I have coreutils installed on my Omega2 + , but the cksum command is not available.
How do I add/compile coreutils to include this command or make it available ?Any advice will be much appreciated.
Thank you.
-
@nix666 You can build coreutils with cksum included using the build system, it seems it is not inlcued in the standard OpenWrt build of coreutils.
The docs of how to set up a build system are here:
https://docs.onion.io/omega2-docs/cross-compiling.html#setting-up-the-build-system
-
@nix666 You didn't tell us what firmware are you using - as usual
For example:
# Omega2+ with FW v0.3.2 b234 root@Omega-99A5:/# opkg update ... root@Omega-99A5:/# opkg install coreutils-cksum Installing coreutils-cksum (8.23-4) to root... Downloading http://repo.onioniot.com/omega2/packages/packages/coreutils-cksum_8.23-4_mipsel_24kc.ipk Configuring coreutils-cksum. root@Omega-99A5:/# cksum --help Usage: cksum [FILE]... or: cksum [OPTION] Print CRC checksum and byte counts of each FILE. --help display this help and exit --version output version information and exit GNU coreutils online help: <http://www.gnu.org/software/coreutils/> Report cksum translation bugs to <http://translationproject.org/team/> For complete documentation, run: info coreutils 'cksum invocation' # -------------------------------------------------------------------- root@Omega-99A5:/# ls -l /bin/busybox -rwxr-xr-x 1 root root 327736 Feb 25 17:23 /bin/busybox root@Omega-99A5:/# cksum /bin/busybox 1680533124 327736 /bin/busybox
Good luck.
-
Thanks for the reply, both of you. My apologies for not mentioning my firmware version. I managed to download cksum on its own from here : https://downloads.openwrt.org/releases/17.01.7/packages/mipsel_24kc/packages/
Package name is coreutils-cksum_8.23-3_mipsel_24kc.ipk. Installed it via opkg.