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

rbextract: support devices with plain RLE caldata #2731

Closed
wants to merge 1 commit into from

Conversation

rogerpueyo
Copy link
Contributor

Very old MikroTik devices have the radio calibration data encoded in RLE and directly stored in the art (i.e., hard_config) partition, without LZO compression nor the preceding ERD magic bytes (which newer devices carry).

This commit adds a fallback for these devices: when no LZO or ERD magic bytes are read, assume raw RLE-encoded calibration data will follow.

Tested on the ath79 target with a MikroTik SXT 5nD r2 (SXT Lite5), which has the calibration data on the SPI NOR. The device is not yet supported though, as the NAND flash is not working yet.

Signed-off-by: Roger Pueyo Centelles roger.pueyo@guifi.net

@adschm
Copy link
Member

adschm commented Jan 31, 2020

@xback

@adschm
Copy link
Member

adschm commented Jan 31, 2020

Consider adding like "not merged yet" or similar to your Tested-by line, so it becomes obvious to the reader that you tested with a locally supported device.

@adschm adschm added the core packages pull request/issue for core (in-tree) packages label Feb 1, 2020
Old MikroTik devices have the RLE-encoded radio calibration data
directly stored in the art (hard_config) partition, without LZO
compression nor any preceding ERD magic bytes. This commit adds
a fallback for these devices.

Tested on the ath79 target with a MikroTik SXT 5nD r2 (SXT Lite5),
only locally --not yet merged upstream--.

Signed-off-by: Roger Pueyo Centelles <roger.pueyo@guifi.net>
@xback
Copy link
Contributor

xback commented Feb 25, 2020

lgtm

@xback
Copy link
Contributor

xback commented Feb 26, 2020

Merged.
Thanks!

@xback xback closed this Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core packages pull request/issue for core (in-tree) packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants