Go to advanced search

by fergusondavid6
Fri Mar 31, 2017 11:31 pm
Forum: Advanced users
Topic: init=/bin/sh not working
Replies: 5
Views: 10297

init=/bin/sh not working

I'm trying to experiment with adding init=/bin/sh to cmdline.txt, but I'm not having any luck getting it working. Wha I've done is: Written fresh Raspbian Lite image Changed init=/usr/lib/raspi-config/init_resize.sh to init=/bin/sh Put the SD card into the Pi (model B 512mb) Booted it But when I boo...
by fergusondavid6
Sun Sep 04, 2016 12:09 am
Forum: Raspbian
Topic: yes another Rpi 3 internal wifi problem
Replies: 10
Views: 2389

Re: yes another Rpi 3 internal wifi problem

I had this exact issue, where a USB wifi adapter worked, but the internal one didn't, and it turned out the problem was my power supply couldn't provide enough current to the Raspberry Pi. Initially I was using a 2A one, but when I tried a 3.5A one everything worked find. How much current can your p...
by fergusondavid6
Sat Jul 30, 2016 7:53 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 3 WiFi not working on command line
Replies: 9
Views: 2587

Re: Raspberry Pi 3 WiFi not working on command line

Thanks DougieLawson, using a 2.1A (highest I have) power supply, now the built-in WiFi connects instantly when booting to command line!

Still a bit confused why it would work when I booted to the GUI and not the command line with a 1A PSU, but seeing as it now works, I'm not complaining now!
by fergusondavid6
Sat Jul 30, 2016 7:28 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 3 WiFi not working on command line
Replies: 9
Views: 2587

Re: Raspberry Pi 3 WiFi not working on command line

I'm using the power supply I got with my Raspberry Pi 1 - it's branded Raspberry Pi, so I assume it's OK - although I do get the coloured square in the top right of the screen fairly often. I've not changed any other settings other than editing /etc/wpa_supplicant/wpa_supplicant.conf and using raspi...
by fergusondavid6
Sat Jul 30, 2016 7:06 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 3 WiFi not working on command line
Replies: 9
Views: 2587

Re: Raspberry Pi 3 WiFi not working on command line

Okay, I've tried a few more things, and got some rather odd results. But first, here are my configuration files: /etc/wpa_supplicant/wpa_supplicant.conf country=GB ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 network={ ssid="VM222129-2G" scan_ssid=1 key_mgmt=WPA-PSK psk="*...
by fergusondavid6
Sat Jul 30, 2016 5:10 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 3 WiFi not working on command line
Replies: 9
Views: 2587

Re: Raspberry Pi 3 WiFi not working on command line

OS is raspbian full 2016-05-27

Output of uname -a:

Code: Select all

Linux raspberrypi 4.4.11-v7+ #888 SMP Mon May 23 20:10:33 BST 2016 armv7l GNU/Linux
Output of /opt/vc/bin/vcgencmd version

Code: Select all

May 20 2016 19:01:31
Copyright (c) 2012 Broadcom
version faf071dd4885c5ac1a89483d35a5326e7f69495f (clean) (release)
by fergusondavid6
Sat Jul 30, 2016 4:46 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 3 WiFi not working on command line
Replies: 9
Views: 2587

Re: Raspberry Pi 3 WiFi not working on command line

Update:

If I plug in a USB WiFi adaptor to the Pi 3, it works perfectly. So the issue is defiantly the built-in WiFi on the 3. Any ideas?
by fergusondavid6
Sat Jul 30, 2016 2:33 pm
Forum: Troubleshooting
Topic: [SOLVED] Raspberry Pi 3 WiFi not working on command line
Replies: 9
Views: 2587

[SOLVED] Raspberry Pi 3 WiFi not working on command line

I've just got started with a Pi 3, when I've been using the Pi 1 with USB WiFi up to now. I booted it up, connected to my WiFi network using the tray menu, and everything worked fine. I then set the boot option to the command line, and rebooted. When the Pi had booted back up (into the command line)...
by fergusondavid6
Thu May 26, 2016 8:05 am
Forum: Troubleshooting
Topic: Prevent shutdown until script finished
Replies: 9
Views: 3348

Re: Prevent shutdown until script finished

Thanks for your replies, MarkHaysHarris777, they've been very helpful. (after a lot of trying) I've actually managed to create a systemd service script that works the way I need. When the Pi either shuts down or reboots, my script is run, and it waits until that script has finished before continuing...
by fergusondavid6
Wed May 25, 2016 9:38 pm
Forum: Troubleshooting
Topic: Prevent shutdown until script finished
Replies: 9
Views: 3348

Re: Prevent shutdown until script finished

Thanks for replying so quickly.

I've just tries your script, and although it keeps running when the

Code: Select all

kill -SIGTERM <process number>
command is sent, when I run the

Code: Select all

reboot
command the script is killed and the Pi restarts as normal.

Any thoughts?
by fergusondavid6
Wed May 25, 2016 7:54 pm
Forum: Troubleshooting
Topic: Prevent shutdown until script finished
Replies: 9
Views: 3348

Prevent shutdown until script finished

I have several scripts executing on my Pi, and I don't want the Pi to be able to shutdown until these scripts have finished executing. I've read that I could do this using the old init.d system, but I'm struggling to get them to work on Jessie. My init.d script is as follows: #! /bin/bash ### BEGIN ...
by fergusondavid6
Tue May 24, 2016 10:30 pm
Forum: Beginners
Topic: Does wpa_supplicant detect updates?
Replies: 1
Views: 518

Does wpa_supplicant detect updates?

When I've been setting up WiFi with Raspberry Pis using the command line method suggested in the docs , I always have to reboot the Pi to get it to connect to the network. I've tried leaving it for up to an hour, but it never connects on its own. I saw on the page linked above that it says that wpa-...
by fergusondavid6
Tue May 24, 2016 5:29 pm
Forum: Troubleshooting
Topic: WiFi that has IP not connecting to internet
Replies: 3
Views: 598

Re: WiFi that has IP not connecting to internet

ifconfig -a eth0 Link encap:Ethernet HWaddr b8:27:eb:60:24:fe inet6 addr: fe80::9dde:5546:d18:659c/64 Scope:Link UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (...
by fergusondavid6
Tue May 24, 2016 5:10 pm
Forum: Troubleshooting
Topic: WiFi that has IP not connecting to internet
Replies: 3
Views: 598

WiFi that has IP not connecting to internet

I have an open network named raspberry-pi that I am trying to get my Pi to connect to. Currently the Pi connects to the network, gets an IP address, and can ping devices connected to my local network, but not devices on the internet. I configured WiFi using the command line (editing /etc/wpa_supplic...
by fergusondavid6
Sun Jan 10, 2016 10:10 am
Forum: Troubleshooting
Topic: Pi Zero UART not working
Replies: 10
Views: 12106

Re: Pi Zero UART not working

I've just verified that you can talk to a Zero from another Pi by using this direct serial connection. I turned off the serial console on the host Pi (a B+) using raspi-config -- but left the serial console on on the Zero (as I want to access the console there!) Then from the B+, ran screen /dev/tt...
by fergusondavid6
Sat Jan 09, 2016 6:17 pm
Forum: Troubleshooting
Topic: Pi Zero UART not working
Replies: 10
Views: 12106

Re: Pi Zero UART not working

Yes you could put the B in generic serial port mode and leave the second RPi in console mode. Then you should be able to login to the 2nd RPi over serial using a terminal program such as minicom on the 1st RPi. I've just tried this, and it produces exactly the same output as before. I then tried it...
by fergusondavid6
Sat Jan 09, 2016 5:58 pm
Forum: Troubleshooting
Topic: Pi Zero UART not working
Replies: 10
Views: 12106

Re: Pi Zero UART not working

Just to clarify, will this allow me to log into my Pi Zero from the UART port via the Pi B?
by fergusondavid6
Sat Jan 09, 2016 5:48 pm
Forum: Troubleshooting
Topic: Pi Zero UART not working
Replies: 10
Views: 12106

Re: Pi Zero UART not working

Thanks for replying. Which Raspberry Pi should I do this to? The B? The Zero? Or both?

Thanks
by fergusondavid6
Sat Jan 09, 2016 5:16 pm
Forum: Troubleshooting
Topic: Pi Zero UART not working
Replies: 10
Views: 12106

Pi Zero UART not working

I've just got my Pi Zero, and was interested in setting it up as a MIDI controller, which means that I'll be unable to use a keyboard/mouse to control it. Therefore, I assumed that I could use the RX and TX pins on the GPIO to send commands and receive output. I know that the pins are 3.3v rather th...
by fergusondavid6
Thu Dec 31, 2015 7:33 pm
Forum: Advanced users
Topic: Pi Zero OTG MIDI
Replies: 1
Views: 2420

Pi Zero OTG MIDI

I've been very excited seeing https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=129653 and then http://pi.gbaman.info/?p=699, the latter saying Virtual MIDI – The Pi Zero could appear as a virtual MIDI instrument. However, I've found no documentation at all on how this could be achieved. Does ...
by fergusondavid6
Mon Nov 02, 2015 7:40 am
Forum: Scratch
Topic: Scratch version 2
Replies: 4
Views: 1264

Re: Scratch version 2

Or, if you do mean Scratch 2, NoMod-Programming on the Scratch forums has created a mod of Scratch 1.4 which has the clone block and other blocks that have only been found in Scratch 2. Simon Walters has tested this on a Raspberry Pi, and has found it to work. Look at his blog for instructions for i...
by fergusondavid6
Sat May 09, 2015 8:11 pm
Forum: Raspbian
Topic: Mounting raspbian.img on a Pi?
Replies: 6
Views: 1908

Re: Mounting raspbian.img on a Pi?

Following up to this, is there a way to resize the /root partition? And then save it to the .img?

Thanks
by fergusondavid6
Sat May 09, 2015 7:41 pm
Forum: Raspbian
Topic: Mounting raspbian.img on a Pi?
Replies: 6
Views: 1908

Re: Mounting raspbian.img on a Pi?

Thanks for all the replies! I now have it working.

If anyone else wants to know how to do it, I used the instructions in the link posted by PeterO, and it worked perfectly.
by fergusondavid6
Sat May 09, 2015 6:01 pm
Forum: Raspbian
Topic: Mounting raspbian.img on a Pi?
Replies: 6
Views: 1908

Mounting raspbian.img on a Pi?

Hi, Can anyone tell me how I can mount the latest Raspbian.img (2015-05-05) on a Raspberry pi so I can see the contents without actually writing it to an SD card? I have tried sudo mount raspbian.img /mnt but I get mount: you must specify the filesystem type and also sudo mount /home/pi/raspbian.img...
by fergusondavid6
Mon May 04, 2015 9:02 am
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5105
Views: 1402110

Re: RPi Cam Web Interface

Are you supposed to run the commands in the root directory, in /home/pi/ or in any directory of your choosing?

Thanks

Go to advanced search