Go to advanced search

by rpdom
Tue Jul 02, 2013 6:22 pm
Forum: Advanced users
Topic: /=ext HDD; /boot=SD, from rasp.img file
Replies: 15
Views: 2788

Re: /=ext HDD; /boot=SD, from rasp.img file

* mount -o loop,offset=$((122880*512)) raspbian.img /mnt/src why is there no space between the comma and offset? Because they are both part of the parameters to the "-o" option. If you had a space between them the "loop," would be taken as the parameter and the "offset=$((12880*512))" would be take...
by rpdom
Tue Jul 02, 2013 1:27 pm
Forum: Bare metal, Assembly language
Topic: [solved][Assembly] Output to Physical LED
Replies: 7
Views: 7798

Re: [solved][Assembly] Output to Physical LED

The 32 bits at memory location 0x20200000 + 4 control the mode of GPIO 10 to GPIO 19. Three bits for each GPIO. So is it just a function of the chip to turn the one pin to output and the others to input? Or is that somehow stated in my Assembly? Maybe I'm being stupid, but why does it set one pin f...
by rpdom
Tue Jul 02, 2013 1:08 pm
Forum: Bare metal, Assembly language
Topic: [solved][Assembly] Output to Physical LED
Replies: 7
Views: 7798

Re: [solved][Assembly] Output to Physical LED

Why does it turn pins 18 and 19 on as input as well? The 32 bits at memory location 0x20200000 + 4 control the mode of GPIO 10 to GPIO 19. Three bits for each GPIO. This was in no way meant to be a permanent solution, my friend and I were just goofing off with a bunch of stuff we had laying around ...
by rpdom
Tue Jul 02, 2013 12:16 pm
Forum: Bare metal, Assembly language
Topic: [solved][Assembly] Output to Physical LED
Replies: 7
Views: 7798

Re: [solved][Assembly] Output to Physical LED

Yes, you have solved it :-) I can see your code works to set gpio 17 as an output and then turn it on. One thing you might consider for later though is that writing 1<<21 to the function select register at [r0, #4] will set gpio 10 to 16, 18 and 19 to inputs. This could upset any other code you migh...
by rpdom
Tue Jul 02, 2013 9:35 am
Forum: Troubleshooting
Topic: Issues w/ running .exe
Replies: 16
Views: 2605

Re: Issues w/ running .exe

The -rwxr-xr-x bit is correct. That should work when you type ./minecraft-pi What does it actually do when you type that in a terminal? Does it just go back to the $ prompt again, or give an error msg? Another thing to try is: "file minecraft-pi". This will try to work out what sort of file it is an...
by rpdom
Tue Jul 02, 2013 6:38 am
Forum: Troubleshooting
Topic: Issues w/ running .exe
Replies: 16
Views: 2605

Re: Issues w/ running .exe

What messages do you get (if any) when you try to run a program?

What permissions are set on the file? (use "ls -l minecruft-pi" to check.
by rpdom
Mon Jul 01, 2013 8:11 pm
Forum: Other programming languages
Topic: PHP - exec() not working - permission issue?
Replies: 13
Views: 39497

Re: PHP - exec() not working - permission issue?

You will need to have something like group of www-data and -rwxr-x--- permissions for your webserver to be allowed to run the script. # Set group of file to www-data chgrp www-data speech.sh # Set permissions of file to -rwxr-x--- chmod 750 speech.sh # check permission (should look something like th...
by rpdom
Mon Jul 01, 2013 8:00 pm
Forum: General programming discussion
Topic: Hospital Bed
Replies: 32
Views: 4679

Re: Hospital Bed

From the sounds of things, I would say that the standard control panel is just a few switches between various pins and ground. All the fail-safe and other safety features would be built into the bed itself and associated control circuitry - which would be sensible. There have to be safety cut-outs f...
by rpdom
Mon Jul 01, 2013 6:00 pm
Forum: General discussion
Topic: Pi Getting Hot???
Replies: 38
Views: 20334

Re: Pi Getting Hot???

As far as I know, the Pi's processor is qualified up to 85°C. And I have never heard of anyone's Pi's temperature getting close to or reaching 85°C. So basically, there's no need to worry. (The "normal" temperature of the SoC is around 50-60°C.) I hate being American on British forum!!! So many ali...
by rpdom
Mon Jul 01, 2013 5:01 pm
Forum: HATs and other add-ons
Topic: Power Supply Reading
Replies: 3
Views: 1261

Re: Power Supply Reading

You can only test the supply voltage by connecting a volt meter to some of the power connections on the Pi board. TP1 and TP2 are good places to start. There is nothing on the Pi itself that can measure the voltage for you. To measure the current (mA) you would need to put a Ammeter in line with the...
by rpdom
Mon Jul 01, 2013 3:25 pm
Forum: Troubleshooting
Topic: Fickle Green Light
Replies: 3
Views: 1395

Re: Fickle Green Light

It is not usual for the green "ACT" light to come on and stay on... Normally it will turn on and off, then flicker while the Pi starts up, then go out and only flash when the Pi is busy doing things. It is like the HDD light on some PCs. It shows when the SD card is being used. Does it flicker at al...
by rpdom
Mon Jul 01, 2013 2:51 pm
Forum: General discussion
Topic: How long can I run the RasPi for?
Replies: 21
Views: 4937

Re: How long can I run the RasPi for?

solar3000 wrote:this is good to know.

my was rebooted after 4 days. It gave me scarey messages.
What sort of messages?
by rpdom
Mon Jul 01, 2013 2:24 pm
Forum: General discussion
Topic: Pi Getting Hot???
Replies: 38
Views: 20334

Re: Pi Getting Hot???

40°C is not hot. It is perfectly normal. It may feel hot to the touch, but it is very cool for a CPU.

My old Pentium4 laptop is currently running at 66°C and its cooling fan is running. That will turn off at around 62°C.

The Pi is quite happy at up to 85 degrees.
by rpdom
Mon Jul 01, 2013 12:00 pm
Forum: Raspbian
Topic: Root file system full and can't boot
Replies: 8
Views: 3070

Re: Root file system full and can't boot

You can type "sudo apt-get clean" after every successful upgrade. That will delete the files that have been downloaded.
by rpdom
Mon Jul 01, 2013 11:06 am
Forum: Python
Topic: Odd Geany error message
Replies: 16
Views: 1936

Re: Odd Geany error message

Are you perhaps running Geany for Windows on your PC? That is ok for writing programs for the Pi, but not for running or testing them.
by rpdom
Mon Jul 01, 2013 9:49 am
Forum: Troubleshooting
Topic: Pi won't boot after firmware update
Replies: 14
Views: 3800

Re: Pi won't boot after firmware update

rpi-update done. No problems. As fstab has been mentioned, my line for the root filesystem is LABEL=RASPI_ROOT / ext4 defaults 0 2 Although this gives an error during boot, as labels don't seem to be supported at that stage on the Pi. Everything seems to be running ok.
by rpdom
Mon Jul 01, 2013 9:13 am
Forum: Troubleshooting
Topic: Pi won't boot after firmware update
Replies: 14
Views: 3800

Re: Pi won't boot after firmware update

texy wrote:Just to be clear, apt-get update/upgrade isn't breaking my system - rpi-update is.
Texy
Ok, I will backup my system and run rpi-update and see what happens. I'll report back when I've done it.
by rpdom
Mon Jul 01, 2013 8:52 am
Forum: Advanced users
Topic: Same chip for sd card and usb?
Replies: 12
Views: 2237

Re: Same chip for sd card and usb?

RaTTuS wrote:usb2 is 480mbps
480 millibits? Strewth, that's slow... ;)

So assume about half of that 480Mb/s is being used for the USB disk and half for network. Then allow for USB protocol overheads and other stuff. Be lucky to get 100Mb/s usable throughput.
by rpdom
Mon Jul 01, 2013 8:26 am
Forum: Troubleshooting
Topic: Pi won't boot after firmware update
Replies: 14
Views: 3800

Re: Pi won't boot after firmware update

I ran an apt-get update/apt-get dist-upgrade on my Pi with root filesystem on USB disk yesterday and it is still booting ok. Perhaps there has been a kernel change and one of the USB drivers has been made into a module instead of built in to the kernel? If that is the case, perhaps if people who hav...
by rpdom
Mon Jul 01, 2013 8:12 am
Forum: General discussion
Topic: Pi Getting Hot???
Replies: 38
Views: 20334

Re: Pi Getting Hot???

On XBMC, the temperature sensor thingy (the pi does not have one, do not know how it does it) reads 40 degrees. The Pi does have a temperature sensor thingy. It's inside the main chip. You can read it from the command line like this: pi@raspi2 ~ $ vcgencmd measure_temp temp=25.0'C or pi@raspi2 ~ $ ...
by rpdom
Mon Jul 01, 2013 7:02 am
Forum: General programming discussion
Topic: Hospital Bed
Replies: 32
Views: 4679

Re: Hospital Bed

It depends on how much current the connections take. I'd assume not a lot as they are just push buttons. In that case I'd go for simple opto-isolators to keep the Pi electronics separate from the bed electronics. You say that connecting the other pins to pin 2 makes the bed function. That doesn't me...
by rpdom
Mon Jul 01, 2013 6:51 am
Forum: Raspbian
Topic: Updating Transmission from 2.52?
Replies: 24
Views: 11006

Re: Updating Transmission from 2.52?

Actually, looking at the repo, it is already there. Maybe Jessie is ready for testing now. There are three ways of getting it. 1. Upgrade to Jessie. Possibly not a good idea until it has had more testing. 2. Download the files from the repo manually and install with dpkg -i $filename. This can be pa...
by rpdom
Mon Jul 01, 2013 6:35 am
Forum: Other programming languages
Topic: PHP - exec() not working - permission issue?
Replies: 13
Views: 39497

Re: PHP - exec() not working - permission issue?

What are the current owner, group and permissions of the script? Is it in the /var/www directory? As Apache runs with user=www-data and group=www-data, setting the group of the script to www-data and adding group execute permissions should work (chmod g+x speech.sh). Actually, I'm not sure that it i...
by rpdom
Mon Jul 01, 2013 6:28 am
Forum: Troubleshooting
Topic: Accidentally broke the TP1 component
Replies: 5
Views: 1018

Re: Accidentally broke the TP1 component

Actually you have broken off C6 (the label is below it and to the right). TP1 is the small copper circle and hole to the right of the marking - it's a Test Point. Don't worry about C6 if your Pi is still working. It just smooths out the power supply a little in some cases. Lots of people have broken...
by rpdom
Mon Jul 01, 2013 6:22 am
Forum: Other projects
Topic: Root file system creation and kernel compilation
Replies: 10
Views: 3455

Re: Root file system creation and kernel compilation

How to get kernel source and compile a kernel: http://elinux.org/RPi_Kernel_Compilation How to install the kernel: Copy the kernel image file to kernel.img on the boot partition. How to create a root filesystem? Sorry, don't know. All this seems like a lot of unnecessary work to me. Install the defa...

Go to advanced search