• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2 3 4
1  Hardware and U-Boot firmware / Hardware / SOLVED: wireless AP almost working: is this a radio error? on: June 17, 2013, 05:01:09 PM
After a few months of not needing a wireless AP, I decided to try to fix this problem.

I did two things but I don't know if both are necessary:

One is to build uap8xxx.ko on the plug against the running kernel

Code:
# aptitude install module-assistant
# module-assistant prepare
# apt-get install linux-headers-kirkwood
# apt-get install build-essential

copy libertas_uap source files from git download from http://github.com/bnewbold/dreamplug-libertas_uap

#make CONFIG_LIBERTAS_UAP=m -C /lib/modules/$(uname -r)/build M=$(pwd)

copy new uap8xxx.ko to /lib/modules/3.2.0-4-kirkwood/kernel/drivers/net/wireless/libertas_uap

The other is that I edited the startup script to comment out the command uaputl sys_cfg_radio_ctl 0
from the /etc/network/guruplug-wl-conf.sh script.  Someone else posted this tip on a forum.

I unloaded the old module and loaded the new one and then did a cold restart.  The AP didn't appear
right away.  I thought it didn't work but a few hours later I saw the plug AP. 



I don't know what this means but I still get a "NO-CARRIER" when I use this command

Code:
# ip link show uap0
3: uap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether ---------------- brd ------------------

I edited out the id above.
2  General Category / General Discussion / building libpam for marvell cross compiler on: June 11, 2013, 07:38:44 PM
I am trying to cross compile openvpn 2.3.0 using arm-marvell-linux-gnueabi.tar.bz2 version 1.00 from 04/27/2011
Quote
gcc version 4.4.5 20100614 (prerelease) (FSF GNU GCC branch-4.4.5. Marvell GCC 2010q4-113)

The compile fails with an error about libpam not found

On my guruplug server plus, I have libpam.so.0.83.0 so I am looking for the source of this version and follow the
instructions here on cross compiling linux-pam to add it to the cross compile environment 
http://www.ailis.de/~k/archives/19-arm-cross-compiling-howto.html

Problem is that I can't find the source for version 0.83.
Kernel .org only goes to 0.80 https://www.kernel.org/pub/linux/libs/pam/pre/library/
linux-pam.org jumps from 0.81 to 0.99 http://www.linux-pam.org/pre/library/

Any ideas on whether building against a different lib will break openvpn on the plug?
Or can I install libpam 0.99 on the plug alongside the 0.83 version?
3  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: May 03, 2013, 08:53:44 PM
Perhaps this is the cause of the hang?

http://www.armadeus.com/wiki/index.php?title=Kernel-with-device-tree

Quote
To use device tree on arm, both bootloader (U-Boot) and kernel should be compiled with the support of device tree.
U-Boot
Note    Note: The APF27/U-boot 2012.04.01 patch 3.6, APF28/U-Boot 2012.04.01 patch 1.5 and APF51/U-Boot 2012.04.01 patch 1.5 are already configured to support device tree.


To enable device tree on u-boot, it's quite simple:

    add "#define CONFIG_OF_LIBFDT" in the u-boot configuration file (include/configs/<board>.h).

My U-boot version is
Quote
U-Boot 2011.12 (Mar 11 2012 - 18:53:15)
which likely doesn't support device tree?

I am hesitant to change my U-boot since it works fine with my previous kernel but this seems to explain my problem?
4  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: May 02, 2013, 05:49:40 PM
After reading more about uInitrd I realize that isn't the problem

I tried booting the new 3.9.0 kernel from a tftp server and got the same freeze


Code:
Marvell>> bootm 0x800000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-kirkwood-guruplug-server-p
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2455393 Bytes = 2.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Using machid 0xa76 from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

This seems linke the problem described on the bottom of this page
 http://wiki.beyondlogic.org/index.php/GuruPlug_Building_Kernel

but the config file for 3.9.0
http://www.xilka.com/sheeva/3/3.9/3.9.0/release/1/kirkwood-3.9.0.config
shows that the relevant change was made for compatibility with old u-boot versions

Quote
CONFIG_VECTORS_BASE=0xffff0000
# CONFIG_ARM_PATCH_PHYS_VIRT is not set
CONFIG_PHYS_OFFSET=0x0


Anyone have any suggestions on how to troubleshoot this?
5  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: May 01, 2013, 06:02:39 PM
I deleted all downloaded files (including the new ones in /boot), edited the script to
define  AssumedDevice='guruplug-server-plus' and it ran without errors.  I copied the
new kirkwood-guruplug-server-plus-3.9.0-uImage to /boot/uImage
and rebooted but the system froze after booting kernel.

When I try a cold reboot I get this

Code:
Reset IDE: ide_preinit failed
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Here is the (relevant snip) boot command from printenv

bootcmd=setenv bootargs $(bootargs_console); run bootcmd_sata; bootm 0x00800000 0x01100000
bootcmd_sata=ide reset; ext2load ide 0:1 0x00800000 /uImage; ext2load ide 0:1 0x01100000 /uInitrd

Here is the content of /boot    It seems to me that the initrd.img is specific for kernel 3.2.0-4-kirkwood
and that is causing the problem?

Code:
drwxr-xr-x 2 root root   12288 Jan 23 21:33 lost+found
lrwxrwxrwx 1 root root      24 Jan 23 21:47 vmlinuz -> vmlinuz-3.2.0-4-kirkwood
lrwxrwxrwx 1 root root      27 Jan 23 21:47 initrd.img -> initrd.img-3.2.0-4-kirkwood
-rw-r--r-- 1 root root 1606512 Mar 27 15:40 vmlinuz-3.2.0-4-kirkwood
-rw-r--r-- 1 root root 1207425 Mar 27 15:41 System.map-3.2.0-4-kirkwood
-rw-r--r-- 1 root root  107503 Mar 27 15:41 config-3.2.0-4-kirkwood
-rw-r--r-- 1 root root 1606576 Apr  8 23:22 uImage.bak-kernel-3.2.04-kirkwood
-rw-r--r-- 1 root root 7360243 Apr  8 23:22 uInitrd.bak
-rw-r--r-- 1 root root 7439034 Apr 25 20:27 initrd.img-3.2.0-4-kirkwood
-rw-r--r-- 1 root root 1606576 Apr 25 20:27 uImage-kernel-3.2.04-kirkwood
-rw-r--r-- 1 root root 7439098 Apr 25 20:27 uInitrd
-rw-r--r-- 1 root root 1497556 Apr 30 21:52 kirkwood-3.9.0-System.map
-rw-r--r-- 1 root root 2455457 Apr 30 21:52 kirkwood-guruplug-server-plus-3.9.0-uImage
-rw-r--r-- 1 root root 1606576 May  1  2013 uImage
6  Linux Stuff / Kernel / Re: 3.9.0+ Device-tree kernels on: April 30, 2013, 06:56:54 PM
I ran the new script on my Guruplug plus and it gabbed this:

kirkwood-sheevaplug-3.9.0.dtb

instead of this

kirkwood-guruplug-server-plus-3.9.0.dtb

I did a netinstall of Wheezy a while ago (Linux guruplug 3.2.0-4-kirkwood #1 Debian 3.2.41-2 armv5tel GNU/Linux)
so my /proc/device-tree is empty

My /proc/cpuinfo shows this

Code:
Processor       : Feroceon 88FR131 rev 1 (v5l)
BogoMIPS        : 1191.11
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1

Hardware        : Marvell eSATA SheevaPlug Reference Board
Revision        : 0000
Serial          : 0000000000000000


Since the wrong .dtb file was downloaded, then the wrong uImage was created (if I understand this function correctly)

Code:
MkImage()
{
        cat $Platform-$KVer-zImage $Platform-$Device-$KVer.dtb > /tmp/zImage.$Device$$

        $MKIMAGE -A arm -O linux -C none  -T kernel -a 0x00008000 -e 0x00008000 \
                -n "Linux-$Platform-$Device-$KVer" \
                -d /tmp/zImage.$Device$$ \
                $Platform-$Device-$KVer-uImage

        rm /tmp/zImage.$Device$$
}
7  Linux Stuff / Kernel / Re: sheeva/dream 3.6.6 new kernel available on: April 29, 2013, 05:42:26 PM
Thanks for providing a benefit to the community.

I tried the UPDATE-KERNEL.sh script on your site to upgrade my Guruplug Server Plus to 3.9.0
and my /boot is on an eSATA drive

Code:
Downloading files
--2013-04-29 20:15:28--  http://www.xilka.com/kernel/3/3.9/3.9.0/release/3/
Resolving www.xilka.com (www.xilka.com)... 173.208.58.22, 108.62.228.158
Connecting to www.xilka.com (www.xilka.com)|173.208.58.22|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2013-04-29 20:15:29 ERROR 404: Not Found.

When I go to that folder with my browser, I don't see a kirkwood-sheevaplug-3.9.0-uImage
but I do see the following:


I need to modify the script to grab this file instead of a uImage?

http://www.xilka.com/kernel/3/3.9/3.9.0/release/3/kirkwood-3.9.0-zImage



What about these?

http://www.xilka.com/kernel/3/3.9/3.9.0/release/3/kirkwood-sheevaplug-3.9.0.dtb

http://www.xilka.com/kernel/3/3.9/3.9.0/release/3/kirkwood-sheevaplug-esata-3.9.0.dtb

http://www.xilka.com/kernel/3/3.9/3.9.0/release/3/kirkwood-guruplug-server-plus-3.9.0.dtb

Which of these is correct one for my device (I want to use it as an AP as well) ?


8  General Category / General Discussion / minimum apt-get install packages on: March 01, 2013, 09:43:09 PM
I am trying to follow these instructions to use my Guruplug Server Plus to allow my iphone to print
to an HP printer

http://www.ezunix.org/index.php?title=Enable_iOS_AirPrint_with_any_printer_supported_by_CUPS

When I try to install the packages, the apt installer wants to add all kinds of unnecessary (?) packages like
gphoto and libsane.

Code:
# apt-get install cups-pdf avahi-daemon python-cups cups-driver-gutenprint
Reading package lists... Done
Building dependency tree       
Reading state information... Done
The following extra packages will be installed:
  acl colord consolekit cups cups-client cups-common cups-filters cups-ppdc fonts-freefont-ttf foomatic-db-compressed-ppds foomatic-db-engine foomatic-filters
  ghostscript-cups hpijs hplip hplip-data libart-2.0-2 libavahi-core7 libck-connector0 libcolord1 libcupscgi1 libcupsdriver1 libcupsfilters1 libcupsmime1
  libcupsppdc1 libdaemon0 libescpr1 libexif12 libgphoto2-2 libgphoto2-l10n libgphoto2-port0 libgudev-1.0-0 libgusb2 libgutenprint2 libhpmud0 libieee1284-3
  liblcms1 libnss-mdns libopenjpeg2 libpam-ck-connector libpolkit-agent-1-0 libpolkit-backend-1-0 libpolkit-gobject-1-0 libpoppler19 libsane libsane-common
  libsane-extras libsane-extras-common libsane-hpaio libsensors4 libslp1 libsnmp-base libsnmp15 libwbclient0 mscompress policykit-1 poppler-utils
  printer-driver-all printer-driver-c2050 printer-driver-c2esp printer-driver-cjet printer-driver-escpr printer-driver-foo2zjs printer-driver-gutenprint
  printer-driver-hpcups printer-driver-hpijs printer-driver-m2300w printer-driver-min12xxw printer-driver-pnm2ppa printer-driver-postscript-hp
  printer-driver-ptouch printer-driver-pxljr printer-driver-sag-gdi printer-driver-splix python-gobject-2 python-imaging python-pexpect python-renderpm
  python-reportlab python-reportlab-accel samba samba-common sane-utils smbclient ssl-cert ttf-freefont
Suggested packages:
  avahi-autoipd cups-bsd xpp system-config-printer-gnome system-config-printer-kde system-config-printer hplip-cups openprinting-ppds cjet foomatic-db-gutenprint
  hplip-gui hplip-doc python-notify gphoto2 gtkam gutenprint-locales liblcms-utils hpoj lm-sensors slpd openslp-doc snmp-mibs-downloader psutils hannah-foo2zjs
  tk8.4 tix gutenprint-doc hpijs-ppds magicfilter apsfilter python-gobject-2-dbg python-imaging-doc python-imaging-dbg python-renderpm-dbg pdf-viewer
  python-egenix-mxtexttools python-reportlab-doc openbsd-inetd inet-superserver smbldap-tools ldb-tools ctdb unpaper cifs-utils openssl-blacklist
Recommended packages:
  foomatic-db
The following NEW packages will be installed:
  acl avahi-daemon colord consolekit cups cups-client cups-common cups-driver-gutenprint cups-filters cups-pdf cups-ppdc fonts-freefont-ttf
  foomatic-db-compressed-ppds foomatic-db-engine foomatic-filters ghostscript-cups hpijs hplip hplip-data libart-2.0-2 libavahi-core7 libck-connector0 libcolord1
  libcupscgi1 libcupsdriver1 libcupsfilters1 libcupsmime1 libcupsppdc1 libdaemon0 libescpr1 libexif12 libgphoto2-2 libgphoto2-l10n libgphoto2-port0
  libgudev-1.0-0 libgusb2 libgutenprint2 libhpmud0 libieee1284-3 liblcms1 libnss-mdns libopenjpeg2 libpam-ck-connector libpolkit-agent-1-0 libpolkit-backend-1-0
  libpolkit-gobject-1-0 libpoppler19 libsane libsane-common libsane-extras libsane-extras-common libsane-hpaio libsensors4 libslp1 libsnmp-base libsnmp15
  mscompress policykit-1 poppler-utils printer-driver-all printer-driver-c2050 printer-driver-c2esp printer-driver-cjet printer-driver-escpr
  printer-driver-foo2zjs printer-driver-gutenprint printer-driver-hpcups printer-driver-hpijs printer-driver-m2300w printer-driver-min12xxw
  printer-driver-pnm2ppa printer-driver-postscript-hp printer-driver-ptouch printer-driver-pxljr printer-driver-sag-gdi printer-driver-splix python-cups
  python-gobject-2 python-imaging python-pexpect python-renderpm python-reportlab python-reportlab-accel sane-utils smbclient ssl-cert ttf-freefont
The following packages will be upgraded:
  libwbclient0 samba samba-common
3 upgraded, 87 newly installed, 0 to remove and 60 not upgraded.
Need to get 45.3 MB of archives.
After this operation, 134 MB of additional disk space will be used.
Do you want to continue [Y/n]? n

I found these instructions to limit apt get-install http://stackoverflow.com/questions/2273836/how-can-i-list-the-minimal-set-of-debian-packages-needed-to-recreate-a-set-of-in

Is there a way to reduce the bloat but maintain functionality without dependancy hell?  I figure leaving out libsane and the drivers for printers I don't have.
9  Linux Stuff / General Linux questions / [SOLVED]: mjpg-streamer works for port 8080 but not html files on: March 01, 2013, 07:23:56 PM
After reading many pages about reverse proxy and lightttpd as a solution to the webcam feed, I went back to the
mjpeg-streamer forum and found a method that doesn't require elaborate server configurations (which I never
really figured out).  Just php, which I was using anyway.

Here is the php solution when the webcam feed is going to any port (in my case I'm using 8443) that isn't the one
already used by lighttpd or Apache (e.g. 80 or 443).  This allows me to connect from the outside world and see the
feed from my webcam.  Firefox and Safari work but Windows IE8 doesn't.

This file is called "stream.php"

Code:
<?

/*
usage on webpage:
<img src="stream.php">
*/
$server = "localhost"; // camera server address
$port = 8443; // camera server port
$url = "/?action=stream"; // image url on server
set_time_limit(0); 
$fp = fsockopen($server, $port, $errno, $errstr, 30);
if (!$fp) {
        echo "$errstr ($errno)<br>\n";   // error handling
} else {
        $urlstring = "GET ".$url." HTTP/1.0\r\n\r\n";
        fputs ($fp, $urlstring);
        while ($str = trim(fgets($fp, 4096)))
        header($str);
        fpassthru($fp);
        fclose($fp);
}
?>

10  Hardware and U-Boot firmware / Hardware / Re: wireless AP almost working: is this a radio error? on: February 18, 2013, 07:11:28 PM
I forgot to add some important information.  I followed these instructions to install a binary version of uap8xxx.ko
https://github.com/bnewbold/dreamplug-libertas_uap/blob/master/README

The version I installed is this https://github.com/bnewbold/dreamplug-libertas_uap/blob/master/uap8xxx.ko-3.2.0-4-kirkwood


# modinfo uap8xxx
filename:       /lib/modules/3.2.0-4-kirkwood/kernel/drivers/net/wireless/libertas_uap/uap8xxx.ko
license:        GPL
version:        26146
author:         Marvell International Ltd.
description:    M-UAP Driver
srcversion:     57F99B22EB7F8C05852196E
alias:          sdio:c*v02DFd9104*
depends:        mmc_core
vermagic:       3.2.0-4-kirkwood mod_unload modversions ARMv5 p2v8
parm:           helper_name:Helper name (charp)
parm:           fw_name:Firmware name (charp)


Here are the modules that are loaded

# lsmod
Module                  Size  Used by
nfsd                  228309  2
nfs                   339907  0
nfs_acl                 2205  2 nfs,nfsd
auth_rpcgss            33897  2 nfs,nfsd
fscache                41075  1 nfs
lockd                  67548  2 nfs,nfsd
sunrpc                183739  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
ipv6                  261103  38
ext2                   54948  1
loop                   13345  0
evdev                   7376  0
snd_usb_audio          73614  0
snd_usbmidi_lib        15346  1 snd_usb_audio
snd_hwdep               5049  1 snd_usb_audio
snd_rawmidi            15534  1 snd_usbmidi_lib
uvcvideo               55755  1
snd_seq_device          4683  1 snd_rawmidi
snd_pcm                57156  1 snd_usb_audio
snd_page_alloc          4723  1 snd_pcm
btmrvl_sdio             7263  0
snd_timer              15103  1 snd_pcm
btmrvl                 10484  1 btmrvl_sdio
videodev               69993  2 uvcvideo
snd                    43640  7 snd_timer,snd_pcm,snd_seq_device,snd_rawmidi,snd_hwdep,snd_usbmidi_lib,snd_usb_audio
hmac                    2427  0
soundcore               4704  1 snd
media                   9239  2 videodev,uvcvideo
bluetooth             131875  2 btmrvl,btmrvl_sdio
sha1_generic            1740  0
rfkill                 14546  1 bluetooth
uap8xxx                39295  1
mv_cesa                 9469  0
aes_generic            27588  1 mv_cesa
ext4                  380402  5
jbd2                   67983  1 ext4
mbcache                 4460  2 ext4,ext2
sg                     18141  0
sd_mod                 31044  8
crc_t10dif              1110  1 sd_mod
usb_storage            34981  0
mmc_block              15560  0
sata_mv                23631  7
libata                139220  1 sata_mv
ehci_hcd               37353  0
scsi_mod              149937  4 libata,usb_storage,sd_mod,sg
usbcore               121587  6 ehci_hcd,usb_storage,uvcvideo,snd_usbmidi_lib,snd_usb_audio
mvsdio                  5182  0
mmc_core               80180  4 mvsdio,mmc_block,uap8xxx,btmrvl_sdio
usb_common               648  1 usbcore
mv643xx_eth            23026  0
inet_lro                4272  1 mv643xx_eth
libphy                 14604  1 mv643xx_eth

11  Hardware and U-Boot firmware / Hardware / wireless AP almost working: is this a radio error? on: February 16, 2013, 06:43:34 AM
I did a net install of Wheezy on my Server Plus and I am running the following kernel:

Linux guruplug 3.2.0-4-kirkwood #1 Debian 3.2.35-2 armv5tel GNU/Linux

eth0 is on my internal nework 192.168.1.255 and I want the micro AP to provide
addresses on 192.168.0.255

I followed the instructions here http://plugcomputer.org/plugforum/index.php?topic=1648.0;wap2
and got as far as having the microAP accept commands but it doesn't appear to
other wireless devices. The radio seems to be off since there are no packets moving:

Code:
uap0      Link encap:Ethernet  HWaddr MAC ID 
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

I don't know what "no-carrier" means.

Code:
# ip link list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN mode DEFAULT
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DEFAULT qlen 1000
    link/ether MAC ID hidden brd ff:ff:ff:ff:ff:ff
3: uap0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT qlen 1000
    link/ether MAC ID hidden brd ff:ff:ff:ff:ff:ff

Here is dmesg:

Code:
8.534073] uap_probe: vendor=0x02DF device=0x9104 class=0 function=1
...
[    9.615138] uap_sdio mmc0:0001:1: firmware: agent loaded mrvl/helper_sd.bin into memory
[    9.781655] uap_sdio mmc0:0001:1: firmware: agent loaded mrvl/sd8688_ap.bin into memory
[   10.048926] UAP FW is active
[   11.116717] Bluetooth: vendor=0x2df, device=0x9105, class=255, fn=2
....
[   25.389715] ADDRCONF(NETDEV_UP): uap0: link is not ready
[   25.795512] ADDRCONF(NETDEV_UP): eth0: link is not ready
.....
[   28.875061] mv643xx_eth_port mv643xx_eth_port.0: eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   28.885273] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

But I don't see anything obvious from uaputl:
Code:
# uaputl -i uap0 sys_config
dev_name:uap0
AP settings:
SSID = microAP
Basic Rates = 0x82 0x84 0x8b 0x96
Non-Basic Rates = 0xc 0x12 0x18 0x24 0x30 0x48 0x60 0x6c
AP MAC address = hidden
Beacon period = 100
DTIM period = 1
Tx power = 13 dBm
SSID broadcast = enabled
Preamble type = short
Rx antenna = A
Tx antenna = A
Radio = on
Firmware = handles intra-BSS packets
RTS threshold = 2347
Fragmentation threshold = 2346
Tx data rate = auto
STA ageout timer = 1800
WEP KEY_0 = 00 00 00 00 00
Default WEP Key = 0
WEP KEY_1 = 00 00 00 00 00
WEP KEY_2 = 00 00 00 00 00
WEP KEY_3 = 00 00 00 00 00
AUTHMODE = Open authentication
Filter Mode = Filter table is disabled
PROTOCOL = WPA2
Max Station Number = 8
Retry Limit = 7
Channel = 6
Channel Select Mode = Manual
Channels List = 1 2 3 4 5 6 7 8 9 10 11
MCBC data rate = auto
Group re-key time = 86400 second
KeyMgmt = PSK
PairwiseCipher = AES CCMP
GroupCipher = AES CCMP
WPA passphrase = password

I am checking my networking configuration (dnsmasq, etc.) but I want to rule out a wireless device
problem.
12  Linux Stuff / General Linux questions / Re: mjpg-streamer works for port 8080 but not html files on: February 12, 2013, 08:37:59 PM
I re-read the documentation.  It seems that the module output_http.so is a simple web server.  Using the option
" -w /var/www " when invoking the command serves the contents of the folder (using port 80?).  Using the option
" -p 8080" serves the webcam on port 8080.

None of the online docs I saw mentions how to integrate with an existing webserver like lighttpd or apache beyond
using http://<guruplug-ip>:8080/?action=stream

This works but I have more to learn about how to implement this so that I can see the feed remotely.  Opening port 8080
on my router firewall is possible, but I want to make sure I don't expose a vulnerability.
13  Linux Stuff / General Linux questions / Re: mjpg-streamer works for port 8080 but not html files on: February 09, 2013, 05:25:38 PM
Quote
What do they show?
The sample pages show text and graphics but blank boxes where the webcam snapshots or streaming should be

Quote
What does get returned?
Not sure I understand the question.  There is no video snapshot or stream.

Here is the description from the sample page
The image displayed here was grabbed by the input plugin. The HTTP request contains the GET parameters action=snapshot. This requests one single picture from the image-input. To display another example, just click on the picture.

The link for the image is
Code:
http://192.168.1.4/mjpg-streamer/static.html

Quote
What browser are you using?

Iceweasel and Firefox

Quote
Have you used an HTTP headers extension to see what that reckons?

http://192.168.1.4/?action=snapshot

GET /?action=snapshot HTTP/1.1
Host: 192.168.1.4
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0
Accept: image/png,image/*;q=0.8,*/*;q=0.5
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate
Referer: http://192.168.1.4/mjpg-streamer/index.html
Connection: keep-alive
If-Modified-Since: Sun, 03 Feb 2013 02:35:09 GMT
If-None-Match: "3995104888"

HTTP/1.1 304 Not Modified
Vary: Accept-Encoding
Content-Type: text/html
Last-Modified: Sun, 03 Feb 2013 02:35:09 GMT
Etag: "3995104888"
Date: Sat, 09 Feb 2013 23:25:26 GMT
Server: lighttpd/1.4.31
14  Linux Stuff / General Linux questions / Re: mjpg-streamer works for port 8080 but not html files on: February 06, 2013, 07:07:54 PM
I apologize for confusing everyone.  Let's remove SSL and port 443 from the discussion of the problem.

I modified my lighttpd.conf to allow connections to port 80 without password protection to test the setup.  The mjpg-
streamer demo pages still don't show video (using http://192.168.1.4/mjpg-streamer ) and I have checked paths, permissions
and log files with no hint of what is wrong.  I can see all of the html pages in my /var/www folder.

I also use the -p:8080 option for the http_output plugin and can see the video feed via that port so the webcam, V4L USB, etc.
are OK.  I prefer not to have to redirect ports when I connect to my server from outside.  It also bugs me that I can't figure out
what is wrong.
15  Linux Stuff / General Linux questions / mjpg-streamer works for port 8080 but not html files on: February 05, 2013, 06:56:27 PM
I compiled mjpg-streamer from source on a Wheezy install on my Server plus

Previously, I had this package running on Lenny and Squeeze with no problems.

Now, I follow the instructions here http://skillfulness.blogspot.com/2010/03/mjpg-streamer-documentation.html
but can't get the demo pages
Quote
to show webcam video but accessing the port
Quote
does work.

I am using port 443 (outside and inside my network) since my ISP blocks port 80.  From my internal network I can access the 8080 port by http
but when I enter the same address with https I get an error
Quote
SSL received a record that exceeded the maximum permissible length.
(Error code: ssl_error_rx_record_too_long)

My lighttpd.conf looks like this

Code:
server.modules = (
        "mod_access",
        "mod_alias",
        "mod_compress",
        "mod_redirect",
        "mod_fastcgi",
        "mod_cgi",
        "mod_auth"
#       "mod_rewrite",
)

server.document-root        = "/var/www"
server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
server.errorlog             = "/var/log/lighttpd/error.log"
server.pid-file             = "/var/run/lighttpd.pid"
server.username             = "www-data"
server.groupname            = "www-data"
#server.port                 = 80


index-file.names            = ( "index.php", "index.html",
                                "index.htm", "default.htm",
                                "index.lighttpd.html" )
url.access-deny             = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )

compress.cache-dir          = "/var/cache/lighttpd/compress/"
compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )

# default listening port for IPv6 falls back to the IPv4 port
include_shell "/usr/share/lighttpd/use-ipv6.pl " #+ server.port
include_shell "/usr/share/lighttpd/create-mime.assign.pl"
include_shell "/usr/share/lighttpd/include-conf-enabled.pl"

fastcgi.server = ( ".php" => ((
                     "bin-path" => "/usr/bin/php5-cgi",
                     "socket" => "/tmp/php.socket"
                 )))

dir-listing.encoding        = "utf-8"
server.dir-listing          = "enable"

$SERVER["socket"] == ":443" {
    ssl.engine                  = "enable"
    ssl.pemfile                 = "/root/certificate/server.pem"
    ssl.ca-file                 = "/root/certificate/server.crt"
}
## type of backend
# plain, htpasswd, ldap or htdigest
auth.debug = 2
auth.backend = "plain"
# filename of the password storage for plain
auth.backend.plain.userfile = "/etc/lighttpd/.lighttpdpassword"
## debugging
# 0 for off, 1 for 'auth-ok' messages, 2 for verbose debugging
auth.require = ( "/" =>
(
"method" => "basic",
"realm" => "Password protected area",
"require" => "valid-user"
)
)


I have the mjpg-streamer provided sample html files in /var/www/mjpg-streamer and I invoke the binary with
/root/mjpg-streamer/mjpg_streamer -i "/root/mjpg-streamer/input_uvc.so" -o "/root/mjpg-streamer/output_http.so -p 8080 -w /var/www/mjpg-streamer"

I can see the html but not the video images.  Something is blocking video over https or is the directory the problem?  I chown www-data:www-data all of the html files.
Pages: [1] 2 3 4