Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build_falter: implement reducing packagelists for 8MiB-Devices #100

Merged
merged 1 commit into from
Mar 27, 2022

Conversation

Akira25
Copy link
Member

@Akira25 Akira25 commented Mar 27, 2022

Devices with 8MiB Flash ran out of memory when storing changes
on the configuration. This commit tackles that problem by
automatically removing some not crucial packages, if we detect
a device with 8MiB flash.

This is achieved by loading the OpenWrt Table of Hardware into
a sqlite-db and querying for the flash amount. In the future this
can also be used for detecting 32MiB-RAM devices.

The list of packages that should be removed is defined in a variable
at the tob of the script.

In addition there is a list of routers that should get less packages
even if they have technically more than 8MiB flash. This is useful
for example for UniFi-AC-Mesh, which has two 8MiB-Partitions on a
16MiB-Flash.

Signed-off-by: Martin Hübner [email protected]

Fixes #98. Dates back on a Idea of #34

Copy link
Contributor

@nicolasberens nicolasberens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Devices with 8MiB Flash ran out of memory when storing changes
on the configuration. This commit tackles that problem by
automatically removing some not crucial packages, if we detect
a device with 8MiB flash.

This is achieved by loading the OpenWrt Table of Hardware into
a sqlite-db and querying for the flash amount. In the future this
can also be used for detecting 32MiB-RAM devices.

The list of packages that should be removed is defined in a variable
at the tob of the script.

In addition there is a list of routers that should get less packages
even if they have technically more than 8MiB flash. This is useful
for example for UniFi-AC-Mesh, which has two 8MiB-Partitions on a
16MiB-Flash.

Signed-off-by: Martin Hübner <[email protected]>
@Akira25 Akira25 force-pushed the feature/reduce_8MiB_image_size branch from ff65d2c to 8b6169b Compare March 27, 2022 20:24
@nicolasberens nicolasberens merged commit 73a1b63 into master Mar 27, 2022
Akira25 added a commit that referenced this pull request Mar 27, 2022
Since the change in #100 sqlite3 is a dependency of build_falter.

Signed-off-by: Martin Hübner <[email protected]>
@pktpls pktpls deleted the feature/reduce_8MiB_image_size branch October 4, 2022 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

build 8MiB-Devices with a reduced packagelist
2 participants