3.5 KiB
Build guide for VMG8825-B50B V5.17(ABNY.7)C0
- Introduction
This file will show you how to build the VMG8825-B50B linux system, please note, the download image will overwrite the original image existed in the flash memory of EV board.
-
Files list
A. README - This file
B. V517ABNY7C0_GPL.tgz - Open Source Code of VMG8825-B50B and Open Source Code of Toolchain
-
Prepare the build OS.
A. We suggest using the Linux distribution to setup your environment for reduce compatible issue.
Install Ubuntu 12.04 Desktop 32bit
B. Update system
Use GUI interface to update system or use command to update system.$ sudo apt-get update
*Note: If update failed, edit /etc/apt/sources.list as following link deb http://old-releases.ubuntu.com/ubuntu/ precise main deb-src http://old-releases.ubuntu.com/ubuntu/ precise main deb http://old-releases.ubuntu.com/ubuntu/ precise-updates main deb-src http://old-releases.ubuntu.com/ubuntu/ precise-updates main deb http://old-releases.ubuntu.com/ubuntu/ precise universe deb-src http://old-releases.ubuntu.com/ubuntu/ precise universe deb http://old-releases.ubuntu.com/ubuntu/ precise-updates universe deb-src http://old-releases.ubuntu.com/ubuntu/ precise-updates universe deb http://old-releases.ubuntu.com/ubuntu precise-security main deb-src http://old-releases.ubuntu.com/ubuntu precise-security main deb http://old-releases.ubuntu.com/ubuntu precise-security universe deb-src http://old-releases.ubuntu.com/ubuntu precise-security universe
C. Change default /bin/sh link to /bin/bash
$ sudo dpkg-reconfigure dash choice "no" and press enter.
-
Prepare the compiler environment
Install the following necessary tools
$ sudo apt-get install -y g++ flex bison gawk make autoconf zlib1g-dev libncurses-dev git subversion gettext
-
Extract the open source code
$ tar zxf
-
Build the firmware for Web-GUI upgrade using
Change the directory into extrated directory
$ cd <extrated directory>
#Useful for make config Firmware ID nobrand = ABNY Firmware ID branded Wind = ABLZ Model ID branded Wind = 4543
Clean and build the firmware
$ make dirclean
$ make -j1 V=sc
It is important to compile with -j1 because forcing multicore can cause problems when compiling libjson-c
-
The image is in the images directory.
The firmware image will locate at /bin/brcm963xx/zyxel/ras.bin You can use it update VMG8825-B50B by using the firmware update procedure.
-
Change default password
Make a copy of the sysconfig.tar.gz file located in NOMEFIRMWARE/build_dir/target-arm_v7-a_uClibc-0.9.32_eabi/root-brcm963xx/etc/ Extract it with tar xzvf sysconfig.tar.gz Using your preferred editor (vi, nano, leafpad...), modify both files as follows: zcfg_config.json to set, in plain text, a password for each user (example, under "Username": "admin"; fill in "Password": "NEWPASSWORD"). zcfg_predef.json change "AdminRandomPassword": true to false
Repack: tar czvf sysconfig.tar.gz {zcfg_config.json,zcfg_predef.json} Copy the new sysconfig.tar.gz back to its place
-
Reassemble firmware From the main firmware folder, run the command
make merge_firmwareand wait for it to finish. At this point you will have the new firmware (ras.bin) in FIRMWAREFOLDER/bin/brcm963xx/zyxel/ -
Flash the firmware (resetting everything to factory defaults) From the graphical menu, no explanation needed Via bootloader: ATUR ipaddresstftpserver:releasename