Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
titleBuild
repo init -u https://code.rdkcentral.com/r/manifests -b kirkstone -m rdkb-bpi-extsrc.xml
repo sync -j`nproc` --no-clone-bundle

cd ~/meta-cmf-broadband
git fetch https://code.rdkcentral.com/r/rdk/components/generic/rdk-oe/meta-cmf-broadband refs/changes/00/116300/1 && git cherry-pick FETCH_HEAD

Please follow the below steps to pull the latest tip code of UWM and dependencies components,

1. update the SRCREV for below components in below mentioned path,
        1. ccsp-one-wifi - ~/meta-cmf-bananapi/meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/ccsp-one-wifi.bbappend
        2. ccsp-one-wifi-libwebconfig - ~/meta-cmf-bananapi/meta-rdk-mtk-bpir4/recipes-ccsp/ccsp/ccsp-one-wifi-libwebconfig.bbappend
        3. rdk-wifi-hal - ~/meta-cmf-bananapi/meta-rdk-mtk-bpir4/recipes-ccsp/hal/rdk-wifi-hal.bbappend
        4. rdk-wifi-util - ~/meta-cmf-bananapi/meta-rdk-mtk-bpir4/recipes-ccsp/hal/rdk-wifi-util.bbappend
        5. unified-wifi-mesh - ~/meta-cmf-broadband/recipes-ccsp/unified-wifi-mesh/unified-wifi-mesh.bb
        6. unified-wifi-mesh-cli - ~/meta-cmf-broadband/recipes-ccsp/unified-wifi-mesh/unified-wifi-mesh-cli.bb

MACHINE=bananapi4-rdk-broadband FEATURE_TYPE=EasyMesh source meta-cmf-bananapi/setup-environment-refboard-rdkb
bitbake rdk-generic-broadband-image

Note : rdk-wifi-hal  have build issues with latest tip . So, please use the SRCREV as "86528813a834ecb11c9c6f435c2bd85fc6f3a25f"

Test EM on BPI R4

Note: Currently in our bpi build private vaps configured.

BPI Controller

Prerequisites :  

  1. Setup mysql in BPI controller (One time process)
    Panel
    borderColorblack
    borderStyledashed
    titleDB Setup

    → Input command mysql in prompt, enter into mariadb console
    → CREATE USER 'bpi'@'localhost' IDENTIFIED BY 'root';
    → ALTER USER 'bpi'@'localhost' IDENTIFIED BY 'root';
    → GRANT ALL PRIVILEGES ON *.* TO 'bpi'@'localhost' IDENTIFIED BY 'root';
    → FLUSH PRIVILEGES;
    → SELECT User, Host, plugin FROM mysql.user;
    → Exit from mysql

  2. Once user is added in mysql, enter into prompt with root access.
    Panel
    borderColorblack
    borderStyledashed
    titlebpi root

    → Input command mysql -u bpi -p, password is root

  3. Create OneWifiMesh table in mariadb
    Panel
    borderColorblack
    borderStyledashed
    titleCreating database

    create database OneWifiMesh;
    → use OneWifiMesh;
    → show tables;                   ==> should show no tables

      
  4. Start onewifi easymesh controller in new tab
    In Ctrl colocated mode should be always 1
    /usr/ccsp/EasyMesh# ./ onewifi_em_ctrl bpi@root (Here bpi is the user and root is the password)

    Reset database, resetting can be done from cli (see log: data base empty ... needs reset)
          
  5. Start onewifi easymesh cli in a new tab
    /usr/ccsp/EasyMesh# ./onewifi_em_cli bpi
    Panel
    borderColorblack
    borderStyledashed
    titleonewifi_em_cli bpi

    → In the cli use "Tab" to move between Update, Apply and Cancel button in the cli, use keys "j" and "k" to scroll up and down
    → Select "Wifi Reset" and then select Update to update the window.
    → In the CollocatedAgentID update the Mac address of the interface which needs to be treated as AL MAC. In case of using wireless backhaul, use the appropriate "wlan" interface as CollocatedAgentID.
    → Select Apply to reset the database.

    Sample cli response given below:

    Change colocatedAgentID mac addr to interface which needs to be treated as AL MAC


  6. Once AL MAC is set check the ctrl prompt whether database reset happened

    Observe outputs deleting all datamodels and database insert to verify successful reset
    Sample response in ctrl: 

    Response in database: Respective rows will be updated in db

  7. Restart onewifi_em_ctrl
    Observe private_ssid are broadcasting

  8. After restart run the agent

...