Quallenauge / ralink_inic

2 stars 1 forks source link

RaLink driver port

To use them compile the kernel and busybox with devmem support.

Then activate the driver with the following commands: busybox devmem 0x1e10b200 32 0x4024 # MII_CFG_5 (mii_base + portnum8) = MII_CFG_EN | MII_CFG_RATE_M125 | MII_CFG_MODE_RGMII busybox devmem 0x1e10b204 32 0xc003 # PCDU_5 busybox devmem 0x1e10a40c 32 0x0180 # MAC_CTRL_0 todo :switch settings busybox devmem 0x1e10b140 32 0x3205 # PHY_ADDR_5 mdio_base + (0x54 -(portnum4)) = MDIO_PHY_LINK_UP | MDIO_PHY_SPEED_G1 | MDIO_PHY_FDUP_EN | phyaddr

sleep 10

/sbin/insmod /tmp/inic/rt3883_iNIC.ko mode=ap miimaster=eth0.1 mac=4c:09:d4:16:d8:88 mac2=4c:09:d4:16:d8:89 reset_gpio=483 ip link set ra00_0 up

After that, the board is is initialized and waits for some more instructions via iwpriw / iwconfig commands. ra00_0 is for 5G band ra01_0 is for 2.4G band

ra00_1 is used for guest networks ra01_1 is used for guest networks

E.g.: iwpriv ra01_0 set Channel=11 iwpriv ra01_0 set SSID="MySSID" iwpriv ra01_0 set RadioOn=1