• Home
  • Help
  • Search
  • Login
  • Register
  Show Posts
Pages: 1 ... 8 9 [10] 11 12
136  Hardware and U-Boot firmware / Hardware / Re: Maximum size of SD card for DreamPlug on: June 12, 2011, 03:46:19 PM
32GB SDHC should be OK. I have used 32GB in Sheevaplugs.
The microSD I am not sure, I know 8GB uSD works OK.
My understanding is the 64GB is SDXC, which is (I believe) not supported by Dreamplugs.
See http://en.wikipedia.org/wiki/Secure_Digital
137  Hardware and U-Boot firmware / U-Boot stuff / Re: Dreamplug esata boot on: June 12, 2011, 12:12:16 AM
The program in the Meteohub setup can be used to load environment vars.  http://www.meteohub.de/files/dreamplug-installer.tgz
And yes I would like to see you uBoot (source, patches and instructions for a test and load would be helpful).
138  Hardware and U-Boot firmware / U-Boot stuff / Re: Dreamplug esata boot on: June 07, 2011, 01:17:17 PM
Sorry, I did not notice the default u-boot for dreamplug does not have 'ide' subsystem.

Using kernel from one device and rootfs from another device is a goos solution too.

Good luck Smiley

Except I cannot see how to to do a multiboot solution using this approach.

This is a BACKWARD step for uBoot on plugs.
I have a very old esata Sheevaplug and I can load a kernel from it.

Tell me pingtoo, is it possible to replace uBoot on a Dreamplug?
139  Hardware and U-Boot firmware / U-Boot stuff / Re: Dreamplug esata boot on: June 06, 2011, 06:46:18 PM
Marvell>> version

U-Boot 2011.06-02334-g8f495d9-dirty (Mar 28 2011 - 05:21:06)
Marvell-DreamPlug
Marvell>> ide start
Unknown command 'ide' - try 'help'
Marvell>>
Marvell>> usb part

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

Partition     Start Sector     Num Sectors     Type
    1                 6954           34770       6
    2                41724         7670262      83


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

Partition     Start Sector     Num Sectors     Type
    1                   16            8240       6
    2                 8256         7765952      83
Marvell>>



Thanks for the reply, 'ide' did not occur to me.
The uBoot on my dreamplug does not have the 'ide' command, I guess I need a new uBoot.
My other alternative is to load uImage from the uSD and set the root= to the sata drive.
140  Hardware and U-Boot firmware / U-Boot stuff / Dreamplug esata boot on: June 06, 2011, 06:42:45 AM
Does anyone know if it is possible to make uBoot boot from a dreamplug esata drive.

Using the dp supplied uBoot -
uBoot sees the USB device which is the sata drive but does not see any of the fat16 partitions that I put on it.


Code:
Marvell>> usb device 3

USB device 3:
    Device 3: Vendor: WD       Rev: 1032 Prod: SES Device
            Type: # 0D #
            Capacity: 90112.1 MB = 88.0 GB (1074462721 x 131072)

Marvell>> fatinfo usb 3
** Can't read from device 3 **



Fdisk shows
Code:
Disk /dev/sdd: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0xb8077146

   Device Boot      Start         End      Blocks   Id  System
/dev/sdd1               1       30121   241938869   83  Linux
/dev/sdd2           30121       30130       72293    6  FAT16
/dev/sdd3           30130       30139       72293   83  Linux
/dev/sdd4           30139       30402     2115097+  82  Linux swap / Solaris


Anyone?
141  Hardware and U-Boot firmware / Hardware / Dreamplug Adventures on: June 04, 2011, 09:06:56 PM
I decided to start with a Dreamplug running a recent stable kernel (2.6.38.7) and Debian Wheezy. I am using the supplied uBoot. The rfs I used is from /http:/spinifex.net/plugs/downloads/dreamplug/wheezy_20110531_rootfs.tar.gz
I have slowly been working my way through the hardware and thought I would post some preliminary results and points of interest. The hope is that it will be useful to someone else.

uSD and SD Boot
I setup a multi boot to first try the SD, if this fails it trys the uSD. This works well.
I used kernel parameters of console=ttyS0,115200 root=/dev/sdb2 rootwait panic=10, the rootwait seems to be better than the rootdelay.
The only partition options that worked for me was to have the uImage partition as type 6 (FAT16) and formatted  (from a Sheevaplug) as mkfs.vfat -n 'dp-uImage' /dev/mmcblk0p1. I tried a few other options and none of them worked.

Peripherals
I replaced the uSD with a 4GB Integral uSD, this is straightforward to do (I also tried 8GB and this works as well).
The uSD is always mapped to /dev/sda.
The SDHC drive is always mapped to /dev/sdb.
The 2 USB ports and the eSata get mapped to  /dev/sdc thru /dev/sde.
Note that eth1 is the ethernet nearest the end of the Dreamplug.

The good news -
 the uSD and SD deliver ~20MB/sec read speed (as measured by dd). They are only marginally slower than a Sheevaplug.
 the eSata interface just works (fast), no hassles at all.
I have plugged every USB device that I can find into the Dreamplug and I have had no panics.

wifi AP mode
Debian does most of the work for you. I added

Code:
root@debian:~# cat /etc/modprobe.d/dpwifi.conf
# dreamplug wireless client modules
blacklist libertas
blacklist libertas_sdio
root@debian:~#

I copied /lib/firmware/mrvl from the orginal uSD as supplied by Globalscale. I tried other firmware, but this is the only one I found to be stable for AP mode. I am using the kernel provided uap8xxx module.

The uaputl sources were downloaded and compiled from http://plugcomputer.org/plugforum/index.php?topic=2196.msg13114#msg13114. The result of the compile is available from /http:/spinifex.net/plugs/downloads/dreamplug/uaputl.zip

Then
Code:
apt-get install dnsmasq
Configure dnsmasq to handle DNS and DHCP (I can post the config if someone asks for it)

To start the AP
Code:
        ifconfig uap0 up
        uaputl sys_config ./uaputl.conf
        uaputl sys_cfg_radio_ctl 0
        uaputl bss_start

To stop the AP
Code:
        uaputl bss_stop
        uaputl sys_reset
        ifconfig uap0 down

You can play with parameters in uaputl.conf. The conf file seems a more convenient way to configure the AP.

I have performed a lot of testing on this Dreamplug AP mode and (so far) I cannot fault it.


In progress

  • wifi client - Not sure that I will ever get this stable. I have tried most of the options and I am beginning to think that the easy way to do client wifi is to use a USB wifi dongle (which means a Dreamplug with both AP and client wifi).
  • bluetooth - todo
  • optical port - todo
  • microphone - todo
  • audio - todo
142  General Category / General Discussion / Re: Sheeva, no ping, no ttyUSB, power/eth LEDs all solid on: June 02, 2011, 04:56:21 PM
Bet on the power supply (although no guarantees). You can get replacements or see this thread http://plugcomputer.org/plugforum/index.php?topic=5780.0

Frying power supplies seems to be dependent on what is plugged into the USB rather than the external temperature.
I have a Sheevaplug that has operated in periods of ~40C
143  General Category / Success stories / Sheevaplugs rule on: June 01, 2011, 06:42:53 PM
How to get your Sheevaplug working for you.

http://imgur.com/Zsf1O
144  Hardware and U-Boot firmware / U-Boot stuff / Dreamplug/openocd on: June 01, 2011, 05:31:21 PM
I am in the process of playing with uBoot setup on the Dreamplug.
What I would really like is an openocd setup that can update the uBoot environment (nothing else).
Does anyone know of (or have this)?
145  Linux Stuff / General Linux questions / How to switch of LEDS during halt on: June 01, 2011, 07:44:33 AM
Is there a simple way on the Dreamplug to disable all the LEDS during shutdown/halt processing? Like very near the 'halt'?
146  General Category / General Discussion / Re: Guruplug won't show up on network (can't access) on: May 22, 2011, 05:12:47 PM
The serial connection using putty on XP is a delicate business. I do use it but not often. Serial connection on a Linux box always works (for me).
For XP my magic approach is:

1) Unplug the USB port.
2) count to 10
3) connect USB port
4) count to 10
5) check to see if it is working (via Device Manager), if not goto step 1)

If still not working try cold booting XP and cold booting plug then repeat steps 1 thru 5.
147  Hardware and U-Boot firmware / Hardware / Re: New plug - D2 on: May 18, 2011, 09:14:45 PM
Do you know what the Globalscale fascination with ubuntu is?
With the limited ubuntu support I would have thought that Debian is a better alternative.
148  Linux Stuff / Linux distributions / Re: The alternative Debian install method. on: May 16, 2011, 12:42:03 AM
One small correction for bash, quoting the manual

Quote
<<[-]word
        here-document
delimiter

...  If word is unquoted, all lines of the here-document are subjected to parameter expansion, command substitution, and arithmetic expansion. ...


Hence

Code:
cat > ./debian/etc/inittab << EOF

becomes

Code:
cat > ./debian/etc/inittab << 'EOF'

To see this at work try with bash -u before and after the above change.  Bash tries to expand the $id.
149  Linux Stuff / Kernel / Re: 2.6.38.6 and 2.6.32.40 new kernels available on: May 11, 2011, 08:13:00 AM
2.6.38.6 & Sheevaplug is good for me.
150  Hardware and U-Boot firmware / U-Boot stuff / print uBoot sheevaplug environment on: May 10, 2011, 08:00:06 AM
Script 1

Code:
#!/usr/local/bin/lua
--
-- script to read the uBoot environment
--
h=assert(io.open('/dev/mtd0ro','rb'))
h:seek('set',655360 + 4)
s=h:read(262144)
h:close()
b,e = s:find('%z%z')
if not b then return end
s=s:sub(1,b)
for k,v in s:gmatch('([^\=]-)=([%Z]+)%z') do
  if arg and #arg > 0 then
    if  arg[1] == k then
      io.write(v,'\n')
      break;
    end
  else
    io.write(k,'=',v,'\n')
  end
end

Script 2

Code:
#!/usr/bin/perl -w
#
# script prints the Sheevaplug uBoot environment
# Excuse the my perl
#
open FILE1, '</dev/mtd0ro' or die $!;
binmode FILE1;
my ($buf, $s, $n, $val);
if ($#ARGV == 0) {
        $val = $ARGV[0];
}

seek FILE1, 655360 + 4, 0;
$n=read FILE1, $s, 262144;
close FILE1;
if ($n == 262144) {
        $s =~ m/(.+?)\0\0/;
        $s = $1;
        $s =~ s/\000/\n/g;
        while ($s =~ m/([\w_]+?)=([^\n]+)\n?/g) {
                if ($val) {
                        if ($val eq  $1) {
                                print "$2\n";
                                exit 0;
                        }

                }
                else {
                        print "$1=$2\n";
                }
        }
}
Pages: 1 ... 8 9 [10] 11 12