• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 [2] 3
16  Hardware and U-Boot firmware / Hardware / another corrupted microSD? on: January 22, 2013, 06:43:11 PM
Three months ago I replaced the 4GB microSD that came with my Gurplug Server Plus.  I installed the root fs on it and it
ran over a year until I kept getting I/O errors and it became unbootable.

I bought a Kingston 4GB card three months ago to replace the original and had a hard time recovering many of my files
from the original.  The new one is ext2 and I used instructions on the web to install Squeeze.

Now I can't ssh into the plug and when I use the JTAG I get weird errors about the shell interpreter.  I tried restarting the
ssh service and got a "file not found" error when I can see the file.  I removed the microSD and using a USB adapter I
try to fsck it and get

Code:
# fsck -a /dev/sdc
fsck from util-linux-ng 2.17.2
fsck.ext2: No medium found while trying to open /dev/sdc
/dev/sdc:
The superblock could not be read or does not describe a correct ext2
filesystem.  If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>

I can see partitions.

Code:
[ 3751.484994] usb-storage: device scan complete
[ 3751.485778] scsi 5:0:0:0: Direct-Access     Generic  STORAGE DEVICE   0272 PQ: 0 ANSI: 0
[ 3751.486402] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 3751.839501] sd 5:0:0:0: [sdc] 7774208 512-byte logical blocks: (3.98 GB/3.70 GiB)
[ 3751.840624] sd 5:0:0:0: [sdc] Write Protect is off
[ 3751.840633] sd 5:0:0:0: [sdc] Mode Sense: 0b 00 00 08
[ 3751.840638] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[ 3751.843365] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[ 3751.843372]  sdc: sdc1 sdc2 sdc3 < sdc5 >
[ 3751.849510] sd 5:0:0:0: [sdc] Assuming drive cache: write through
[ 3751.849519] sd 5:0:0:0: [sdc] Attached SCSI removable disk

Is this microSD trash or is there hope of repairing it?  Anyone else having problems?

I have an older generation plug and have heavily modified it to deal with heat.
Removed internal power supply and now have external one.  Heatsinks on chips and
external fan that blows air over heatsinks.


17  Hardware and U-Boot firmware / U-Boot stuff / SOLVED: new uboot doesn't load from MicroSD on: October 30, 2012, 07:42:02 PM
When I ran usb tree, my SD showed up as number 3 and that was what I was mistakenly using.

This is what I should have done:

Code:
Marvell>> usb devices

USB device 0: Vendor: Generic  Rev: 9909 Prod: STORAGE DEVICE 
            Type: Removable Hard Disk
            Capacity: not available
Marvell>> usb partitions
## Unknown partition table


Partition Map for USB device 1  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1                 2048          440320      83
    2               442368         6887424      83
    3              7331838          440322       5 Extd
    5              7331840          440320      82


Partition Map for USB device 2  --   Partition Type: DOS

Partition     Start Sector     Num Sectors     Type
    1               625088       124679744       c


Device 1 is the SD card and device 2 is a usb stick

So I changed the device number to 1 and now the guruplug boots up.

bootcmd_usb=usb start; ext2load usb 1:1 0x00800000 /uImage; ext2load usb 1:1 0x01100000 /uInitrd
18  Hardware and U-Boot firmware / U-Boot stuff / new uboot doesn't load from MicroSD on: October 30, 2012, 06:44:54 PM
I looked at other posts describing problems with the DENX uboot and microSD but I see something different
when I try installing on my Guruplug Server Plus.  I had a previous version of uboot load from a microSD but
had to replace due to I/O errors corrupting it.

I followed these instructions to install Debian Squeeze on a new microSD

http://www.cyrius.com/debian/kirkwood/sheevaplug/install.html

Everything went well until I tried booting from the new SD.  I tried both a USB boot and the SD instructions.

Code:
U-Boot 2011.12 (Mar 11 2012 - 18:53:15)
Marvell-GuruPlug

SoC:   Kirkwood 88F6281_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  512 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0, egiga1
88E1121 Initialized on egiga0
88E1121 Initialized on egiga1
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... Device NOT ready
   Request Sense returned 02 3A 00
2 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!

Code:
baudrate=115200
bootargs=console=ttyS0,115200
bootargs_console=console=ttyS0,115200
bootcmd=setenv bootargs $(bootargs_console); run bootcmd_usb; bootm 0x00800000 0x01100000
bootcmd_mmc=mmc init; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd
bootcmd_usb=usb start; ext2load usb 0:1 0x00800000 /uImage; ext2load usb 0:1 0x01100000 /uInitrd
bootdelay=3
eth1addr=02:50:43:e8:c0:6c
ethact=egiga0
ethaddr=02:50:43:2b:78:54
stderr=serial
stdin=serial
stdout=serial
x_bootargs=console=ttyS0,115200
x_bootargs_root=ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000
x_bootcmd_usb=usb start

I tried both usb and SD (it was unclear from the instructions whether Guruplug always sees SD as USB or just during install).

I don't understand why mmc init isn't in uboot help menu and I get "command not recognized."
19  General Category / General Discussion / undelete for Marvell 88F682X on: July 16, 2012, 07:30:54 PM
I accidentally deleted some mp3 files.  I searched for an undelete utility on the web and came across this
http://www.cgsecurity.org/wiki/TestDisk_Download

There is a binary version for
Marvell 88F628x Linux 2.6.32 Synology DS111, DS211, DS212+ NAS
When I untarred and tried to use it on my Guruplug Server plus, I get a permission denied error even though I
chmod a+x the binaries.  It is installed on a vfat formatted external usb.  I have a 2.6.33.7 kernel but the error
suggests this is not the conflict.

Any ideas?
20  General Category / General Discussion / Re: Video Streaming - Dreamplug on: July 14, 2012, 07:11:58 AM

Try this http://tldp.org/HOWTO/Webcam-HOWTO/framegrabbers.html
or this https://www.linux.com/news/hardware/peripherals/8211-five-fun-ways-to-use-a-linux-webcam/
I don't have an IP camera and I don't know if these solutions will work with one.

I have a Guruplug server plus with the default Debian Lenny and a usb camera. I use this package
http://code.google.com/p/mjpg-streamer-mini2440/downloads/detail?name=mjpg-streamer-mini2440-bin-libjpeg62.tar.gz&can=4&q= to provide live video.  The mjpg streamer package from other sources are built against a different version of libjpeg from what is on the Guruplug.  If you have a usb camera you could use a shell script to grab images with this package.
21  General Category / General Discussion / photo album with external storage on: July 09, 2012, 07:00:17 PM
I have a Guruplug Server plus with the filesystem on  a 4GB microSD and have 64GB USB stick
mounted as vfat.

I set up the default Plogger photoalbum and everything seemed fine- I could upload pictures and
create albums.  I tried to move the folders for photos to the USB stick and leave symlinks to them
in the /var/www tree.  Now Plogger shows a mostly blank screen for the main page. Admin login shows
the filenames but the thumbnails are broken and  albums are blank. I moved the jpgs back to
/var/www but the page is still blank.

I tried a new install (RC1.0) from the Plogger website but get a php error

Code:
Notice: Undefined index: resize_option in /var/www/plogger/plog-load-config.php on line 138

It looks like there is no longer development of the Plogger project so I am giving up on it.

I found another app that looks equivalent:
http://piwigo.org/

Before I set up the mysql account and configure it, is there a way to have all of the large files for the picture
on the USB stick?  Since it is vfat, I know there are some permission issues.  I have it mounted like so:

Code:
LABEL=USB20FD   /media/usb0     vfat    rw,noexec,nodev,async,noatime,nodiratime,gid=33,umask=000 0 0
22  Linux Stuff / Kernel / updated patch for stable wifi client? on: September 05, 2011, 07:30:24 PM
I have a very stable (but slow) wireless client plug using the binaries distributed here http://www.plugcomputer.org/plugwiki/index.php/Setting_GuruPlug_to_be_a_stable_WiFi_Client

I came across this posting https://gist.github.com/961478.

Does it look like this patch could address the problems described here?
http://www.plugcomputer.org/plugforum/index.php?topic=4397.0

I would like to try a recent kernel on the plug to see if the slow data transfer improves.
23  Hardware and U-Boot firmware / U-Boot stuff / Re: plug does not boot when unattended, boot fine w/ console on: September 05, 2011, 07:03:36 PM
I have a similar problem.  If my plug loses power, it will hang at the Marvell prompt and I need to connect with serial terminal and issue a command to boot it.

It hangs with this error:
Code:
uap_sdio: probe of mmc0:0001:1 failed with error -1

I upgraded u-boot and have it boot from an SD card using the instructions from popon here

http://plugcomputer.org/plugforum/index.php?topic=1642.15


I would like to try adding the mmcinit commands but I can't figure out how to pass them to u-boot

Here is my configuration:
Code:
Marvell>> version
U-Boot 2010.03-01161-gd91b0a9 (Apr 22 2010 - 03:24:41)
Marvell-GuruPlug

Code:
Marvell>> printenv
bootcmd=${x_bootcmd_usb}; ${x_bootcmd_kernel}; setenv bootargs ${x_bootargs} ${x_bootargs_root}; bootm 0x6400000;
bootdelay=3
baudrate=115200
x_bootcmd_usb=usb start
x_bootcmd_kernel=nand read.e 0x6400000 0x100000 0x400000
x_bootargs=console=ttyS0,115200
serverip=192.168.1.4
ipaddr=192.168.1.2
ethact=egiga0
mainlineLinux=yes
arcNumber=2659
bootargs=console=ttyS0,115200 root=0811 rootdelay=10
x_bootargs_root=ubi.mtd=2 root=0811 rootdelay=10
stdin=serial
stdout=serial
stderr=serial

According to this tutorial http://www.cyrius.com/debian/kirkwood/sheevaplug/unpack.html, should I have a bootcmd_mmc
paramter?

Code:
setenv bootargs_console console=ttyS0,115200
setenv bootargs_root 'root=/dev/mmcblk0p2'
setenv bootcmd_mmc 'mmc init; ext2load mmc 0:1 0x00800000 /uImage; ext2load mmc 0:1 0x01100000 /uInitrd'
setenv bootcmd 'setenv bootargs $(bootargs_console) $(bootargs_root); run bootcmd_mmc; bootm 0x00800000 0x01100000'
saveenv

Could someone write out the steps to amend the mmcinit command to u-boot? 

Based on the original instructions that worked for me I would do this:

Code:
Marvell>> editenv x_bootargs_root
edit: ubi.mtd=2 root=0811 mmcinit mmcinit rootdelay=10
Marvell>> saveenv



24  Hardware and U-Boot firmware / Hardware / Re: eSATA drive success anyone? on: August 23, 2011, 06:58:13 PM
I changed the mount options suggested (actually I tried it with sync and got 4.9MB/sec)

When I changed the suggestion to async I get

# umount /dev/sdc1

# mount -o rw,noexec,nodev,async,noatime,nodiratime /dev/sdc1 /media/usb1

# time dd if=/dev/zero of=/media/usb1/test bs=1M count=40
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 0.320133 s, 131 MB/s

real    0m0.449s
user    0m0.000s
sys     0m0.320s

That's more like it! 

Now to get udev to not mount the drive with the default settings.

If I understand correctly, external drives don't spin up fast enough for fstab to mount
them so they get mounted with the udev rules for external drives.
25  Hardware and U-Boot firmware / Hardware / Re: eSATA drive success anyone? on: August 22, 2011, 08:03:27 PM
I tried using a USB 1TB external drive and the performance is poor.  It is mounted
async on a guruplug.

/dev/sdc1 on /media/usb1 type ext2 (rw,noexec,nodev,noatime)

usb 1-1.2: new high speed USB device using orion-ehci and address 4
scsi2 : usb-storage 1-1.2:1.0
scsi 2:0:0:0: Direct-Access     WD       My Passport 0740 1003 PQ: 0 ANSI: 6
sd 2:0:0:0: Attached scsi generic sg2 type 0
scsi 2:0:0:1: Enclosure         WD       SES Device       1003 PQ: 0 ANSI: 6
sd 2:0:0:0: [sdc] Spinning up disk...
scsi 2:0:0:1: Attached scsi generic sg3 type 13
.ready
sd 2:0:0:0: [sdc] 1953458176 512-byte logical blocks: (1.00 TB/931 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 47 00 10 08


#time dd if=/dev/zero of=/media/usb1/test bs=1M count=40
40+0 records in
40+0 records out
41943040 bytes (42 MB) copied, 6.42462 s, 6.5 MB/s

real    0m6.432s
user    0m0.000s
sys     0m0.320s


Any ideas why it is only 6.5 MB/sec?  Why is this much lower than 25 MB/sec?
26  General Category / General Discussion / useful security tips on: August 14, 2011, 06:50:31 PM
I came across this and found some useful tips

http://www.cyberciti.biz/tips/linux-security.html

I am running a webserver on the plug, but I can only connect to it from
outside via ssh.


Some questions I have are why limit network connections to 1024 kb/sec
for lightppd?  That seems very low?
 
http://www.cyberciti.biz/tips/lighttpd-set-throughput-connections-per-ip.html


I implemented these since suggestions ssh is the only connection to the outside world.

http://www.cyberciti.biz/tips/linux-unix-bsd-openssh-server-best-practices.html
27  Hardware and U-Boot firmware / Hardware / eSATA drive success anyone? on: August 14, 2011, 06:27:23 PM
Hi,

I have a guruplug server plus and tried to use a 1TB USB drive that is NTFS formatted.
Disk read write was abysmal from a Vista laptop 100 kb/sec: likely a combination of wireless
connection, SAMBA and ntfs-3g driver.

There is a lot of data on this NTFS drive so I can't reformat.  I looked at buying an eSATA drive
since this is supposed to give better I/O than USB2.0.  I would format a new drive as ext3 and
keep it on the Plug.

Can anyone recommend an eSATA drive model?  Reviews are mixed for all of the devices I looked at.

Another option I came across is Cloud Appliances.  These have an embedded system allowing
connection from LAN or WAN.

http://www.newegg.com/Product/Product.aspx?Item=N82E16822186281&cm_sp=Cat_Hard_Drives-_-Spotlight-_-22-186-281

If I plug this into my router I via ethernet cable, I could simplify the setup of NAS compared to configuring Guruplug.
However, I don't know how customizable the settings are.  There seemed to be some restriction on connections.

http://www.newegg.com/Product/Product.aspx?Item=N82E16822186281&cm_sp=Cat_Hard_Drives-_-Spotlight-_-22-186-281

Advice anyone?
28  Hardware and U-Boot firmware / Hardware / Re: Solar Sheevaplug on: August 14, 2011, 06:03:27 PM
Hi,

Perhaps this thread will be useful.

http://www.plugcomputer.org/plugforum/index.php?topic=5753.0
29  Hardware and U-Boot firmware / Hardware / Re: Firmware CRC load error when loading upa or wlan firmware on: January 17, 2011, 08:08:31 PM
I did *read* all of the posts.

Yours clearly states that you want to go back and forth from AP and client mode and you are using an Ionics Stratus Zigby
rather than a Guruplug. 

I only want client mode on a guruplug.  I'm not a software engineer either. 

I did try the command to reset uap8xxx but it gave a file not found error.  Now I see that this has to happen in the startup scripts before the module is unloaded.  I was working from commandline.

I am trying to be methodical and reproduce the steps others took to fix the problem.  Now my startup scripts are a jumbled mess from all of the wifi client fixes I tried to implement.

Could someone update the wifi client fix wiki page?  The default patchfiles (provided from an older kernel version build) aren't compatible with a clean 2.6.33.7 kernel (I got missing macro definition errors) and none of this reseting stuff is in there.  It may save someone else from wasting a lot of time.
30  Hardware and U-Boot firmware / Hardware / Re: Firmware CRC load error when loading upa or wlan firmware on: January 16, 2011, 07:12:54 PM
I want to only use my plug as a wireless client so I followed the instructions http://www.openplug.org/plugwiki/index.php/Setting_GuruPlug_to_be_a_stable_WiFi_Client to flash the fixed 2.6.33.7 kernel and install the 2.6.33.7 modules and the
wireless files.

I am unable to get the wireless client module to work. 

When I try to do this

 
Quote
   
* Next, you can install the new drivers in the following order:

insmod /root/mcypt.ko
insmod /root/sd8xxx.ko

You should get the following output:

mcypt: module license 'Marvell Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/helper_sd.bin
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/sd8688.bin
WLAN FW is active

Instead I get this
Quote
guruplug:~# insmod /root/wifi/mcypt.ko
guruplug:~# insmod /root/wifi/sd8xxx.ko
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/helper_sd.bin
wlan_sdio mmc0:0001:1: firmware: requesting mrvl/sd8688.bin
wlan_sdio: probe of mmc0:0001:1 failed with error -1

Any ideas?  Why is there no tainted kernel warning? 
Pages: 1 [2] 3