LAN7430 Register Instructions

LAN7430 Register Instructions

Get ID

busybox devmem $((0xfbc00000+0x0000)) 

Initalise MAC

busybox devmem $((0xfbc00000+0x0100)) 32 $(( `busybox devmem $((0xfbc00000+0x0100))` | 0x00001000 | 0x00000800 ))

PHY Reset

busybox devmem $((0xfbc00000+0x0014)) 32 $((`busybox devmem $((0xfbc00000+0x0014))` | 0x00000010))

Read Phy Ready Status (not working?)

echo $((! (`busybox devmem $((0xfbc00000+0x0014))` )& 0x00000010 )) 

echo $((`busybox devmem $((0xfbc00000+0x0014))` & 0x00000080)) 


Compile Kernel on Ubuntu 20.04 x86_64

Compile Kernel on Ubuntu 20.04 x86_64

Install the missing dependencies

apt-get update && apt-get upgrade && apt-get install -y build-essential libncurses5-dev gcc libssl-dev grub2 bc bison flex libelf-dev

Then we are going to download the kernel from

tar -xvf linux-5.7.5.tar.xz

Copy the existing config file so that the correct modules for the ardware of the machine you are compiling the kernel for

cp /boot/config-$(uname -r) /root/linux-5.7.5/.config

Then we are going to compile the kernel firstly you want to cd into the kernel folder

cd /root/linux-5.7.5
make menuconfig
make -j8 deb-pkg
dpkg -i ../linux-*.deb

Then you can proceed to rebooting the machine by typing the following


Once the machine is rebooted you can confirm the latest kernel by entering the following command

uname -a

USB Drop Attack POC using Arduino

Simple POC by using Arduino as a USB HID.

The Arduino will attempt to make the computer go to a specific website via keyboard input.

#include "HID-Project.h"

void setup() {
  // Setup

  // Attack;'r');  

  // End

void loop() {
// do nothing

PJSUA sampling issues with ALSA

I have been trying to make a VOIP calling device with a raspberry pi3 and MIC+ using PJSUA. There seems to be a bug when attempting to make/receive a call.

pjsua-armv7l-unknown-linux-gnueabihf: ../src/pjmedia/conference.c:1895: get_frame: Assertion `frame->size == conf->samples_per_frame * conf->bits_per_sample / 8' failed.

To fix this: change /root/.asoundrc

options snd_rpi_googlevoicehat_soundcard index=0

pcm.softvol {
type softvol
slave.pcm dmix
period_size 320
buffer_size 10240
name Master
card 0

type softvol
slave.pcm dsnoop
period_size 320
buffer_size 10240
control {
name Micro
card 0
min_dB -10.0
max_dB 50.0
resolution 256}

pcm.!default {
type asym
playback.pcm "plug:softvol"
capture.pcm "plug:micboost"

ctl.!default {
type hw
card 0

If it still does not work then refer to this: