Ethtool not found with latest pkg

Looks like support for the at91/sam9x was dropped in 19.07.8.

However, it was included in 21.02.1 -

https://downloads.openwrt.org/releases/21.02.1/targets/at91/sam9x/

Wouldn't be a bad idea to upgrade.

1 Like

There would be numerous bug fixes and security patches. That is something to gain.

And the at91 target does exist on 21.02.1
https://downloads.openwrt.org/releases/21.02.1/targets/at91/

In your effort to "get right on top of things"...you apparently missed the edit I made above.

By all means, you do you...

Your edit happened well after I responded.

Hi Jim,

Thank you, no joy, I tried installing the 19.07.2 ethtool ipk but same result, see below,

root@OpenWrt:/tmp# wget https://downloads.openwrt.org/releases/19.07.2/packages/
arm_arm926ej-s/base/ethtool_5.2-1_arm_arm926ej-s.ipk --no-check-certificate
Downloading 'https://downloads.openwrt.org/releases/19.07.2/packages/arm_arm926ej-s/base/ethtool_5.2-1'
Connecting to 168.119.138.211:443
Writing to 'ethtool_5.2-1_arm_arm926ej-s.ipk'
ethtool_5.2-1_arm_ar 100% |*******************************| 34736 0:00:00 ETA
Download completed (34736 bytes)

root@OpenWrt:/tmp# opkg install ethtool_5.2-1_arm_arm926ej-s.ipk
Installing ethtool (5.2-1) to root...
Configuring ethtool.
root@OpenWrt:/tmp# cd /root
root@OpenWrt:~# ls
root@OpenWrt:~# find / -name ethtool
/usr/sbin/ethtool
root@OpenWrt:~# cd /usr/sbin
root@OpenWrt:/usr/sbin# ./ethtool
/bin/ash: ./ethtool: not found

root@OpenWrt:/usr/sbin# ethtool
/bin/ash: ethtool: not found

root@OpenWrt:/usr/sbin# cat /etc/os-release
NAME="Openwrt"
VERSION="19.07.2"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="Openwrt 19.07.2"
VERSION_ID="19.07.2"
HOME_URL="https://openwrt.org/"
BUG_URL="https://bugs.openwrt.org/"
SUPPORT_URL="https://forum.openwrt.org/"
BUILD_ID="r10947-65030d81f3"
OPENWRT_BOARD="at91/sam9x"
OPENWRT_ARCH="arm_arm926ej-s"
OPENWRT_TAINTS="no-all glibc busybox"
OPENWRT_DEVICE_MANUFACTURER="Microchip Technology Inc"
OPENWRT_DEVICE_MANUFACTURER_URL="www.microchip.com"
OPENWRT_DEVICE_PRODUCT="SAM9X60_EK_board"
OPENWRT_DEVICE_REVISION="sam9x60"
OPENWRT_RELEASE="Openwrt 19.07.2 linux4sam-2021.04"

We'll get this going yet ... :slight_smile:

Regards,
Gary

Re-read jow post above, you are still on a glibc image, it aint going to work.

5 Likes

As @jow mentioned above...

So not surprising it failed again.

A couple of ways forward...

2 Likes

If you are building your own (modified) image from sources, why don't you just add whatever packages you need to the image?

2 Likes

Once again thank you all for the support. I have completely rebuilt my ubuntu 20.04.4 LTS build VM and reloaded the development environment as per the openWRT microchip web page, https://www.linux4sam.org/bin/view/Linux4SAM/OpenWrt. I can now do a clean build of openwrt 19.07.2. After installing everything else I have installed musl libc on this ubuntu VM, using

sudo apt-get update
sudo apt-get install musl

The openwrt build takes a little while but completes successfully and I can flash an SD. SD boots fine but /etc/os-release still lists OPENWRT_TAINTS="no-all glibc busybox". Though I can install the ethtool package it is still not found on execution.

make menuconfig does not appear to provide a c build library selection or a comprehensive list of installable packages. How do I select packages to include and ensure that the build is using musl libc?

Thank you,

Gary

Looks like you are not building an official release of OpenWRT, but a modified version made by somebody else, and incompatible with the official releases.

1 Like