PDA

View Full Version : Remove of Logo


frankfengcm
11-07-2008, 06:50 PM
Need some basic help on removing UBiquiti's logo from the firmware, if it is possible that is.
Would appreciate a step by step guide on how we could:
1) Install SDK, Buildroot etc.
2) Find logo, remove logo
3) Burn modified firmware onto Nanostation

Thank you.

frankfengcm
11-08-2008, 11:56 PM
I'm getting this error when building firmware for NS5.
Can someone help clarify what this means? And the approach to rectify this issue.

Thank you.

*在离开目录 = leaving directory
*在进入目录 = entering directory
错误 = ERROR

------------------------------------------------------------------------------------

make[2]:*在离开目录 `/media/disk-2/ubnt/rootfs/xs5'
Cleaning /media/disk-2/ubnt/rootfs/ROOT-staging...
make DESTDIR=/media/disk-2/ubnt/tools/bin -C /media/disk-2/ubnt/apps/gpl/mkfwimage install
make[2]: *在进入目录 `/media/disk-2/ubnt/apps/gpl/mkfwimage'
make -C src install
make[3]: *在进入目录 `/media/disk-2/ubnt/apps/gpl/mkfwimage/src'
cc -Wall -Wstrict-prototypes -c -o mkfwimage.o mkfwimage.c
mkfwimage.c:41: 错误: ‘PATH_MAX’未声明(不在函数内)
mkfwimage.c: 在函数‘parse_image_layout’*:
mkfwimage.c:190: *告: 未使用的变量‘file’
mkfwimage.c: 在函数‘main’*:
mkfwimage.c:333: *告: 未使用的变量‘inputfile’
make[3]: *** [mkfwimage.o] 错误 1
make[3]:*在离开目录 `/media/disk-2/ubnt/apps/gpl/mkfwimage/src'
make[2]: *** [install] 错误 2
make[2]:*在离开目录 `/media/disk-2/ubnt/apps/gpl/mkfwimage'
make[1]: *** [/media/disk-2/ubnt/tools/bin/mkfwimage] 错误 2
make[1]:*在离开目录 `/media/disk-2/ubnt/rootfs'
make: *** [xs5] 错误 1

UBNT-keba
11-10-2008, 04:32 AM
New gcc requires a change in mkfwimage. So please use this patch on apps/gpl/mkfwimage directory


--- apps/gpl/mkfwimage/src/mkfwimage.c (revision 813)

+++ apps/gpl/mkfwimage/src/mkfwimage.c (revision 3930)

@@ -28,4 +28,5 @@

#include <stdio.h>

#include <stdlib.h>

+#include <limits.h>



#include "fw.h"

--- apps/gpl/mkfwimage/src/fwsplit.c (revision 2026)

+++ apps/gpl/mkfwimage/src/fwsplit.c (revision 3930)

@@ -27,5 +27,5 @@

#include <sys/mman.h>

#include <zlib.h>

-

+#include <limits.h>



#include "fw.h"

frankfengcm
11-10-2008, 09:45 PM
Also, we need to remove "NanoStation5" Brand Name from the GUI, at the top right hand corner, beneath the Logo.

AND

Web Browser Title Header which has "Ubiquiti" contained


{Seems like it is not possible to correct this, since we need the system.cfg file which is in binary format within /apps/closed/bin/ubntubox)

Pls advise.

carrasco
12-11-2008, 05:48 AM
New gcc requires a change in mkfwimage. So please use this patch on apps/gpl/mkfwimage directory


--- apps/gpl/mkfwimage/src/mkfwimage.c (revision 813)

+++ apps/gpl/mkfwimage/src/mkfwimage.c (revision 3930)

@@ -28,4 +28,5 @@

#include <stdio.h>

#include <stdlib.h>

+#include <limits.h>



#include "fw.h"

--- apps/gpl/mkfwimage/src/fwsplit.c (revision 2026)

+++ apps/gpl/mkfwimage/src/fwsplit.c (revision 3930)

@@ -27,5 +27,5 @@

#include <sys/mman.h>

#include <zlib.h>

-

+#include <limits.h>



#include "fw.h"



Hello Keba,

I have not been able to interprete your instructions, could you explain it a little bit more for me please?

Thanks,
Carrasco

carrasco
12-12-2008, 06:21 AM
Please Help!

Oliver
12-12-2008, 04:57 PM
Hey carrasco,

Keba posted a very simple diff, that you should even be able to apply by hand. It contains changes (patches) to certain files in the SDK, to hopefully fix your compiler-errors. Try this:

- Open the file "apps/gpl/mkfwimage/src/mkfwimage.c" (from where you installed the SDK) in an editor, search for "#include <stdlib.h>" and add the text "#include <limits.h>" on the next line after that. Save.

- Repeat the same with the file "apps/gpl/mkfwimage/src/fwsplit.c", only this time, you search for "#include <zlib.h>", adding the same "#include <limits.h>" on the next line. Save and try building the firmware again.

Good luck and let me know how it goes.


Grtz,

Oliver

carrasco
12-13-2008, 02:02 PM
Good luck and let me know how it goes.
Oliver
Clear as water and worked!
Thanks,
Carrasco