Skip to content

Conversation

@sowmiyachelliah
Copy link

Reason for change: XER10-1174 changes broke Eco mode due to kernel nvram setting
didn't get preserved. From other BRCM wifi projects, rdkb never corrupted
kernel_nvram.setting file and assumed factory process may have intruduce invalid
kernel nvram setting. This changes is to remove /data/.kernel_nvram.setting on first
boot if there is no other known files created by RDKB.

Test Procedure:
Please be careful that you are running latest build or xer10 will end up in boot loop.
1) create corrupted /data/.kernel_nvram.setting; "rm -rf /data/.kernel_nvram.setting; echo "123" > /data/.kernel_nvram.setting; sync; reboot -f"
2) check if xer10 comes up correctly.
3) run "nvram kset Hellow=World; nvram kcommit.
4) Reboot, check "nvram kget Hellow" and it should return "World".
5) perform Factory Default, and run step 4 but make sure nothing return this time

Change-Id: I488d5f20393086f4b040bc873e0bc26de855f3a8 Risks: Low
Signed-off-by: [email protected]
(cherry picked from commit 59531e09eec6b4a40b16f9bfc9a5d5bee613c129)

Reason for change: XER10-1174 changes broke Eco mode due to kernel nvram setting
 didn't get preserved. From other BRCM wifi projects, rdkb never corrupted
 kernel_nvram.setting file and assumed factory process may have intruduce invalid
 kernel nvram setting.  This changes is to remove /data/.kernel_nvram.setting on first
 boot if there is no other known files created by RDKB.

Test Procedure:
Please be careful that you are running latest build or xer10 will end up in boot loop.
    1) create corrupted /data/.kernel_nvram.setting; "rm -rf /data/.kernel_nvram.setting; echo "123" > /data/.kernel_nvram.setting; sync; reboot -f"
    2) check if xer10 comes up correctly.
    3) run "nvram kset Hellow=World; nvram kcommit.
    4) Reboot, check "nvram kget Hellow" and it should return "World".
    5) perform Factory Default, and run step 4 but make sure nothing return this time

Change-Id: I488d5f20393086f4b040bc873e0bc26de855f3a8
Risks: Low
Signed-off-by: [email protected]
(cherry picked from commit 59531e09eec6b4a40b16f9bfc9a5d5bee613c129)
@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@sowmiyachelliah sowmiyachelliah linked an issue Sep 29, 2025 that may be closed by this pull request
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.

Task:Cherry pick gerrit change 926797

4 participants