...
| Code Block | ||
|---|---|---|
| ||
# Copy the QCOW2 image and u-boot.bin from the deploy directory
cp $HOME/rdkb-cmf-arm/build-armefi64-rdk-broadband/tmp/deploy/images/armefi64-rdk-broadband/{rdk-generic-broadband-image-armefi64-rdk-broadband.wic.qcow2,u-boot.bin} .
# It can be helpful to create a snapshot to quickly revert
# any changes that are made
qemu-img create -f qcow2 -b rdk-generic-broadband-image-armefi64-rdk-broadband.wic.qcow2 -F qcow2 rdk.snapshot.qcow2
# And resize that snapshot to allow space for upgrades
qemu-img resize rdk.snapshot.qcow2 10G
DISK=${DISK:-rdk.snapshot.qcow2}
sudo qemu-system-aarch64 -nographic \
-cpu cortex-a53 -machine virt \
-bios u-boot.bin \
-smp 2 -m 1024 \
-device virtio-rng-pci \
-hda "${DISK}" \
-netdev tap,id=testlan -net nic,netdev=testlan \
-netdev tap,id=testlan2 -net nic,netdev=testlan2 \
-netdev user,id=testwan -net nic,netdev=testwan \
-device pci-serial
#using bridge manager:
# ensure /usr/local/libexec/qemu-bridge-helper is present and executable
# provide /usr/local/etc/qemu/bridge.conf:
# allow br10
# allow br100
sudo qemu-system-aarch64 -nographic \
-cpu cortex-a53 -machine virt \
-bios u-boot.bin \
-smp 2 -m 1024 \
-device virtio-rng-pci \
-hda "${DISK}" \
-netdev bridge,id=testwan,br=br10 \
-device virtio-net pci,netdev=testwan,mac=52:54:00:2d:6e:99 \
-netdev bridge,id=testlan,br=br100 \
-device virtio-net-pci,netdev=testlan,mac=52:54:00:2d:6e:98 \
-device pci-serial |
This section provides a summary of patches maintained for the ARM platform under meta-rdk-bsp-arm metalayer.
...
https://github.com/rdkcentral/common-library/pull/65
...
...
Y
...
Y
...
N
...
Y
...
Y
...
in latest builds, its not working.
...
N
...
N
...
Y
...
in latest builds, its not working(NXP).
Create a fresh virtual switch wan feed and LAN clients
sudo ip link add name br-wan-test type bridge
sudo ip link add name br-lan-test type bridge
# Assign both an IPv4 address
sudo ip addr add <VIRTUAL_WAN_IP>/24 dev br-wan-test # ex: sudo ip addr add 192.168.50.1/24 dev br-wan-test
sudo ip addr add 10.0.0.254/24 dev br-lan-test
# Turn on the virtual switch
sudo ip link set br-wan-test up
sudo ip link set br-lan-test up
#If you are using USB-to-Ethernet adapter to connect LAN clinets
#check interfae name bu using ip link ex; enx000e0987b9ec
sudo ip addr flush dev <interface_name>
# Physically link your USB adapter into LAN virtual switch
sudo ip link set <interface_name> master br-lan-test
sudo ip link set <interface_name> up
sudo mkdir -p /etc/qemu
echo -e "allow br-wan-test\nallow br-lan-test" | sudo tee /etc/qemu/bridge.conf > /dev/null
sudo chmod 4755 /usr/lib/qemu/qemu-bridge-helper
#Enable Host Routing, NAT
sudo sysctl -w net.ipv4.ip_forward=1
sudo iptables -t nat -F
sudo iptables -t nat -A POSTROUTING -o <your_host_internet_card> -j MASQUERADE
sudo iptables -F FORWARD
sudo iptables -A FORWARD -j ACCEPT
# Start Virtual WAN DHCP Engine
sudo dnsmasq --interface=br-wan-test \
--dhcp-range=<START_IP>,<END_IP>,<SUBNET_MASK>,12h \
--dhcp-option=option:router,<GATEWAY_IP> \
--dhcp-option=option:dns-server,8.8.8.8 \
--port=0 &
ex:
sudo dnsmasq --interface=br-wan-test \
--dhcp-range=192.168.50.10,192.168.50.50,255.255.255.0,12h \
--dhcp-option=option:router,192.168.50.1 \
--dhcp-option=option:dns-server,8.8.8.8 \
--port=0 &
# It can be helpful to create a snapshot to quickly revert
# any changes that are made
qemu-img create -f qcow2 -b rdk-generic-broadband-image-armefi64-rdk-broadband.wic.qcow2 -F qcow2 rdk.snapshot.qcow2
# And resize that snapshot to allow space for upgrades
qemu-img resize rdk.snapshot.qcow2 10G
DISK=${DISK:-rdk.snapshot.qcow2}
# Boot
sudo qemu-system-aarch64 -nographic \
-cpu cortex-a53 -machine virt \
-bios u-boot.bin \
-smp 2 -m 1024 \
-device virtio-rng-pci \
-hda "${DISK}" \
-netdev bridge,id=testwan,br=br-wan-test \
-device virtio-net-pci,netdev=testwan,mac=52:54:00:2d:6e:99 \
-netdev bridge,id=testlan,br=br-lan-test \
-device virtio-net-pci,netdev=testlan,mac=52:54:00:2d:6e:98 \
-device pci-serial |
This section provides a summary of patches maintained for the ARM platform under meta-rdk-bsp-arm metalayer.
| Component Name | No. of Patches | Status | PR If ANY | Correspond meta layer changes |
|---|---|---|---|---|
| test-and-diagnostic | 1 | Ready for testing | https://github.com/rdkcentral/test-and-diagnostic/pull/203 | |
| utopia | 12 | Ready for testing | https://github.com/rdkcentral/utopia/pull/312 | |
| rdk-wifi-hal | 4 | FROZEN | https://github.com/rdkcentral/rdk-wifi-hal/pull/701 | |
| ccsp-common-library | 9 | Ready for testing | https://github.com/rdkcentral/common-library/pull/65 | |
| ccsp-eth-agent | 4 | Ready for testing | https://github.com/rdkcentral/ethernet-agent/pull/64 | |
| ccsp-one-wifi | 2 | Ready for testing | NA | |
| unified-wifi-mesh | 1 | yet to | ||
| ccsp-p-and-m | 3 | Ready for testing | NA | |
| ccsp-dhcp-mgr | 1 | Ready for testing | NA |
...
IPv6
...
Y
...
Y
...
Cellular
...
N
...
Y
...
Sim is on enabling state in RPI always.
...
RNDIS
...
Y
...
Y
...
WebPA
...
Y
...
Y
...
USP-PA(oktopus)...
Y
...
Y
...
Observing delay in DMCLI responce in RPI.
...
USB Detection
...
Y
...
Y
...
Parental Control
...
Y
...
Y
...
Port Forwarding
...
Y
...
Y
...
Log-Upload & Telemetry...
Y
...
Y
...
DAC
...
Y
...
Y
...
Log-Rotation...
Y
...
Y
...
Multiprofile...
Y
...
| S.No | Features | Completed | In Review | In Progress | Not started | Features working in ARM system ready builds | Comments | ||
| Qemu | Raspberry pi 4 | NXP | |||||||
| 1 | |||||||||
| WAN | Yes | Yes | Yes | ||||||
| 2 | LAN | Yes | Yes | Yes | |||||
| 3 | WiFi | No | Yes | ||||||
| 4 | IPv6 | Yes | Yes | ||||||
| 5 | Cellular |
No | Yes | Sim is on enabling state in RPI always. | |||
| 6 | RNDIS |
Yes | Yes |
| 7 | WebPA |
Yes | Yes | ||||||
| 8 | USP-PA(oktopus) |
Yes | Yes | Observing delay in DMCLI responce in RPI. | |||
| 9 | Parental Control |
Yes | Yes |
| 10 | Port Forwarding |
Yes | Yes | ||||||
| 11 | Port Triggering |
Yes | Yes | ||||||
| 12 | USB Detection |
Yes | Yes | ||||||
| 13 | DAC |
Yes | Yes |
| 14 | Log-Upload & Telemetry |
Yes | Yes |
| 15 | Multiprofile |
Yes | Yes |
| 16 | Selfheal |
| 17 | Test and Diagnostic |
| 18 | Log-Rotation |
| Yes | Yes | |||||
| 19 | RFC |
| 20 | Telco-Voice |
| 21 | WPS |
| 22 | WebConfig |
| yes | yes | |||||
| 23 | ACS |
| 24 | SNMP |
| 25 | Firmware Upgrade |
| 26 | eSDK |
| 27 | Populate-SDK |
Note:
This list represents features that are either not yet supported or require additional integration and validation on the ARM platform.
...
...