-
Notifications
You must be signed in to change notification settings - Fork 0
Build_openwrt
Yedino/Galaxy42 should work on OpenWrt/LEDE platform, tested on CompWdr4300.
- Checking out source
If you want to use trunk, use the below line:
git clone https://www.github.com/openwrt/openwrt
or
git clone https://git.lede-project.org/source.git openwrt
If you want to use a release source, use this:
git clone https://www.github.com/openwrt/openwrt -b v17.01.4
(Verify the release name on Github.)
- Download Galaxy packages:
update this URL in future will be https://github.com/yedino/OpenWrt-packages
git clone https://github.com/sdf5/OpenWrt-packages packages
- Go to openwrt directory
cd openwrt/
- Update feeds:
./scripts/feeds update -a
- Copy Galaxy packages to feeds
cp ../packages/* feeds/packages/libs/ -r
- Update feeds:
./scripts/feeds update -a
- Make downloaded package/packages available in make menuconfig
./scripts/feeds install -a
- The OpenWrt build system configuration interface
make menuconfig
- Set "Target System", "Subtarget", "Target Profile", check Galaxy42 package
- Set "Target System"
- Set "Subtarget"
- Set "Target Profile"
- check "Galaxy42"
- check "LuCI/Collections/luci" (optional for GUI)
- check "Utilities/schadow-utils" (optional for add user)
- check "Utilities/shells/bash" (optional)
- check "Administration/sudo" (optional)
and save config
- download sources (optional to download before build)
make download
- Build the image
make
Enable multi threads builds make -jN
where N is number of threads.
Enable ccache for buidl openwrt export CONFIG_CCACHE=y
After a successful build, the freshly built image(s) can be found in the newly created ./bin/targets
directory (for TP-LINK TL-WDR4300 is ./bin/targets/ar71xx/generic/openwrt-ar71xx-generic-tl-wdr4300-v1-squashfs-factory.bin
).
If you want only galaxy42 package you can build it:
make package/Galaxy42/compile
and find it in ./bin/packages/
directory (for TP-LINK TL-WDR4300 is ./bin/packages/mips_24kc/packages/Galaxy42_2016-12-29-OpenWrt-1_mips_24kc.ipk
).
How to run opnewrt on device you can find on https://openwrt.org/toh/start.
- Connect to device
- Create new user
-
'useradd USER_NAME' - Create new user
-
passwd USER_NAME
- Add password to user -
mkdir /home
- Create home directory -
mkdir /home/USER_NAME
- Create user directory -
chown USER_NAME /home/USER_NAME
- Give permissions
- Allow user to temporary privileged access using sudo
For enabling enter the command
visudo
And then add a line allowing your user, under comment "## User privilege specification":
##
## User privilege specification
##
root ALL=(ALL) ALL
nicolaus ALL=(ALL) ALL
- Add privilege to tun for all users
chmod a+rw /dev/net/tun
- Login to new user.
su USER_NAME
- Run galaxy
sudo /usr/bin/tunserver.elf
Unofficial R&D page for Yedino and it's OpenSource community.
Code here can be 🚨insecure🚨 so run it only on isolated test machines/accounts.
Official Yedino is instead on https://github.com/yedino/galaxy42 .
Home || Contact || Tips❤️ || TestNr🔬 || EditWiki
Progress:
Report (blog)
Research / Current topic:
NetworkSpeed
TestNetwork10gNet1 Network
TestDevicesNX3031_HP NIC Device
NetworkSpeed10Gb 10 GB speed
Development:
GUI
Yedino Users:
YedinoServices - use this services
YedinoPeers - peer to this
Cool - most popular services
Please help
Help
NetworkSpeed 🏗️Help🏗️
Use/search emojis icons:
🏗️ - help needed
📓 - testing/lab needed
🥇 - best result (in our program)
🥈 - best result
🚫 - warning (e.g. in test results)
🚩 - interesting (e.g. in test results)
📚 - high quality resource
🚧 - todo
🚨 - warning