So I got the OpenWRT code on my laptop, and fired up make menuconfig
. Poked around a bit and I found that I could get as far as the following:
Target System: MediaTek Ralink MIPS
SubTarget: MT7621 based boards
Target Profile: MISSING
The Target Profile for the MoFi 5500 is missing, so I'd like to create that. What files do I need to create to make it show up? I know I'll need to dig through the actual hardware and find things like GPIO numbers and such, but I'm not familiar with the process of adding a new router to OpenWRT. That's what I'll need help with. I've been digging through Google and the source code for days, and finally decided to just create and account and ask.
I did manage to find out that someone else wanted the 550 ported, but didn't have time, and I also saw that in make menuconfig
, if I search for MOFI, I get the following:
Symbol: TARGET_DEVICE_PACKAGES_ramips_rt305x_DEVICE_mofinetwork_mofi3500-3gn [=] β
β Type : string β
β Defined at tmp/.config-target.in:245215 β
β Prompt: MoFi Network MOFI3500-3GN additional packages β
β Depends on: TARGET_MULTI_PROFILE [=n] && TARGET_PER_DEVICE_ROOTFS [=n] && TARGET_DEVICE_ramips_rt305x_DEVICE_mofinetwork_mofi3500-3gn [=n] β
β Location: β
β -> Target Devices β
β -> MoFi Network MOFI3500-3GN (TARGET_DEVICE_ramips_rt305x_DEVICE_mofinetwork_mofi3500-3gn [=n]) β
β β
β β
β Symbol: TARGET_DEVICE_ramips_rt305x_DEVICE_mofinetwork_mofi3500-3gn [=n] β
β Type : bool β
β Defined at tmp/.config-target.in:245145 β
β Prompt: MoFi Network MOFI3500-3GN β
β Depends on: TARGET_MULTI_PROFILE [=n] && TARGET_ramips_rt305x [=n] β
β Location: β
β -> Target Devices β
β Selects: DEFAULT_base-files [=y] && MODULE_DEFAULT_base-files [=n] && DEFAULT_busybox [=n] && MODULE_DEFAULT_busybox [=n] && DEFAULT_ca-bundle [=n] && MODULE_DEFAULT_ca-bundle [=n] && DEFAULT_dnsmasq [=n] && MODULE_DEFAULT_dnsmas β
β β
β β
β Symbol: TARGET_ramips_rt305x_DEVICE_mofinetwork_mofi3500-3gn [=n] β
β Type : bool β
β Defined at tmp/.config-target.in:85043 β
β Prompt: MoFi Network MOFI3500-3GN β
β Depends on: <choice> && TARGET_ramips_rt305x [=n] β
β Location: β
β (1) -> Target Profile (<choice> [=y]) β
β Selects: DEFAULT_base-files [=y] && DEFAULT_busybox [=n] && DEFAULT_ca-bundle [=n] && DEFAULT_dnsmasq [=n] && DEFAULT_dropbear [=n] && DEFAULT_firewall4 [=n] && DEFAULT_fstools [=n] && DEFAULT_iwinfo [=n] && DEFAULT_kmod-gpio-but β
β
So someone else ported that one. I found it has a dts file, and looking it up, I found this: https://openwrt.org/docs/guide-developer/defining-firmware-partitions
I'm still not sure if all I do is create a DTS file for Mofi 5500, and if so, I'll need to know where the particulars are for the format.
Anyone care to clue me in on how it's done? Links to existing tutorials or docs I couldn't find? Anything?
Also, once I successfully map this stuff out, I'd like to add it to OpenWRT's collection of info so others can do the same. What's the process for that?
EDIT:
I forgot to mention that MoFi 5500 is already running OpenWRT, but their compilation of it is closed-source. (Annoying) Perhaps that'll make it easier to probe things and find out the correct config. Maybe even dump the target data if it got saved as part of the image. LMK.