Go to advanced search

by rpdom
Wed Jun 20, 2018 5:08 am
Forum: Beginners
Topic: Why the raspberry does not require an initial RAM file system?
Replies: 18
Views: 599

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

In the Debian installer there used to be an option to select the type of initrd used. Either one tailored to the system it was being installed on, or one that contains drivers for all of the most common devices. The latter case was handy when installing to a hard disk that may be switched between di...
by rpdom
Tue Jun 19, 2018 7:02 am
Forum: Beginners
Topic: Copying files
Replies: 4
Views: 187

Re: Copying files

That sounds like a fairly simple bash script to me.

Do you want it to run automatically when the card is inserted, or type a command manually?

I haven't got time to look at it now (bus to catch), but maybe later.
by rpdom
Mon Jun 18, 2018 9:03 pm
Forum: Troubleshooting
Topic: [Resolved] Electrical noise if ethernet is connected.
Replies: 9
Views: 202

Re: Electrical noise if ethernet is connected.

It doesn't matter. A crossover cable will still work, in the absence of other problems. That's what autosensing does. Thank you, I"m aware of how autosensing works. However, your missing my point. I'm trying to eliminate a possible point of confusion for the OP. If anything you seem to have added a...
by rpdom
Mon Jun 18, 2018 6:28 pm
Forum: Troubleshooting
Topic: keyboard configuration problem?
Replies: 9
Views: 200

Re: keyboard configuration problem?

DougieLawson wrote:
Mon Jun 18, 2018 11:21 am
Octothorp removes any differences due to where you live and how you speak.
Yep, because it doesn't matter where you are from, no one knows what you are talking about. :lol:
by rpdom
Mon Jun 18, 2018 6:19 pm
Forum: General discussion
Topic: recent serial i/o tutorial
Replies: 10
Views: 273

Re: recent serial i/o tutorial

picandies wrote:
Mon Jun 18, 2018 4:39 pm
what do you mean
is the hardware SPI,
...isn't that what is needed, what else is there?
As opposed to software (bit-banged) SPI.
by rpdom
Mon Jun 18, 2018 4:50 am
Forum: General discussion
Topic: rassberry pi help me!!!!!!!!!!!!!!!!
Replies: 3
Views: 194

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: 6
Views: 236

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: 450

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: 31
Views: 3447

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: 15
Views: 382

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: 450

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: 134

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: 450

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: 158

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: 450

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: 278

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: 450

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: 37
Views: 1348

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: 101

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: 226

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: 18
Views: 599

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: 2563

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: 101

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: 197

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: 17
Views: 578

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.

Go to advanced search