Skip to content

Commit 8fa4e83

Browse files
authored
Merge branch 'develop' into xdns
2 parents 09ab71b + 0b13d01 commit 8fa4e83

File tree

5 files changed

+103
-5
lines changed

5 files changed

+103
-5
lines changed

.github/workflows/cla.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
11
name: "CLA"
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
actions: write
7+
statuses: write
8+
29
on:
310
issue_comment:
411
types: [created]
512
pull_request_target:
6-
types: [opened,closed,synchronize]
13+
types: [opened, closed, synchronize]
714

815
jobs:
916
CLA-Lite:
1017
name: "Signature"
11-
uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@main
18+
uses: rdkcentral/cmf-actions/.github/workflows/cla.yml@v1
1219
secrets:
13-
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}
20+
PERSONAL_ACCESS_TOKEN: ${{ secrets.CLA_ASSISTANT }}

meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/ccsp-psm/bbhm_def_cfg_banana.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1278,5 +1278,7 @@
12781278
<Record name="dmsb.wanmanager.if.2.VirtualInterface.1.VlanCount" type="astr">0</Record>
12791279
<Record name="dmsb.wanmanager.if.2.VirtualInterface.1.MarkingCount" type="astr">0</Record>
12801280
<!-- Webconfig.service auto start record -->
1281-
<Record name="eRT.com.cisco.spvtg.ccsp.webpa.WebConfigRfcEnable" type="astr">true</Record>
1281+
<Record name="eRT.com.cisco.spvtg.ccsp.webpa.WebConfigRfcEnable" type="astr">true</Record>
1282+
<!-- Default WPA3 transition start record -->
1283+
<Record name="Device.DeviceInfo.X_RDKCENTRAL-COM_RFC.Feature.WPA3_Personal_Transition.Enable" type="astr">1</Record>
12821284
</Provision>
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
Index: ethsw/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c
2+
===================================================================
3+
--- ethsw.orig/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c
4+
+++ ethsw/rdkb_hal/src/ethsw/ccsp_hal_ethsw.c
5+
@@ -179,9 +179,13 @@ CcspHalEthSwGetPortStatus
6+
#ifdef THREE_GMACS_SUPPORT
7+
if(PortId == 5){
8+
sprintf(ifName,"%s", "eth3");
9+
- }else
10+
+ }
11+
#endif
12+
+ else if (PortId == 1)
13+
{
14+
+ sprintf(ifName,"%s", "erouter0");
15+
+ }
16+
+ else{
17+
sprintf(ifName, "lan%d", (PortId-1));
18+
}
19+
sprintf(path, "/sys/class/net/%s/carrier", ifName);
20+
@@ -337,8 +341,13 @@ CcspHalEthSwGetPortCfg
21+
#ifdef THREE_GMACS_SUPPORT
22+
if(PortId == 5){
23+
sprintf(ifName,"%s", "eth3");
24+
- }else
25+
+ }
26+
#endif
27+
+ else if (PortId == 1)
28+
+ {
29+
+ sprintf(ifName,"%s", "erouter0");
30+
+ }
31+
+ else
32+
{
33+
sprintf(ifName, "lan%d", (PortId-1));
34+
}
35+
@@ -469,7 +478,7 @@ CcspHalEthSwSetPortCfg
36+
{
37+
CcspHalEthSwTrace(("set port %d LinkRate to %d, DuplexMode to %d", PortId, LinkRate, DuplexMode));
38+
39+
- if(PortId < 1 || PortId > MAX_LAN_PORT)
40+
+ if(PortId <= 1 || PortId > MAX_LAN_PORT)
41+
return RETURN_ERR;
42+
43+
char cmd[128] = {0};
44+
@@ -579,7 +588,10 @@ CcspHalEthSwGetPortAdminStatus
45+
}
46+
47+
memset(&ifr, 0, sizeof(ifr));
48+
- snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "%s", "eth1");
49+
+ if (PortId == 1)
50+
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name), "erouter0");
51+
+ else
52+
+ snprintf(ifr.ifr_name, sizeof(ifr.ifr_name),"lan",(PortId-1));
53+
54+
if (ioctl(sockfd, SIOCGIFFLAGS, &ifr) < 0)
55+
{
56+
@@ -594,8 +606,8 @@ CcspHalEthSwGetPortAdminStatus
57+
else
58+
*pAdminStatus = CCSP_HAL_ETHSW_AdminDown;
59+
60+
- if(admin_status)
61+
- *pAdminStatus = CCSP_HAL_ETHSW_AdminDown;
62+
+ /*if(admin_status)
63+
+ *pAdminStatus = CCSP_HAL_ETHSW_AdminDown; */
64+
65+
return RETURN_OK;
66+
}
67+
@@ -629,14 +641,14 @@ CcspHalEthSwSetPortAdminStatus
68+
CcspHalEthSwTrace(("set port %d AdminStatus to %d", PortId, AdminStatus));
69+
if(AdminStatus < CCSP_HAL_ETHSW_AdminUp || AdminStatus > CCSP_HAL_ETHSW_AdminTest)
70+
return RETURN_ERR;
71+
- if(PortId < 1 || PortId > MAX_LAN_PORT)
72+
+ if(PortId <= 1 || PortId > MAX_LAN_PORT)
73+
return RETURN_ERR;
74+
75+
char cmd1[32] = {0};
76+
char cmd2[32] = {0};
77+
78+
- sprintf(cmd1,"ip link set lan%d up",PortId);
79+
- sprintf(cmd2,"ip link set lan%d down",PortId);
80+
+ sprintf(cmd1,"ip link set lan%d up",(PortId-1));
81+
+ sprintf(cmd2,"ip link set lan%d down",(PortId-1));
82+
83+
switch (PortId)
84+
{

meta-rdk-mtk-bpir4/recipes-ccsp/hal/hal-ethsw-generic_git.bbappend

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ FILESEXTRAPATHS_prepend := "${THISDIR}/files:"
22
CFLAGS_append += " -D_PLATFORM_BANANAPI_R4_ "
33
SRC_URI_append += "file://Add_interface_Changes.patch"
44
SRC_URI_append += "file://gw_lan_refresh.patch"
5+
SRC_URI_append += "file://Ethernet-Lan-changes.patch"

setup-environment-refboard-rdkb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@ else # SD card image is default
118118
else
119119
echo "**********************************************************************"
120120
echo "> CAUTION: YOU ARE TRYING TO BUILD SD CARD IMAGE WITHOUT BL2 AND FIP BINARIES."
121-
echo "> Please download the binaries from https://artifactory.rdkcentral.com/artifactory/RDKB-Platform/BPI-R4/uboot-2024.04/bpi-r4_sdmmc_bl2.img and https://artifactory.rdkcentral.com/artifactory/RDKB-Platform/BPI-R4/uboot-2024.04/bpi-r4_sdmmc_fip.bin"
121+
if [ "X$KERNEL_TYPE" == "Xkernel6-6" ]; then
122+
echo "> Please download the binaries from https://artifactory.rdkcentral.com/artifactory/RDKB-Platform/BPI-R4/uboot-2025.01/bpi-r4_sdmmc_bl2.img and https://artifactory.rdkcentral.com/artifactory/RDKB-Platform/BPI-R4/uboot-2025.01/bpi-r4_sdmmc_fip.bin"
123+
else
124+
echo "> Please download the binaries from https://artifactory.rdkcentral.com/artifactory/RDKB-Platform/BPI-R4/uboot-2024.04/bpi-r4_sdmmc_bl2.img and https://artifactory.rdkcentral.com/artifactory/RDKB-Platform/BPI-R4/uboot-2024.04/bpi-r4_sdmmc_fip.bin"
125+
fi
122126
echo "> If you don't have access to above resources, please follow instruction in https://wiki.rdkcentral.com/pages/viewpage.action?pageId=354648448#SDMonoliticimagebuildandflashingstepsforBPIR4.-Buildingbl2.imgandfip.binincaseofnothavingaccesstoartifactoryrepository to build bl2 and fip binaries yourselves."
123127
echo "> Place those binaries under ${_TOPDIR}/downloads/"
124128
echo "> EXITING NOW."

0 commit comments

Comments
 (0)