Realtek firmware on 1st/2nd boot

I have installed OpenWRT onto a normal PC using the 19.xx ext4 image - that machine had an Intel NIC, so it loaded up the interface without any trouble.
I added the realtek mods etc like so...

opkg install kmod-8139cp kmod-8139too kmod-phy-realtek kmod-rtl8xxxu pciutils

I now have another PC that I'd like to install onto, but that one has ONLY realtek devices available. This means I can't use the network until I install the drivers/firmware, but I can't access the network to do so.
I'm assuming I need to copy the relevant files to a temp subdir, and then install them manually into the system....but... I don't know where to put them on the bootable USB device that has the install image on it.
Can anyone point me at the right article?


What about the image builder? You can (easily) create your own image with all the packages you need.

I haven't ever tried that, but now seems to be a good time to see if I can manage. Thank you!

1 Like

If I want to build an image for an x86_64 PC using 19.07 with realtek mods, would I refer to the to build a "normal" one, or the to build a "snapshot" one?

In one of the examples, the make line was

make image PROFILE=tl-wr841-v11 PACKAGES="luci luci-ssl luci-i18n-base-ca luci-i18n-firewall-ca luci-i18n-base-es luci-i18n-firewall-es luci-i18n-base-en luci-i18n-firewall-en xl2tpd kmod-ipt-conntrack-extra iptables-mod-conntrack-extra kmod-ipt-conntrack-extra iptables-mod-ipopt" FILES=files/

In my case, would I use "PROFILE=x86_64", or does this not matter particularly?
And lastly, will the build pull in necessary dependancies, or should I check each one and specify it/them?

Thanks again

My two cents:

  • Use this guide instead:
  • You do not want to compile each package, just create an image from the already compiled packages.
  • Unless you really need a snapshot, use the latest stable release.
  • You need to use the correct profile for your platform (use "make help" for the details).
  • Including a package also includes all needed dependencies, just add the same packages you would install using "opkg".
1 Like

Thank you Eduardo. I created a custom image and it works perfectly

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.