What's new

Having troubles installing Entware on R7800

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

minhvn

New Around Here
First of all, I'm not an English native speaker so please bear with my grammar.

I'm in the process of installing Entware on my R7800 (running Voxel 1.0.2.64SF). I followed the tutorials but for some reason the installation still failed.

Here is what I did:

- Plugged in a 8GB USB Stick alongside my HDD
- Format with ext4:
mkfs.ext4 -L optware -O ^metadata_csum /dev/sda1
- Copy the entware installation file from the HDD to the USB Stick
root@R7800:/tmp/mnt/sdb1$ cp entware-cortex-a15-3x-initial-generic.tar.gz ../sda1
- Untar
root@R7800:/tmp/mnt/sda1$ tar -xzf entware-cortex-a15-3x-initial-generic.tar.gz
- Check the root directory of sda1:
root@R7800:/tmp/mnt/sda1$ ls
autorun
entware
entware-cortex-a15-3x-initial-generic.tar.gz
- Finger crossed, let's reboot.
- Check if entware is installed

root@R7800:/$ ls -l /opt/*

-rw-r--r-- 1 root root 855 Jan 1 1970 /opt/filelist

-rw-r--r-- 1 root root 45 Jan 1 1970 /opt/version


/opt/leafp2p:

-rwxr-xr-x 1 root root 724936 Jan 1 1970 leafp2p


/opt/rcagent:

drwxr-xr-x 2 root root 232 Jan 1 1970 cgi

-rwxr-xr-x 1 root root 355008 Jan 1 1970 cgi_processor

-rwxr-xr-x 1 root root 38060 Jan 1 1970 downloader

-rwxr-xr-x 1 root root 11624 Jan 1 1970 nas_service

-rwxr-xr-x 1 root root 209644 Jan 1 1970 rcagentd

-rwxr-xr-x 1 root root 109 Jan 1 1970 run_server.sh

drwxr-xr-x 2 root root 576 Jan 1 1970 scripts


/opt/remote:

-rwxr-xr-x 1 root root 88032 Jan 1 1970 remote

-rwxr-xr-x 1 root root 21108 Jan 1 1970 run_remote


/opt/tmp:

drwxr-xr-x 2 root root 736 Apr 5 00:11 kamoj


/opt/xagent:

drwxr-xr-x 2 root root 240 Jan 1 1970 certs

-rwxr-xr-x 1 root root 39708 Jan 1 1970 genie_handler

-rwxr-xr-x 1 root root 333 Jan 1 1970 run-xagent.sh

-rwxr-xr-x 1 root root 80440 Jan 1 1970 xagent

-rwxr-xr-x 1 root root 15764 Jan 1 1970 xagent_control

So... no sign of entware directories.

- Check the content of the usb stick again:

root@R7800:/$ cd /tmp/mnt/sda1
root@R7800:/tmp/mnt/sda1$ ls
lost+found


Seems like all the entware files are missing.

So... any solutions? I have to admit I'm a total noob on this so please let me know if I did something wrong. Your help is greatly apperciated.
 
You are using two USB disks. So your "ls" output:

root@R7800:/tmp/mnt/sda1$ ls
autorun
entware
entware-cortex-a15-3x-initial-generic.tar.gz


and there is no lost+found directory, right? So I guess it is something like NTFS or FAT.

Now:

root@R7800:/$ cd /tmp/mnt/sda1
root@R7800:/tmp/mnt/sda1$ ls
lost+found

So it is ext4 disk. Different disks.

I always suggest to use "-L optware" (volume label for your target partition and disk) to make sure that you do not have such a mix. I.e. "ls /mnt/optware" should point you proper disk.

Voxel.
 
I.e. having two disks you cannot predict what will be mounted as /mnt/sda1 and what as /mnt/sdb1. But /mnt/optware (label) could help.

Voxel.
 
Okay I figured out why my installation failed... and it's not related to the paths, they're all correct.

All I did is unplug the HDD before rebooting the router while leaving the USB stick intact... and it's all working now!

One last question though... will entware survive after a firmware upgrade... say the latest .65?

And thank you @Voxel for your amazing firmware and support!
 
One last question though... will entware survive after a firmware upgrade... say the latest .65?
Flashing new firmware does not touch data on your external disks. So Entware installation should be kept.

Voxel.
 
In general you should set these variables to get many Entware programs working ok:
Code:
export PATH=/bin:/sbin:/usr/bin:/usr/sbin:/opt/bin:/opt/sbin
export TERMINFO=/opt/share/terminfo
export TERM=vt100
You can add these lines to something executed at boot/start, e.g. one of these files:
/etc/profile
/etc/rc.local

PS
This will NOT survive a firmware upgrade
 
Last edited:

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top