• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: [1]
1  Hardware and U-Boot firmware / Hardware / Re: SD vs. SDHC? on: June 21, 2009, 02:09:36 AM
Almost every card works (SD or SDHC) the problem is a buggy high speed driver, simply disabling the high speed mode makes most cards work.

Or maybe the buggy high-speed cards? I've never written a SD driver but I did write a MMC-Plus (up to 52MHz) proprietary host driver for embedded linux and enabling high-speed was dead simple, it'd be very hard to make buggy highspeed mode. IMO, it'd really be (cheapo) cards that reported as supporting highspeed but cannot do it. I never encounter such cards because we use industrial eMMC parts so they have better Q/A than the ones you can off-the-shelves.
2  Linux Stuff / Kernel / Re: Linux 2.6.30-rc3 SDHC performance faster than the stock kernel on: June 09, 2009, 02:43:46 PM
I know the patches enable the faster performance were submitted by Marvell Engineers.

I worked with a few of them.  Great bunch of folks. Fun to hang around with on IRC.

would you mind letting me which #channel and which server?
Some nicks (of those Marvell Eng) would be nice to know...

3  Linux Stuff / General Linux questions / Re: Automounting on: May 25, 2009, 04:19:37 AM
Hi, I have a question about how linux mounts stuff, I am using gentoo, but I think the instructions should be more or less the same for all distros.
My problem is that I have 2 USB storage devices, my rootfs is in the NAND and I have several folders (usr, var, ...) in a flash drive mounted at /mnt/usb. Also, I have another HDD formated with hfsplus that hold my information.
So far everything has worked ok, every time I boot my flash drive gets /dev/sda and my hdd gets /dev/sdb, however it has happened to me that the HDD jumps to sdc, since my fstab has sda and sdb, any screw up with the letters breaks my system.

As already posted, you can use LABEL= in fstab. /dev/disk/by-label/XXX is another way of accessing disk using volume name.

So my question is: how can I force the system to always give the same /dev entry to a device? I've looked a bit and it seems udev rules are the way to go, but I am not sure how to handle those.
The other question is: how to implement automount? I would like to have the SD mounted at /media when I plug it, or other flash drives.


see http://plugcomputer.org/plugforum/index.php?topic=298.msg1911#msg1911
however you'll have to add an entry in the case clause for hfs.

4  Linux Stuff / Kernel / Re: 2.6.30-rc6 new release on: May 23, 2009, 02:31:07 PM
i tried it too, works, the only prob. is that i couldnt get the HD-Volumes Label, have to mount it like sda1, sda2..  or usb1, usb2...
any suggestion ?

caveat utilitor: likely buggy scripts (work for me, ymmv)

SUBSYSTEM=="block", ACTION=="add", ATTR{partition}=="1", RUN+="/usr/local/sbin/add_partition.sh", ENV{REMOVE_CMD}:="/usr/local/sbin/remove_partition.sh"



if [ -n ${ID_FS_TYPE} -a -z ${ID_FS_LABEL} ]; then
    while [ -d ${mountpoint} ]; do

case ${ID_FS_TYPE} in
echo "fixme" | logger

mkdir -p ${mountpoint}
mount -t ${ID_FS_TYPE} -o ${options} ${DEVNAME} ${mountpoint}


mountpoint=`sed -nre "s=^${DEVNAME} ([^ ]+) ${ID_FS_TYPE}.+$=\1=p" < /proc/mounts`

umount -f ${DEVNAME}

# should check if it was really under /media
if [ -d ${mountpoint} ]; then
    rmdir ${mountpoint}
5  Linux Stuff / Kernel / Re: 2.6.30-rc6 new release on: May 23, 2009, 08:04:25 AM
udev scripts that detect USB "add/remove" events and perform the mount/umount commands, I am not aware of another way to do it.

Yeah, I've done that and it works quite well. Much more lightweight than installing the whole gang of hal+dbus+......

6  Linux Stuff / General Linux questions / Re: Network: writes fast / reads slow? on: May 14, 2009, 02:19:11 PM

So, I just noticed: copying to the plug from a Windows box, I'm getting about 25-30 megabytes a second. Copying from the plug to the Windows box, I'm getting 2-3 megabytes a second.

Any thoughts?

I've tried two Windows boxes, one Vista and the other Windows 7. I've tried both Samba and SCP. I'm on a gig lan.

OK, I'm going to go Google.

my speed is primarily limited by USB. ftp a 1.5G from Linux-PC to the plug's /dev/null gives me 40MBytes/s. ftp from the plug's tmpfs to Linux-PC gives me 53MBytes/s.
Pages: [1]