Installing omada controller on a raspberry pi 2b 32 bit
Hello,
I saw some instruction running the omada controller on a pi with 32 bit os
Does anybody know if this still works and does it support the latest firmware?
I rather by a second switch then a controller if unneeded.
below the youtube link and the textfile.
I tried the other methods yesterday but it started once and then it crashed in docker.
https://youtu.be/Xx6ltd1sSR4
Download this text file in the description below 1. Install Raspberry Pi OS Raspberry Pi Imager Enable ssh 2. Download and Extract wget https://static.tp-link.com/2020/202004/20200420/Omada_Controller_v3.2.10_linux_x64.tar.gz tar zxvf Omada_Controller_v3.2.10_linux_x64.tar.gz 3. Install MongoDB apt-get install mongodb rm Omada_Controller_v3.2.10_linux_x64/bin/mongod ln -s /usr/bin/mongod Omada_Controller_v3.2.10_linux_x64/bin/mongod 4. Installation apt-get update apt-get install jsvc apt install net-tools apt-get install curl apt-get install openjdk-8-jdk sudo update-alternatives --config java sed -i -e 's/JRE_HOME="${OMADA_HOME}\/jre"/JRE_HOME="\/usr\/lib\/jvm\/default-java"/g' Omada_Controller_v3.2.10_linux_x64/bin/control.sh sed -i -e 's/JAVA_OPTS="-server/JAVA_OPTS="-client/g' Omada_Controller_v3.2.10_linux_x64/bin/control.sh sed -i -e 's/${PORTT_TOOL} 127.0.0.1 ${HTTP_PORT} 500/netstat -plnt | grep :::${HTTP_PORT}/g' Omada_Controller_v3.2.10_linux_x64/bin/control.sh cd /usr/lib/jvm ls -hl ln -s java-8-openjdk-armhf default-java cd Omada_Controller_v3.2.10_linux_x64 bash install.sh 5. Running http://ip_address:8088
- Copy Link
- Subscribe
- Bookmark
- Report Inappropriate Content
There are some system differences because of the S905 SOC that is used as the processor. I'd start with the images on Libre and branch out from there.
As for the heatsink...this seems like a no brainer: www_ebay_nl/itm/400985411754, why even take a chance for the price of a coffee?
- Copy Link
- Report Inappropriate Content
- Copy Link
- Report Inappropriate Content
I finally got around to building up a 'fake' OC200 for C$75 (US$55) and I get free PiHole and soon Let's Encrypt and (working) Custom DDNS also for free :).
The OC200 retails for C$110 on amazon.
Bill of Materials (prices incl shipping but not taxes):
- Libre LePotato 2G S905X (Rasp3B form factor): $50 (amazon)
- 32GB Sandisk Ultra SD Card: $10 (amazon)
- All aluminum Case: $13 (aliexpress*)
- Heatsink: $2 (part of generic $10 amazon kit of 5 sets)
- Old Phone charger (5V 1.5A): free
*
OS: Armbian 23 CLI (download from Libre site), flashed to card with USB Image Writer (Win10), but dd on OSX/Linux is fine too.
How do they compare (Potato/OC200)?
RAM (2G/1G)
Flash (32G*/4G)
CPU (1.5Ghz/1Ghz)
Ethernet (1 x 100M/ 2 x 100M)
POE (No/Yes)
USB (4/1)
Size (34mmx63mmx96mm / 25mmx98mmx100mm)
*replaceable which is important since FLASH memory stops working after a finite number of writes
Setup was pretty simple. Attached ethernet cable, and power cable. Wait for power up (~6min with 32G card and filesystem expansion). Determine IP assigned (hostname=lepotato). SSH to device (u=root, p=1234). Change password.
Install Software (I went for quick, dirty and simple to upgrade). Use 'armbian-config' to install the prebuilt Docker package after the standard apt update & apt upgrade.
Once docker is installed, I used it to install the Omada 5.9.31 LInux controller...and for fun and giggles, I also installed Pi.hole immediately afterwards.
Once docker is up and running, I used mbentley's Omada image for 5.9 (which I've been using for over a year on my NAS) and I used HOST networking because that's how my other is setup.
Here's the docker run script (see his website if you want the -p port settings)
docker run -d \
--name Omada-5.9 \
--restart unless-stopped \
--ulimit nofile=4096:8192 \
--net host \
-e MANAGE_HTTP_PORT=8088 \
-e MANAGE_HTTPS_PORT=8043 \
-e PGID="508" \
-e PORTAL_HTTP_PORT=8088 \
-e PORTAL_HTTPS_PORT=8843 \
-e PORT_ADOPT_V1=29812 \
-e PORT_APP_DISCOVERY=27001 \
-e PORT_DISCOVERY=29810 \
-e PORT_MANAGER_V1=29811 \
-e PORT_MANAGER_V2=29814 \
-e PORT_UPGRADE_V1=29813 \
-e PUID="508" \
-e SHOW_SERVER_LOGS=true \
-e SHOW_MONGODB_LOGS=false \
-e SSL_CERT_NAME="tls.crt" \
-e SSL_KEY_NAME="tls.key" \
-e TZ=Etc/UTC \
-v omada-data:/opt/tplink/EAPController/data \
-v omada-logs:/opt/tplink/EAPController/logs \
mbentley/omada-controller:5.9
and then I installed docker-compose (apt install docker-compose) to then install a Pi.hole container.
Here's the docker-compose.yaml file I used (x.x.x.x is the eth0 IP address) and I changed the http management port to 88 from 80:
version: "3"
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- "x.x.x.x:53:53/tcp"
- "x.x.x.x:53:53/udp"
- "67:67/udp"
- "88:80/tcp"
environment:
TZ: 'America/Chicago'
WEBPASSWORD: 'SecretPassword'
volumes:
- './etc-pihole:/etc/pihole'
- './etc-dnsmasq.d:/etc/dnsmasq.d'
cap_add:
- NET_ADMIN
restart: unless-stopped
They co-exist quite nicely together
and from the base OS
- Copy Link
- Report Inappropriate Content
@d0ugmac1 wow thats a nice how to.
As soon as it arrives I can put pi hole and omada on it thats cool.
- Copy Link
- Report Inappropriate Content
@d0ugmac1 Ok I get stuck on.
any ideas?
05-04-2023 20:59:34.270 INFO [check-update-work-group-0] [] c.t.s.o.m.c.f(): Checking last firmwares of managed devices succeed.
05-04-2023 20:59:34.824 WARN [check-update-work-group-0] [] c.t.s.o.m.d.d.m.u.c.a(): can't get admins list in 3a8685af106bec5a58354afadf06b876
05-04-2023 20:59:46.054 WARN [monitor-schedule-topology-pool-0] [] c.t.s.o.m.t.p.s.t.TopologyTask(): findSiteList fail, omadacId=3a8685af106bec5a58354afadf06b876
05-04-2023 20:59:46.080 INFO [auth-record-traffic-task-pool-0] [] c.t.s.o.c.c.d.m.s.l(): Omadac 3a8685af106bec5a58354afadf06b876 has no site.
05-04-2023 21:00:16.085 INFO [auth-record-traffic-task-pool-0] [] c.t.s.o.c.c.d.m.s.l(): Omadac 3a8685af106bec5a58354afadf06b876 has no site.
- Copy Link
- Report Inappropriate Content
@Joepke Did you create a test site? Are you going straight to migrating an existing one?
https://community.tp-link.com/en/business/forum/topic/607854
- Copy Link
- Report Inappropriate Content
@d0ugmac1 tbh it is giving errors before it works.
But maybe I am inpatient..
Can i just copy paste and use that docker script?
It looks like it gets stuck.
I tried installing the os apt update apt upgrade
Install docker.
Use the docker script but it fails like this.
- Copy Link
- Report Inappropriate Content
@Joepke Let's start with some basics, SD card size, RAM size, running containers:
the logs you are seeing are pretty normal until you put your Controller into service.
I haven't configured mine yet to take over responsibility for a site yet, and here's what I get with a 'docker logs Omada-5.9'
those are just INFO and WARN notifications, nothing terminal.
- Copy Link
- Report Inappropriate Content
I just backed up my existing 5.9.31 linux controller from my NAS and imported the file during the setup of the new Libre based controller. Config and 7-days data imported successfully, controller registered with the cloud, existing devices and data show up when I login. It does work :)
- Copy Link
- Report Inappropriate Content
You did have your heatsink installed right? My CPU hit 55'C during initial install and 45'C during the import of the config file, normally it idles around 41-42'C with not much going on.
- Copy Link
- Report Inappropriate Content
Information
Helpful: 0
Views: 3101
Replies: 32
Voters 0
No one has voted for it yet.