Skip to content

Commit 2cacfda

Browse files
author
Neeraj Deshpande
authored
Merge pull request #413 from WebPlatformForEmbedded/R3-arris-update
bcm-refsw & Linux kernel version bump.
2 parents 224ec45 + 9691a6b commit 2cacfda

File tree

11 files changed

+188
-10
lines changed

11 files changed

+188
-10
lines changed

configs/arrisrdkb0_wpe_ml_defconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9=y
1717
BR2_LINUX_KERNEL=y
1818
BR2_LINUX_KERNEL_CUSTOM_GIT=y
1919
BR2_LINUX_KERNEL_CUSTOM_REPO_URL="[email protected]:Metrological/bcm-stblinux-4.9.git"
20-
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="dae011466609eb35cb5543e281a82207b4f03141"
20+
BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="e25c90d1d2e6af56705e6b46d47797989cfe2676"
2121
BR2_LINUX_KERNEL_DEFCONFIG="brcmstb"
2222
BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES="board/bcm/config-fragments/cgroups.cfg board/bcm/config-fragments/ipv6.cfg board/bcm/config-fragments/netfilter.cfg board/bcm/config-fragments/wpa-supplicant.cfg board/bcm/config-fragments/no-vdso.cfg board/bcm/config-fragments/bt.cfg"
2323
BR2_PACKAGE_BUSYBOX_SMP=y
@@ -29,12 +29,13 @@ BR2_TARGET_GENERIC_CABUNDLE=y
2929
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
3030

3131
BR2_PACKAGE_BCM_REFSW=y
32-
BR2_PACKAGE_BCM_REFSW_19_2=y
32+
BR2_PACKAGE_BCM_REFSW_20_2=y
3333
BR2_PACKAGE_BCM_REFSW_PLATFORM_72604_B0=y
3434
BR2_PACKAGE_BCM_REFSW_BOXMODE="4"
3535
BR2_PACKAGE_BCM_REFSW_NXCLIENT_EXAMPLES=y
3636
BR2_PACKAGE_BCM_REFSW_SAGE=y
3737
BR2_PACKAGE_BCM_REFSW_BP3=y
38+
BR2_PACKAGE_BCM_WIFI_DHD=y
3839

3940
BR2_PACKAGE_DROPBEAR=y
4041
BR2_PACKAGE_LIBSOUP=y

package/Config.in

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,8 @@ endmenu
427427
source "package/amd-catalyst/Config.in"
428428
source "package/avrdude/Config.in"
429429
source "package/bcache-tools/Config.in"
430-
source "package/bcm-refsw/Config.in"
430+
source "package/bcm-refsw/Config.in"
431+
source "package/bcm-wifi-dhd/Config.in"
431432
source "package/biosdevname/Config.in"
432433
source "package/brickd/Config.in"
433434
source "package/brltty/Config.in"
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
diff -pruN bcm-refsw-20.2.orig/BSEAV/tools/bp3/b_bp3_targets.inc bcm-refsw-20.2/BSEAV/tools/bp3/b_bp3_targets.inc
2+
--- bcm-refsw-20.2.orig/BSEAV/tools/bp3/b_bp3_targets.inc 2020-10-06 04:51:42.000000000 +0530
3+
+++ bcm-refsw-20.2/BSEAV/tools/bp3/b_bp3_targets.inc 2022-02-11 20:35:26.670644009 +0530
4+
@@ -47,19 +47,6 @@ $(error B_REFSW_TOP must be defined)
5+
endif
6+
7+
# Specify any prerequisite subpackages here:
8+
-include $(B_REFSW_TOP)/BSEAV/opensource/openssl/b_openssl_targets.inc
9+
-B_BP3_SUB_BUILDS += b_openssl_target_build
10+
-B_BP3_SUB_CLEANS += b_openssl_target_clean
11+
-B_BP3_SUB_CLEAN_ALL += b_openssl_target_clean_all
12+
-B_BP3_BUILD_FILES += $(B_OPENSSL_BUILD_FILES)
13+
-B_OPENSSL_TARGET_MAKEFLAGS += $(B_BP3_TARGET_MAKEFLAGS)
14+
-
15+
-include $(B_REFSW_TOP)/BSEAV/opensource/curl/b_curl_targets.inc
16+
-B_BP3_SUB_BUILDS += b_curl_target_build
17+
-B_BP3_SUB_CLEANS += b_curl_target_clean
18+
-B_BP3_SUB_CLEAN_ALL += b_curl_target_clean_all
19+
-B_BP3_BUILD_FILES += $(B_CURL_BUILD_FILES)
20+
-B_CURL_TARGET_MAKEFLAGS += $(B_BP3_TARGET_MAKEFLAGS)
21+
22+
include $(B_REFSW_TOP)/BSEAV/opensource/cjson/b_libcjson_targets.inc
23+
B_BP3_SUB_BUILDS += b_cjson_target_build
Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
diff --git a/BSEAV/lib/gpu/include/EGL/eglplatform.h b/BSEAV/lib/gpu/include/EGL/eglplatform.h
2+
index b71c2d19a..2e9fe7f2e 100644
3+
--- a/BSEAV/lib/gpu/include/EGL/eglplatform.h
4+
+++ b/BSEAV/lib/gpu/include/EGL/eglplatform.h
5+
@@ -95,6 +95,8 @@ typedef void* EGLNativeDisplayType;
6+
7+
#elif defined(__unix__)
8+
9+
+#define BROADCOM_PLATFORM 1
10+
+
11+
#ifdef BROADCOM_PLATFORM
12+
13+
typedef void *EGLNativeDisplayType;
14+
diff --git a/BSEAV/lib/gpu/vc5/platform/nexus/platform_nexus_common.mk b/BSEAV/lib/gpu/vc5/platform/nexus/platform_nexus_common.mk
15+
index fc37e4408..8a7c0121b 100644
16+
--- a/BSEAV/lib/gpu/vc5/platform/nexus/platform_nexus_common.mk
17+
+++ b/BSEAV/lib/gpu/vc5/platform/nexus/platform_nexus_common.mk
18+
@@ -82,7 +82,6 @@ CFLAGS += \
19+
-mfpu=neon
20+
endif
21+
22+
-LDFLAGS += -Wl,--no-undefined
23+
LDFLAGS += -L$(V3DDRIVER_LIB_TARGET) -lv3ddriver -lpthread
24+
25+
ifeq ($(V3D_DEBUG),y)
26+
@@ -135,9 +134,7 @@ OUTDIR :
27+
28+
.phony: V3DDriver
29+
V3DDriver:
30+
- $(Q)$(MAKE) --no-print-directory -C $(V3D_DIR) -f V3DDriver.mk \
31+
- OBJDIR=$(V3DDRIVER_OBJ_TARGET) LIBDIR=$(V3DDRIVER_LIB_TARGET) \
32+
- NEXUS_BIN_DIR=$(NEXUS_BIN_DIR) $(MAKECMDGOALS)
33+
+ $(Q)$(MAKE) --no-print-directory -C $(V3D_DIR) -f V3DDriver.mk $(MAKECMDGOALS)
34+
35+
# $(1) = src
36+
# $(2) = obj
37+
diff --git a/magnum/basemodules/dbg/bdbg.h b/magnum/basemodules/dbg/bdbg.h
38+
index db4f40495..fa9046659 100644
39+
--- a/magnum/basemodules/dbg/bdbg.h
40+
+++ b/magnum/basemodules/dbg/bdbg.h
41+
@@ -957,7 +957,7 @@ See Also:
42+
#else
43+
#define BDBG_ASSERT(expr) (expr) ? (void) 0 : BDBG_P_AssertFailed(#expr, BSTD_FILE, BSTD_LINE)
44+
#endif
45+
-#define BDBG_CASSERT(expr) do switch(0){case 0: case (expr):;} while(0)
46+
+#define BDBG_CASSERT(expr) do switch(0){case (expr):;} while(0)
47+
#define BDBG_CWARNING(expr) do {if(0){int unused = 1/(expr);unused++;}} while(0)
48+
#define BDBG_CWARNING_EXPR(expr) ((1/(expr)) ? 0 : 0)
49+
50+
diff --git a/nexus/nxclient/apps/Makefile b/nexus/nxclient/apps/Makefile
51+
index 8b46518ce..2d2055625 100644
52+
--- a/nexus/nxclient/apps/Makefile
53+
+++ b/nexus/nxclient/apps/Makefile
54+
@@ -52,7 +52,6 @@ BASIC_BUILD_APPS = \
55+
audio_fade \
56+
audio_fade_toggle \
57+
audio_karaoke \
58+
- audio_presentation \
59+
audio_wav_convert \
60+
best_effort_bvn_status \
61+
blit_client \
62+
diff --git a/nexus/nxclient/server/nxserverlib.c b/nexus/nxclient/server/nxserverlib.c
63+
index aeae7d977..6ed304edf 100644
64+
--- a/nexus/nxclient/server/nxserverlib.c
65+
+++ b/nexus/nxclient/server/nxserverlib.c
66+
@@ -4080,6 +4080,11 @@ void nxserverlib_get_settings(nxserver_t server, struct nxserver_settings *setti
67+
}
68+
69+
nxserver_t nxserverlib_init(const struct nxserver_settings *settings)
70+
+{
71+
+ return (nxserverlib_init_extended(settings, true));
72+
+}
73+
+
74+
+nxserver_t nxserverlib_init_extended(const struct nxserver_settings *settings, const bool authorizedOnly)
75+
{
76+
NEXUS_PlatformStartServerSettings serverSettings;
77+
NEXUS_Error rc;
78+
@@ -4154,7 +4159,7 @@ nxserver_t nxserverlib_init(const struct nxserver_settings *settings)
79+
BKNI_ReleaseMutex(server->settings.lock);
80+
81+
NEXUS_Platform_GetDefaultStartServerSettings(&serverSettings);
82+
- serverSettings.allowUnauthenticatedClients = false;
83+
+ serverSettings.allowUnauthenticatedClients = !authorizedOnly;
84+
rc = NEXUS_Platform_StartServer(&serverSettings);
85+
BDBG_ASSERT(!rc);
86+
87+
diff --git a/nexus/nxclient/server/nxserverlib.h b/nexus/nxclient/server/nxserverlib.h
88+
index f7457a3a1..cd976504e 100644
89+
--- a/nexus/nxclient/server/nxserverlib.h
90+
+++ b/nexus/nxclient/server/nxserverlib.h
91+
@@ -362,6 +362,7 @@ struct nxserver_cmdline_settings
92+
/* nxserver_lib.c API */
93+
void nxserver_get_default_settings(struct nxserver_settings *settings);
94+
nxserver_t nxserverlib_init(const struct nxserver_settings *settings);
95+
+nxserver_t nxserverlib_init_extended(const struct nxserver_settings *settings, const bool authorizedOnly);
96+
void nxserverlib_uninit(nxserver_t server);
97+
struct b_session *nxserver_get_client_session(nxclient_t client);
98+
/* get_singleton is used for nxclient local to use externally opened nxserverlib */

package/bcm-refsw/Config.in

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,9 @@ choice
7171

7272
config BR2_PACKAGE_BCM_REFSW_19_2
7373
bool "bcm-refsw 19.2"
74+
75+
config BR2_PACKAGE_BCM_REFSW_20_2
76+
bool "bcm-refsw 20.2"
7477
endchoice
7578

7679
if BR2_PACKAGE_BCM_REFSW_CUSTOM_VERSION
@@ -191,28 +194,28 @@ config BR2_PACKAGE_BCM_REFSW_SAGE_PATH
191194
config BR2_PACKAGE_BCM_REFSW_PAK_PATH
192195
string "PAK Path"
193196
default "/usr/bin/"
194-
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2
197+
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2 || BR2_PACKAGE_BCM_REFSW_20_2
195198
help
196199
PAK binaries path
197200

198201
config BR2_PACKAGE_BCM_REFSW_DRM_PATH
199202
string "DRM Path"
200203
default "/usr/bin/"
201-
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2
204+
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2 || BR2_PACKAGE_BCM_REFSW_20_2
202205
help
203206
DRM binaries path
204207

205208
config BR2_PACKAGE_BCM_REFSW_HDCP1XBIN_PATH
206209
string "HDCP 1.x bin"
207210
default ""
208-
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2
211+
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2 || BR2_PACKAGE_BCM_REFSW_20_2
209212
help
210213
A file locator for the HDCP1.X key
211214

212215
config BR2_PACKAGE_BCM_REFSW_HDCP2XBIN_PATH
213216
string "HDCP 2.x bin"
214217
default ""
215-
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2
218+
depends on BR2_PACKAGE_BCM_REFSW_18_2 || BR2_PACKAGE_BCM_REFSW_19_1 || BR2_PACKAGE_BCM_REFSW_19_2 || BR2_PACKAGE_BCM_REFSW_20_2
216219
help
217220
A file locator for the HDCP2.X key
218221

package/bcm-refsw/bcm-refsw.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ else ifeq ($(BR2_PACKAGE_BCM_REFSW_19_1),y)
4040
BCM_REFSW_VERSION = 19.1.1
4141
else ifeq ($(BR2_PACKAGE_BCM_REFSW_19_2),y)
4242
BCM_REFSW_VERSION = 19.2
43+
else ifeq ($(BR2_PACKAGE_BCM_REFSW_20_2),y)
44+
BCM_REFSW_VERSION = 20.2
4345
else
4446
BCM_REFSW_VERSION = 16.2-7
4547
endif
@@ -143,7 +145,10 @@ endif
143145
endif
144146

145147
ifeq ($(BCM_REFSW_PLATFORM_VC),vc5)
146-
ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 19.2),1)
148+
ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 20.2),1)
149+
# We are using VC5 core >= 20.2
150+
BCM_REFSW_VCX_KHRN = $(BCM_REFSW_DIR)/BSEAV/lib/gpu/include
151+
else ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 19.2),1)
147152
# We are using VC5 core >= 19.2
148153
BCM_REFSW_VCX_KHRN = $(BCM_REFSW_DIR)/BSEAV/lib/gpu/include
149154
else ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 16.2),1)

package/bcm-refsw/nexus.inc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ ifeq ($(BR2_PACKAGE_BCM_REFSW_SAGE_PLAYREADY_30),y)
176176
177177
BCM_NEXUS_PLAYREADY30_DIR = /BSEAV/thirdparty/playready/3.0
178178
179-
ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 19.2),1)
179+
ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 20.2),1)
180+
BCM_NEXUS_PLAYREADY30_LIBDIR = $(BCM_NEXUS_PLAYREADY30_DIR)/bin/$(ARCH)-linux/secv2/lib
181+
else ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 19.2),1)
180182
BCM_NEXUS_PLAYREADY30_LIBDIR = $(BCM_NEXUS_PLAYREADY30_DIR)/bin/$(ARCH)-linux/secv2/lib
181183
else ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 18.1),1)
182184
ifeq ($(BCM_REFSW_PLATFORM_SECURITY_ZEUS_VERSION),5)
@@ -342,5 +344,6 @@ define BCM_REFSW_INSTALL_BP3
342344
$(INSTALL) -m 750 -D $(BCM_REFSW_BIN)/bp3 $(1)/usr/bin
343345
$(INSTALL) -m 644 -D $(BCM_REFSW_BIN)/libbp3_host.so $(1)/usr/lib
344346
$(INSTALL) -m 644 -D $(BCM_REFSW_BIN)/libcjson.so $(1)/usr/lib
347+
cd $1/usr/lib && ln -sf libcjson.so libcjson.so.1
345348
endef
346349
endif

package/bcm-refsw/nxserver.inc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ define BCM_REFSW_INSTALL_NXSERVER
4545
fi
4646
endef
4747

48-
ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 19.1),1)
48+
ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 20.2),1)
49+
NX_SERVER_ARCHIVE = $(BCM_REFSW_OUTPUT)/nexus/nxclient/$(ARCH)-linux/server/libnxserver.a
50+
else ifeq ($(shell expr $(BCM_REFSW_VERSION) \>= 19.1),1)
4951
NX_SERVER_ARCHIVE = $(BCM_REFSW_OUTPUT)/nexus/nxclient/$(ARCH)-linux/server/libnxserver.a
5052
else
5153
NX_SERVER_ARCHIVE = $(BCM_REFSW_BIN)/libnxserver.a

package/bcm-wifi-dhd/Config.in

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
config BR2_PACKAGE_BCM_WIFI_DHD
2+
bool "bcm-wifi-dhd"
3+
depends on BR2_LINUX_KERNEL
4+
help
5+
bcm-wifi-dhd wifi driver
6+
7+
https://github.com/Metrological/bcm-wifi-dhd
8+
9+
comment "bcm-wifi-dhd needs a Linux kernel to be built"
10+
depends on !BR2_LINUX_KERNEL

package/bcm-wifi-dhd/S12wifidriver

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
insmod /lib/modules/dhd.ko secdma_addr=0x00000000 secdma_size=0x00000 firmware_path=/lib/firmware/bcm43570a2.bin nvram_path=/etc/nvram/bcm43570a2.nvm

0 commit comments

Comments
 (0)