048 OpenWrt Build Log

Published on

Original language: Chinese . AI translations: English , Japanese .


Tried building OpenWrt. Lots of pain (for me).

References

Process

I tried building OpenWrt a long time ago, but couldn’t get it to work.
Later I tried P3’s GitHub Actions cloud build. The success rate wasn’t high either (and even when it succeeded, I didn’t know how to use the firmware I built…).

These days I remembered router firmware again and tried to build it. It’s still painful, but a bit better than before.
(At least I now roughly know what the outputs are for.)

  • .bin seems to be flashed to the router
  • .ipk packages
  • .img / .vmdk virtual machine images

Before, even if the build succeeded, I’d see a pile of files and have no idea what to do next (and most tutorials end right there, which is brutal).

Recently I was tinkering with a virtualized soft router and needed to install OpenWrt in a VM. After reading a few tutorials, I learned that .img should be used via “import existing disk image” when creating the VM.


Latest Progress

VM created. Network in bridge mode. Set IPs so the VM and host are in the same subnet, but I still can’t ping the VM.
Stuck. Pausing the OpenWrt tinkering for now.
(Will come back after learning some networking.)

2020/09/27 update
I read some other people’s soft-router notes and saw a YouTube tutorial I haven’t watched yet. Recording it here:
eSir PlayGround - 再聊一聊我的固件 - 到底用精品小包还是高大全?关于固件版本,架构,初始默认IP和密码,芝麻开门,网卡设置等等,咔咔一通解释,解答一直以来的诸多问题,希望对大家有帮助