Go to advanced search

by rpdom
Mon Jun 03, 2013 8:30 am
Forum: C/C++
Topic: registers on pi?
Replies: 5
Views: 1334

Re: registers on pi?

I just got my pi and am excited to get started. I was wondering if there are any registers or eeprom on the pi I can access from C++? You seem to be approaching this problem as if the Pi were a microcontroller like a PIC or Arduino. It isn't. It is a full computer running a proper multi-tasking OS....
by rpdom
Mon Jun 03, 2013 6:37 am
Forum: General discussion
Topic: cable not connected
Replies: 2
Views: 977

Re: cable not connected

In addition to what mahjongg said, what adaptor are you using. Is it a HDMI to VGA adaptor with a separate power supply, or an HDMI to DVI cable or something else?
by rpdom
Mon Jun 03, 2013 6:22 am
Forum: Troubleshooting
Topic: SOLVED: :-( - My First PI wont boot
Replies: 16
Views: 1947

Re: :-( - My First PI wont boot

Yes it looks like the card inserted switch is closing and you cannot physically insert the card any further. The pins all appear to be up and making contact from what I can tell. Did you try holding the card against the contacts with a finger and thumb on top and bottom of the board, then powering ...
by rpdom
Mon Jun 03, 2013 6:13 am
Forum: Advanced users
Topic: SD activity after power off
Replies: 13
Views: 2232

Re: SD activity after power off

I'd certainly introduce a delay of some tens of seconds to be safe. The SD card interface is (as previously mentioned) controlled the GPU, so that must still be doing some work, even though the Pi has supposedly shut down. Wear levelling is another matter. That is done by a controller inside the SD ...
by rpdom
Sun Jun 02, 2013 8:03 pm
Forum: Raspbian
Topic: Running two USB drives
Replies: 7
Views: 5683

Re: Running two USB drives

Hi mad-hatter, Thanks for your reply. I have tried your suggestion of using LABEL= … but with no luck. Here is my setup: cmdline.txt: …. boot=/dev/sda1 …. fstab: LABEL=myrootfs / ext4 defaults, noatime 0 1 (this is my USB hard drive – connected via a powered hub) LABEL=myusb /media/usb vfat default...
by rpdom
Sun Jun 02, 2013 4:46 pm
Forum: General discussion
Topic: RPi Reading Files On Android Phone
Replies: 3
Views: 1393

Re: RPi Reading Files On Android Phone

You should be able to specify the port in the mount command or the fstab entry. From mount.cifs (which handles samba now): "port=arg sets the port number on the server to attempt to contact to negotiate CIFS support. If the CIFS server is not listening on this port or if it is not specified, the def...
by rpdom
Sun Jun 02, 2013 8:56 am
Forum: Troubleshooting
Topic: New pi USB detection
Replies: 8
Views: 882

Re: New pi USB detection

:( it dropped to 3.8V at one stage. and typically at 4.45V. possbily micro-usb cable? or polyfuse? Yeah, that's not good :( It is most likely the cable. Some of them are really poor. My original one dropped about 0.4V over a few feet. You can check the poly fuse by measuring the voltage dropped acr...
by rpdom
Sun Jun 02, 2013 8:51 am
Forum: Beginners
Topic: raspian which crashes after startx
Replies: 10
Views: 1378

Re: raspian which crashes after startx

no space left on device That is most likely to be your real problem and why startx isn't working. You don't have enough free space to write the files that X needs to run. Does startx work now that you have cleared out some space? How much free space do you have on your card? Use "df -h /" (without ...
by rpdom
Sun Jun 02, 2013 8:02 am
Forum: General discussion
Topic: apt-get error
Replies: 8
Views: 1167

Re: apt-get error

That looks like it may be a bad download... how to check checksum? First, have you tried those two commands I gave? To check the downloaded file, first get the checksum using apt-cache. Here is an example pi@raspi:~$ apt-cache show iso-codes_3.41-1_all.deb Package: iso-codes Version: 3.41-1 Archite...
by rpdom
Sun Jun 02, 2013 7:45 am
Forum: Raspbian
Topic: Running two USB drives
Replies: 7
Views: 5683

Re: Running two USB drives

I think you are correct in that the wrong drive is being detected as sda. :( Unfortunately support for UUID= and LABEL= on the command line doesn't seem to be enabled. All I can suggest is to swapping the USB sockets that the drives are plugged into - this may change the detection order, or you'll j...
by rpdom
Sun Jun 02, 2013 7:40 am
Forum: Troubleshooting
Topic: New pi USB detection
Replies: 8
Views: 882

Re: New pi USB detection

Can you measure the voltage between the test points TP1 and TP2 on the Pi while this is happening? It should be close to 5V. The lowest it should be is 4.75V, but the closer to 5V the better.
by rpdom
Sun Jun 02, 2013 7:17 am
Forum: Raspbian
Topic: Run a comand at startup
Replies: 3
Views: 753

Re: Run a comand at startup

Thanks, it does the job. I'm not sure what does the code & on I connected a display to it, to see what happens at boot, and seems to give an error "/ect/rc.local: on: not fond " Ah, I meant just put the "&" character on the end of the line. But if all works well without it, then it's not needed. :)
by rpdom
Sun Jun 02, 2013 6:25 am
Forum: Troubleshooting
Topic: Sticky Keyboard Issue / Keys skipping
Replies: 12
Views: 4352

Re: Sticky Keyboard Issue / Keys skipping

There are some known problems with the USB drivers on the Pi. A lot of work is going on at the moment to fix those. One of the main problems has been "sticking keys". There's a long thread here http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=39175 about it. You can either wait until the chang...
by rpdom
Sun Jun 02, 2013 6:17 am
Forum: General discussion
Topic: apt-get error
Replies: 8
Views: 1167

Re: apt-get error

That looks like it may be a bad download...

What does the output of these two commands give you?

Code: Select all

tail /var/lib/dpkg/info/iso-codes.list
df -h
by rpdom
Sun Jun 02, 2013 6:13 am
Forum: Raspbian
Topic: Run a comand at startup
Replies: 3
Views: 753

Re: Run a comand at startup

So my question is, how can I add the following command to startup sequence of the pi? "sudo /usr/sbin/webcam.sh start" Edit /etc/rc.local using sudo and the editor of your choice (probably sudo nano /etc/rc.local) Add the line /usr/sbin/webcam.sh start sudo is not needed as that file runs as root a...
by rpdom
Sun Jun 02, 2013 5:46 am
Forum: General discussion
Topic: how to test the pi's lan chip ?
Replies: 12
Views: 1420

Re: how to test the pi's lan chip ?

Nikki81 wrote:Has anyone got a dead model b they want to sell me ?
I'm sure at least one person has got a dead B out there. Try posting in the "Wanted" section?
by rpdom
Sun Jun 02, 2013 5:42 am
Forum: General discussion
Topic: Waking up Pi
Replies: 1
Views: 439

Re: Waking up Pi

You can wake your Pi by briefly connecting pins 5 and 6 on P1. This is handled by the firmware. It will cause the kernel to be reloaded from scratch though, so is pretty much the same as a cold start. You can also connect the two pins of (the not fitted by default) P6, which is (I believe) a hardwar...
by rpdom
Sun Jun 02, 2013 5:25 am
Forum: Troubleshooting
Topic: Accidently over wrote the boot partition
Replies: 11
Views: 1307

Re: Accidently over wrote the boot partition

The Pi uses two partitions. The first is a "windows" VFAT partition that contains the boot files. If you have lost them you can from your card you need to put them back using another computer (which can be windows). Have you got (or can you borrow) a spare card of 2GB or more? If so, write the image...
by rpdom
Sat Jun 01, 2013 5:58 pm
Forum: Raspbian
Topic: Kernel Panic when switching USB power off/on - anyone test?
Replies: 9
Views: 1514

Re: Kernel Panic when switching USB power off/on - anyone te

Well, you can't actually switch off the USB bus power, as it is directly connected to the 5V input of the Pi. What you have done (I think) is to switch off the USB hub chip on the Pi, which will disable the USB data bus. I expect that if the data bus is dead any connected peripherals will go into a ...
by rpdom
Sat Jun 01, 2013 5:51 pm
Forum: Troubleshooting
Topic: distribution upgrade
Replies: 5
Views: 1017

Re: distribution upgrade

For Debian and maybe Raspbian sudo apt-get update sudo apt-get upgrade sudo apt-get dist-upgrade And which does what? (I know that sudo apt-get update just grabs a list, and sudo rpi-update appears to get a bleeding-edge, will-likely-break-things-but could be-fun edition) sudo apt-get upgrade will ...
by rpdom
Sat Jun 01, 2013 4:12 pm
Forum: Raspbian
Topic: Login as root via ssh, telnet and ftp
Replies: 6
Views: 106367

Re: Login as root via ssh, telnet and ftp

You need to give the root account a password? Have you done it? sudo passwd root This should be sufficient. You should also check your ssh config sudo nano /etc/ssh/sshd_config Search for PermitRootLogin and change it to yes. That should already be set, I believe. Certainly I've not needed to chang...
by rpdom
Sat Jun 01, 2013 10:30 am
Forum: Raspbian
Topic: How to set the Link Speed to 10MBit permanently?
Replies: 1
Views: 1933

Re: How to set the Link Speed to 10MBit permanently?

In /etc/network/interfaces, edit the definition for eth0 like this

Code: Select all

iface eth0 inet dhcp
	pre-up /sbin/ethtool -s eth0 speed 10 duplex full
This will set the speed of the interface to 10 Mbit before trying DHCP or anything else.
by rpdom
Sat Jun 01, 2013 10:21 am
Forum: Raspbian
Topic: Create Static IP Address for Ethernet in Raspian?
Replies: 19
Views: 7415

Re: Create Static IP Address for Ethernet in Raspian?

Joe Schmoe wrote:
Static addresses in Raspbian can be configured in the file /etc/network/interfaces
But need not be, as you can see.
No. But it is the recommended way of doing things in Debian/Raspbian - unless you have Network Manager (or something similar) installed.
by rpdom
Sat Jun 01, 2013 6:58 am
Forum: Python
Topic: Python script error
Replies: 3
Views: 889

Re: Python script error

You probably need to "escape" the quotes around MB, as in \"MB\" so they don't get interpreted by Python as a string terminator.

Go to advanced search