JustKernel

Ray Of Hope

August, 2014

Cubieboard2 board bringup with Linux

Download Requirements: 1) Download linux kernel (local dir = linux): git clone https://github.com/talex5/linux.git 2) Download uboot (directory u-boot-sunxi) from git clone https://github.com/linux-sunxi/u-boot-sunxi.git . git checkout origin/sunxi-next. sunxi-next branch contains the code that allows the uboot to boot in hypervisor mode. 3) Download sunxi-tools (local dir = sunxi-tools) from git://github.com/linux-sunxi/sunxi-tools.git . 4) Download sunxi-boards (local dir […]

Tags:

Posted in VirtualDroid -Android Virtualization | No Comments »

QEMU + Simple Network rate limiter from Linux Host side.

Simple Network rate limiter from Linux Host side : Controlling the flow using ring buffer. diff –git a/hw/net/virtio-net.c b/hw/net/virtio-net.c index 613f144..df620f7 100644 — a/hw/net/virtio-net.c +++ b/hw/net/virtio-net.c @@ -218,6 +218,7 @@ static void rxfilter_notify(NetClientState *nc) static char *mac_strdup_printf(const uint8_t *mac) { + printf(“Hello world \n”); return g_strdup_printf(“%.2x:%.2x:%.2x:%.2x:%.2x:%.2x”, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); } @@ -1050,13 […]

Tags:

Posted in qemu, virtualization | No Comments »

QEMU + crude and simple rate limiter

For Windows paravirtualized guest NDIS driver. Manage the flow in ring buffer. iff –git a/NetKVM/NDIS5/Common/ParaNdis-Common.c b/NetKVM/NDIS5/Common/ParaNdis-Common.c index fe84133..c2cbf00 100644 — a/NetKVM/NDIS5/Common/ParaNdis-Common.c +++ b/NetKVM/NDIS5/Common/ParaNdis-Common.c @@ -805,7 +805,7 @@ NDIS_STATUS ParaNdis_InitializeContext( pContext->ReuseBufferProc = ReuseReceiveBufferRegular; – + NdisInitializeEvent(&pContext->ResetEvent); DEBUG_EXIT_STATUS(0, status); return status; @@ -1433,7 +1433,7 @@ void ReuseReceiveBufferRegular(PARANDIS_ADAPTER *pContext, pIONetDescriptor pBuf /********************************************************** It is called from Rx processing […]

Tags:

Posted in qemu, virtualization | No Comments »