Odp: przesiadka z Asusa WL-500gP na wrt160nl warto ?
A nie?
Nie jesteś zalogowany. Proszę się zalogować lub zarejestrować.
eko.one.pl → Oprogramowanie / Software → przesiadka z Asusa WL-500gP na wrt160nl warto ?
Strony Poprzednia 1 2
Zaloguj się lub zarejestruj by napisać odpowiedź
A nie?
a jak ?
Po prostu install nazwa_pakietu zamiast -a
robiłem tak i nie ma w menu config
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install perl-www-mechanize
++ mkdir -p /openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.1.2_uClibc-0.9.30.1
++ cd /openwrt/trunk/staging_dir/toolchain-mipsel_gcc-4.1.2_uClibc-0.9.30.1
++ mkdir -p stamp lib usr/include usr/lib
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install slimrat
Collecting package info: done1. albo odśwież listę wszystkich pakietów
1. albo wrzuć to do katalogu packages (nie feeds). Wtedy od razu po make menuconfig będzie to widział.
ad1. nie za bardzo rozumiem .. jak odświeżyć. Polecenie update też nie pomaga
ad2. mam przerzucić tego symbolicznego linka ?
1. Musi. Albo usuń cały index, zrobi się jeszcze raz.
2. katalog cały
ad1.
./scripts/feeds update perl-www-mechanizecoś takiego ?
gdzię powinnny być pakiety bo w lang->perl(zaznaczamy M) nie ma ich
bo jak samo update to mi zaktualizuje całego trunka do najnowszej wersji i po ptokach.
ad2.
a symbolicznego też do głownego dowiązać wtedy ?
Jak nie masz w lang-perl to system ich nie widzi.
Po kolei - instalujesz patch na perla. W katalogu package (nie feed/packages!) robisz katalog slimrat i www-mechanize. W nich umieszczasz odpowiednio makefile. Robisz make menuconfig i musisz widzieć te pakiety - slimrat jest network, www-mechanize tam gdzie perl.
ok ale dostaje teraz coś takiego:
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install slimrat
ERROR: please fix package/perl-www-mechanize/Makefile
Collecting package info: done
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install perl-www-mechanize
ERROR: please fix package/perl-www-mechanize/Makefile
Collecting package info: donepatcha wrzuciłem jak podawałem na potrzedniej stronie
zobacz:
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install slimrat
ERROR: please fix package/perl-www-mechanize/Makefile
Collecting package info: doneczasami nie pomyliłeś makefile?
x@ubuntu:/openwrt/trunk/package/slimrat$ wget http://eko.one.pl/openwrt/sources/slimrat/Makefile
--2010-04-17 01:29:46-- http://eko.one.pl/openwrt/sources/slimrat/Makefile
Resolving eko.one.pl... 94.152.131.216
Connecting to eko.one.pl|94.152.131.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1684 (1.6K) [text/plain]
Saving to: `Makefile'
100%[=================================================================================>] 1,684 --.-K/s in 0s
2010-04-17 01:29:46 (9.22 MB/s) - `Makefile' saved [1684/1684]
x@ubuntu:/openwrt/trunk/package/slimrat$ cd ..
x@ubuntu:/openwrt/trunk/package$ mkdir perl-www-mechanize
x@ubuntu:/openwrt/trunk/package$ cd perl-www-mechanize/
lech@ubuntu:/openwrt/trunk/package/perl-www-mechanize$ wget http://eko.one.pl/openwrt/sources/perl-www-mechanize/Makefile
--2010-04-17 01:30:28-- http://eko.one.pl/openwrt/sources/perl-www-mechanize/Makefile
Resolving eko.one.pl... 94.152.131.216
Connecting to eko.one.pl|94.152.131.216|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 862 [text/plain]
Saving to: `Makefile'
100%[=================================================================================>] 862 --.-K/s in 0s
2010-04-17 01:30:28 (38.6 MB/s) - `Makefile' saved [862/862]
x@ubuntu:/openwrt/trunk/package/perl-www-mechanize$ no i jeszcze
x@ubuntu:/openwrt/trunk$ cat package/perl-www-mechanize/Makefile
include $(TOPDIR)/rules.mk
PKG_NAME:=perl-www-mechanize
PKG_VERSION:=1.58
PKG_RELEASE:=1
PKG_MD5SUM:=c928d1bf3218bfe0c0d99096cf34db52
PKG_SOURCE_URL:=http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/
PKG_SOURCE:=WWW-Mechanize-$(PKG_VERSION).tar.gz
PKG_BUILD_DIR:=$(BUILD_DIR)/perl/WWW-Mechanize-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
include ../perl/perlmod.mk
define Package/perl-www-mechanize
SUBMENU:=Perl
SECTION:=lang
CATEGORY:=Languages
TITLE:=WWW Mechanize
URL:=http://search.cpan.org/dist/WWW-Mechanize/
DEPENDS:=perl +perl-www
endef
define Build/Configure
$(call perlmod/Configure,$(STAGING_DIR)/usr/include,)
endef
define Build/Compile
$(call perlmod/Compile,,)
endef
define Package/perl-www-mechanize/install
$(call perlmod/Install,$(1),WWW/Mechanize WWW/Mechanize.pm)
endef
$(eval $(call BuildPackage,perl-www-mechanize))
x@ubuntu:/openwrt/trunk$
x@ubuntu:/openwrt/trunk$
x@ubuntu:/openwrt/trunk$ cat package/slimrat/Makefile
include $(TOPDIR)/rules.mk
PKG_NAME:=slimrat
PKG_VERSION:=1.0
PKG_RELEASE:=1cj
PKG_SOURCE_URL:=http://slimrat.googlecode.com/files/
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
include $(INCLUDE_DIR)/package.mk
define Package/slimrat
SECTION:=net
CATEGORY:=Network
TITLE:=Slimrat
MAINTAINER:=Cezary Jackiewicz <cezary@eko.one.pl>
PKGARCH:=all
DEPENDS:=+perl +perl-html-parser +perl-html-tagset +perl-uri +perl-www +perl-www-mechanize +perlbase-attributes +perlbase-autoloader +perlbase-base +perlbase-bytes +perlbase-config +perlbase-cwd +perlbase-dynaloader +perlbase-errno +perlbase-essential +perlbase-fcntl +perlbase-file +perlbase-filehandle +perlbase-findbin +perlbase-getopt +perlbase-integer +perlbase-io +perlbase-list +perlbase-pod +perlbase-posix +perlbase-scalar +perlbase-selectsaver +perlbase-socket +perlbase-storable +perlbase-symbol +perlbase-term +perlbase-threads +perlbase-tie +perlbase-time +perlbase-universal +perlbase-utf8 +perlbase-xsloader
endef
define Build/Compile
endef
define Package/slimrat/install
$(INSTALL_DIR) $(1)/usr/lib/slimrat
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/*.pm $(1)/usr/lib/slimrat/
$(INSTALL_BIN) $(PKG_BUILD_DIR)/src/slimrat $(1)/usr/lib/slimrat/
$(INSTALL_DIR) $(1)/usr/bin
ln -s /usr/lib/slimrat/slimrat $(1)/usr/bin/slimrat
$(INSTALL_DIR) $(1)/usr/lib/slimrat/plugins
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/plugins/* $(1)/usr/lib/slimrat/plugins
$(INSTALL_DIR) $(1)/usr/lib/slimrat/Clipboard
$(INSTALL_CONF) $(PKG_BUILD_DIR)/src/Clipboard/* $(1)/usr/lib/slimrat/Clipboard
$(INSTALL_DIR) $(1)/etc
$(INSTALL_CONF) $(PKG_BUILD_DIR)/slimrat.conf $(1)/etc/slimrat.conf
endef
$(eval $(call BuildPackage,slimrat))
x@ubuntu:/openwrt/trunk$ Aa, zobacz - w www-mechanize masz include pliku ../perl/perlmod.mk. Podaj zamiast tego pełną scieżkę tak jak masz na dysku.
ok poszło ale dalej nie ma w menuconfig w perl i bezpośrednio w network ![]()
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install perl-www-mechanize
Collecting package info: done
x@ubuntu:/openwrt/trunk$
x@ubuntu:/openwrt/trunk$ ./scripts/feeds install slimrat
x@ubuntu:/openwrt/trunk$
x@ubuntu:/openwrt/trunk$
x@ubuntu:/openwrt/trunk$ ./scripts/feeds update perl-www-mechanize
x@ubuntu:/openwrt/trunk$ ./scripts/feeds update slimrat
x@ubuntu:/openwrt/trunk$ make menuconfighm...
Jeżeli wrzuciłeś do package - nie musisz robić feeds update. MUSI być widoczne od razu.
Teraz to po prostu zrób make dirclean, wyczyści kompletnie wszystko - więc będziesz musiał konfigurować i kompilować wszystko od początku.
zrobiłem make dirclean.
przeskanował jeszcze raz pakiety i dupa nie ma w menu config dalej ![]()
No musi być....
a jaka nie ma ?
jak to się nazywa co mam przeleić, jakie logi ? ![]()
masz w tmp//info/.packageinfo-slimrat? Jak nie to nie masz go zaindeksowanego. Albo go włożyleś w złe miejsce, system nie ma do tego dostępu (uprawnienia) albo nie wiem co.
Skompilowalem perla z patchem który gdzies tutaj lezał przed weekendem, slimrata sciagnąlem i zainstalowalem recznie w /usr/lib/slimrat na podstawie makefile. Mam 2 problemy.
1. slimrat nie czyta pliku z urlami z configu. Jedyny sposób do zmuszenia go do próby ściągnięcia czegokolwiek to podanie url z cli
2. Problem podstawowy. Nigdzie się nie łączy, badałem go stracem i wygląda, jakby zawisał czekając na zmianę statusu socketa (_newselect). Następuje timeout i zwraca informację, że url jest niedziałający.
Może spotkałeś się z takimi problemami? Może jest jakaś nowsza wersja patcha na perla której powinienem użyć itp?
fragment strace:
...
read(5, "\npackage IO::Select;\n\nuse st"..., 4096) = 3825
brk(0xc07000) = 0xc07000
brk(0xc08000) = 0xc08000
brk(0xc09000) = 0xc09000
brk(0xc0a000) = 0xc0a000
brk(0xc0b000) = 0xc0b000
brk(0xc0c000) = 0xc0c000
brk(0xc0d000) = 0xc0d000
brk(0xc0e000) = 0xc0e000
brk(0xc0f000) = 0xc0f000
brk(0xc10000) = 0xc10000
brk(0xc11000) = 0xc11000
brk(0xc12000) = 0xc12000
brk(0xc13000) = 0xc13000
lseek(5, 3823, SEEK_SET) = 3823
lseek(5, 0, SEEK_CUR) = 3823
close(5) = 0
_newselect(8, NULL, [], NULL, {180, 0}) = 0 (Timeout)
fcntl(4, F_GETFL) = 0x82 (flags O_RDWR|O_NONBLOCK)
fcntl(4, F_SETFL, O_RDWR) = 0
close(4) = 0
time(NULL) = 1271676008
time(NULL) = 1271676008
write(1, "\33[31m[DEAD] \33[0m\33[33mhttp://ubu"..., 119[DEAD] http://ubuntu.task.gda.pl/ubuntu-releases/10.04/ubuntu-10.04-beta2-desktop-i386.iso (Direct)Patch perlowy został dodany oficjalnie w repo, teraz trzeba tylko go przerobić żeby wątki obsługiwał. Wiec nie, jeszcze nie ma nowszego.
Znalazłem paczkę już dla ddwrt
http://ipkg.nslu2-linux.org/feeds/optwa … e/Packages
microdc2
gdzie można makefila skopiować w końcu to przecież ala'openwrt
Nie, nie jest podobne ![]()
http://trac.nslu2-linux.org/optware/bro … icrodc2.mk
Strony Poprzednia 1 2
Zaloguj się lub zarejestruj by napisać odpowiedź
eko.one.pl → Oprogramowanie / Software → przesiadka z Asusa WL-500gP na wrt160nl warto ?
Forum oparte o PunBB, wspierane przez Informer Technologies, Inc