Installing omada controller on a raspberry pi 2b 32 bit

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.

Installing omada controller on a raspberry pi 2b 32 bit

This thread has been locked for further replies. You can start a new thread to share your ideas or ask questions.
32 Reply
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-04-21 20:39:50

  @Joepke 

 

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?

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#12
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-04-22 05:07:16

  @d0ugmac1 thnx for the help. Ordered a heatsink and case on Ali.

 

 

  0  
  0  
#13
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-03 18:59:01 - last edited 2023-05-08 19:28:42

  @Joepke 

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

 

 

 

 

 

 

 

 

 

 

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#14
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-03 21:42:02

  @d0ugmac1 wow thats a nice how to.

As soon as it arrives I can put pi hole and omada on it thats cool.

 

  0  
  0  
#15
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-04 21:13:11

  @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.

  0  
  0  
#16
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-04 23:02:57 - last edited 2023-05-04 23:07:34

  @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

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#17
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-05 08:06:53

  @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.

 

 

  0  
  0  
#18
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-05 11:42:06 - last edited 2023-05-05 11:48:08

  @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.

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#19
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-05 12:04:43

  @Joepke 

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 :)

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#20
Options
Re:Installing omada controller on a raspberry pi 2b 32 bit
2023-05-05 12:08:39 - last edited 2023-05-08 19:44:06

  @Joepke 

 

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.

<< Paying it forward, one juicy problem at a time... >>
  0  
  0  
#21
Options