Build openWRT for P-2812HNU-F1 -DG13-

Post Reply
admin
Site Admin
Posts: 473
Joined: 06 Feb 2007, 13:36

Build openWRT for P-2812HNU-F1 -DG13-

Post by admin »

For device: P-2812HNU-F1
Building OS: Linux Debian Jessie 8.0
Version: r? -DG13-

Plan start: 9 feb 2015
--

We start with 'nothing', from scratch!

I used mainly this OpenWrt wiki page:
http://wiki.openwrt.org/doc/howto/buildroot.exigence


Linux pre-install

Make sure your linux version has the following packages installed:

Code: Select all

- (su)do apt-get install  gcc
                          binutils
                          bzip2
                          python
                          perl
                          make
                          findutils  # (older: find) ?
                          grep
                          diffutils  # (older: diff) ?
                          unzip
                          getopt
                          libz-dev
                          git-core
                          libssl-dev
                          build-essential
                          subversion
                          libncurses5-dev
                          zlib1g-dev
                          gawk
                          gcc-multilib
                          flex
                          gettext
                          quilt
                          lzop
# thanks aam 4 the last 2 packages
Use 'apt-show-versions |grep {package}' to check the packages.


OpenWrt first build:

And below here, most stuff is from oxo @ forum page:
https://forum.openwrt.org/viewtopic.php?id=53511

Perform next commands:

Code: Select all

(su)do apt-get update
git clone git://git.openwrt.org/openwrt.git
git clone git://git.openwrt.org/packages.git
cd openwrt
You must select a target before "make defconfig" or default broadcom is selected:
https://forum.openwrt.org/viewtopic.php ... 70#p140470

Only use this the FIRST time your build a firmware package.
Updates can be made with the same package and take only 10 minutes to build new one,
NOT if you re-run this 'echo CONFIG_TARGET_lantiq=y > .config' command!

echo CONFIG_TARGET_lantiq=y > .config
# ONLY ONES #

- To check (14): Do we need another 'lantiq'? -> echo CONFIG_TARGET_lantiq_xrx200=y > .config

OpenWrt Re-build / Update:

Perform commands (from the right 'path'):

Code: Select all

git pull
./scripts/feeds update -a
./scripts/feeds install -a
make defconfig
make prereq
make menuconfig
Within Menuconfig you make your selections:
  • Target System: Lantiq
  • Subtarget: XRX200
  • Target Profile: ZyXEL P-2812HNU-F1
  • Bootloaders: both
And many options more ...

Just to make sure SED is not active:
https://dev.openwrt.org/ticket/10612

Code: Select all

unset SED
Now we get building the image...

Code: Select all

make
This will build your firmware package, and can take some time, especially the first run.
Within 'bin/lantiq/' you will find needed firmware files to flash earlier OpenWrt versions.
Or debrick a ZyXEL firmware running box to run OpenWrt:
http://wiki.openwrt.org/toh/zyxel/p2812hnu-f1

On error:
When receiving an error during this run, 'make V=s' should be run to determine what causes this error.
This is also written on screen, if there is an error.


Reading https://forum.openwrt.org/viewtopic.php?id=53511 and you can also update your current OpenWrt build-environment.
(Some) Packages that seems to be uninstallable by the WEB GUI, return a kernel error, means in most cases that you have to rebuild your firmware package and INCLUDE the missing package in the build-process.


-----

To check within & during new build:

+ LUCI should be set default, check and select if not, default its OFF!
+ Some other packages, like USB drive support are default DISABLED.

-----

TODO:

- Create nandtpl images.

- remove 'MAC Device Info Overrides' from luci-menu (not working, no support).

- Change MAC in RT3062.eeprom offset 4 (files/lib/firmware/):
https://forum.openwrt.org/viewtopic.php ... 45#p264645
8 feb 2015


Updates / changes:
+ = installed
t = testing
- = removed

feb 2015:

new (testing):
t) Different DSL, atm -> ptm:
https://forum.openwrt.org/viewtopic.php ... 08#p264708
9 feb 2015
- kmod-ltq-ptm-vr9 instead of: kmod-ltq-atm-vr9


-DG13- 9 feb 2015 OpenWrt Chaos Calmer r?
-New build, with:
-------------------------------------------------------------------------------
+ Privoxy 3.0.23-1 & luci-app-privoxy 1.0.2-0
+ luci-app-statistics
+ USB memory drive support
t 'kmod-ltq-ptm-vr9' instead of 'kmod-ltq-atm-vr9'
- Removed: 'MAC Device Info Overrides' from luci-menu (not working, no support)
- Removed: Dynamic DNS
- p910nd - Printer server
- (SIP) Devices on Network
- Removed: kmod-scsi-core - 3.14.30-1

-DG12- 7 feb 2015 OpenWrt Chaos Calmer r44257
-Re-build, including:
-------------------------------------------------------------------------------
+ Privoxy 3.0.23-1 & luci-app-privoxy 1.0.2-0
t luci-app-statistics
t USB memory drive support
t Dynamic DNS
t p910nd - Printer server
t (SIP) Devices on Network

-DG11a- 5 feb 2015 OpenWrt Chaos Calmer r44257
-Re-build, including:
-------------------------------------------------------------------------------
+Privoxy 3.0.23-1 & luci-app-privoxy 1.0.2-0
t luci-app-statistics
t USB memory drive support


-DG09- 3 feb 2015 (23:06) OpenWrt Chaos Calmer r
-Re-build, including:
-------------------------------------------------------------------------------


-DG08- 3 feb 2015 (01:32) OpenWrt Chaos Calmer r
-Re-build, including:
-------------------------------------------------------------------------------


-DG07- 2 feb 2015 OpenWrt Chaos Calmer r
-Re-build, including:
-------------------------------------------------------------------------------


-DG06- 1 feb 2015 (21:49) OpenWrt Chaos Calmer r
-Re-build, including:
-------------------------------------------------------------------------------


-DG05- 1 feb 2015 (20:59) OpenWrt Chaos Calmer r44236
-Re-build, including:
-------------------------------------------------------------------------------


-DG04- 1 feb 2015 (13:45) OpenWrt Chaos Calmer r44233
-Re-build, including:
-------------------------------------------------------------------------------


-DG03- 26 jan 2015 OpenWrt Chaos Calmer r44147
-Re-build, including:
-------------------------------------------------------------------------------
= openwrt-lantiq-xrx200-P2812HNUF1-ubifs-sysupgrade3.tar


-DG02- 25 dec 2014 (02:23) OpenWrt Chaos Calmer r4
-Re-build, including:
-------------------------------------------------------------------------------
= openwrt-lantiq-xrx200-P2812HNUF1-ubifs-sysupgrade2.tar


-DG01- 25 dec 2014 (10:51) OpenWrt Chaos Calmer r
-New build, including:
-------------------------------------------------------------------------------
= openwrt-lantiq-xrx200-P2812HNUF1-ubifs-sysupgrade.tar
(other -scapi- build)

--
Tested and installed:

1) Privoxy 3.0.23-1 & luci-app-privoxy 1.0.2-0 (not active, -DG12-)
2) luci-app-statistics git-15.037.36178-4ba597b-1
3) USB memory drive support
Post Reply