From this link we can download the OpenWRT firmware. Then we access the pineapple via SSH:
1
2
3
4
# We extract all installed packages and save the file:opkg list-installed > installedPkgs
# With the firmware already uploaded to the pineapple, we install it with the command:sysupgrade -n -p -v openwrt-23.05.0-ramips-mt76x8-hak5_wifi-pineapple-mk7-squashfs-sysupgrade.bin
We should wait for the firmware to finish installing; the LEDs will stop flashing and turn green.
Configuration
Once the new firmware is installed, access is through the IP: http://192.168.1.1. From the Network>Wireless section, you will only see one interface that we will use to connect the pineapple to the internet via Wi-Fi and download all the necessary packages as shown in the images:
We update the package list from the System>Software section.
Modules
We connect via SSH and install the following packages:
It is possible that some packages do not install or that they are already present, this is not a problem and they can be ignored. Finally, we restart the pineapple (very important) and then in the Network>Wireless section, we can see all the interfaces that the pineapple has:
Changing Root Partition
We must identify a 1.84 Gb partition, in this case, it is /dev/mmcblk0 as shown in the image. For this, we can use the fdisk -l command:
Now we must execute the following commands which were extracted from the OpenWRT documentation and are used to utilize 2GB of internal memory. We only have to run them from a script; there is no need to change anything:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
DEVICE="/dev/mmcblk0p1"# Replace with the partition found with fdisk -lmkfs.ext4 -L extroot ${DEVICE}eval$(block info ${DEVICE}| grep -o -e 'UUID="\S*"')eval$(block info | grep -o -e 'MOUNT="\S*/overlay"')uci -q delete fstab.extroot
uci set fstab.extroot="mount"uci set fstab.extroot.uuid="${UUID}"uci set fstab.extroot.target="${MOUNT}"uci commit fstab
ORIG="$(block info | sed -n -e '/MOUNT="\S*\/overlay"/s/:\s.*$//p')"uci -q delete fstab.rwm
uci set fstab.rwm="mount"uci set fstab.rwm.device="${ORIG}"uci set fstab.rwm.target="/rwm"uci commit fstab
service fstab boot
Finally, we restart the pineapple. In the System>Software section, we will be able to see that we have more storage space.
Adding a Swap File
To improve performance, we can create a file that will be used as a 250MB swap:
1
2
3
4
5
6
7
8
DIR="$(uci -q get fstab.extroot.target"
dd if=/dev/zero of=${DIR}/swap bs=1M count=250
mkswap ${DIR}/swap
uci -q delete fstab.swap
uci set fstab.swap="swap"
uci set fstab.swap.device="${DIR}/swap"
uci commit fstab
service fstab boot
The following list is the packages that come in the original firmware, they can be installed together in conjunction, some may already exist or have more recent versions in the OpenWRT firmware: