[luci] The problems of building custom LuCI build for Kamikaze

luo luo luoluohaliyou at gmail.com
Tue Oct 13 15:08:00 CEST 2009


Hi, all

According to the wizards by Cyrus in maillist on Mar 12 16:38:24 2009( i
attached below),  I did the same things as the following:

1.  make a new dir named "myluci"

2.  checkout contrib/package/ to the dir "myluci", and checkout the full
luCI to ./myluci/luci/luci

3.  modify the ./myluci/luci/Makefile according to the wizards
the first lines are as following:
include $(TOPDIR)/rules.mk

PKG_BRANCH:=

ifeq ($(DUMP),)
  USELOCAL:=$(shell grep luci ../../../.project 2>/dev/null >/dev/null &&
echo 1)
endif

PKG_NAME:=luci
PKG_RELEASE:=1

PKG_VERSION:=0.9+svn
ifeq ($(DUMP),)
  PKG_REV:=$(shell LC_ALL=C svn info $(CURDIR) | sed -ne 's/^Revision: //p')
  PKG_VERSION:=0.9+svn$(PKG_REV)
endif

PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install

PKG_BUILD_DEPENDS:=libnotimpl
LUA_TARGET:=source
#LUCI_CFLAGS:=
PKG_SELECTED_MODULES:=

include $(INCLUDE_DIR)/package.mk

define Build/Prepare
        mkdir -p $(PKG_BUILD_DIR)
        cp -r ./luci/* $(PKG_BUILD_DIR)
        $(call Build/Prepare/Default)
endef

define Build/Configure
endef

### Templates ###


4.  modify the feeds.conf.defaults: remove the old svn check rules and
adding src-link

the file as following:
src-svn packages svn://svn.openwrt.org/openwrt/packages
src-svn xwrt http://x-wrt.googlecode.com/svn/trunk/package
#src-svn luci
http://svn.luci.subsignal.org/luci/branches/luci-0.9/contrib/package
src-link myluci ./../myluci
.....

5. run "./scripts/feeds update -a" and "./scripts/feeds install -a -p
myluci"

6. then run "make menuconfig" and select luci-admin-full as <*>, then "make
clean" and "make V=99",  the process of building works fine.

but the luCI of the new image doesn't work,  the pages of luCI can't be
accessed.  when running "./etc/init.d/lucid restart",  error info ocured as
following:
root at OpenWrt:/#
root at OpenWrt:/# ./etc/init.d/lucid restart
Stopping LuCId superserver: lucid.
Starting LuCId superserver: lucidlucid[1125]: Failed to initialize daemon
http: no sockets bound

lucid[1125]: Failed to initialize daemon https:
/usr/lib/lua/luci/sys.lua:33: module 'iwinfo' not found:
        no field package.preload['iwinfo']
        no file './iwinfo.lua'
        no file '/usr/share/lua/iwinfo.lua'
        no file '/usr/share/lua/iwinfo/init.lua'
        no file '/usr/lib/lua/iwinfo.lua'
        no file '/usr/lib/lua/iwinfo/init.lua'
        no file './iwinfo.so'
        no file '/usr/lib/lua/iwinfo.so'
        no file '/usr/lib/lua/loadall.so'

I tried luCI revision 5398/5382/5383, but none works.
while luCI is removed by "opkg remove" and luCI ipks snapshorts from
openwrt.org are installed,  luCI can work.  It seems that the rest of new
image excluding custom LuCI build is fine.

when I use stardard LuCI build, everything works fine.

what's the problem ?

Any hints would be appreciated greatly!



regards

Luoluo
2009.10.13


PS: The following is the original mail by Cyrus

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


More information about the luci mailing list