New IT forum

GuiPlug => GuiPlug on the DreamPlug => Topic started by: NewITMalcolm on 10 May 2011, 11:57:26 am

Title: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 10 May 2011, 11:57:26 am
GuiPlug v2.5 for the Dreamplug is now available.

Use your Dreamplug as a Desktop PC either with a usb touchscreen monitor or VNC connection without a monitor.

(http://newit.co.uk/temp/GuiplugScreenshot40.png)

Features:
 Debian Squeeze
 Gnome Desktop
 Kernel v2.6.38.5

The image can be used on either SD, eSata or microSD of at least 4Gb. If you are planning to use an SD I can't recommend the Integral Endurance cards enough, see here for the performance data. http://www.newit.co.uk/forum/index.php/topic,992.0.html (http://www.newit.co.uk/forum/index.php/topic,992.0.html)

uboot variable changes recommended for SD boot.
Code: [Select]
x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
x_bootargs_root=root=/dev/sdb2 rootdelay=10
mainlineLinux yes
arcNumber 2659

USB monitor / keyboard / mouse / 3g modem etc. can all be added if required.

Note: At Boot VNC server will only start if a Usb monitor is not found.

As well as a Desktop PC the Guiplug is capable of becoming a Citrix Client, Touchpanel control, NX client, RDP / VNC client etc.
Touchscreen Usb monitors are available from the shop here: http://www.newit.co.uk/shop/products.php?cat=16 (http://www.newit.co.uk/shop/products.php?cat=16)

Downloading & installing the image on your target drive:
Code: [Select]
wget http://www.newit.co.uk/drive-images/dreamplug/GuiPlug/NewIT-GuiPlug-4Gb-09May11-v2.5-Dreamplug.img.gz
gunzip -c NewIT-GuiPlug-4Gb-09May11-v2.5-Dreamplug.img.gz
dd if=/home/NewIT-GuiPlug-4Gb-09May11-v2.5-Dreamplug.img of=/dev/sdb bs=10M

All done, Now insert/connect drive and boot the Dreamplug.

If you are using VNC mode, to find the IP address of the plug either connect with the Jtag, logon and use the ifconfig command or Look in the DHCP client list of your router for an entry named 'GuiPlug'.

Passwords including root are set to 'nosoup4u'


Title: Re: GuiPlug now available on the Dreamplug
Post by: hi_tech_guy_18 on 13 May 2011, 08:03:05 am
uboot variable changes recommended for SD boot.
Code: [Select]
x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
x_bootargs_root=root=/dev/sdb2 rootdelay=10
mainlineLinux yes
arcNumber 2659

Sorry New to the whole Dreamplug and arm thing but
Please make MORE CLEAR the Exact COMMANDS to be used
uBoot It sort of bites:
Code: [Select]
Marvell>> setenv x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
## Error: illegal character '=' in variable name "x_bootcmd_kernel=fatload"
Marvell>>


Remember we are at the "Marvell>" Uboot Command line
What command lines do we need to put in?

BTW do both for External SD Card + USB Pen Drive
Title: Re: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 13 May 2011, 08:08:04 am
Hi hi_tech_guy_18,

How these appear from printenv:
Code: [Select]
x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
x_bootargs_root=root=/dev/sdb2 rootdelay=10

How to set them with setenv:
Code: [Select]
setenv x_bootcmd_kernel 'fatload usb 1 0x6400000 uImage'
setenv x_bootargs_root 'root=/dev/sdb2 rootdelay=10'

NewITJames

Title: Re: GuiPlug now available on the Dreamplug
Post by: hi_tech_guy_18 on 13 May 2011, 08:16:25 am
My Factory ones are
Code: [Select]
Marvell>> printenv
bootcmd=setenv ethact egiga0; ${x_bootcmd_ethernet}; setenv ethact egiga1; ${x_bootcmd_ethernet}; ${x_bootcmd_usb}; ${x_boot;
bootdelay=3
baudrate=115200
x_bootcmd_ethernet=ping 192.168.2.1
x_bootcmd_usb=usb start
x_bootcmd_kernel=fatload usb 0 0x6400000 uImage
x_bootargs=console=ttyS0,115200
x_bootargs_root=root=/dev/sda2 rootdelay=10
ethact=egiga0
ethaddr=F0:AD:4E:00:7B:95
eth1addr=F0:AD:4E:00:7B:96
stdin=serial
stdout=serial
stderr=serial

Environment size: 524/4092 bytes

Title: Re: GuiPlug now available on the Dreamplug
Post by: hi_tech_guy_18 on 13 May 2011, 08:21:03 am
How your commands looked:
Code: [Select]
Marvell>> setenv x_bootcmd_kernel 'fatload usb 1 0x6400000 uImage'
Marvell>> setenv x_bootargs_root 'root=/dev/sdb2 rootdelay=10'
Marvell>> saveenv
Saving Environment to SPI Flash...
Erasing SPI flash...Writing to SPI flash...done
Marvell>>
Title: Re: GuiPlug now available on the Dreamplug
Post by: yancha22 on 17 May 2011, 11:47:06 am
You must use an 8gb sd card for the uImage. Because the file size is 3,9 GB
Title: Re: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 17 May 2011, 11:55:40 am
Hi yancha22,

The image was created on the smallest 4Gb card that I have available so it should copy onto most 4Gb SD/uSD cards.
Alternatively use an 8/16Gb or eSata drive.

NewITJAmes
Title: Re: GuiPlug now available on the Dreamplug
Post by: yancha22 on 17 May 2011, 02:53:36 pm
I need to format on FAT16 format ?
Title: Re: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 17 May 2011, 03:23:50 pm
Yancha22,

You need to decompress the image.
Code: [Select]
gunzip -c NewIT-GuiPlug-4Gb-09May11-v2.5-Dreamplug.img.gz

Then copy it to your SD/uSD device like this.
Code: [Select]
dd if=/home/NewIT-GuiPlug-4Gb-09May11-v2.5-Dreamplug.img of=/dev/sdb bs=10M
No need to format the SD card the 'dd' command will overwrite it and create the partitions automatically.

NewIT James
Title: Re: GuiPlug now available on the Dreamplug
Post by: yancha22 on 17 May 2011, 03:50:32 pm
I have a kernel panic.

I use this procedure :

Download .gz file on newit server
Decompress file on a USB stick
copy from USB stick to sd card with dd command.

(for information i have 3 dreamplug, 1 JTAG and 1 mimo screen)

after
i connect JTAG module, insert sd card.
i boot
I have a kernel panic.

Do you think i need to create partitions on my sd card like this :
1st partition = uboot file
2nd partition = the newit guiplug img file

?


Title: Re: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 17 May 2011, 03:59:11 pm
I would guess the 'dd' command did not finish successfully.

Does the blocks in match the blocks out?

If not you need to try another SD card of a different brand or an 8gb or above.


NewITJames


Edit: Also the md5sums are there to download http://www.downloadsnewit.co.uk/SD-images/Dreamplug/GuiPlug/ (http://www.downloadsnewit.co.uk/SD-images/Dreamplug/GuiPlug//)
Title: Re: GuiPlug now available on the Dreamplug
Post by: spektro on 18 May 2011, 02:09:33 am
Please some help here.

I followed the instructions:

Download the gz to my ubuntu laptop, then decompress to my HD, then copy to a SD card.(by the DD command as described) Put the SD card on my brand new Dreamplug, reboot, but!, nothing happens  >:(

So then I though that the problem it could be the SD card, a Kingstone 8gb Class 4, so I bought a 8gb Class10, try it again, same issue, nothing happens, just boot from the internal MicroSD.

I don't have the Jtag, so I hope there's something else I can do to make it work.

by the way, I have checked the md5sum and are ok.
Title: Re: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 18 May 2011, 06:49:39 am
Hi Spektro,

The changes to the uboot variables are what makes it boot from the SD card which obviously requires a Jtag. The only way to use the image without a jtag would be to copy the image to a microSD and swap it for the internal one.

Title: Re: GuiPlug now available on the Dreamplug
Post by: yancha22 on 18 May 2011, 07:05:04 am
After two times. The first procedure work very well.

I can see the the desktop on mimo screen !!!

Thanks Newit!!
Title: Re: GuiPlug now available on the Dreamplug
Post by: yancha22 on 18 May 2011, 10:57:17 am
For newbie like me use this command line and it work well:

Code: [Select]
setenv x_bootargs_root 'root=/dev/sdb rootdelay=10'
Title: Re: GuiPlug now available on the Dreamplug
Post by: spektro on 19 May 2011, 02:22:47 am
Hi James, thanks for your reply.

I bought a Kingstone MicroSD 8gb Class4, and copy the image vía DD to the microSD, then I replace the internal microSD and place the new one, plug it. The green light on, but nothing seems to happen, I have searched in the DHCP list if there's a new conections but nothing.

Any idea of what could it be, and what else can I do?

Title: Re: GuiPlug now available on the Dreamplug
Post by: zoukimando on 19 May 2011, 01:11:16 pm
@NewIT_James, great job!! I've put it onto 16GB microSD and it works beautifully. I've had a wonderful day playing with debian. Many many thanks.
Title: Re: GuiPlug now available on the Dreamplug
Post by: fh9977 on 23 May 2011, 10:11:07 pm
Hi James,
Many thanks for this, and for the help getting it running.
It's been on for a week now, no problems at all.

Today I tried to connect my USB hard drive, but no luck.
The plug recognises the drive when I connect it, but I couldn't mount.
It is a NTFS drive, I use it in Windows without any problem.

I can see the drive is there with fdisk-l:
Code: [Select]
   Device Boot      Start         End      Blocks   Id  System
/dev/sdg1

But when I try to mount I get an error message:
Code: [Select]
root@debian:/# mount /dev/sdg1 /mnt/hd
FATAL: Could not load /lib/modules/2.6.33.6/modules.dep: No such file or directory
ntfs-3g-mount: fuse device is missing, try 'modprobe fuse' as root
root@debian:/#

I also tried modprobe fuse, but still I get an error:
Code: [Select]
root@debian:/# modprobe fuse             
FATAL: Could not load /lib/modules/2.6.33.6/modules.dep: No such file or directory
root@debian:/#


Could you please help?


Thanks.
FH
Title: Re: GuiPlug now available on the Dreamplug
Post by: NewITMalcolm on 24 May 2011, 09:54:28 am
Hi Fabio,

Looks rather like you are running with the 2.6.33.6 kernel on the uSD card and Gui rootfs on the external SD. It's trying to locate the Modules for the 2.6.33.6 kernel on the SD card but not finding them.

I think you have probably not got the uboot variables quite right. Can you check the variable below is correct in your uboot settings. It's the '1' which refers to the external SD card ('0' would be the uSD).

Code: [Select]
x_bootcmd_kernel=fatload usb 1 0x6400000 uImage
Using the 2.6.33.6 kernel with the Gui image via vnc is not a problem if you prefer that kernel but you would need to  copy /lib/modules/*  from the internal uSD to the external SD card.

NewITJames
Title: Re: GuiPlug now available on the Dreamplug
Post by: fh9977 on 24 May 2011, 10:13:47 pm
Hi James,
I am booting from an external SD reader (/sdc) and not from the Dreamplug car reader (/sdb) so uboot was configured as follows:
setenv x_bootargs_root root=/dev/sdc2 rootdelay=10

I did try setenv x_bootcmd_kernel 'fatload usb 1 0x6400000 uImage', but that did not work, it couldn't find the kernel.
fatload usb 0 works, but as you said it is reading the kernel from the internal micro sd (/sda).

How do I set uboot to read the kernel in /sdc? Tried usb 2, usb 3, usb 4 ... , no luck.

thanks.
FH


Title: Re: GuiPlug now available on the Dreamplug
Post by: rmnet on 08 June 2011, 08:12:04 pm
Hi,


I have same issue as spektro. I replaced microSD with the new 8 GB SD/HC one.

DP is not obtaining IP from DHCP. Just power LED is on. I'm unfortunately without JTAG. I have to order one ;-(

Any suggestions ?

Radim

UDPATE 18 June 2011: I did it ;-) Using UART/JTAG adapter I saw kernel panic. I tried to do "dd" copying again and modify boot variables. So I have two differences from my previous test:

1. I use /dev/sdb instead of internal /dev/sda
2. I copy SD card images on DreamPlug instead of my Debian virtual machine

I tested GuiPlug with VNC, it seems VNC is CPU intensive app. I can see through top, that it's using about 60 percent of CPU. I started browser too and CPU rises to nearly 100 percent. So i think gui is more usable with USB  monitor than VNC.

Anyway, it's very nice :-)