• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1] 2 3 4
1  General Category / General Discussion / filsystem on 2TB drive not using full capacity on: January 26, 2014, 08:44:01 AM
I have Guruplug server booting from an external SATA drive.

A while ago I upgraded the drive from 1TB to 2TB by transferring both drives to a desktop computer.  First
I created a new partition table on the 2TB drive with everything the same except /dev/sda9 which I set to
use the ending cylinder.  Then I used dd to copy the contents of the partitions to the new drive.

Wheezy boots from the new drive and everything seems OK except when I use df -h I see that /dev/sda9
is much smaller than it is supposed to be:

Code:
# df -H
Filesystem                                              Size  Used Avail Use% Mounted on
rootfs                                                  272M  153M  105M  60% /
udev                                                     11M     0   11M   0% /dev
tmpfs                                                    53M  476k   53M   1% /run
/dev/disk/by-uuid/525184d1-eb77     272M  153M  105M  60% /
tmpfs                                                   5.3M     0  5.3M   0% /run/lock
tmpfs                                                   415M     0  415M   0% /run/shm
/dev/sda1                                               239M   39M  188M  17% /boot
/dev/sda9                                               975G   34G  892G   4% /home
/dev/sda8                                               386M   11M  356M   3% /tmp
/dev/sda5                                               5.0G  1.2G  3.6G  24% /usr
/dev/sda6                                               3.0G  652M  2.2G  24% /var


But /dev/sda9 should have an extra 1TB according to this

Code:
# sfdisk -l -uM
Disk /dev/sda: 243201 cylinders, 255 heads, 63 sectors/track
Warning: extended partition does not start at a cylinder boundary.
DOS and Linux will interpret the contents differently.
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System
/dev/sda1   *     1    243    243     248832   83  Linux
/dev/sda2       244    510    267     273408   83  Linux
/dev/sda3       511  1907728  1907218  1952991232    5  Extended
/dev/sda4         0      -      0          0    0  Empty
/dev/sda5       512   5283   4772    4886528   83  Linux
/dev/sda6      5285   8141   2857    2925568   83  Linux
/dev/sda7      8143   9617   1475    1510400   82  Linux swap / Solaris
/dev/sda8      9619   9998    380     389120   83  Linux
/dev/sda9     10000  1907728  1897729  1943274496   83  Linux


Am I understanding this correctly?  The /dev/sda9 partition is the correct size but the
filesystem can't see the extra 1 TB?

The other problem I had was that the swap partition kept the UUID of the old drive rather
than the new drive.  I had all kinds of weird memory problems until I saw the error in
/etc/fstab.
2  General Category / General Discussion / Re: plug wireless on same subnet as router on: July 29, 2013, 07:22:32 PM
Ahh.  Thank you.  Now I have got the plug visible on the network and giving addresses in the correct subnet.

The only unusual thing is this message repeated many times in syslog

Code:
[125193.455174] br0: port 1(uap0) entering forwarding state
[125193.460527] br0: port 1(uap0) entering forwarding state
[125208.484424] br0: port 1(uap0) entering forwarding state
[125229.386907] br0: port 1(uap0) entering forwarding state
[170338.708237] br0: port 1(uap0) entering forwarding state
[170338.713591] br0: port 1(uap0) entering forwarding state
[170353.724426] br0: port 1(uap0) entering forwarding state
[171183.794291] br0: port 1(uap0) entering forwarding state

I searched the web and there are many different causes of this error but nothing seemed relevant to my circumstances.

Here is the latest version of /etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo br0
iface lo inet loopback

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet manual

#The wireless interface
auto uap0
iface uap0 inet manual
        pre-up modprobe uap8xxx
        post-up /etc/network/guruplug-wl-conf.sh start
        post-down /etc/network/guruplug-wl-conf.sh stop
#        address 0.0.0.0

#auto br0
iface br0 inet static
        address 192.168.1.4
        netmask 255.255.255.0
        network 192.168.1.0
        broadcast 192.168.1.255
        gateway 192.168.1.1
        bridge_ports uap0 eth0

#For some reason, uap0 does not end up in the bridge.
#Force it.
        up /sbin/brctl addif br0 uap0


Here are the relevant sections of /etc/dnsmasq.conf

Code:
# If you want dnsmasq to listen for DHCP and DNS requests only on
# specified interfaces (and the loopback) give the name of the
# interface (eg eth0) here.
# Repeat the line for more than one interface.
interface=uap0

# On systems which support it, dnsmasq binds the wildcard address,
# even when it is listening on only some interfaces. It then discards
# requests that it shouldn't reply to. This has the advantage of
# working even when interfaces come and go and change address. If you
# want dnsmasq to really bind only the interfaces it is listening on,
# uncomment this option. About the only time you may need this is when
# running another nameserver on the same machine.
#bind-interfaces
bind-interfaces br0

I don't know much about the workings of networking:  is the bind interfaces br0
causing the problem?

Here are the uncommented sections of /etc/dhcp/dhclient.conf which is what gets
an ipaddress for the plug

Code:
send host-name = gethostname();
request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        dhcp6.name-servers, dhcp6.domain-search,
        netbios-name-servers, netbios-scope, interface-mtu,
        rfc3442-classless-static-routes, ntp-servers;

3  General Category / General Discussion / Re: plug wireless on same subnet as router on: July 22, 2013, 06:02:24 PM
Thanks.  I followed the examples and got the bridge to work.  It
gives IP addresses from the ISP router.  The ISP router is set to
always give 192.168.1.4 to the plug. 

The problem is that now I am unable to connect to the plug  with
ssh and the web server is offline.  Can I have both a bridge and
connect directly to the plug?  I don't understand the bridge
configuration and the examples aren't clear about whether you
can still connect to the device.

I am running a proxy server so I also have a tun device.

# ifconfig -a
Code:
br0       Link encap:Ethernet  HWaddr 
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::224:23ff:fe1f:9d89/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1339215 errors:0 dropped:0 overruns:0 frame:0
          TX packets:138609 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:238459127 (227.4 MiB)  TX bytes:146677427 (139.8 MiB)

eth0      Link encap:Ethernet  HWaddr   
          inet addr:192.168.1.4  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1436484 errors:0 dropped:0 overruns:0 frame:0
          TX packets:183052 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:349696534 (333.4 MiB)  TX bytes:151629941 (144.6 MiB)
          Interrupt:11

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:159568 errors:0 dropped:0 overruns:0 frame:0
          TX packets:159568 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2746164823 (2.5 GiB)  TX bytes:2746164823 (2.5 GiB)

tun0      Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 
          inet addr:192.168.10.1  P-t-P:192.168.10.2  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP 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:100
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

uap0      Link encap:Ethernet  HWaddr
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:28457 errors:0 dropped:0 overruns:0 frame:0
          TX packets:94060 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4190933 (3.9 MiB)  TX bytes:74426611 (70.9 MiB)



# cat /etc/network/interfaces
Code:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp

#The wireless interface
auto uap0
iface uap0 inet static
        pre-up modprobe uap8xxx
        post-up /etc/network/guruplug-wl-conf.sh start
        post-down /etc/network/guruplug-wl-conf.sh stop
        address 0.0.0.0

auto br0
iface br0 inet static
        address 192.168.1.4


# iptables -L
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

4  General Category / General Discussion / plug wireless on same subnet as router on: July 15, 2013, 07:39:21 PM
I'm not sure of the terminology to describe what I am trying to achieve.

My ISP router/wireless serves 192.168.1.X addresses.  The plug is connected by ethernet
and gets 192.168.1.4 from the ISP router.

I had the plug wireless AP on a different subnet 192.168.0.X in the back of the house and
could connect to it without problems.

Problem is that I want the whole house on one wireless subnet (using two APs).  I saw some
posts on the web that this is possible.  Some posts suggest dnsmasq can do it alone while
others suggest bridge-utils.

I changed dnsmasq.conf so the DHCP server line is commented out.  The plug gets its own
IP address from the ISP router but I can't figure out how to have it forward connections to
the 192.168.1.X domain.

How do clients connect to the plug and then get an IP address from the ISP router?

An alternative is to have the ISP router give addresses 192.168.1.2 to 125 and then the plug
give addresses 192.168.1.126 to 254 ?   Will this work?
5  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.
6  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?
7  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?
8  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?
9  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
10  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$$
}
11  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) ?


12  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.
13  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);
}
?>

14  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

15  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.
Pages: [1] 2 3 4