• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  General Category / General Discussion / Reducing wear on flash and memory usage on: December 12, 2009, 01:56:07 PM
Hi

When I got an EEE 900 a while back I read some tips on some forum somewhere (can't remember where) about reducing wear on the SSD. I assume this is equally valid for the flash memory of the plug, however I didn't want to create too many tmpfs as the plug has less memory (and no swap).

So I got a fairly fast 4G SDHC card (Sandisk Extreme III, 15 on amazon) and formatted it into 4 partitions, one large one for /home (not quite sure what I'm going to do with it yet, but anyway...) and 3 smaller ones which I've mounted as /tmp, /var/log, and /var/cache/apt. (I'm using the Ubuntu it came with.)

I renamed and/or copied the contents of those three directories into the new locations and rebooted and all is working fine. Definitely using less memory now (mainly due to /var/cache/apt) but too early to say if having /var/log on SD is going to have any performance impact.

I'm not a linux expert, feel free to tell me what I've done is bad/wrong/stupid, but if I get some positive responses I'll post more detail on how to do it.

I wonder how the write speed of the card (advertised as 20MB/s) compares to the flash (and the RAM)?

Thanks,
Virge
2  General Category / General Discussion / Re: How to set up a network printer? on: December 12, 2009, 06:14:53 AM
Hi

I can't seem to get cupsd to start...

Code:
root@AzPlug:~# /etc/init.d/cups start
 * Starting Common Unix Printing System: cupsd                                 
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory
FATAL: Could not load /lib/modules/2.6.22.18/modules.dep: No such file or directory
                                                                         [ OK ]
root@AzPlug:~# uname -a
Linux AzPlug 2.6.22.18 #1 Thu Mar 19 14:46:22 IST 2009 armv5tejl GNU/Linux
root@AzPlug:~# depmod -ae
WARNING: Couldn't open directory /lib/modules/2.6.22.18: No such file or directory
FATAL: Could not open /lib/modules/2.6.22.18/modules.dep.temp for writing: No such file or directory
root@AzPlug:~# lsmod
Module                  Size  Used by
root@AzPlug:~#

The /lib/modules directory is empty. I'm using the Ubuntu OS it came with and have updated to latest. Installed cups using "apt-get install cups". I use linux quite a lot but get a bit nervous when it comes to messing about with the kernel. Anybody braver/more knowledgeable than me got any ideas?

Many thanks,
Virge
3  Hardware and U-Boot firmware / Hardware / Re: Gigabit ethernet? on: December 12, 2009, 05:49:45 AM
Having noticed odd IP addresses appearing in the dmesg output, I'm wondering if its related:

Code:
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x400000@0x100000(uImage),0x1fb00000@0x500000(rootfs) rw root=/dev/mtdblock1 rw ip=10.4.50.4:10.4.50.5:10.4.50.5:255.255.255.0:DB88FXX81:eth0:none
...
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload enabled
  o Receive checksum offload enabled
  o Transmit checksum offload enabled
  o Network Fast Processing (Routing) supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
    o eth0, ifindex = 1, GbE port = 0
    o eth1, ifindex = 2, GbE port = 1

mvFpRuleDb (dfd00000): 16384 entries, 65536 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
...
eth0: link down
eth0: started
IP-Config: Complete:
      device=eth0, addr=10.4.50.4, mask=255.255.255.0, gw=10.4.50.5,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=10.4.50.5, rootserver=10.4.50.5, rootpath=
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
eth0: link up, full duplex, speed 100 Mbps

This is stretching my knowledge somewhat, but why is there an IP address in the kernel command line? Why does this address appear in the ifconfig output? It's not a valid address on my network. Why do there appear to be two ethernet drivers (Marvell and ethernet) and the there seems to be two interfaces? I'm not sure how to interpret the output but could eth0 be 100M and eth1 1000M on the same physical port?

Sorry for all the questions

Thanks
Virge
4  Hardware and U-Boot firmware / Hardware / Re: Gigabit ethernet? on: December 11, 2009, 02:41:11 PM
Changed the ethernet cable, rebooted, still 100M according to my switch. Changed the socket on the switch, still 100M

ethtool wasn't much help:

Quote
root@AzPlug:~# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:50:43:01:62:7a 
          inet addr:192.168.0.11  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12660 errors:0 dropped:0 overruns:0 frame:0
          TX packets:14191 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:532
          RX bytes:1072482 (1.0 MB)  TX bytes:8500408 (8.5 MB)
          Interrupt:11

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:46 errors:0 dropped:0 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2424 (2.4 KB)  TX bytes:2424 (2.4 KB)

root@AzPlug:~# ethtool eth0
Settings for eth0:
No data available

I'm running the preinstalled Ubuntu have updated with apt. Don't know which hardware version it is,  but ethernet and usb slots are not next to each other.

Perhaps I should ask newit.co.uk to clarify?

Virge

Update: On reboot dmesg output confirms 100M. Also what looks like a filesystem error:

Quote
eth0: link down
eth0: started
IP-Config: Complete:
      device=eth0, addr=10.4.50.4, mask=255.255.255.0, gw=10.4.50.5,
     host=DB88FXX81, domain=, nis-domain=(none),
     bootserver=10.4.50.5, rootserver=10.4.50.5, rootpath=
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
eth0: link up, full duplex, speed 100 Mbps
Empty flash at 0x17624214 ends at 0x17624800
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 104K
JFFS2 notice: (1164) check_node_data: wrong data CRC in data node at 0x17624000: read 0x4ff0bd7b, calculated 0x29a2efb3.

5  Hardware and U-Boot firmware / Hardware / Gigabit ethernet? on: December 11, 2009, 04:36:52 AM
Hi, first post...

Got my sheevaplug earlier this week (from newit.co.uk) and got squeezebox server up and running in no time, thanks to the very useful info here and on the wiki.

According to the spec on newit's website the ethernet is gigabit. I've got my plug plugged in to a netgear gigabit switch which shows an orange LED if the connection is 100M, green if gigabit. I have other devices showing green, but the plug shows orange.

It's not exactly a showstopper but a little disappointing that it doesn't seem to live up to the advertised spec.

NB I haven't tried using a different cable - will do tonight - so it could be that, but just wondered if anyone else isnt getting gigabit?

Thanks
Virge
Pages: [1]