-
Notifications
You must be signed in to change notification settings - Fork 56
RDKCOM-5603: RDKBDEV-3455, RDKBACCL-1787 Upstreaming the utopia patches from meta-rdk-bsp-arm #312
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
Open
mahanteshchitt
wants to merge
7
commits into
develop
Choose a base branch
from
upstream_chnages
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
947586d
RDKBACCL-1787: Upstreaming the utopia patches from meta-rdk-bsp-arm
mahanteshchitt fc0e041
Merge branch 'develop' into upstream_chnages
mahanteshchitt a9d08b9
RDKBACCL-1788: Upstreaming the utopia patches from meta-rdk-bsp-arm
mahanteshchitt 5f46a85
Merge branch 'develop' into upstream_chnages
mahanteshchitt 24f4f02
addressed the copilot review comments
mahanteshchitt a577b7c
addressed the copilet review comments
mahanteshchitt e8eafad
addrressed the copilot review comments
mahanteshchitt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,7 +54,12 @@ SERVICE_NAME="lan_handler" | |
|
|
||
| POSTD_START_FILE="/tmp/.postd_started" | ||
|
|
||
| if [ "$BOX_TYPE" = "genericarm" ]; then | ||
| RPI_SPECIFIC="rpi" | ||
| else | ||
| RPI_SPECIFIC=$BOX_TYPE | ||
| fi | ||
|
|
||
| #args: router IP, subnet mask | ||
| ap_addr() { | ||
| if [ "$2" ]; then | ||
|
|
@@ -130,6 +135,19 @@ if [ "$1" = "lan-stop" ] && [ "$2" = "NULL" ] ; then | |
| fi | ||
| #echo "lan_handler called with $1 $2" > /dev/console | ||
|
|
||
| if [ "$BOX_TYPE" = "genericarm" ]; then | ||
| # Used by brlan0_check.sh to workaround LAN issue | ||
| if [ "$1" = "lan-start" ]; then | ||
| touch /tmp/utopia-lan-started | ||
| fi | ||
| if [ "$1" = "lan-stop" ]; then | ||
| rm /tmp/utopia-lan-started || : | ||
| fi | ||
| if [ "$1" = "ipv4_4-status" ] && [ "$2" = "up" ]; then | ||
| touch /tmp/utopia-ipv4-4-up | ||
| fi | ||
| fi | ||
|
|
||
| case "$1" in | ||
| ${SERVICE_NAME}-start) | ||
| service_start | ||
|
|
@@ -314,6 +332,25 @@ case "$1" in | |
| echo "Setting up brlan10 for HOME_LAN_ISOLATION" | ||
| sysevent set multinet-up 9 | ||
| fi | ||
| if [ "${BOX_TYPE}" = "genericarm" ]; then | ||
| # -------------------------------------------------------------------- | ||
| # RPi specific change begin | ||
| # -------------------------------------------------------------------- | ||
|
|
||
| PHY_BRIDGE_IFNAME=`syscfg get lan_ifname` | ||
| PHY_ETH_IFNAMES=`syscfg get lan_ethernet_physical_ifnames` | ||
| IFS=' ' read -r -a PHY_ETH_IFNAME_ARRAY <<< "$PHY_ETH_IFNAMES" | ||
| for PHY_ETH_IFNAME in "${PHY_ETH_IFNAME_ARRAY[@]}" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why are we adding interface to bridge from here ? |
||
| do | ||
| echo "LAN HANDLER : PHY_ETH_IFNAME = $PHY_ETH_IFNAME" | ||
| ifconfig $PHY_ETH_IFNAME up | ||
| brctl addif $PHY_BRIDGE_IFNAME $PHY_ETH_IFNAME | ||
| done | ||
|
mahanteshchitt marked this conversation as resolved.
mahanteshchitt marked this conversation as resolved.
|
||
|
|
||
| # -------------------------------------------------------------------- | ||
| # RPi specific change end | ||
| # -------------------------------------------------------------------- | ||
| fi | ||
|
|
||
| echo_t "LAN HANDLER : Triggering RDKB_FIREWALL_RESTART after nfqhandler" | ||
| t2CountNotify "RF_INFO_RDKB_FIREWALL_RESTART" | ||
|
|
@@ -364,7 +401,7 @@ case "$1" in | |
| echo_t "THE INSTANT=$INST" | ||
| echo_t "THE INSTANT=$INST" | ||
| #(use a simpler test than this -- but Hacky, since it assumes everything we want is not XB3!!)if [ "$BOX_TYPE" = "TCCBR" ] || [ "$BOX_TYPE" = "XB6" -a "$MANUFACTURE" = "Technicolor" ] || [ "$BOX_TYPE" = "XB7" -a "$MANUFACTURE" = "Technicolor" ] ; then | ||
| if ( [ "$BOX_TYPE" != "XB3" ] && ( [ "$MANUFACTURE" = "Technicolor" ] || [ "$MANUFACTURE" = "Sercomm" ] ) ) || [ "$BOX_TYPE" = "rpi" ] || [ "$BOX_TYPE" = "bpi" ]; then | ||
| if ( [ "$BOX_TYPE" != "XB3" ] && ( [ "$MANUFACTURE" = "Technicolor" ] || [ "$MANUFACTURE" = "Sercomm" ] ) ) || [ "$BOX_TYPE" = "rpi" ] || [ "$BOX_TYPE" = "bpi" ] || [ "$BOX_TYPE" = "genericarm" ]; then | ||
| COUNTER=1 | ||
| while [ $COUNTER -lt 10 ]; do | ||
| echo_t "RDKB_SYSTEM_BOOT_UP_LOG : INST returned null , retrying $COUNTER" | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need this ?