No. There's no public documentation on how to program that chip.
The tool you'd likely use is the swconfig tool.. but if I recall, this ain't part of the Asus firmware...
https://github.com/RMerl/asuswrt-merlin/blob/master/release/src/router/rc/sysdeps/init-qca.c#L220
I'm not very familiar with the current firmware files structure. Does this code setup 8365 switch?
No, this is a different switch, used by their Qualcomm-based router. The register didn't match when I tried it.
Thank you for the answer. One more question: what is the fwd1 network interface for?
nikki@zbox-ext:/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708$ make rt-ac88u
...
arm-brcm-linux-uclibcgnueabi-gcc -DBCMWPA2 -DBCMQOS -DBCM_DCS -DEXT_ACS -DD11AC_IOTYPES -DPHYMON -DPROXYARP -DTRAFFIC_MGMT -DTRAFFIC_MGMT_RSSI_POLICY -DMFP -D__CONFIG_MFP__ -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm -DLINUX_KERNEL_VERSION=132644 -DRTAC88U -O2 -D__CONFIG_DHDAP__ -D__CONFIG_GMAC3__ -DBCM_BSD -DBCM_DCS -DTRAFFIC_MGMT_RSSI_POLICY -D__CONFIG_EMF__ -D__CONFIG_WPS__ -DBCMWPA2 -DBCMQOS -DBCM_DCS -DEXT_ACS -DD11AC_IOTYPES -DPHYMON -DPROXYARP -DTRAFFIC_MGMT -DTRAFFIC_MGMT_RSSI_POLICY -DMFP -D__CONFIG_MFP__ -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm -DLINUX_KERNEL_VERSION=132644 -DRTAC88U -O2 -D__CONFIG_DHDAP__ -D__CONFIG_GMAC3__ -DBCM_BSD -DBCM_DCS -DTRAFFIC_MGMT_RSSI_POLICY -D__CONFIG_EMF__ -D__CONFIG_WPS__ -Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm -DLINUX_KERNEL_VERSION=132644 -fPIC -I. -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/router/shared -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/include -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/linux/linux-2.6/include -D__EXPORTED_HEADERS__ -DSHP -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/shared/bcmwifi/include -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/common/include -DSMP -DBCM5301X -DAUTOFW_PORT_DEPRECATED -DTRAFFIC_MGMT -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/linux/linux-2.6/drivers/char/rtl8365mb -c -o et_linux.o et_linux.c
et_linux.c: In function ‘et_capable’:
et_linux.c:154:23: error: ‘IOV_CAP’ undeclared (first use in this function)
et_linux.c:154:23: note: each undeclared identifier is reported only once for each function it appears in
<builtin>: recipe for target 'et_linux.o' failed
make[5]: *** [et_linux.o] Error 1
make[5]: Leaving directory '/usr/src/merlin/asuswrt-merlin/release/src/router/shared'
and when I defined IOV_CAP by myself, I got errors in another file:
arm-brcm-linux-uclibcgnueabi-gcc -DBCMWPA2 -DBCMQOS -DBCM_DCS -DEXT_ACS -DD11AC_IOTYPES -DPHYMON -DPROXYARP -DTRAFFIC_MGMT -DTRAFFIC_MGMT_RSSI_POLICY -DMFP -D__CONFIG_MFP__ -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm -DLINUX_KERNEL_VERSION=132644 -DRTAC88U -O2 -D__CONFIG_DHDAP__ -D__CONFIG_GMAC3__ -DBCM_BSD -DBCM_DCS -DTRAFFIC_MGMT_RSSI_POLICY -D__CONFIG_EMF__ -D__CONFIG_WPS__ -DBCMWPA2 -DBCMQOS -DBCM_DCS -DEXT_ACS -DD11AC_IOTYPES -DPHYMON -DPROXYARP -DTRAFFIC_MGMT -DTRAFFIC_MGMT_RSSI_POLICY -DMFP -D__CONFIG_MFP__ -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm -DLINUX_KERNEL_VERSION=132644 -DRTAC88U -O2 -D__CONFIG_DHDAP__ -D__CONFIG_GMAC3__ -DBCM_BSD -DBCM_DCS -DTRAFFIC_MGMT_RSSI_POLICY -D__CONFIG_EMF__ -D__CONFIG_WPS__ -Os -Wall -DLINUX26 -DCONFIG_BCMWL5 -DDEBUG_NOISY -DDEBUG_RCTEST -pipe -DBCMWPA2 -DBCMARM -fno-strict-aliasing -marm -DLINUX_KERNEL_VERSION=132644 -fPIC -I. -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/router/shared -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/include -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/linux/linux-2.6/include -D__EXPORTED_HEADERS__ -DSHP -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/shared/bcmwifi/include -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/common/include -DSMP -DBCM5301X -DAUTOFW_PORT_DEPRECATED -DTRAFFIC_MGMT -I/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708/linux/linux-2.6/drivers/char/rtl8365mb -c -o rtl_8365mb.o sysdeps/broadcom/rtl_8365mb.c
sysdeps/broadcom/rtl_8365mb.c: In function ‘rtkswitch_ioctl’:
sysdeps/broadcom/rtl_8365mb.c:61:7: error: ‘INIT_SWITCH_UP’ undeclared (first use in this function)
sysdeps/broadcom/rtl_8365mb.c:61:7: note: each undeclared identifier is reported only once for each function it appears in
sysdeps/broadcom/rtl_8365mb.c:62:7: error: ‘GET_EXT_TXRXDELAY’ undeclared (first use in this function)
sysdeps/broadcom/rtl_8365mb.c: In function ‘ext_rtk_phyState’:
sysdeps/broadcom/rtl_8365mb.c:172:5: warning: assignment discards qualifiers from pointer target type
sysdeps/broadcom/rtl_8365mb.c:183:5: warning: assignment discards qualifiers from pointer target type
sysdeps/broadcom/rtl_8365mb.c:190:5: warning: assignment discards qualifiers from pointer target type
<builtin>: recipe for target 'rtl_8365mb.o' failed
make[5]: *** [rtl_8365mb.o] Error 1
make[5]: Leaving directory '/usr/src/merlin/asuswrt-merlin/release/src/router/shared'
Makefile:1815: recipe for target 'shared' failed
RMerlin,
I'd try to create a kernel module that exports few functions from rtl8365mb module via ioctls.
Which git branch should I use? I tried to compile master and got compile errors. Then I tried 380.57 branch, but also got compile errors. What I'm doing wrong here?
Code:nikki@zbox-ext:/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708$ make rt-ac88u
RMerlin,
I'd try to create a kernel module that exports few functions from rtl8365mb module via ioctls.
Which git branch should I use? I tried to compile master and got compile errors. Then I tried 380.57 branch, but also got compile errors. What I'm doing wrong here?
Code:nikki@zbox-ext:/usr/src/merlin/asuswrt-merlin/release/src-rt-6.x.4708$ make rt-ac88u ...
Welcome To SNBForums
SNBForums is a community for anyone who wants to learn about or discuss the latest in wireless routers, network storage and the ins and outs of building and maintaining a small network.
If you'd like to post a question, simply register and have at it!
While you're at it, please check out SmallNetBuilder for product reviews and our famous Router Charts, Ranker and plenty more!