X-Wrt
July 29, 2010, 07:25:36 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Welcome to the X-Wrt Forums
 
   Home   Help Search Login Register  
Pages: 1 [2] 3
  Print  
Author Topic: Guide to compiling kamikaze with the webif  (Read 25529 times)
pier11
Jr. Member
**
Offline Offline

Posts: 69


View Profile
« Reply #15 on: April 23, 2007, 10:33:49 AM »

Looks like BerliOS is back again. Just have been able to commit my stuff there.
Logged

wrt54g, Kamikaze
ggp81
Newbie
*
Offline Offline

Posts: 31


View Profile
« Reply #16 on: April 24, 2007, 05:45:45 AM »

Hello,
I tried to make my own firmware compiling kamikaze+webif^2 on OpenWrt buildroot, but something is wrong.
It appears that Config.in and control files are not present on berlios, and so I tried to create them. I include the content of Config.in

Config.in
Code:
menu "webif............................. OpenWrt Administrative Console"


config BR2_PACKAGE_WEBIF
select BR2_PACKAGE_HASERL
tristate "webif - OpenWrt Administrative Console"
default y
help
  A web interface for configuring OpenWrt
 
config BR2_PACKAGE_WEBIF_LANG_CA
        prompt "webif-lang-ca..................... Canadian language file for webif"
select BR2_PACKAGE_HASERL
tristate "webif-lang-ca - Canadian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Canadian language file for webif

config BR2_PACKAGE_WEBIF_LANG_CS
select BR2_PACKAGE_HASERL
tristate "webif-lang-cs - Czech language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Czech language file for webif

config BR2_PACKAGE_WEBIF_LANG_DE
select BR2_PACKAGE_HASERL
tristate "webif-lang-de - German language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  German language file for webif

config BR2_PACKAGE_WEBIF_LANG_DA
select BR2_PACKAGE_HASERL
tristate "webif-lang-da - Danish language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Danish language file for webif

config BR2_PACKAGE_WEBIF_LANG_EE
select BR2_PACKAGE_HASERL
tristate "webif-lang-ee - Estonian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Estonian language file for webif

config BR2_PACKAGE_WEBIF_LANG_ES
select BR2_PACKAGE_HASERL
tristate "webif-lang-es - Spanish language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Spanish language file for webif

config BR2_PACKAGE_WEBIF_LANG_FR
select BR2_PACKAGE_HASERL
tristate "webif-lang-fr - French language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  French language file for webif

config BR2_PACKAGE_WEBIF_LANG_HR
select BR2_PACKAGE_HASERL
tristate "webif-lang-hr - Croatian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Croatian language file for webif

config BR2_PACKAGE_WEBIF_LANG_HU
select BR2_PACKAGE_HASERL
tristate "webif-lang-hu - Hungarian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Hungarian language file for webif

config BR2_PACKAGE_WEBIF_LANG_IT
select BR2_PACKAGE_HASERL
tristate "webif-lang-it - Italian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Italian language file for webif

config BR2_PACKAGE_WEBIF_LANG_NL
select BR2_PACKAGE_HASERL
tristate "webif-lang-nl - Dutch language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Dutch language file for webif

config BR2_PACKAGE_WEBIF_LANG_NO
select BR2_PACKAGE_HASERL
tristate "webif-lang-no - Norwegian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Norwegian language file for webif

config BR2_PACKAGE_WEBIF_LANG_PL
select BR2_PACKAGE_HASERL
tristate "webif-lang-pl - Polish language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Polish language file for webif

config BR2_PACKAGE_WEBIF_LANG_PT
select BR2_PACKAGE_HASERL
tristate "webif-lang-pt - Portuguese language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Portuguese language file for webif

config BR2_PACKAGE_WEBIF_LANG_RU
select BR2_PACKAGE_HASERL
tristate "webif-lang-ru - Russian language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Russian language file for webif

config BR2_PACKAGE_WEBIF_LANG_SV
select BR2_PACKAGE_HASERL
tristate "webif-lang-sv - Swedish language file for webif"
depends BR2_PACKAGE_WEBIF
default m
help
  Swedish language file for webif

config BR2_PACKAGE_WEBIF_LANG_SQ
        select BR2_PACKAGE_HASERL
        tristate "webif-lang-sq - Albanian language file for webif"
        depends BR2_PACKAGE_WEBIF
        default m
        help
          Albanian language file for webif

config BR2_PACKAGE_WEBIF_LANG_UK
        select BR2_PACKAGE_HASERL
        tristate "webif-lang-uk - Ukrainan language file for webif"
        depends BR2_PACKAGE_WEBIF
        default m
        help
          Ukrainan language file for webif

config BR2_PACKAGE_WEBIF_LANG_ZH
        select BR2_PACKAGE_HASERL
        tristate "webif-lang-zh - Swedish language file for webif"
        depends BR2_PACKAGE_WEBIF
        default m
        help
          Chinese language file for webif

config BR2_PACKAGE_WEBIF_THEME-XWRT
        select BR2_PACKAGE_HASERL
        tristate "webif-theme-xwrt - Original theme for webif^2"
        depends BR2_PACKAGE_WEBIF
        default m
        help
          Original theme for webif^2

config BR2_PACKAGE_WEBIF_THEME-ZEPHYR
        select BR2_PACKAGE_HASERL
        tristate "webif-theme-zephyr - Zephyr theme for webif^2"
        depends BR2_PACKAGE_WEBIF
        default m
        help
          Zephyr theme for webif^2

endmenu


I also edited packages/Config.in to add Webif to the buildroot menu.
So executing make menuconfig, I can see webif into the application menu

Code:
│ │        busybox........................... The Swiss Army Knife of embedded Linux  --->                    │ │
│ │    <*> bridge............................ Ethernet bridging configuration utility                         │ │
│ │    <*> dnsmasq........................... Lightweight DNS and DHCP server                                 │ │
│ │    < > ipkg.............................. The itsy package management system                              │ │
│ │        iptables.......................... IPv4 / IPv6 firewall administration  --->                       │ │
│ │    <*> mtd............................... Update utility for trx firmware images                          │ │
│ │    < > mtd-static........................ Update utility for trx firmware images (statically linked)      │ │
│ │        webif............................. OpenWrt Administrative Console  --->                            │ │
│ │                                                                                       

This is the content of .config

Code:
#
# webif............................. OpenWrt Administrative Console
#
BR2_PACKAGE_WEBIF=y
BR2_PACKAGE_WEBIF_LANG_CA=m
BR2_PACKAGE_WEBIF_LANG_CS=m
BR2_PACKAGE_WEBIF_LANG_DE=m
BR2_PACKAGE_WEBIF_LANG_DA=m
BR2_PACKAGE_WEBIF_LANG_EE=m
BR2_PACKAGE_WEBIF_LANG_ES=m
BR2_PACKAGE_WEBIF_LANG_FR=m
BR2_PACKAGE_WEBIF_LANG_HR=m
BR2_PACKAGE_WEBIF_LANG_HU=m
BR2_PACKAGE_WEBIF_LANG_IT=m
BR2_PACKAGE_WEBIF_LANG_NL=m
BR2_PACKAGE_WEBIF_LANG_NO=m
BR2_PACKAGE_WEBIF_LANG_PL=m
BR2_PACKAGE_WEBIF_LANG_PT=m
BR2_PACKAGE_WEBIF_LANG_RU=m
BR2_PACKAGE_WEBIF_LANG_SV=m
BR2_PACKAGE_WEBIF_LANG_SQ=m
BR2_PACKAGE_WEBIF_LANG_UK=m
BR2_PACKAGE_WEBIF_LANG_ZH=m
BR2_PACKAGE_WEBIF_THEME-XWRT=m
BR2_PACKAGE_WEBIF_THEME-ZEPHYR=m

When I execute "make" to make my firmware, the creation process seems to be ok, but Webif is not compiled or included into the firmware.
Can anyone help me? I hope to be useful also for someone else.
Thank you
Logged
thepeople
X-Wrt Developer
Administrator
Hero Member
*****
Offline Offline

Posts: 1138


View Profile
« Reply #17 on: April 24, 2007, 08:12:56 AM »

the config.in files are not needed in kamikaze. In the administration menu hit "enter" when you have the webif selected to select which webif packages you would like to make.
Logged
gatekeeper
Newbie
*
Offline Offline

Posts: 1


View Profile
« Reply #18 on: June 04, 2007, 02:40:03 PM »

Hi everyone

Trying to compile Kamikaze x86 with webif^2 using this post

I keep getting this error and I have even tried to go back one version should be 3.8.3 I even tried 3.8.2

....
checking iconv.h usability... yes
checking iconv.h presence... yes
checking for iconv.h... yes
checking where to find iconv_open... not found (panic)
configure: error: iconv.h found, while iconv library not found
make[3]: *** [/home/user/trunk/build_i386/id3lib-3.8.2/.configured] Error 1
make[3]: Leaving directory `/home/user/packages/libs/id3lib'
make[2]: *** [id3lib-compile] Error 2
make[2]: Leaving directory `/home/user/trunk/package'
make[1]: *** [package/compile] Error 2
make[1]: Leaving directory `/home/user/trunk'
make: *** [world] Error 2

Anyone have any thoughts???

Thanks,
Gatekeeper
Logged
Oconnor
Newbie
*
Offline Offline

Posts: 14


View Profile
« Reply #19 on: July 03, 2007, 01:27:54 AM »

UPDATED 3/11/07
...
      d) Next again from within the trunk/package/ directory checkout the webif
Code:
svn co http://svn.berlios.de/svnroot/repos/xwrt/kamikaze/package/webif
...

The URL from the first post should be changed to http://svn.berlios.de/svnroot/repos/xwrt/trunk/package/webif/ .
Logged
ramponis
Newbie
*
Offline Offline

Posts: 10


View Profile
« Reply #20 on: July 06, 2007, 02:16:48 AM »

I try to download the last Rev of xwrt.

But when i try to download with:

Code:
svn co http://svn.berlios.de/svnroot/repos/xwrt/kamikaze/package/webif

I receive an error that the url not exist.

is the url changed?

Can someone give me the new?

Thank you
Logged
lubek
X-Wrt Developer
Hero Member
*****
Offline Offline

Posts: 972


View Profile
« Reply #21 on: July 06, 2007, 07:03:44 AM »

The directories were exchanged.
The trunk became whiterussian and kamikaze became trunk.
All necessary information concerning the SVN are permanently available at the project web pages at BerliOS https://developer.berlios.de/projects/xwrt/.
Code:
svn co http://svn.berlios.de/svnroot/repos/xwrt/trunk/package/webif
Logged
meltyblood
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #22 on: August 11, 2007, 04:46:53 PM »

The compilation problem from the first page is back in Kamikaze 8380+:
/tmp/ccLXXMEG.o: In function `md5_hash_block':
md5.c:(.text+0x8c): undefined reference to `bswap_32'
md5.c:(.text+0xe0): undefined reference to `bswap_32'
md5.c:(.text+0x130): undefined reference to `bswap_32'
md5.c:(.text+0x178): undefined reference to `bswap_32'
md5.c:(.text+0x1bc): undefined reference to `bswap_32'
/tmp/ccLXXMEG.o:md5.c:(.text+0x200): more undefined references to `bswap_32' follow
collect2: ld returned 1 exit status
make[3]: *** [/home/dev/dev/build_dir/mips/webif-0.3/.built] Error 1
make[3]: Leaving directory `/home/dev/dev/package/webif'
make[2]: *** [package/webif/compile] Error 2
make[2]: Leaving directory `/home/dev/dev'
make[1]: *** [/home/dev/dev/staging_dir/mips/stampfiles/.package_compile] Error 2
make[1]: Leaving directory `/home/dev/dev'
make: *** [world] Error 2


Looks like your fix was only temporary.
Logged
lubek
X-Wrt Developer
Hero Member
*****
Offline Offline

Posts: 972


View Profile
« Reply #23 on: August 11, 2007, 06:54:31 PM »

There has not been any fix.

After having a quick look to the current svn, I think that the place of headers has been changed.
Try to fix it in the webif2's Makefile, replace:
Code:
                -I$(STAGING_DIR)/include-host -include endian.h \
with:
Code:
                -I$(STAGING_DIR)/host/include -include endian.h \
I do not have the possibility to verify it, please report your results.
It looks like the include structure has changed and the changes are probably permanent.
Logged
meltyblood
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #24 on: August 12, 2007, 01:06:35 AM »

Thank you for the response.  I can test this when I get back to testing new Kamikaze revisions, lately they seem to break other packages as well.  Perhaps around K8500 or K8600 things will start falling back into place.  By then I'm sure this problem will also have been fixed.  Is there an application-shell script for the webif that works with Atheros routers?  There are several application pages that I'd like to try.  Also do you have a guide for interfacing the .ahtml files to .sh or .awx files?  The variable transferring is what I find terribly confusing.

Finally, is it possible to have individual item refreshing in the webif?  Currently the only thing that refreshes without refreshing the whole page is the SVG graph display (CPU, network interfaces).
Logged
lubek
X-Wrt Developer
Hero Member
*****
Offline Offline

Posts: 972


View Profile
« Reply #25 on: August 12, 2007, 09:08:48 AM »

Is there an application-shell script for the webif that works with Atheros routers?  There are several application pages that I'd like to try.
No.
There are application pages that were created on a brcm device. The original developer does not maintain them.

Also do you have a guide for interfacing the .ahtml files to .sh or .awx files?  The variable transferring is what I find terribly confusing.
Basically the awx is the awk shell.
I copied all documentation, we have, to the wiki page http://wiki.x-wrt.org/index.php/Programmer%27s_Guide_to_awx. There is a plenty of space for your imagination.  Wink

Finally, is it possible to have individual item refreshing in the webif?  Currently the only thing that refreshes without refreshing the whole page is the SVG graph display (CPU, network interfaces).
Yes. You have mentioned pages that use this feature.
Logged
meltyblood
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #26 on: August 12, 2007, 07:02:04 PM »

Please give me an example of code that would automatically refresh individual items (and would this code need to be in an .sh or .awx file?).

Finally, is there any way to create a page that emulates shell access?  Perhaps a field where you enter commands and a field where data appears in realtime?  This is a very sought-after feature.
Logged
lubek
X-Wrt Developer
Hero Member
*****
Offline Offline

Posts: 972


View Profile
« Reply #27 on: August 13, 2007, 04:13:02 PM »

You must perform these necessary steps:
  • study busybox's httpd
  • study haserl
  • study busybox's ash
  • study busybox's awk
  • study busybox's awx
  • study the existing graph pages code
  • study X-HTML reference
  • study javascript
You will have enough information to know how to write the pages that would automatically refresh individual items at this point.
I am still somewhere in the middle of the list. Grin

Finally, is there any way to create a page that emulates shell access?  Perhaps a field where you enter commands and a field where data appears in realtime?  This is a very sought-after feature.
There are several ways for sure. We will appreciate your contributions.  Cool
Logged
meltyblood
Newbie
*
Offline Offline

Posts: 4


View Profile
« Reply #28 on: August 13, 2007, 07:07:39 PM »

Yuck, javascript.  Your fix did not work.  It still yields the same errors.
Logged
lubek
X-Wrt Developer
Hero Member
*****
Offline Offline

Posts: 972


View Profile
« Reply #29 on: August 14, 2007, 10:48:55 AM »

Fixed in r3547.
Logged
Pages: 1 [2] 3
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.165 seconds with 15 queries.