OpenWRT with rtl8152 for Raspberry Pi 2

Standard

Raspberry pi OpenWrt with rtl8152 USB Ethernet dongle support . By default it is disabled in kernel we can enable it and compile [ Refer : https://forum.openwrt.org/viewtopic.php?pid=279394 ] here the one i have compiled for my Raspberry Pi 2.

Working Flashable image with rtl8152 support

openwrt-brcm2708-bcm2709-sdcard-vfat-ext4.img

How to manually do it 

Refer : How to build OpenWrt

Refer : https://forum.openwrt.org/viewtopic.php?pid=279394

The following lines should add the 2 realtek USB-Ethernet modules to OpenWrt:
(in packages/linux/modules/usb.mk)

 

define KernelPackage/usb-net-rtl8150
  TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
  KCONFIG:=CONFIG_USB_RTL8150
  FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/rtl8150.ko
  AUTOLOAD:=$(call AutoProbe,rtl8150)
  $(call AddDepends/usb-net)
endef
define KernelPackage/usb-net-rtl8150/description
Kernel module for USB-to-Ethernet Realtek 8150 convertors
endef

$(eval $(call KernelPackage,usb-net-rtl8150))

define KernelPackage/usb-net-rtl8152
TITLE:=Kernel module for USB-to-Ethernet Realtek convertors
KCONFIG:=CONFIG_USB_RTL8152
FILES:=$(LINUX_DIR)/drivers/$(USBNET_DIR)/r8152.ko
AUTOLOAD:=$(call AutoProbe,r8152)
$(call AddDepends/usb-net)
endef

define KernelPackage/usb-net-rtl8152/description
Kernel module for USB-to-Ethernet Realtek 8152 USB2.0/3.0 convertors
endef

$(eval $(call KernelPackage,usb-net-rtl8152))

Add those two modules in Kernel -> Modules – > Usb support 

Then compile the whole code

Advertisements

3 thoughts on “OpenWRT with rtl8152 for Raspberry Pi 2

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s