...
Yocto Build Instructiuons
| Code Block | ||
|---|---|---|
| ||
$ mkdir rdkb-arm
$ cd rdkb-arm
$ repo init -u 'https://github.com/rdkcentral/meta-rdk-bsp-arm/' \
-m "manifests/rdkb-bsp-arm.xml" \
-b "main"
$ repo sync
$ source meta-rdk-bsp-arm/setup-environment
$ bitbake rdk-generic-broadband-image |
The default ARM build have been updated to include additional features such as erouter0, Captive Portal and WebUI support.
...
You can invoke QEMU like this:
| 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 |