7zz Package Install Failed

Hi all –

I tried to download p7zip-full via CLI with the command

opkg install 7zip-full

however, I get the following error message:

Unknown package '7zip-full'.
Collected errors:
* opkg_install_cmd: Cannot install package 7zip-full

I also tried to use the UI via System > Software > Download and Install Package by inserting this URL: https://www.7-zip.org/a/7z2301-linux-arm64.tar.xz however the error message is this:

The *opkg install* command failed with code 255

Any ideas how I could resolve this? Many thanks!

I don't see 7zip-full as a package in the repo when I search for it.
You might try: bsdtar

But in the meantime, let's see the complete output of the following:

ubus call system board
opkg update
opkg install 7zip-full

This 7-zip?

The output is:

{
	"kernel": "5.15.137",
	"hostname": "OpenWrt",
	"system": "ARMv8 Processor rev 3",
	"model": "Raspberry Pi 4 Model B Rev 1.5",
	"board_name": "raspberrypi,4-model-b",
	"rootfs_type": "ext4",
	"release": {
		"distribution": "OpenWrt",
		"version": "23.05.2",
		"revision": "r23630-842932a63d",
		"target": "bcm27xx/bcm2711",
		"description": "OpenWrt 23.05.2 r23630-842932a63d"
	}
}

Output of opkg install 7zip-full >>

Collected errors:
 * opkg_install_cmd: Cannot install package 7zip-full.

Many thanks for your help!

Yes. Need to download and unzip the following file:
https://files.waveshare.com/upload/8/89/SIM8200_for_RPI.7z

I've got a pi4 here as well... and as I said above, 7zip-full doesn't appear in the repo.
But...

I do not see that working.
What are you trying to unzip in OpenWrt?

@psherman, bsdtar worked. Thanks for your help!

Great! Glad I could help.

1 Like

I also have bumped into another issue: it seems sudo or make don't work in OpenWRT SSH... Is this a very different environment to Raspberry Pi? Basically, I'm following this tutorial, with every line erroring: https://www.waveshare.com/wiki/SIM8262E-M2_5G_HAT

OpenWrt is (by default) a single-user environment -- everything is root. Therefore, there is no sudo.

make is part of the compiler/toolchain, and is not normally part of OpenWrt. (I believe it can be installed, but that's another thing entirely).

OpenWrt is primarily a router OS... it is not a general purpose operating system like RapsberryPi OS or Ubuntu or whatever...

What is your goal here?

I don't see any make operations or the like for the OpenWrt part of the tutorial... but it also seems that they have a customized version of OpenWrt that is specifically setup for their device.

Sudo is shorthand for superuser.

When you ssh into OpenWrt you are logged in as root user and are required to enter a password.
It is , practically, the same thing

If you are using a monitor, OpenWrt, accurately, knows you are physically attached to the Pi and just logs the terminal as root.

I am trying to run the install.sh to install the drivers for the SIMCOM modem. When I cat it, it uses sudo and make:

# get dir
linuxheaders="linux-headers-"
uname_r=$(uname -r)
headerdir="/usr/src/"$linuxheaders$(uname -r)
echo $linuxheaders$(uname -r)

# get raspberrypi kernel headers
if [ ! -d $headerdir ]; then
  sudo apt-get install raspberrypi-kernel-headers
else
  echo "raspberrypi kernel headers dir in"$headerdir
fi
  
cd option
make
mv /lib/modules/$(uname -r)/kernel/drivers/usb/serial/option.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/option_bk.ko
cp option.ko /lib/modules/$(uname -r)/kernel/drivers/usb/serial/
cd ..

cd qmi_wwan_simcom/
make
cp qmi_wwan_simcom.ko /lib/modules/$(uname -r)/kernel/drivers/net/usb
cd ..

depmod
modprobe option
modprobe qmi_wwan_simcom
dmesg | grep "ttyUSB"
dmesg | grep "qmi_wwan_simcom"

# DNS file
mkdir -p /usr/share/udhcpc
sudo chmod 777 default.script
sudo cp default.script /usr/share/udhcpc

When I downloaded their 'recommended' version of OpenWRT, it errors...

I think you'll have to ask them for help... it looks to me like they are expecting a 'big distro' to build stuff, or that they want you to write a pre-made OpenWrt image to a card (form another computer) and then use that.

Regardless, these are most likely all out-of-scope for these forums.

If you want to try to get the build system running from within OpenWrt, take a look at this (it probably won't solve your issues, but it does explain the process to get make and other build-related things working):
https://openwrt.org/docs/guide-developer/toolchain/building_openwrt_on_openwrt

1 Like

And even that would be cross-compiling and not at all useful to your actual intention (as doing the cross-compiling on x86_64 would be much faster). There is no apt, there are no installable kernel headers, OpenWrt isn't designed to be self-hosting, it's (predominantly) a router, not a development workstation.

2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.