mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
ponmngr: add initial airoha support
This commit is contained in:
parent
1c3cb6b72a
commit
7f81a5167b
5 changed files with 29 additions and 7 deletions
|
|
@ -6,7 +6,7 @@ include $(TOPDIR)/rules.mk
|
||||||
include $(INCLUDE_DIR)/kernel.mk
|
include $(INCLUDE_DIR)/kernel.mk
|
||||||
|
|
||||||
PKG_NAME:=ponmngr
|
PKG_NAME:=ponmngr
|
||||||
PKG_VERSION:=1.0.0
|
PKG_VERSION:=1.0.1
|
||||||
|
|
||||||
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
||||||
|
|
||||||
|
|
@ -17,11 +17,12 @@ include $(INCLUDE_DIR)/package.mk
|
||||||
|
|
||||||
define Package/ponmngr
|
define Package/ponmngr
|
||||||
CATEGORY:=Utilities
|
CATEGORY:=Utilities
|
||||||
TITLE:=ponmngr packets manager daemon
|
TITLE:=PON Manager
|
||||||
|
DEPENDS:=@(TARGET_iopsys_brcm63xx_arm||TARGET_iopsys_econet)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ponmngr/description
|
define Package/ponmngr/description
|
||||||
Configures pon
|
Configures PON
|
||||||
endef
|
endef
|
||||||
|
|
||||||
#define Build/Prepare
|
#define Build/Prepare
|
||||||
|
|
@ -32,7 +33,12 @@ define Build/Compile
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define Package/ponmngr/install
|
define Package/ponmngr/install
|
||||||
$(CP) ./files/* $(1)/
|
$(CP) ./files/common/* $(1)/
|
||||||
|
ifneq ($(CONFIG_TARGET_iopsys_brcm63xx_arm),)
|
||||||
|
$(CP) ./files/broadcom/* $(1)/
|
||||||
|
else ifneq ($(CONFIG_TARGET_iopsys_econet),)
|
||||||
|
$(CP) ./files/airoha/* $(1)/
|
||||||
|
endif
|
||||||
endef
|
endef
|
||||||
|
|
||||||
$(eval $(call BuildPackage,ponmngr))
|
$(eval $(call BuildPackage,ponmngr))
|
||||||
|
|
|
||||||
18
ponmngr/files/airoha/lib/xpon/airoha.sh
Normal file
18
ponmngr/files/airoha/lib/xpon/airoha.sh
Normal file
|
|
@ -0,0 +1,18 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
init_xpon() {
|
||||||
|
# For now use the base mac address as the omci serial number
|
||||||
|
/userfs/bin/omcicfgCmd set sn $(fw_printenv -n ethaddr | tr -d ':' | tr 'a-z' 'A-Z')
|
||||||
|
|
||||||
|
/userfs/bin/ponmgr_cfg &
|
||||||
|
sleep 1
|
||||||
|
/userfs/bin/omci &
|
||||||
|
}
|
||||||
|
|
||||||
|
deinit_xpon() {
|
||||||
|
killall -9 omci 2>/dev/null
|
||||||
|
killall -9 ponmgr_cfg 2>/dev/null
|
||||||
|
}
|
||||||
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
USE_PROCD=1
|
|
||||||
|
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
|
|
||||||
init_xpon() {
|
init_xpon() {
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
START=19
|
START=19
|
||||||
STOP=10
|
STOP=91
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue