Search code examples
linuxembedded-linuxgnu-coreutils

Embedded Linux with ptxdist, coreutils breaks


My Intention was to update the "df" command included in the coreutils package because i needed it to also show inodes with >df -i. This option is not available on the embedded Version right now.

What i did: I followed the Quickstart Guide (4.2 -> http://www.pengutronix.de/software/ptxdist/appnotes/OSELAS.BSP-Pengutronix-Generic-arm-Quickstart.pdf). I used the latest version of coreutils from the GNU website. Before i did >ptxdist targetinstall coreutils , I wrote this to the coreutils.make file in the rule folder:

@$(call install_copy, foo, 0, 0, 0755, $(COREUTILS_DIR)/src/df, /usr/bin/df)

Then I used the created embedded Linux on my device. At first sight it seemed like it worked out well. I was able to use the new option >df -i , but after some time there where ssh connection errors, it asked for username and password where it shouldnt, i wasnt able to access internal falsh and so on. It seems like this package broke something else within the Linux Version.

What could cause these problems? Have i done sth wrong using the coreutils package?


Solution

  • The structure of ptxdist/oselas is that if you have a rule in your project directory ( project-name/rules/coreutils.make) it will overwrite the default rule that comes with ptxdist ( /usr/local/lib/ptxdist*/rules/coreutils.make ).

    The default rule contains build and install procedures for additional applications, df included. If you overwrite it with a rule that only builds and install df all the other coreutil applications won't be built and installed so your system will lack them.