DebWRT build using Ubiquity RouterStation Pro as an example
Greetings, harachitory.
I bring to your attention a small how-to for assembling and installing DebWRT on Ubiquity RouterStation Pro
A little about DebWRT.
As the author of the project on the site writes : “DebWRT is a project to launch Debian GNU / Linux on embedded devices, such as wireless routers. DebWRT combines two technologies: Debian and OpenWrt. Debian has thousands of packages for a variety of architectures and a great package manager, and OpenWrt is the core that supports embedded devices. Combining these two technologies opens up a whole world of new opportunities. ”
Thus, all the pieces of hardware that OpenWRT supports will be supported by DebWRT, but after we “prepare” it.
So, let's get started ...
During the “preparation” I needed the following ingredients:
# apt-get install build-essential sudo subversion debootstrap makedev libncurses5-dev zlib1g-dev gawk flex unzip git-core
#mkdir / usr / src / debwrt
#chmod 777 / usr / src / debwrt
You must not collect under the root.
#nano / etc / sudoers
non-root-user ALL = (ALL) ALL
Get the OpenWRT source code DebWRT
$ cd / usr / src
$ svn checkout svn.debwrt.net/debwrt/trunk debwrt
$ rm -rf / usr / src / debwrt /openwrt/.svn/
$ cd / usr / src / debwrt
$ svn co svn: //svn.openwrt.org/openwrt/trunk openwrt
$ / usr / src / debwrt / openwrt / scripts / feeds update -a
$ make menuconfig
We select the necessary system (in my case rspro)
$ make openwrt / menuconfig
In the Kernel Modules menu, select the drivers we need.
Save and exit
$ make openwrt / all V = 99
$ make debian / rootfs
Next, you need to prepare a memory card and flash the device itself. We already wrote about this on the hub here. Only in our case we take the firmware from here: /
usr / src / debwrt / bin / platform name-angel-2.0-1-default/ - here the modules and headers
/usr/src/debwrt/build/rootfs-mips-angel-2.0-1/ are also located - and this is the system itself and you need to copy it to DEBWRT_ROOT
After the firmware, insert the card, reboot the router and click on 192.168.1.1
Login / the password is root / debwrt
Now you need to perform the second stage of installation:
-bash-4.1 # / debootstrap / debootstrap --second-stage
-bash-4.1 # rm -rf / var / cache / apt / archives
-bash-4.1 # mkdir -p / var / cache / apt / archives / partial
-bash-4.1 # echo "debftp.debian.org/debian squeeze main »>> / etc / apt / sources.list
-bash-4.1 # reboot
After rebooting, go to the router and, if all the steps are successful, we should see a standard Debian greeting and of course:
# apt-get update
PS The second stage can also be performed on the computer. To do this, activate the Use qemu to perform Debian second stage install on the host item and install the packages necessary for qemu
DebWRT project site: debwrt.net
DebWRT Wiki: dev.debwrt.net/wiki
DebWRT HCL: dev.debwrt.net/wiki/ TableOfSupportedHardware
Thanks to the author of the amain project for advice and support, and to drunken, the haberman, for the review
I bring to your attention a small how-to for assembling and installing DebWRT on Ubiquity RouterStation Pro
A little about DebWRT.
As the author of the project on the site writes : “DebWRT is a project to launch Debian GNU / Linux on embedded devices, such as wireless routers. DebWRT combines two technologies: Debian and OpenWrt. Debian has thousands of packages for a variety of architectures and a great package manager, and OpenWrt is the core that supports embedded devices. Combining these two technologies opens up a whole world of new opportunities. ”
Thus, all the pieces of hardware that OpenWRT supports will be supported by DebWRT, but after we “prepare” it.
So, let's get started ...
During the “preparation” I needed the following ingredients:
- Debian squeeze
- free space in / usr / src at least 10 GB
- tea with liver
# apt-get install build-essential sudo subversion debootstrap makedev libncurses5-dev zlib1g-dev gawk flex unzip git-core
#mkdir / usr / src / debwrt
#chmod 777 / usr / src / debwrt
You must not collect under the root.
#nano / etc / sudoers
non-root-user ALL = (ALL) ALL
Get the OpenWRT source code DebWRT
$ cd / usr / src
$ svn checkout svn.debwrt.net/debwrt/trunk debwrt
$ rm -rf / usr / src / debwrt /openwrt/.svn/
$ cd / usr / src / debwrt
$ svn co svn: //svn.openwrt.org/openwrt/trunk openwrt
$ / usr / src / debwrt / openwrt / scripts / feeds update -a
$ make menuconfig
We select the necessary system (in my case rspro)
- Target System (Atheros AR71xx / AR7240 / AR913x)
- Subtarget (Generic)
- Target Profile (Ubiquiti RouterStation Pro)
- Debian Root Filesystem Configuration ---> Use qemu to perform Debian second stage install on the host [disable]
$ make openwrt / menuconfig
In the Kernel Modules menu, select the drivers we need.
Save and exit
$ make openwrt / all V = 99
first cup of tea
$ make debian / rootfs
second cup of tea
Next, you need to prepare a memory card and flash the device itself. We already wrote about this on the hub here. Only in our case we take the firmware from here: /
usr / src / debwrt / bin / platform name-angel-2.0-1-default/ - here the modules and headers
/usr/src/debwrt/build/rootfs-mips-angel-2.0-1/ are also located - and this is the system itself and you need to copy it to DEBWRT_ROOT
After the firmware, insert the card, reboot the router and click on 192.168.1.1
Login / the password is root / debwrt
Now you need to perform the second stage of installation:
-bash-4.1 # / debootstrap / debootstrap --second-stage
-bash-4.1 # rm -rf / var / cache / apt / archives
-bash-4.1 # mkdir -p / var / cache / apt / archives / partial
-bash-4.1 # echo "debftp.debian.org/debian squeeze main »>> / etc / apt / sources.list
-bash-4.1 # reboot
After rebooting, go to the router and, if all the steps are successful, we should see a standard Debian greeting and of course:
# apt-get update
PS The second stage can also be performed on the computer. To do this, activate the Use qemu to perform Debian second stage install on the host item and install the packages necessary for qemu
DebWRT project site: debwrt.net
DebWRT Wiki: dev.debwrt.net/wiki
DebWRT HCL: dev.debwrt.net/wiki/ TableOfSupportedHardware
Thanks to the author of the amain project for advice and support, and to drunken, the haberman, for the review