Adding new device - vanaware/openwrt GitHub Wiki

This is a general map of where most important files are located:

/target/linux/ramips/base-files/etc/…

This folder contains files and folders that will be integrated in the firmware’s /etc folder. These are its subfolders and files:

  • board.d/ = scripts for defining device-specific default hardware, like leds and network interfaces.
  • hotplug.d/ = scripts for defining device-specific actions to be done automatically on hotplugging of devices
  • init.d/ = scripts for defining device-specific actions to be done automatically on boot
  • uci-defaults/ = files for defining device-specific uci configuration defaults
  • diag.sh = defines what is the led to use for error codes for each board

/target/linux/ramips/base-files/lib/…

This folder contains files and folders that will be integrated in the firmware’s /lib folder.These are its subfolders and files:

  • ramips.sh = human-readable full board name associated to script-safe board name
  • preinit/ = common <arch_name> preinit startup scripts
  • upgrade/ = common <arch_name> upgrade scripts

/target/linux/ramips/base-files/sbin

This folder contains files and folders that will be integrated in the firmware’s /sbin folder, usually common <arch_name> sbin scripts and tools.

/target/linux/ramips/dts/

Device tree source files, or dts for short.

/target/linux/ramips/image/

Configuration needed to build device-specific flashable images.

/target/linux/ramips/mt7620/

Board-specific configuration.

/target/linux/ramips/modules.mk

Arch-specific kernel module config file for menuconfig

References:
https://lede-project.org/docs/guide-developer/adding_new_device

⚠️ **GitHub.com Fallback** ⚠️