Project

General

Profile

Update STB firmware » History » Version 1

Alex Seferidis, 07/21/2025 10:04 AM

1 1 Alex Seferidis
# Update STB firmware
2
3
The device has 4 partitions
4
5
- /dev/mmcblk0p1 (Uboot)
6
- /dev/mmcblk0p2 (Kernel)
7
- /dev/mmcblk0p3 (Rootfs)
8
- /dev/mmcblk0p4 (Data partition /data)
9
10
On device:
11
12
13
On data partition there is a folder /data/firmware (web pages, DS application, IPTV application and executables lemcoplayer, externalplayer)
14
When we do firmware update on the device, this folder is overwritten with new files.
15
If we need to change or copy new library files to roots then we copy these files to /data/firmware/htdocs/python and init_system.py script copy these files to rootfs
16
17
To create new firmware:
18
19
- we change source code files (web files, QT application, External player, init_system script)
20
- change the file /data/firmware/htdocs/version.txt
21
- copy new files to Ubuntu20desk virtual machine
22
- execute from /home/STB folder: 
23
```
24
tar -cvf application.img firmware/
25
```
26
- copy application.img to https://update.lemco.tv (inside STB folder)
27
- if there is new kernel, copy boot.img
28
- change versions.txt on this location (update.lemco.tv, stb folder)
29
- Now the device can be updated (open web page, and go to firmware menu)
30
- init_system script will download the new file and extract it to /data/firmware