Go to advanced search

by rpdom
Mon Jun 18, 2018 4:50 am
Forum: General discussion
Topic: rassberry pi help me!!!!!!!!!!!!!!!!
Replies: 3
Views: 139

Re: rassberry pi help me!!!!!!!!!!!!!!!!

Cheaper to buy a used laptop than to try and make one from a Pi.
by rpdom
Mon Jun 18, 2018 4:37 am
Forum: Beginners
Topic: Binary Blob?
Replies: 4
Views: 131

Re: Binary Blob?

It's only the 3D video drivers that are being written as Open Source. The bootcode and some of the other bits will still need the closed blob. (For now, at least. The RPF have managed to get Broadcom to agree release a lot of previously closed information about the SoC).
by rpdom
Sun Jun 17, 2018 3:58 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 408

Re: Scripting problem extracting IP address

Yeah, yeah, yeah, I know, you solved your problem so you don't get care. Yes, OK. But. This: ifconfig wlan0 | awk 'sub(/.*inet addr:/,"") { print $1 }' absolutely will work. Given your commentary, I have to assume there was some kind of transcription error. Again, you didn't read the original. The ...
by rpdom
Sun Jun 17, 2018 12:13 pm
Forum: Other programming languages
Topic: Accessing GPIO I/O Pins from Forth, and How to Use Them
Replies: 30
Views: 3298

Re: Accessing GPIO I/O Pins from Forth, and How to Use Them

The diagrams below show the orientation and pin numbering for the old 26-pin (RPi models A and B) version and the 40-pin version used on all other models. You should also note that on the original Pi B the 26-pin numbering was slightly different. Pins 3 and 5 were GPIO0 and GPIO1 (BCM), still with ...
by rpdom
Sun Jun 17, 2018 12:03 pm
Forum: Off topic discussion
Topic: Digital TC Soldering Station (UK)
Replies: 12
Views: 259

Re: Digital TC Soldering Station (UK)

I've already got a decent iron I bought at Maplin many years ago, but a spare might be handy. I didn't see any when I was in the nearest local Aldi yesterday, maybe I need to try one of the other local ones (we've got at least three within 7 miles of me).
by rpdom
Sun Jun 17, 2018 10:46 am
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 408

Re: Scripting problem extracting IP address

Even if I did get the details wrong, which is possible, it is still better/easier to do it with a single AWK (which might not be exactly what I posted - I don't really care about the exact details of the problem), then to do it with grep/sed/awk. I never suggested grep/sed/awk. Mine was a simple on...
by rpdom
Sun Jun 17, 2018 10:16 am
Forum: Beginners
Topic: Confused with creating backup of Raspbian in Windows
Replies: 7
Views: 106

Re: Confused with creating backup of Raspbian in Windows

Also the card doesn't have to be the same size as the original, just big enough to fit all the contents on. The file systems will be resized up or down to fit the new card. Personally, how I would use Piclone (if I did backups that way) would be to clone the system to a new card. Shutdown. Power off...
by rpdom
Sun Jun 17, 2018 10:08 am
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 408

Re: Scripting problem extracting IP address

n67 wrote:
Sun Jun 17, 2018 8:48 am
I still don't understand why you are using grep, sed, and awk, when a single awk woudl suffice.

Please enlighten me.
Because you didn't read the problem fully and your solution wouldn't work.
by rpdom
Sun Jun 17, 2018 5:18 am
Forum: Troubleshooting
Topic: Force RPi to use a specific interface for Internet connection?
Replies: 5
Views: 146

Re: Force RPi to use a specific interface for Internet connection?

W6JHB wrote:
Sun Jun 17, 2018 1:42 am
I know that 10-net and 192-net addresses are for internal, non-Internet addresses
Actually, the ranges of Private Addresses available are:
10.x.x.x
172.16.x.x to 172.31.x.x
192.168.x.x

SurferTim has clarified his answer already.
by rpdom
Sat Jun 16, 2018 6:36 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 408

Re: Scripting problem extracting IP address

Sorry for missing the closing ), I've edited that post now. Hmm, it should work, unless I've got some typo in it. I'll have another look. All I can think of is that the spaces before the "inet " line are a tab on your OS version. A hex dump of part of the output of ifconfig should give me something ...
by rpdom
Sat Jun 16, 2018 5:52 pm
Forum: General discussion
Topic: Fake Pi Cameras
Replies: 4
Views: 248

Re: Fake Pi Cameras

It is a little strange that they can still build them as OmniVision declared End Of Life on the OV5647 back in about May 2014 (one of the things that brought the V2 camera out a little sooner than planned), but somehow they manage to keep on churning them out. Are they genuine OmniVision cameras or...
by rpdom
Sat Jun 16, 2018 5:48 pm
Forum: Raspbian
Topic: Scripting problem extracting IP address
Replies: 23
Views: 408

Re: Scripting problem extracting IP address

This works for me

Code: Select all

IPAddrWiFi=$(ifconfig wlan0|sed -n "s/^ *inet [^0-9.]*\([0-9.]*\) .*$/\1/p")
by rpdom
Sat Jun 16, 2018 11:51 am
Forum: Bare metal, Assembly language
Topic: Raspberry Pi 3B+ Bare Metal USB Driver
Replies: 25
Views: 975

Re: Raspberry Pi 3B+ Bare Metal USB Driver

"Installing" ../lib/libxc.a 'tr' is not recognized as an internal or external command, operable program or batch file. tr is obviously a linux cmd or bash file to do some sort of filtering CFILES := $(filter-out $($(shell echo $(LIBNAME) | tr a-z A-Z)_OVERRIDE_CFILES), $(CFILES)) SFILES := $(filter...
by rpdom
Sat Jun 16, 2018 5:32 am
Forum: Troubleshooting
Topic: Can't install mysql on Rapsbian Strectch
Replies: 1
Views: 94

Re: Can't install mysql on Rapsbian Strectch

I have had no problems using MariaDB in place of MySQL. It is close to 100% compatible. I suspect an issue in the way you have configured it. Perhaps if you describe the issues you have encountered in more detail?
by rpdom
Sat Jun 16, 2018 5:23 am
Forum: Automation, sensing and robotics
Topic: Motor Driver Not Working
Replies: 6
Views: 200

Re: Motor Driver Not Working

To be honest, my driver board is just resting on the breadboard pins, not soldered. So I suppose it's possible I'm just not making a necessary connection. Your wiring looks right in the diagram. Do you mean you haven't yet soldered on the header pins supplied with the driver board? In that case it ...
by rpdom
Fri Jun 15, 2018 7:55 pm
Forum: Beginners
Topic: Why the raspberry does not require an initial RAM file system?
Replies: 14
Views: 466

Re: Why the raspberry does not require an initial RAM file system?

So my guess was: if an initred is not provided, the modules to provide access to the sdcard are compiled together with the kernel. So, for raspberry pi, the customized kernel comes with the necessary modules to access the sd card and hence and initrd is not necessary. Is this right? Pretty much. Al...
by rpdom
Thu Jun 14, 2018 5:36 pm
Forum: Troubleshooting
Topic: RPI3 USB Hardware Bug?
Replies: 43
Views: 2549

Re: RPI3 USB Hardware Bug?

I too dont understand why "apt-get update", "apt-get upgrade", "rpi-update" dont update the /sbin dir, there are udev, ifconfig, iw stuff from 2012 in there that maybe incompatible with Kernel 4.1 and up. That has nothing to do with specific Raspberry Pi builds. I am running a fully updated Ubuntu ...
by rpdom
Wed Jun 13, 2018 7:33 pm
Forum: Troubleshooting
Topic: Pi not booting up.
Replies: 2
Views: 95

Re: Pi not booting up.

wh7qq wrote:
Wed Jun 13, 2018 6:40 pm
Where are you getting the uSD cards? 1.7Gb sounds like you might have gotten a counterfeit.
It'll be a NOOBS card after initial installation has completed. 1.7GB is about the size of the FAT partition on NOOBS.
by rpdom
Wed Jun 13, 2018 7:31 pm
Forum: Beginners
Topic: entering the logical OR operation (pipe symbol) in terminal
Replies: 7
Views: 181

Re: entering the logical OR operation (pipe symbol) in terminal

Its also often called a FIFO (first in, first out). That is, the first byte the producer writes to the pipe is the first byte the consumer reads (compare that to a LIFO which is a stack). Its popular and intuitive, for example people often write:- cat xxx | sort instead of sort <xxx or sort xxx The...
by rpdom
Wed Jun 13, 2018 7:27 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 15
Views: 474

Re: CM3 module crash after ejecting sd card

PhilE wrote:
Wed Jun 13, 2018 7:16 pm
Did you ever try pulling the card out while, for example, recording video to it?
No. I was very careful to wait until everything had finished writing to the card. It is a Windows Mobile phone (from around 2006). Still works a bit.
by rpdom
Wed Jun 13, 2018 7:25 pm
Forum: Beginners
Topic: remove/delete all dependencies
Replies: 3
Views: 159

Re: remove/delete all dependencies

Did the install instructions have "make install" or something like that in? Because sometimes there are "make uninstall" options as well.
by rpdom
Wed Jun 13, 2018 7:08 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 15
Views: 474

Re: CM3 module crash after ejecting sd card

I think you've found one of the reasons that mobile phones do not have externally accessible SD card storage, if they have it it is under the battery or inserted with the SIM card... My old phone did have an external microSD slot. It was very handy for getting photos off it an onto my PC. My curren...
by rpdom
Tue Jun 12, 2018 12:44 pm
Forum: Advanced users
Topic: Turning off power on a PI Zero W
Replies: 6
Views: 266

Re: Turning off power on a PI Zero W

Generally it is a very bad idea to remove power from a Pi while it is running. Although you can get away with it at times, you can end up with a badly damaged file system or even a permanently corrupted SD card. The Pi was not designed to be an embedded system, it is a full Linux system, the same as...
by rpdom
Tue Jun 12, 2018 5:29 am
Forum: General discussion
Topic: How do I edit my post?
Replies: 13
Views: 369

Re: How do I edit my post?

davidcoton wrote:
Mon Jun 11, 2018 8:55 pm
Not so sure about deletion -- that may only be allowed before a reply is posted.
Deletion or replies has always been possible until someone has posted another reply in my experience.
by rpdom
Tue Jun 12, 2018 5:10 am
Forum: Troubleshooting
Topic: Win32 Disk Imager 1.0 Error 5:
Replies: 5
Views: 142

Re: Win32 Disk Imager 1.0 Error 5:

The SD copier shouldn't need the new card to be pre-formatted as it reformats the card when it runs.

Having said that, I wonder if there is a bug that prevents it formatting if the card is already formatted in a certain way? I have no way to test this at the moment.

Go to advanced search