OpenWrt Forum Archive

Topic: P-2812HNU-F1(V1.00(AACC.3)C0): compile from source-code

The content of this topic has been archived on 29 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

http://1drv.ms/1uKLTQr
- latest open source from Zyxcel.

Read ReadMe_for_P-2812HNU-F1(V1.00(AACC.3)C0)
Ubuntu 10.04 @ http://old-releases.ubuntu.com/releases/
Power up yr virtual machine and compile...

Quick test results:
ras.bin binary made but size a little different from Zyxcel Official Release
Test
upgrade router with official release
reset configuration
upgrade router with ras.bin
Result
no internet connection (wireless works)
It was a "5 min test": and I will repeat at some stage
It was possible to upgrade again to official release (Internet connection  worked)

Edit:
internet connection problem is cos the resolve.conf for dnsmasq is empty.
resolve.conf is empty cos ...

Edit:
BTW, openwrt support for the device may be without wireless, the code is available for download though
https://dev.openwrt.org/changeset/40317
I guess the area where the support for wireless may come in is:
https://dev.openwrt.org/browser/trunk/t … nux/lantiq

Edit:
Original firware for reference
# atsh
ZLD   Version          : V1.00(AACC.3)
Bootbase Version       : V3.08|06/04|2013(AACC)
Vender Name            : ZyXEL Communications Corp.
Product Model          : P-2812HNU-F1
Serial Number          : S120Y30635190
First MAC Address      : B0B2DCCC3A90
Last MAC Address       : B0B2DCCC3A97
MAC Address Quantity   : 08
Default Country Code   : FD
Boot Module Debug Flag : 00
RootFS      Checksum   : 0000cd41
Kernel      Checksum   : 00006789
RomFile     Checksum   : 00001731
Main Feature Bits      : 00
Other Feature Bits     :
          06 00 00 04 19 01 00 ff-f8 00 00 00 01 00 00 00
          00 00 00 00 00 00 00 00-00 00 00 00 00 00 00 00

Edit : Zyxel ftp @ ftp://ftp.zyxel.dk/P-2812HNU-F1/

Edit: wiki @ http://wiki.openwrt.org/toh/zyxel/p2812hnu-f1

(Last edited by oxo on 15 Oct 2014, 17:58)

I haven't really done anything yet, but when looking at the files in 100AACC3C0_OpenSource.tar.bz2 I noticed there is already file called NAND.bin in P-2812HNU-F1/build/final-image/ and in another folder is the bootbase AACC309.bm.

aam wrote:

I haven't really done anything yet, but when looking at the files in 100AACC3C0_OpenSource.tar.bz2 I noticed there is already file called NAND.bin in P-2812HNU-F1/build/final-image/ and in another folder is the bootbase AACC309.bm.

smile please do not risk your router at this stage if it is the only one you have and is otherwise working.
I have ordered a serial cable for my router.

"Wireless Freedom"
- the open source from Zyxcel can give freedom just now to change/add stuff if one is able while the OpenWrt version may not have wireless at the moment but one should only use other firmware if one has a real need just now.

I'm going to take my time as I don't want to brick it. 

My main problem at the moment is that I can only connect by serial.  I haven't got access to any of the accounts (admin, user, etc), or even telnet.  I have to find a way to reset the account passwords or add new ones by only using serial.

u have root acces from serial?
if yes, easy way i think is, to add a supervisor account with this command

adduser -g root -G root -S supervisor

then try login via web, for connect to telnet, need open protocol from remote management.

No, unfortunately I don't have root access.  My only solution may be to find out if there is a recovery procedure so I can at least restore the admin and user accounts back to working with 1234.

download a default configuration file, and try to upload it from bootloader.

look there in the atxx commands, there is to be an upload default configuration with xmodem

(Last edited by cornelus2009 on 6 Oct 2014, 16:49)

Thanks for the suggestions cornelus2009.  I did try that.  I looked through the commands as I was expecting to find something like ATLC used in other Zyxel hardware, but it's not there and I can't see anything else that will do it.  I tried ATUR and ATUB anyway, but it wouldn't work. 

As not to divert this thread from source code development for the P-2812HNU-F1 I should probably put anything about trying to restore account access on the ZyXEL P-2812HNU-F1 Unbranding Process thread.

(Last edited by aam on 8 Oct 2014, 13:10)

Thanks for the sources.

I tried to use it for 'poor man's openwrt'. Compiled a firmware with ext3 support, and usbstorage and host fixed in the kernel. Then I changed /etc/preinit to first try to mount an usb stick, and if that succeeds, and some file is there, a pivot_root is used to boot the rootfs on the stick.

On the stick I put an AA ar9 rootfs.

That works, but I can't get the network running. The way the firmware handles switch and network interfaces is a mess. It seems the switch is configured several times, and I can't find where actually eth0 and eth1 are instantiated. On boot they are not available.

Hi Mijzelf

Have you tried the OpenWrt version?
And if yes:
was wireless working?
Or if no:
Are you good enough to see if "we" can get it working?

As I once wrote, there are a lot of no-freedom F1's that would be good to get released if "work" was done either by OpenWrt or OpenSource way

Br Owen

oxo wrote:

Have you tried the OpenWrt version?

No. I cannot find any documentation how that should be done. The only way to flash openwrt I can think of, is to download the source, look how the mtd is organized, and use u-boot to flash the provided binary in the 'kernel+rootfs' partition, and hope that it works.

Or ask the developer to document the installation process.

Mijzelf wrote:

oxo wrote:

Have you tried the OpenWrt version?

No. I cannot find any documentation how that should be done..

I have the same problem: I was wondering if anyone else had worked it out before I tried smile


Edit
Downloadable @ openwrt
openwrt-lantiq-xrx200-P2812HNUFX-jffs2-128k.image  02-Oct-2014 07:29             5111812
openwrt-lantiq-xrx200-P2812HNUFX-jffs2-256k.image  02-Oct-2014 07:29             5242884
openwrt-lantiq-xrx200-P2812HNUFX-jffs2-64k.image   02-Oct-2014 07:29             5111812
openwrt-lantiq-xrx200-P2812HNUFX-rootfs-overlay..> 02-Oct-2014 07:29             2752512
openwrt-lantiq-xrx200-P2812HNUFX-rootfs.ubi        02-Oct-2014 07:29             6029312
openwrt-lantiq-xrx200-P2812HNUFX-rootfs.ubifs      02-Oct-2014 07:29             5677056
openwrt-lantiq-xrx200-P2812HNUFX-squashfs.image    02-Oct-2014 07:29             3932164
openwrt-lantiq-xrx200-P2812HNUFX-uImage            02-Oct-2014 07:29             1512955

Edit
I have now also gotten my OpenWrt build system running again (many years since last used): generated code from trunk

(Last edited by oxo on 10 Oct 2014, 22:51)

oxo wrote:

Edit
I have now also gotten my OpenWrt build system running again (many years since last used): generated code from trunk


How to flash openwrt,

muziling wrote:

How to flash openwrt,

No one knows: do not try unless you really know what you are doing

Ordered another cable (from Italy) as hong kong one has not arrived yet

I HAVE A CABLE smile

And absolutly no idea what image file to use.
- but everything hooked up with tftp serial etc etc

Now you've got your cable, still take it easy as you don't want to make a brick. smile

My CP2104 usb - ttl board arrived from HK, but it did take three weeks.  I also decided to re-pin an old cd-rom audio cable so I don't have to plug each pin separately.

ZLD   Version              : V1.00(AACC.3)
Bootbase Version       : V3.09|01/24|2013(AACC)
Vender Name             : ZyXEL Communications Corp.
Product Model            : P-2812HNUL-F1

I loaded bootbase 3.09 from the source code package but I haven't noticed anything new or improved yet.

(Last edited by aam on 21 Oct 2014, 13:40)

aam wrote:

Now you've got your cable, still take it easy as you don't want to make a brick. smile

I have 4 test boxes smile
I am trying to get the box on the internet for serial/ethernet connection to anyone smarter than me, just need to find my raspberry pi
Edit
Thread for OpenWrt on P-2812HNU-FX @ https://forum.openwrt.org/viewtopic.php?id=53511

(Last edited by oxo on 21 Oct 2014, 18:23)

oxo wrote:

I have 4 test boxes smile

Ah, that's why you can take a few more risks.

The discussion might have continued from here.