Month: November 2024
How to convert a byte vector into to a 32bit word vector
How do you convert a vector of 8bit values (bytes) to a vector of 32bit values (words)? Why would you want to do such a thing? Well maybe you have a bytes stream that needs to be sent over a 32bit bus? You could use the std::vector constructor to construct a new vector on the…
Setting up a tap device for QEMU using Yocto in Docker container
Typically it should just work but there are some catches when using a docker container environment. NOTE: You don't need to create a bridge between the host NIC and the TAP device. When you run runqemu the tap device is automatically created to match the subnet of the network interface in the guest OS. See…