51 (edytowany przez majerotto 2011-01-04 15:03:46)

Odp: fstab i extroot

ja się biorę za ściąganie i czekam, aż moja druga połówka pomarańczy pozwoli mi odłączyć ruter od Sieci smile
skoro zadziałało u @norcio to i u mnie powinno smile

Pozdrawiam

PS: @Cezary ile Ty masz ruterów w domu? smile Dodatkowe pytanie: co powiesz o OpenWRT na Asus N56U? to nowość i fajnie by było jakby dało się tam coś postawić..

EDIT:
I wkur**wiłem się totalnie. co robię źle?
wgrałem soft z linka Cezarego.
config fstab:

root@OpenWrt:~# uci show fstab
fstab.automount=global
fstab.automount.from_fstab=1
fstab.automount.anon_mount=1
fstab.autoswap=global
fstab.autoswap.from_fstab=1
fstab.autoswap.anon_swap=0
fstab.@mount[0]=mount
fstab.@mount[0].uuin=e97db5fa-d430-42b2-9a63-7f36f5947dbb
fstab.@mount[0].fstype=ext3
fstab.@mount[0].options=rw,noatime
fstab.@mount[0].enabled=1
fstab.@mount[0].enabled_fsck=0
fstab.@mount[0].is_rootfs=1
fstab.@swap[0]=swap
fstab.@swap[0].device=/dev/scsi/host0/bus0/target0/lun0/part1
fstab.@swap[0].enabled=1

po restarcie zapaliła się dioda z AIR co znaczy że zmiany nie zaszły w ogóle.
dziwne jest to że nic nie ma o penie w logu

root@OpenWrt:~# logread
Jan  1 01:00:34 OpenWrt syslog.info syslogd started: BusyBox v1.15.3
Jan  1 01:00:34 OpenWrt user.notice kernel: klogd started: BusyBox v1.15.3 (2011-01-03 22:19:03 CET)
Jan  1 01:00:34 OpenWrt user.warn kernel: CPU revision is: 00029029
Jan  1 01:00:34 OpenWrt user.warn kernel: Primary instruction cache 16kB, physically tagged, 4-way, linesize 16 bytes.
Jan  1 01:00:34 OpenWrt user.warn kernel: Primary data cache 16kB, 2-way, linesize 16 bytes.
Jan  1 01:00:34 OpenWrt user.warn kernel: Linux version 2.4.37.9 (cezary@eko.one.pl) (gcc version 3.4.6 (OpenWrt-2.0)) #10 Tue Jan 4 07:17:39 CET 2011
Jan  1 01:00:34 OpenWrt user.warn kernel: Setting the PFC to its default value
Jan  1 01:00:34 OpenWrt user.warn kernel: Determined physical RAM map:
Jan  1 01:00:34 OpenWrt user.warn kernel:  memory: 02000000 @ 00000000 (usable)
Jan  1 01:00:34 OpenWrt user.warn kernel: On node 0 totalpages: 8192
Jan  1 01:00:34 OpenWrt user.warn kernel: zone(0): 8192 pages.
Jan  1 01:00:34 OpenWrt user.warn kernel: zone(1): 0 pages.
Jan  1 01:00:34 OpenWrt user.warn kernel: zone(2): 0 pages.
Jan  1 01:00:34 OpenWrt user.warn kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Jan  1 01:00:34 OpenWrt user.warn kernel: CPU: BCM5354 rev 3 at 240 MHz
Jan  1 01:00:34 OpenWrt user.warn kernel: Using 120.000 MHz high precision timer.
Jan  1 01:00:34 OpenWrt user.warn kernel: Calibrating delay loop... 237.56 BogoMIPS
Jan  1 01:00:34 OpenWrt user.info kernel: Memory: 30448k/32768k available (1446k kernel code, 2320k reserved, 100k data, 84k init, 0k highmem)
Jan  1 01:00:34 OpenWrt user.info kernel: Dentry cache hash table entries: 4096 (order: 3, 32768 bytes)
Jan  1 01:00:36 OpenWrt user.info kernel: b44: eth0: Link is up at 100 Mbps, full duplex.
Jan  1 01:00:36 OpenWrt user.info kernel: b44: eth0: Flow control is off for TX and off for RX.
Jan  1 01:00:38 OpenWrt user.debug kernel: eth0.1: add 01:00:5e:00:00:01 mcast address to master interface
Jan  1 01:00:38 OpenWrt user.debug kernel: eth0.0: add 01:00:5e:00:00:01 mcast address to master interface
Jan  1 01:00:38 OpenWrt user.info kernel: eth0.0: dev_set_promiscuity(master, 1)
Jan  1 01:00:38 OpenWrt user.info kernel: device eth0 entered promiscuous mode
Jan  1 01:00:38 OpenWrt user.info kernel: device eth0.0 entered promiscuous mode
Jan  1 01:00:38 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering learning state
Jan  1 01:00:38 OpenWrt user.info kernel: br-lan: port 1(eth0.0) entering forwarding state
Jan  1 01:00:38 OpenWrt user.info kernel: br-lan: topology change detected, propagating
Jan  1 01:00:40 OpenWrt user.debug kernel: PCI: Setting latency timer of device 00:05.0 to 64
Jan  1 01:00:40 OpenWrt user.emerg kernel: PCI/DMA
Jan  1 01:00:40 OpenWrt user.emerg kernel: wl0: wlc_attach: chiprev 3 coreunit 0 corerev 13 cccap 0x104007ea maccap 0x30482205 band 2.4G, phy_type 5 phy_rev 0 ana_rev 6
Jan  1 01:00:40 OpenWrt user.warn kernel: wl0: Broadcom BCM4318 802.11 Wireless Controller 4.150.10.5
Jan  1 01:00:40 OpenWrt user.info sysinit: Warning: loading wl will taint the kernel: non-GPL license - Proprietary
Jan  1 01:00:40 OpenWrt user.info sysinit:   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Jan  1 01:00:40 OpenWrt user.info kernel: CSLIP: code copyright 1989 Regents of the University of California
Jan  1 01:00:41 OpenWrt user.info kernel: PPP generic driver version 2.4.2
Jan  1 01:00:42 OpenWrt user.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan  1 01:00:43 OpenWrt user.warn kernel: ip_conntrack version 2.1 (5953 buckets, 5953 max) - 352 bytes per conntrack
Jan  1 01:00:44 OpenWrt user.info kernel: usb-uhci.c: $Revision: 1.275 $ time 07:12:52 Jan  4 2011
Jan  1 01:00:44 OpenWrt user.info kernel: usb-uhci.c: High bandwidth mode enabled
Jan  1 01:00:44 OpenWrt user.info kernel: usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
Jan  1 01:00:45 OpenWrt user.info kernel: Adding Swap: 488424k swap-space (priority -1)
Jan  1 01:00:47 OpenWrt user.info kernel: device wl0 entered promiscuous mode
Jan  1 01:00:47 OpenWrt user.info kernel: wl0: attempt to add interface with same source address.
Jan  1 01:00:47 OpenWrt user.info kernel: br-lan: port 2(wl0) entering learning state
Jan  1 01:00:47 OpenWrt user.info kernel: br-lan: port 2(wl0) entering forwarding state
Jan  1 01:00:47 OpenWrt user.info kernel: br-lan: topology change detected, propagating
Jan  1 01:00:49 OpenWrt user.info sysinit: Loading defaults
Jan  1 01:00:51 OpenWrt user.info sysinit: Loading synflood protection
Jan  1 01:00:51 OpenWrt user.info sysinit: Adding custom chains
Jan  1 01:00:53 OpenWrt user.info sysinit: Loading zones
Jan  1 01:00:54 OpenWrt user.info sysinit: Loading forwarding
Jan  1 01:00:54 OpenWrt user.info sysinit: Loading redirects
Jan  1 01:00:54 OpenWrt user.info sysinit: Loading rules
Jan  1 01:00:54 OpenWrt user.info sysinit: Loading includes
Jan  1 01:00:54 OpenWrt user.info sysinit: Loading zone defaults
Jan  1 01:00:55 OpenWrt user.notice root: adding lan (br-lan) to firewall zone lan
Jan  1 01:00:55 OpenWrt user.notice root: adding wan (eth0.1) to firewall zone wan
Jan  1 01:00:57 OpenWrt authpriv.info dropbear[863]: Running in background
Jan  1 01:00:57 OpenWrt user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Jan  1 01:00:57 OpenWrt user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: started, version 2.55 cachesize 150
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: compile time options: IPv6 GNU-getopt no-DBus no-I18N DHCP TFTP
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq-dhcp[885]: DHCP, IP range 192.168.1.100 -- 192.168.1.250, lease time 12h
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: using local addresses only for domain lan
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: reading /tmp/resolv.conf.auto
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: using nameserver 62.179.1.62#53
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: using nameserver 62.179.1.63#53
Jan  1 01:01:01 OpenWrt daemon.warn dnsmasq[885]: ignoring nameserver 192.168.1.1 - local interface
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: using local addresses only for domain lan
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq[885]: read /etc/hosts - 1 addresses
Jan  1 01:01:01 OpenWrt daemon.info dnsmasq-dhcp[885]: read /etc/ethers - 0 addresses
Jan  1 01:01:02 OpenWrt user.notice rdate: Failed to sync with vega.cbk.poznan.pl
Jan  4 14:55:04 OpenWrt user.notice rdate: Synced with ntp.itl.waw.pl
Jan  4 14:55:20 OpenWrt daemon.info dnsmasq-dhcp[885]: DHCPREQUEST(br-lan) 192.168.1.100 00:24:2c:6f:8d:71 
Jan  4 14:55:20 OpenWrt daemon.info dnsmasq-dhcp[885]: DHCPACK(br-lan) 192.168.1.100 00:24:2c:6f:8d:71 mjr-netbook
Jan  4 14:55:30 OpenWrt authpriv.info dropbear[898]: Child connection from 192.168.1.100:47907
Jan  4 14:55:35 OpenWrt authpriv.notice dropbear[898]: password auth succeeded for 'root' from 192.168.1.100:47907

@norcio jak to zrobiłeś krok po kroku? co edytowałeś że Ci się udało w 5min?

52

Odp: fstab i extroot

pierwsze co mi sie rzuca w oczy to zamiast uuin   w /etc/config/fstab powinno byc uuid,  nic konkretnego nie robielem dodalem dysk do konfiguracji, zrobilem /etc/init.d/fstab enable , reboot i zadzialalo. Najpierw sprawdzilem czy wogole montuje gdzies w /mnt  dopiero pozniej jak montowanie dzialalo to wlaczylem rootfs =1

53 (edytowany przez majerotto 2011-01-04 15:52:19)

Odp: fstab i extroot

UDAŁO SIĘ! smile
jeba*ny błąd literowy smile
Dzięki Panowie za poświęcony czas.

Jak coś to stawiam browara smile

Biorę się za config

Pozdro

54

Odp: fstab i extroot

Ja używam bieżacej gałęzi Backfire, cj to pakiety w których maczałem palce.

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

55

Odp: fstab i extroot

RT-N56U mam własnie w testach. Alternatywy tam jeszcze się nie da postawić.

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

56

Odp: fstab i extroot

Mam małe pytanie: czy openwrt obsługuje exfat?

57

Odp: fstab i extroot

Dzieki Cezary, teraz jak pokonfiguruje biore sie za minidlna wink niestety nie moge go znalezc w repo dla brcm-2.4(nie wiem czy to przez przypadek czy celowo bo w dla innych buildow jest) chyba bedzie trzeba jakos samemu skompilowac

58

Odp: fstab i extroot

@matei: nie, obsługa exfat jest jeszcze w powijakach nawet w normalnym linuksie.

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

59

Odp: fstab i extroot

Cezary napisał/a:

RT-N56U mam własnie w testach. Alternatywy tam jeszcze się nie da postawić.

Skoro już go testujesz to dasz znać jakie ma WADY? Mam go na oku i ciekaw jestem jakie ma słabe strony.

60

Odp: fstab i extroot

Jak skończę pisać to przeczytacie sobie recenzję.

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

61

Odp: fstab i extroot

Cześć, od 2 dni używam open wrt (wcześniej oleg), miałem problem z extrootem, ale po wgraniu obrazu który udostępnił Cezary w tym temacie udało się. Pojawił się natomiast problem z LuCI, nie wiem czy było wkompilowane w ten obraz, zainstalowałem zgodnie z instrukcją znalezioną na tej stronie http://luci.subsignal.org/trac/wiki/Installation zainstalowało się bez problemów jednak po wejściu przez przeglądarkę pojawia się pusta strona a w pasku adresu jest http://10.10.10.1/cgi-bin/luci

Macie też taki problem? czy może coś trzeba jeszcze doinstalować?

62

Odp: fstab i extroot

opkg update
opkg install luci-admin-full luci-theme-openwrt px5g uhttpd-mod-tls
/etc/init.d/uhttpd enable
/etc/init.d/uhttpd start

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

63

Odp: fstab i extroot

huh udało się, po długiej walce smile, coś mi z początku nie chciały pomóc te paczuszki, odinstalowałem wszystko co miało związek z luci, ponowna instalacja nie pomogła, znowu odinstalowałem, sciagłem te paczki na dysk i ręcznie z dysku je zainstalowałem i poszło smile.

Dzięki za pomoc, pozdrawiam

64

Odp: fstab i extroot

czy przy pierwszym uruchomieniu z zewnetrznego usb kopiuja sie wszystkie dane z routera? bo przykladowo w etc mam tylko polowe danych i generalnie router jakos wstal, ale nie moglem sie do niego dostac... ani po telnecie ani po ssh. dlaczego?

ZyXEL NBG6716 (Gargoyle by obsy)

65

Odp: fstab i extroot

@COVERek: nie kopiują się wszystkie. Po wgraniu extroota masz tak jakby czysty nowy OpenWRT. Musisz od nowa wszystko ustawiać. Chyba, że sobie skopiujesz wcześniej na dysk zewnętrzny..

66

Odp: fstab i extroot

no ale /etc to chybacaly powiniensie skopiowac? nawet banner sie nie skopiowal...

ZyXEL NBG6716 (Gargoyle by obsy)

67

Odp: fstab i extroot

Przy pierwszym uruchomieniu z extroota nie kopiuje się nic. Jest dokładnie taka konfiguracja jak we flash, czyli domyślna.

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

68

Odp: fstab i extroot

dobra, sytuacla wyglada tak ze po restarcie i domniemanym pierwszym uruchomieniu z usb nie moge sie dostac anie po ssh (nie znam hasla) ani z telnetu.... co dalej w takim wypadku?

ZyXEL NBG6716 (Gargoyle by obsy)

69

Odp: fstab i extroot

Po telnecie. Jeżeli to gargoyle to po ssh (z hasłem password). Jak nie to po prostu dołącz dysk i uruchom.

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

70

Odp: fstab i extroot

czy na takim systemie moge spokojnie zrobic sobie sysupgrade?

ZyXEL NBG6716 (Gargoyle by obsy)

71

Odp: fstab i extroot

tak.

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

72

Odp: fstab i extroot

Cezary napisał/a:

Sprawdź ten obraz: http://ecco.selfip.net/broadcom/brcm-2.4-extroot/

To kernel 2.4, dołączone sterowniki USB, obsługa block-extroot oraz ext2/ext3. Nic więcej.

Na tym obrazie mi działa ... problem w tym że chcę też Gargoyle.

Mam Asusa WL-500G Premium v1, próbowałem już różnych obrazów. Dziś na oryginalnym Gargoyle 1.3.9 po dodaniu paczki ext-root (ale bez konfiguracji extroota), po resecie świeci mi lan i wolno miga power - na pingi nie odpowiada! Już tak miałem podczas poprzednich prób - teraz muszę przez tftp obraz zapodać.

Próbowałem też doinstalować Gargoyle PL z pakietów z http://ecco.selfip.net/gargoyle-pl/brcm-2.4/packages/ ale i to się nie udało - te pakiety są z wersji listopadowej.

Czy są gdzieś dostępne pakiety oryginalnego Gargoyle - znalazłem tylko bardzo stare
http://downloads.openwrt.org/kamikaze/8 … 4/packages

73

Odp: fstab i extroot

Oryginalne masz na gargoyle-router.com oczywiście.

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

74

Odp: fstab i extroot

Cezary napisał/a:

Oryginalne masz na gargoyle-router.com oczywiście.

ale tam znalazłem tylko źródła ... a pakiety znalazłem dla OpenWrt Kamikaze.

http://www.gargoyle-router.com/wiki/dok … f_packages

75

Odp: fstab i extroot

A, sorry. Ty pakiety same chcesz. Na gagroyle-router ich nie znajdziesz. Ale i tak potrzebujesz nowy system, sama instalacja pakietów na samym openwrt nic Ci nie da - system jest zbyt zmodyfikowany na coś takiego. Poczekaj to skompiluję i dla brcm-2.4

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