1 (edytowany przez p4trykx 2010-06-16 12:07:25)

Temat: Backfire własna kompilacja nie działa Luci

Mam router Asus WL-500W jednak w powodu braku sterowników do oryginalnej sieciówki zmieniłem kartę na Atherosa 5212.
Chciałem skompilować sobie firmware ze wszystkim co potrzeba, żeby uniknąć początkowej konfiguracji.
Z grubsza wszystko działa. Jednak mam problem z Luci (interfejsem www). Jeśli w menuconfigu zaznaczę, żeby było wkompilowane do firmware-u to po flashowaniu nie mogę się dostać przez adres http://192.168.1.1 tylko musze wpisywać pełną ścieżkę 192.168.1.1/cgi-bin/luci lub 192.168.1.1/index.html. Najdziwniejsze jest to, że jeśli usunę i zainstaluję Luci przy użyciu opkg to przekierowanie 192.168.1.1 działa bez zarzutu.
W katalogu /www w obu przypadkach jest index.html, który prawidłowo przekierowuje do /cgi-bin/luci.
Problem wydaje się być w tym, że serwer uhttpd nie podaje domyślnie pliku index.html przy próbie dostępu do katalogu. O dziwo plik konfiguracyjny /etc/config/uhttpd jest taki sam w obu konfiguracjach. Nie wiem gdzie jest jeszcze jakaś różnica. Czy są może jakieś narzędzia do porównywania plików trx?

2

Odp: Backfire własna kompilacja nie działa Luci

Raczej pakietu jakiegoś nie zaznaczyłeś dodatkowo. Pokaż tu .config (tylko te wpisy z luci związane)

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3

Odp: Backfire własna kompilacja nie działa Luci

wydaje mi się, że to nie wina pakietów Luci tylko może jakaś konfiguracja uhttpd ponieważ dostęp przez 192.168.1.1/index.html lub 192.168.1.1/cgi-bin/luci jest.

#
# LuCI
#

#
# Collections
#
CONFIG_PACKAGE_luci=y
# CONFIG_PACKAGE_luci-light is not set
# CONFIG_PACKAGE_luci-medium is not set
# CONFIG_PACKAGE_luci-ssl is not set

#
# Components
#
CONFIG_PACKAGE_luci-admin-core=y
CONFIG_PACKAGE_luci-admin-full=y
CONFIG_PACKAGE_luci-admin-mini=y
# CONFIG_PACKAGE_luci-admin-rpc is not set
# CONFIG_PACKAGE_luci-app-ddns is not set
CONFIG_PACKAGE_luci-app-firewall=y
# CONFIG_PACKAGE_luci-app-hd-idle is not set
CONFIG_PACKAGE_luci-app-initmgr=y
# CONFIG_PACKAGE_luci-app-livestats is not set
# CONFIG_PACKAGE_luci-app-mmc-over-gpio is not set
# CONFIG_PACKAGE_luci-app-ntpc is not set
# CONFIG_PACKAGE_luci-app-olsr is not set
# CONFIG_PACKAGE_luci-app-openvpn is not set
# CONFIG_PACKAGE_luci-app-p2pblock is not set
CONFIG_PACKAGE_luci-app-p910nd=y
# CONFIG_PACKAGE_luci-app-polipo is not set
# CONFIG_PACKAGE_luci-app-qos is not set
# CONFIG_PACKAGE_luci-app-samba is not set
# CONFIG_PACKAGE_luci-app-statistics is not set
# CONFIG_PACKAGE_luci-app-tinyproxy is not set
# CONFIG_PACKAGE_luci-app-upnp is not set
# CONFIG_PACKAGE_luci-app-ushare is not set

#
# Freifunk
#
# CONFIG_PACKAGE_freifunk-firewall is not set
# CONFIG_PACKAGE_freifunk-p2pblock is not set
# CONFIG_PACKAGE_freifunk-watchdog is not set
# CONFIG_PACKAGE_luci-app-ffwizard-leipzig is not set
# CONFIG_PACKAGE_luci-app-siitwizard is not set
# CONFIG_PACKAGE_luci-app-splash is not set
# CONFIG_PACKAGE_luci-freifunk-community is not set
# CONFIG_PACKAGE_luci-mod-freifunk is not set
# CONFIG_PACKAGE_luci-theme-fledermaus is not set
# CONFIG_PACKAGE_luci-theme-freifunk is not set
# CONFIG_PACKAGE_luci-theme-freifunk-bno is not set
# CONFIG_PACKAGE_luci-theme-freifunk-hannover is not set
# CONFIG_PACKAGE_olsrd-luci is not set

#
# Libraries
#
CONFIG_PACKAGE_luci-cbi=y
CONFIG_PACKAGE_luci-core=y
CONFIG_PACKAGE_luci-core_compile=y
# CONFIG_PACKAGE_luci-core_stripped is not set
# CONFIG_PACKAGE_luci-core_source is not set
# CONFIG_PACKAGE_luci-fastindex is not set
CONFIG_PACKAGE_luci-http=y
# CONFIG_PACKAGE_luci-httpclient is not set
CONFIG_PACKAGE_luci-ipkg=y
# CONFIG_PACKAGE_luci-json is not set
CONFIG_PACKAGE_luci-lmo=y
# CONFIG_PACKAGE_luci-lucid is not set
CONFIG_PACKAGE_luci-nixio=y
CONFIG_PACKAGE_luci-nixio_notls=y
# CONFIG_PACKAGE_luci-nixio_axtls is not set
# CONFIG_PACKAGE_luci-nixio_cyassl is not set
# CONFIG_PACKAGE_luci-nixio_openssl is not set
# CONFIG_PACKAGE_luci-px5g is not set
CONFIG_PACKAGE_luci-sgi-cgi=y
# CONFIG_PACKAGE_luci-sgi-uhttpd is not set
CONFIG_PACKAGE_luci-sys=y
CONFIG_PACKAGE_luci-uci=y
CONFIG_PACKAGE_luci-uvl=y
CONFIG_PACKAGE_luci-web=y

#
# Themes
#
CONFIG_PACKAGE_luci-theme-base=y
CONFIG_PACKAGE_luci-theme-openwrt=y
# CONFIG_PACKAGE_luci-theme-openwrtlight is not set

#
# Translations
#
# CONFIG_PACKAGE_luci-i18n-catalan is not set
CONFIG_PACKAGE_luci-i18n-english=y
# CONFIG_PACKAGE_luci-i18n-french is not set
# CONFIG_PACKAGE_luci-i18n-german is not set
# CONFIG_PACKAGE_luci-i18n-greek is not set
# CONFIG_PACKAGE_luci-i18n-italian is not set
# CONFIG_PACKAGE_luci-i18n-japanese is not set
# CONFIG_PACKAGE_luci-i18n-portuguese is not set
# CONFIG_PACKAGE_luci-i18n-portuguese_brazilian is not set
# CONFIG_PACKAGE_luci-i18n-russian is not set
# CONFIG_PACKAGE_luci-i18n-spanish is not set

4

Odp: Backfire własna kompilacja nie działa Luci

Na pierwszy rzut oka wygląda ok. uhttpd itd też masz zainstalowane zakładam.

Zobacz także mój plik: http://ecco.selfip.net/tl-wr1043nd-luci/config, tak zrobiony obraz uruchamia od razu luci.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

5

Odp: Backfire własna kompilacja nie działa Luci

Przekopiowałem sekcje Luci i trochę zmodyfikowałem. Usunąłem rpc, livestats, samba,json bo się nie chciało skompilować. Niestety nadal jest ten problem. Najdziwniejsze jest to, że całe /etc jest takie same przed i po. W katalog /www index.html ma wszystkie uprawnienia.

root@OpenWrt:/# ls -l /www/
drwx------    2 root     root           27 May 29 20:58 cgi-bin
-rwxrwxrwx    1 root     root          419 Jun 29  2008 index.html
drwx------    4 root     root           51 May 29 20:57 luci-static
drwx------    2 root     root            3 May 29 20:58 resources

Znasz może jakieś narzędzie do porównania systemu plików?

6

Odp: Backfire własna kompilacja nie działa Luci

uhttpd powinien przekierować cgi.

Porównanie plików wynikowych nic ci nie da, bo to skompresowany squashfs jest. Musiał być najpierw to rozpakować.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

7

Odp: Backfire własna kompilacja nie działa Luci

Przekierowywać to przekierowuje bo http://192.168.1.1/index.html przekierowuje poprawnie do http://192.168.1.1/cg-bin/luci. Problem jest w tym, że jeśli wejdę na adres http://192.168.1.1/ to mi pokazuje "No such file ...." a powinien dać mi index.html domyślnie. W tym myślę, że jest problem ale za nic nie mogę znaleźć gdzie to się konfiguruje.