26

Odp: OpenWrt - Audio

Przeczytaj w końcu ten poradnik. Jest tam napisane co dalej musisz zrobić.

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

27

Odp: OpenWrt - Audio

mam jeszcze jedno pytanie   mój usb montuje się domyślnie w dev/sda1 a czy on  musi się montować  w mnt w którym trzeba stworzyć katalog np music?????

28

Odp: OpenWrt - Audio

Nie, on nie montuje się w /dev/sda1. To jest właśnie urządzenie a nie jego punkt montowania i to jego masz gdzieś zamontować - w szczególności możesz w katalogu /mnt.

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

29

Odp: OpenWrt - Audio

ok.. jest możliwość wgrania przez ciebie openwr do tplinka8970

30

Odp: OpenWrt - Audio

Tak, na mejla pisz.

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

31

Odp: OpenWrt - Audio

da się jakoś sprawdzić czy mpd jest uruchomione

32

Odp: OpenWrt - Audio

poleceniem ps

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

33

Odp: OpenWrt - Audio

wyszło coś takiego -ash: 2202: not found
root@Gargoyle:~#  2203 root         0 SW   [nfsd]
-ash: 2203: not found
root@Gargoyle:~#  2204 root         0 SW   [nfsd]
-ash: 2204: not found
root@Gargoyle:~#  2205 root         0 SW   [nfsd]
-ash: 2205: not found
root@Gargoyle:~#  2206 root         0 SW   [nfsd]
-ash: 2206: not found
root@Gargoyle:~#  2207 root         0 SW   [nfsd]
-ash: 2207: not found
root@Gargoyle:~#  2208 root         0 SW   [nfsd]
-ash: 2208: not found
root@Gargoyle:~#  2209 root         0 SW   [nfsd]
-ash: 2209: not found
root@Gargoyle:~#  2210 root         0 SW   [nfsd]
-ash: 2210: not found
root@Gargoyle:~#  2212 root      1396 S    /usr/sbin/rpc.mountd -p 32780 -F
-ash: 2212: not found
root@Gargoyle:~#  2437 root      3140 S    /usr/sbin/smbd -D
-ash: 2437: not found
root@Gargoyle:~#  2443 root      3200 S    /usr/sbin/nmbd -D
-ash: 2443: not found
root@Gargoyle:~#  2664 root      1020 S    /usr/sbin/vsftpd /tmp/vsftpd/vsftpd.c
onf
-ash: 2664: not found
root@Gargoyle:~#  2743 root      1504 S    /sbin/watchdog -t 5 /dev/watchdog
-ash: 2743: not found
root@Gargoyle:~#  2777 root      1508 S    /usr/sbin/crond -c /etc/crontabs -l 9
-ash: 2777: not found
root@Gargoyle:~#  5189 root         0 SW   [kworker/0:2]
-ash: 5189: not found
root@Gargoyle:~#  5194 root         0 SW   [kworker/0:0]
-ash: 5194: not found
root@Gargoyle:~#  5196 root      1228 S    /usr/sbin/dropbear -P /var/run/dropbe
ar.1.pid -p 22
-ash: 5196: not found
root@Gargoyle:~#  5197 root      1508 S    -ash
-ash: 5197: not found
root@Gargoyle:~#  5258 root      1500 R    ps
-ash: 5258: not found

34

Odp: OpenWrt - Audio

Zrobiłeś coś takiego: ps, zaznaczyłeś myszą a później wkleiłeś to jeszcze raz w konsolę a on próbował to wykonać. Zrób normalnie ps, w putty ustaw sobie zapis sesji do pliku to później nie będzie problemu z pokazaniem tego.

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

35

Odp: OpenWrt - Audio

BusyBox v1.19.4 (2014-09-27 10:09:18 CEST) built-in shell (ash)
Enter 'help' for a list of built-in commands.


             _____                             _
            |  __ \                           | |
            | |  \/ __ _ _ __ __ _  ___  _   _| | ___
            | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \
            | |_\ \ (_| | | | (_| | (_) | |_| | |  __/
             \____/\__,_|_|  \__, |\___/ \__, |_|\___|
                              __/ |       __/ |
                             |___/       |___/

----------------------------------------------------------------
|                                                              |
| Gargoyle PL 1.6.2.2 (b70bfc1)                                |
| OpenWrt Attitude Adjustment 12.09.1 (r42647)                 |
| Build time: 2014-09-27 10:11 CEST                            |
|                                                              |
| Cezary Jackiewicz (obsy), http://eko.one.pl                  |
|                                                              |
----------------------------------------------------------------
| Machine: TP-Link TL-WR1043N/ND v2                            |
| Uptime: 0d, 02:52:30                                         |
| Load: 0.12 0.13 0.47                                         |
| Flash:                                                       |
| Memory: total: 60.2MB, free: 42.0MB, used: 30%               |
| WAN:                                                         |
| LAN: 192.168.1.100                                           |
| WLAN: mode: ap, ssid: tplink wr1043, channel: 13, conn: 0    |
----------------------------------------------------------------
root@Gargoyle:~# ps
  PID USER       VSZ STAT COMMAND
    1 root      1508 S    init
    2 root         0 SW   [kthreadd]
    3 root         0 SW   [ksoftirqd/0]
    5 root         0 SW   [kworker/u:0]
    6 root         0 SW<  [khelper]
   67 root         0 SW   [sync_supers]
   69 root         0 SW   [bdi-default]
   71 root         0 SW<  [kblockd]
  100 root         0 SW   [kswapd0]
  148 root         0 SW   [fsnotify_mark]
  178 root         0 SW<  [ath79-spi]
  189 root         0 SW   [mtdblock0]
  194 root         0 SW   [mtdblock1]
  199 root         0 SW   [mtdblock2]
  204 root         0 SW   [mtdblock3]
  209 root         0 SW   [mtdblock4]
  214 root         0 SW   [mtdblock5]
  284 root         0 SW   [kworker/0:1]
  520 root         0 SW   [khubd]
  540 root         0 SW   [scsi_eh_0]
  542 root         0 SW   [scsi_eh_1]
  544 root         0 SW   [kworker/u:2]
  577 root         0 SW   [jbd2/sdb1-8]
  578 root         0 SW<  [ext4-dio-unwrit]
  600 root      1508 S    init
  633 root         0 SW<  [cfg80211]
  672 root         0 SW<  [rpciod]
  695 root         0 SW<  [nfsiod]
  903 root      1512 S    /sbin/syslogd -C16
  905 root      1496 S    /sbin/klogd
  907 root       900 S    /sbin/hotplug2 --override --persistent --set-rules-f
  917 root       872 S    /sbin/ubusd
1039 nobody    1024 S    /usr/sbin/portmap
1097 root      1472 S    /sbin/netifd
1340 root      1508 S    /usr/sbin/ntpd -n -p 0.pool.ntp.org -p 1.pool.ntp.or
1356 root      1628 S    hostapd -P /var/run/wifi-phy0.pid -B /var/run/hostap
1449 root      1164 S    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
1512 root      1348 S    httpd_gargoyle -c cgi-bin/**|**.sh|**.cgi|**.csv -d
1863 root         0 SW   [jbd2/sda1-8]
1864 root         0 SW<  [ext4-dio-unwrit]
2122 nobody     948 S    /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf
2190 root      1068 S    /usr/sbin/rpc.statd -p 32778 -o 32779
2202 root         0 SW   [lockd]
2203 root         0 SW   [nfsd]
2204 root         0 SW   [nfsd]
2205 root         0 SW   [nfsd]
2206 root         0 SW   [nfsd]
2207 root         0 SW   [nfsd]
2208 root         0 SW   [nfsd]
2209 root         0 SW   [nfsd]
2210 root         0 SW   [nfsd]
2212 root      1396 S    /usr/sbin/rpc.mountd -p 32780 -F
2437 root      3140 S    /usr/sbin/smbd -D
2443 root      3200 S    /usr/sbin/nmbd -D
2664 root      1020 S    /usr/sbin/vsftpd /tmp/vsftpd/vsftpd.conf
2743 root      1504 S    /sbin/watchdog -t 5 /dev/watchdog
2777 root      1512 S    /usr/sbin/crond -c /etc/crontabs -l 9
5888 root         0 SW   [kworker/0:2]
5983 root      1228 R    /usr/sbin/dropbear -P /var/run/dropbear.1.pid -p 22
5984 root         0 SW   [kworker/0:0]
5985 root      1508 S    -ash
6033 root      1500 R    ps

36

Odp: OpenWrt - Audio

Nie, nie ma go.

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

37

Odp: OpenWrt - Audio

root@Gargoyle:~# opkg install mpd-full mpc
WARNING: Package mpc is already installed, ignoring
         Use --force-reinstall to force reinstallation

WARNING: Package mpd-full is already installed, ignoring
         Use --force-reinstall to force reinstallation

No packages to install.    po tym wygląda że jest zainstalowany

38

Odp: OpenWrt - Audio

Zrób i pokaż co wypisał po

/etc/init.d/mpd start
logread
cat /etc/mpd.conf
mount

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

39

Odp: OpenWrt - Audio

_____                             _
            |  __ \                           | |
            | |  \/ __ _ _ __ __ _  ___  _   _| | ___
            | | __ / _` | '__/ _` |/ _ \| | | | |/ _ \
            | |_\ \ (_| | | | (_| | (_) | |_| | |  __/
             \____/\__,_|_|  \__, |\___/ \__, |_|\___|
                              __/ |       __/ |
                             |___/       |___/

----------------------------------------------------------------
|                                                              |
| Gargoyle PL 1.6.2.2 (b70bfc1)                                |
| OpenWrt Attitude Adjustment 12.09.1 (r42647)                 |
| Build time: 2014-09-27 10:11 CEST                            |
|                                                              |
| Cezary Jackiewicz (obsy), http://eko.one.pl                  |
|                                                              |
----------------------------------------------------------------
| Machine: TP-Link TL-WR1043N/ND v2                            |
| Uptime: 0d, 00:40:53                                         |
| Load: 1.43 1.17 1.06                                         |
| Flash: total: 2.8GB, free: 2.5GB, used: 4%                   |
| Memory: total: 60.2MB, free: 37.5MB, used: 37%               |
| WAN:                                                         |
| LAN: 192.168.1.100                                           |
| WLAN: mode: ap, ssid: tplink wr1043, channel: 13, conn: 0    |
----------------------------------------------------------------
root@Gargoyle:~# /etc/init.d/mpd start
root@Gargoyle:~# logread
Jan  1 01:00:41 Gargoyle kern.info kernel: [   10.260000] usbcore: registered new interface driver ums-usbat
Jan  1 01:00:41 Gargoyle kern.info kernel: [   10.370000] hub 1-1:1.0: USB hub found
Jan  1 01:00:41 Gargoyle kern.info kernel: [   10.370000] hub 1-1:1.0: 4 ports detected
Jan  1 01:00:41 Gargoyle kern.info kernel: [   10.710000] usb 1-1.1: new full-speed USB device number 3 using ehci-platform
Jan  1 01:00:41 Gargoyle kern.info kernel: [   10.920000] usb 1-1.2: new high-speed USB device number 4 using ehci-platform
Jan  1 01:00:41 Gargoyle kern.info kernel: [   11.170000] usb 1-1.3: new high-speed USB device number 5 using ehci-platform
Jan  1 01:00:41 Gargoyle kern.info kernel: [   11.300000] scsi0 : usb-storage 1-1.3:1.0
Jan  1 01:00:41 Gargoyle kern.info kernel: [   11.400000] usb 1-1.4: new high-speed USB device number 6 using ehci-platform
Jan  1 01:00:41 Gargoyle kern.info kernel: [   11.530000] scsi1 : usb-storage 1-1.4:1.0
Jan  1 01:00:41 Gargoyle kern.notice kernel: [   12.340000] scsi 0:0:0:0: Direct-Access     TOSHIBA  TransMemory      1.00 PQ: 0 ANSI: 4
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: starting application
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: MJPG Streamer Version: svn rev: Unversioned directory
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: Using V4L2 device.: /dev/video0
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: Desired Resolution: 640 x 480
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: Frames Per Second.: 5
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: Format............: YUV
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: JPEG Quality......: 80
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: www-folder-path...: /usr/lib/mjpg-streamer/www/
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: HTTP TCP port.....: 8080
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: username:password.: admin:admin
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: commands..........: enabled
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: starting input plugin input_uvc.so
Jan  1 01:00:44 Gargoyle user.info MJPG-streamer [1026]: starting output plugin: output_http.so (ID: 00)
Jan  1 01:00:47 Gargoyle kern.info kernel: [   47.800000] eth1: link up (1000Mbps/Full duplex)
Jan  1 01:00:47 Gargoyle kern.info kernel: [   47.820000] device eth1 entered promiscuous mode
Jan  1 01:00:47 Gargoyle kern.info kernel: [   47.820000] br-lan: port 1(eth1) entered forwarding state
Jan  1 01:00:47 Gargoyle kern.info kernel: [   47.830000] br-lan: port 1(eth1) entered forwarding state
Jan  1 01:00:47 Gargoyle daemon.notice netifd: Interface 'lan' is now up
Jan  1 01:00:47 Gargoyle daemon.notice netifd: Interface 'loopback' is now up
Jan  1 01:00:48 Gargoyle user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Jan  1 01:00:49 Gargoyle user.notice usb-modeswitch: 1-0:1.0: Manufacturer=Linux_3.3.8_ehci_hcd Product=Generic_Platform_EHCI_Controller Serial=ehci-platform.0
Jan  1 01:00:49 Gargoyle kern.info kernel: [   49.830000] br-lan: port 1(eth1) entered forwarding state
Jan  1 01:00:53 Gargoyle kern.info kernel: [   53.380000] ADDRCONF(NETDEV_UP): wlan0: link is not ready
Jan  1 01:00:53 Gargoyle kern.info kernel: [   53.380000] device wlan0 entered promiscuous mode
Jan  1 01:00:53 Gargoyle kern.info kernel: [   53.720000] br-lan: port 2(wlan0) entered forwarding state
Jan  1 01:00:53 Gargoyle kern.info kernel: [   53.730000] br-lan: port 2(wlan0) entered forwarding state
Jan  1 01:00:53 Gargoyle kern.info kernel: [   53.730000] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Jan  1 01:00:55 Gargoyle kern.info kernel: [   55.730000] br-lan: port 2(wlan0) entered forwarding state
Jan 13 12:00:02 Gargoyle authpriv.info dropbear[1448]: Running in background
Jan 13 12:00:02 Gargoyle user.notice usb-modeswitch: 2-0:1.0: Manufacturer=Linux_3.3.8_ehci_hcd Product=Generic_Platform_EHCI_Controller Serial=ehci-platform.1
Jan 13 12:00:03 Gargoyle daemon.crit httpd_gargoyle[1516]: bind 0.0.0.0 - Address already in use
Jan 13 12:00:03 Gargoyle daemon.crit httpd_gargoyle[1516]: bind 0.0.0.0 - Address already in use
Jan 13 12:00:03 Gargoyle daemon.warn httpd_gargoyle[1532]: started as root without requesting chroot(), warning only
Jan 13 12:00:03 Gargoyle daemon.notice httpd_gargoyle[1532]: httpd_gargoyle/1.0 14mar2008 starting on Gargoyle, port 80
Jan 13 12:00:03 Gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=? Product=USB_2.0_Hub Serial=?
Jan 13 12:00:04 Gargoyle user.notice usb-modeswitch: 1-1.1:1.0: Manufacturer=C-Media_Electronics_Inc. Product=USB_PnP_Sound_Device Serial=?
Jan 13 12:00:05 Gargoyle user.notice usb-modeswitch: 1-1.1:1.1: Manufacturer=C-Media_Electronics_Inc. Product=USB_PnP_Sound_Device Serial=?
Jan 13 12:00:05 Gargoyle user.notice usb-modeswitch: 1-1.1:1.2: Manufacturer=C-Media_Electronics_Inc. Product=USB_PnP_Sound_Device Serial=?
Jan 13 12:00:06 Gargoyle user.notice usb-modeswitch: 1-1.1:1.3: Manufacturer=C-Media_Electronics_Inc. Product=USB_PnP_Sound_Device Serial=?
Jan 13 12:00:06 Gargoyle kern.warn kernel: [   62.490000] disktype: sending ioctl 5305 to a partition!
Jan 13 12:00:06 Gargoyle kern.warn kernel: [   62.500000] disktype: sending ioctl 5305 to a partition!
Jan 13 12:00:07 Gargoyle kern.info kernel: [   62.620000] EXT4-fs (sda1): recovery complete
Jan 13 12:00:07 Gargoyle kern.info kernel: [   62.660000] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
Jan 13 12:00:07 Gargoyle user.notice usb-modeswitch: 1-1.2:1.0: Manufacturer=Creative_Labs Product=VF0520_Live!_Cam_Sync Serial=2012060900865
Jan 13 12:00:07 Gargoyle kern.warn kernel: [   63.220000] disktype: sending ioctl 5305 to a partition!
Jan 13 12:00:07 Gargoyle kern.warn kernel: [   63.220000] disktype: sending ioctl 5305 to a partition!
Jan 13 12:00:07 Gargoyle kern.info kernel: [   63.490000] Adding 2097148k swap on /dev/sda2.  Priority:-1 extents:1 across:2097148k
Jan 13 12:00:08 Gargoyle user.notice usb-modeswitch: 1-1.2:1.1: Manufacturer=Creative_Labs Product=VF0520_Live!_Cam_Sync Serial=2012060900865
Jan 13 12:00:08 Gargoyle kern.warn kernel: [   63.650000] disktype: sending ioctl 5305 to a partition!
Jan 13 12:00:08 Gargoyle kern.warn kernel: [   63.650000] disktype: sending ioctl 5305 to a partition!
Jan 13 12:00:08 Gargoyle kern.info kernel: [   63.750000] Adding 982264k swap on /dev/sdb2.  Priority:-2 extents:1 across:982264k
Jan 13 12:00:09 Gargoyle user.notice usb-modeswitch: 1-1.3:1.0: Manufacturer=TOSHIBA Product=TransMemory Serial=7427EA2C3BC7CD5047B02ACC
Jan 13 12:00:09 Gargoyle user.notice dnsmasq: DNS rebinding protection is active, will discard upstream RFC1918 responses!
Jan 13 12:00:09 Gargoyle user.notice dnsmasq: Allowing 127.0.0.0/8 responses
Jan 13 12:00:09 Gargoyle user.notice dnsmasq: Allowing RFC1918 responses for domain free.aero2.net.pl
Jan 13 12:00:09 Gargoyle user.notice dnsmasq: found already running DHCP-server on interface 'br-lan' refusing to start, use 'option force 1' to override
Jan 13 12:00:10 Gargoyle user.notice usb-modeswitch: 1-1.4:1.0: Manufacturer=SanDisk Product=Cruzer_Micro Serial=4731031D9141D931
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: started, version 2.66 cachesize 150
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: using local addresses only for domain lan
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: reading /tmp/resolv.conf.auto
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: using nameserver 192.168.1.1#53
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: using local addresses only for domain lan
Jan 13 12:00:10 Gargoyle daemon.info dnsmasq[2075]: read /etc/hosts - 2 addresses
Jan 13 12:00:10 Gargoyle daemon.notice rpc.statd[2135]: Version 1.2.6 starting
Jan 13 12:00:10 Gargoyle daemon.notice sm-notify[2136]: Version 1.2.6 starting
Jan 13 12:00:10 Gargoyle daemon.err sm-notify[2136]: Failed to open directory sm.bak: No such file or directory
Jan 13 12:00:10 Gargoyle daemon.notice rpc.statd[2135]: Initializing NSM state
Jan 13 12:00:10 Gargoyle daemon.warn rpc.statd[2135]: Running as root.  chown /var/lib/nfs to choose different user
Jan 13 12:00:10 Gargoyle user.info sysinit: exportfs: No options for /nfs/ mp3: suggest mp3(sync) to avoid warning
Jan 13 12:00:10 Gargoyle user.info sysinit: exportfs: /etc/exports [1]: Neither 'subtree_check' or 'no_subtree_check' specified for export "mp3:/nfs/".
Jan 13 12:00:10 Gargoyle user.info sysinit:   Assuming default behaviour ('no_subtree_check').
Jan 13 12:00:10 Gargoyle user.info sysinit:   NOTE: this default has changed since nfs-utils version 1.0.x
Jan 13 12:00:10 Gargoyle user.info sysinit: exportfs: Failed to resolve mp3
Jan 13 12:00:10 Gargoyle user.info sysinit: exportfs: Failed to resolve mp3
Jan 13 12:00:11 Gargoyle kern.warn kernel: [   66.670000] svc: failed to register lockdv1 RPC service (errno 124).
Jan 13 12:00:11 Gargoyle daemon.notice rpc.mountd[2160]: Version 1.2.6 starting
Jan 13 14:05:17 Gargoyle kern.warn kernel: [   71.080000] ipt_bandwidth: timezone shift of 60 minutes detected, adjusting
Jan 13 14:05:17 Gargoyle kern.warn kernel: [   71.090000]                old minutes west=0, new minutes west=-60
Jan 13 14:05:18 Gargoyle user.info sysinit: ERROR: No valid dynamic DNS service configurations defined
Jan 13 14:05:18 Gargoyle user.info sysinit: (Did you specify correct configuration file path?)
Jan 13 14:05:18 Gargoyle user.notice root: vsftpd init: mounted = 1
Jan 13 14:05:18 Gargoyle user.notice root: vsftpd init: got_lock = 1
Jan 13 14:05:20 Gargoyle user.info sysinit: setting up led USB
Jan 13 14:05:20 Gargoyle user.info sysinit: setting up led WLAN
Jan 13 14:05:33 Gargoyle kern.warn kernel: [   87.220000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:33 Gargoyle kern.warn kernel: [   87.220000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:34 Gargoyle kern.warn kernel: [   87.480000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:34 Gargoyle kern.warn kernel: [   87.480000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:34 Gargoyle kern.info kernel: [   87.550000] Adding 2097148k swap on /dev/sda2.  Priority:-2 extents:1 across:2097148k
Jan 13 14:05:34 Gargoyle kern.warn kernel: [   87.680000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:34 Gargoyle kern.warn kernel: [   87.690000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:38 Gargoyle kern.warn kernel: [   91.650000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:38 Gargoyle kern.warn kernel: [   91.660000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:38 Gargoyle kern.warn kernel: [   91.930000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:38 Gargoyle kern.warn kernel: [   91.930000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:38 Gargoyle kern.info kernel: [   92.020000] Adding 2097148k swap on /dev/sda2.  Priority:-2 extents:1 across:2097148k
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.380000] scsi_verify_blk_ioctl: 2 callbacks suppressed
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.380000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.390000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.640000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.640000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:43 Gargoyle kern.info kernel: [   96.710000] Adding 2097148k swap on /dev/sda2.  Priority:-2 extents:1 across:2097148k
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.820000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:43 Gargoyle kern.warn kernel: [   96.820000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:45 Gargoyle kern.warn kernel: [   99.090000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:45 Gargoyle kern.warn kernel: [   99.090000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:46 Gargoyle kern.warn kernel: [   99.360000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:46 Gargoyle kern.warn kernel: [   99.360000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:46 Gargoyle kern.info kernel: [   99.450000] Adding 2097148k swap on /dev/sda2.  Priority:-2 extents:1 across:2097148k
Jan 13 14:05:50 Gargoyle kern.warn kernel: [  103.930000] scsi_verify_blk_ioctl: 2 callbacks suppressed
Jan 13 14:05:50 Gargoyle kern.warn kernel: [  103.930000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:50 Gargoyle kern.warn kernel: [  103.940000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:50 Gargoyle kern.warn kernel: [  104.190000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:50 Gargoyle kern.warn kernel: [  104.190000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:51 Gargoyle kern.info kernel: [  104.310000] Adding 2097148k swap on /dev/sda2.  Priority:-2 extents:1 across:2097148k
Jan 13 14:05:51 Gargoyle kern.warn kernel: [  104.410000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:51 Gargoyle kern.warn kernel: [  104.420000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:55 Gargoyle kern.warn kernel: [  108.940000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:55 Gargoyle kern.warn kernel: [  108.940000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:55 Gargoyle kern.warn kernel: [  109.240000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:55 Gargoyle kern.warn kernel: [  109.240000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:56 Gargoyle kern.info kernel: [  109.310000] Adding 2097148k swap on /dev/sda2.  Priority:-2 extents:1 across:2097148k
Jan 13 14:05:56 Gargoyle kern.warn kernel: [  109.450000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:05:56 Gargoyle kern.warn kernel: [  109.450000] disktype: sending ioctl 5305 to a partition!
Jan 13 14:06:03 Gargoyle cron.err crond[1422]: time disparity of 126 minutes detected
Jan 13 14:11:03 Gargoyle authpriv.info dropbear[4708]: Child connection from 192.168.1.5:54882
Jan 13 14:11:06 Gargoyle authpriv.notice dropbear[4708]: Password auth succeeded for 'root' from 192.168.1.5:54882
Jan 13 14:14:24 Gargoyle daemon.info hostapd: wlan0: STA b4:52:7d:79:2d:4e IEEE 802.11: authenticated
Jan 13 14:14:24 Gargoyle daemon.info hostapd: wlan0: STA b4:52:7d:79:2d:4e IEEE 802.11: associated (aid 1)
Jan 13 14:14:24 Gargoyle daemon.info hostapd: wlan0: STA b4:52:7d:79:2d:4e WPA: pairwise key handshake completed (RSN)
Jan 13 14:15:00 Gargoyle daemon.info hostapd: wlan0: STA b4:52:7d:79:2d:4e WPA: group key handshake completed (RSN)
Jan 13 14:16:59 Gargoyle daemon.info hostapd: wlan0: STA b4:52:7d:79:2d:4e IEEE 802.11: disassociated
Jan 13 14:17:00 Gargoyle daemon.info hostapd: wlan0: STA b4:52:7d:79:2d:4e IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)
Jan 13 14:17:59 Gargoyle authpriv.info dropbear[4797]: Child connection from 192.168.1.5:55712
Jan 13 14:18:10 Gargoyle authpriv.notice dropbear[4797]: Password auth succeeded for 'root' from 192.168.1.5:55712
Jan 13 14:20:27 Gargoyle authpriv.info dropbear[4797]: Exit (root): Exited normally
Jan 13 14:21:08 Gargoyle authpriv.info dropbear[4708]: Exit (root): Exited normally
Jan 13 14:21:08 Gargoyle authpriv.warn dropbear[4708]: Couldn't set SO_PRIORITY (Bad file descriptor)
Jan 13 14:21:26 Gargoyle authpriv.info dropbear[4869]: Child connection from 192.168.1.5:56158
Jan 13 14:21:41 Gargoyle authpriv.notice dropbear[4869]: Password auth succeeded for 'root' from 192.168.1.5:56158
Jan 13 14:44:39 Gargoyle authpriv.info dropbear[4869]: Exit (root): Exited normally
Jan 13 14:44:49 Gargoyle authpriv.info dropbear[4948]: Child connection from 192.168.1.5:59803
Jan 13 14:44:59 Gargoyle authpriv.notice dropbear[4948]: Password auth succeeded for 'root' from 192.168.1.5:59803
                       

    music_directory "/mnt/sda1/music"
    playlist_directory "/mnt/sda1/playlists"
    db_file "/mnt/sda1/database"
    pid_file "/mnt/sda1/pid"
    state_file "/mnt/sda1/state"
    input {
        plugin "curl"
    }
    mixer_type "software"



root@Gargoyle:~# mount
rootfs on / type rootfs (rw)
/dev/root on /rom type squashfs (ro,relatime)
proc on /proc type proc (rw,noatime)
sysfs on /sys type sysfs (rw,noatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,noatime,size=30824k)
tmpfs on /dev type tmpfs (rw,noatime,size=512k,mode=755)
devpts on /dev/pts type devpts (rw,noatime,mode=600)
/dev/sdb1 on /overlay type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
overlayfs:/overlay on / type overlayfs (rw,relatime,lowerdir=/,upperdir=/overlay)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)
none on /proc/bus/usb type usbfs (rw,relatime)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/sda1 on /tmp/share_home/anonymous/\040mp3\040(deleted) type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)
/dev/sda1 on /tmp/usb_mount/268f5b6b-b68e-4c24-adc1-3e117133e948 type ext4 (rw,noatime,user_xattr,barrier=1,data=ordered)

40

Odp: OpenWrt - Audio

U Ciebie dysk jest zamontowany w /tmp/usb_mount/268f5b6b-b68e-4c24-adc1-3e117133e948 więc nie
music_directory "/mnt/sda1/music"
tylko

music_directory /tmp/usb_mount/268f5b6b-b68e-4c24-adc1-3e117133e948

jak już. I tak samo pozostałe dane.

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

41

Odp: OpenWrt - Audio

a co to oznacza          mpc play
volume:100%   repeat: off   random: off   single: off   consume: off

42

Odp: OpenWrt - Audio

Że odtwarza.

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

43

Odp: OpenWrt - Audio

# mpc clear
    # mpc add plik.mp3
    # mpc play  te wpisy mają tak być wrzucone do do tego katalogu  /tmp/usb_mount/268f5b6b-b68e-4c24-adc1-3e117133e948  w formie pliku czy jako foldery[ z tymi krzyżykami]

44

Odp: OpenWrt - Audio

We wpisy wykonujesz ręcznie z konsoli jak chcesz żeby wgrało. Do żadnego katalogu nie wrzucasz.

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

45

Odp: OpenWrt - Audio

@Cezary: podziwiam Twoją cierpliwość smile

Home: ZyXEL NBG6817 (OpenWrt)
NAS: HP ProLiant MicroServer Gen8 E3-1265L V2, 16 GB (PVE)

46

Odp: OpenWrt - Audio

Nie będę tworzył nowego tematu więc się podłączę po ten:

Walczę z katalogami i ustawieniem mpd:

config mpd:

music_directory "/mnt/sda1/MUZYKA/"
playlist_directory "/mnt/sda1/mpd/playlist/"
db_file "/mnt/sda1/mpd/database/files.db"
pid_file "/mnt/sda1/mpd/pid_file/pid"
log_file "/mnt/sda1/mpd/log/mpd.log"
state_file "/mnt/sda1/mpd/state/"
bind_to_address "0.0.0.0"
input {
        plugin "curl"
}
mixer_type "software"

wykaz katalogów :

root@OpenWrt:~# ls -l /mnt/sda1/mpd/
drwxr-xr-x    2 root     root          4096 Jan 22 18:15 datebase
drwxr-xr-x    2 root     root          4096 Jan 22 17:54 log
drwxr-xr-x    2 root     root          4096 Jan 22 17:48 pid
drwxr-xr-x    2 root     root          4096 Jan 22 17:47 playlist
drwxr-xr-x    2 root     root          4096 Jan 22 17:47 state

w /mnt/sda1/mpd/datebase/ powinien mi utworzyć automatycznie plik nie?

problem zaczyna się właśnie z bazą danych:

root@OpenWrt:~# /etc/init.d/mpd start
BusyBox v1.22.1 (2014-12-29 18:31:01 CET) multi-call binary.

Usage: nice [-n ADJUST] [PROG ARGS]

Change scheduling priority, run PROG

        -n ADJUST       Adjust priority by ADJUST

Failed to load database: Failed to open database file "/mnt/sda1/mpd/database/files.db": No such file or directory
Couldn't stat parent directory of db file "/mnt/sda1/mpd/database/files.db": No such file or directory
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

47

Odp: OpenWrt - Audio

mkdir -p /mnt/sda1/mpd/database/

Zrób

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

48

Odp: OpenWrt - Audio

ok troszkę inaczej zrobiłem i działa (pozbyłem się podkatalogów)

teraz mam pytanie czy na luci jest jakiś pluing do sterowania mpd lub coś podobnego do gui radio internetowe jak w gargoyle ?

Próbuje odtworzyć z terminala link do strumienia ale coś nie działa ...

Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220

49

Odp: OpenWrt - Audio

Nie ma.

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

50 (edytowany przez DarioX7 2015-01-22 20:03:09)

Odp: OpenWrt - Audio

OK.

Na Windows 8/8.1 jest appka "Chimney" do sterowania MPD.

Mam coś takiego jak co: http://i00.i.aliimg.com/img/pb/053/104/874/874104053_565.jpg

T:  Bus=01 Lev=03 Prnt=07 Port=02 Cnt=01 Dev#=  8 Spd=12   MxCh= 0
D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
P:  Vendor=0d8c ProdID=013c Rev= 1.00
S:  Manufacturer=C-Media Electronics Inc.
S:  Product=USB PnP Sound Device
C:* #Ifs= 4 Cfg#= 1 Atr=80 MxPwr=100mA
I:* If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
I:* If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I:  If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E:  Ad=01(O) Atr=09(Isoc) MxPS= 200 Ivl=1ms
I:* If#= 2 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
I:  If#= 2 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
E:  Ad=82(I) Atr=09(Isoc) MxPS= 100 Ivl=1ms
I:* If#= 3 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=00 Prot=00 Driver=usbhid
E:  Ad=87(I) Atr=03(Int.) MxPS=   4 Ivl=2ms

Ma przyciski głośności i wyciszania dla głośników i mikrofonu, widać że jest wykrywane przez sterownik usbhid.
Trzeba będzie rozgryźć co się da z nimi zrobić.

Zostały mi 2 problemy:

root@OpenWrt:~# /etc/init.d/mpd start
BusyBox v1.22.1 (2014-12-29 18:31:01 CET) multi-call binary.

Usage: nice [-n ADJUST] [PROG ARGS]

Change scheduling priority, run PROG

        -n ADJUST       Adjust priority by ADJUST

listen: bind to '0.0.0.0:6600' failed: Address already in use (continuing anyway, because binding to '[::]:6600' succeeded)
path: path_set_fs_charset: fs charset is: UTF-8
database: reading DB
disabling the last.fm playlist plugin because account is not configured
daemon: opening pid file
daemon: could not create pid file "/mnt/sda1/mpd/pid": Permission denied
Gateway :Topton Intel Core i3-N305 16GB RAM 6x i226-V 2.5GbE
AP: 3x Netgear WAX220