Go to advanced search

by rpdom
Wed Sep 30, 2020 6:11 pm
Forum: Beginners
Topic: Write access to mount point
Replies: 2
Views: 42

Re: Write access to mount point

Use NFS instead of CIFS to share between Linux systems like the Pi. It will be faster and supports native Linux permissions. It is a lot easier to configure too.
by rpdom
Wed Sep 30, 2020 6:29 am
Forum: General discussion
Topic: Raspberrypi.org website keeps from upgrading to Buster ...
Replies: 26
Views: 1119

Re: Raspberrypi.org website keeps from upgrading to Buster ...

N.B.: as an "apache" package exists in the Raspbian repository, I wonder the more why "apt install apache" failed, but only "apt install apache2" worked ...? A long time ago (in Debian) there was Apache 1.3. That was the default "apache" package that was installed. Then there was Apache 2.0 release...
by rpdom
Tue Sep 29, 2020 4:06 pm
Forum: Beginners
Topic: Update jessie to a newer version of 7-zip
Replies: 8
Views: 170

Re: Update jessie to a newer version of 7-zip

It might be possible, but it probably won't be easy. Looking at the version of p7zip in Stretch (16.02) it seems that Jessie has a valid version of libc6 and libgcc1, but the version of libstdc++6 is too old. Installing the newer libstdc++6 from Stretch will require installing gcc-6-base. Installing...
by rpdom
Tue Sep 29, 2020 9:11 am
Forum: General discussion
Topic: PLC with PI communication
Replies: 4
Views: 180

Re: PLC with PI communication

Hey! I was reading about the snap7 libraries and things but on their pages I see it only supports raspberry pi 1 and 2 in the os page. I had a look at the snap7 pages. It looks like the instructions for building for Raspberry Pi are very out of date. They build an armv6 version, which would be need...
by rpdom
Mon Sep 28, 2020 6:22 pm
Forum: Advanced users
Topic: RPI4 - USB Boot SSD
Replies: 17
Views: 456

Re: RPI4 - USB Boot SSD

Did you make sure that the contents of cmdline.txt is still all on one line?
by rpdom
Mon Sep 28, 2020 6:08 pm
Forum: Advanced users
Topic: RPI4 - USB Boot SSD
Replies: 17
Views: 456

Re: RPI4 - USB Boot SSD

All those "uas..." messages. The Pi is not getting along with the USB to SATA adaptor on your SSD/Hard Disk. It might need the "quirks" setting on cmdline.txt. Can you check which controller is being used? Just use "lsusb" (That's LSUSB in lower-case) at a command prompt. It should show something li...
by rpdom
Sat Sep 26, 2020 6:35 pm
Forum: C/C++
Topic: questions to libs having a .h file and a .c file
Replies: 29
Views: 465

Re: questions to libs having a .h file and a .c file

The .h file just declares the functions, like "This is how to call this thing". The .c file actually has the real things in it. including the .h file at the start of the .c file makes sure the compiler knows how to call the functions before they are defined later in the .c file. This is important if...
by rpdom
Sat Sep 26, 2020 5:37 pm
Forum: General discussion
Topic: Q: How much would a Raspberry pi 4 costed with two CPUs
Replies: 38
Views: 969

Re: Q: How much would a Raspberry pi 4 costed with two CPUs

skyler0x wrote:
Sat Sep 26, 2020 5:27 pm
Hi everyone. I was wondering how much the Raspberry pi 4 would cost theoretically, if it had two of the same CPUs?
I'm not sure that's possible. That would mean removing two of the existing CPUs. If you really want that you can disable two of the four CPUs.
by rpdom
Sat Sep 26, 2020 1:58 pm
Forum: General discussion
Topic: Unboxing a Raspberry 4 (8GB version)
Replies: 24
Views: 614

Re: Unboxing a Raspberry 4 (8GB version)

The board itself is nicely made, but the SD card slot feels so cheap again. I paid close to 100€ for that device, why can't you add the 2 cents for a "springy" SD card slot? The *springy thing* on previous RPis was continually being broken by users trying to just pull out SD Card, rather than push ...
by rpdom
Sat Sep 26, 2020 12:44 pm
Forum: Advanced users
Topic: APT FULL-UPGRADE asks to reboot for new version...
Replies: 20
Views: 555

Re: APT FULL-UPGRADE asks to reboot for new version...

The OP **could*"be running Raspberry Pi OS ARMHF with 64bit Kernel and 32bit Userland ? Yes, but wouldn't that report a v8 kernel? The OP wrote above: Yes, it's a 4B+ running 64bit. So it is time for dusting off the Crystal Ball, as RPT have not yet sold a 4B+ and we need to see into the future.......
by rpdom
Sat Sep 26, 2020 12:36 pm
Forum: Gaming
Topic: Can you use a raspberry pi 4 with an Android phone to increase speed?
Replies: 1
Views: 69

Re: Can you use a raspberry pi 4 with an Android phone to increase speed?

No. There is no high speed path you can use between a mobile phone and a Pi.
by rpdom
Sat Sep 26, 2020 11:29 am
Forum: Advanced users
Topic: APT FULL-UPGRADE asks to reboot for new version...
Replies: 20
Views: 555

Re: APT FULL-UPGRADE asks to reboot for new version...

fruitoftheloom wrote:
Sat Sep 26, 2020 9:55 am
The OP **could*"be running Raspberry Pi OS ARMHF with 64bit Kernel and 32bit Userland ?
Yes, but wouldn't that report a v8 kernel?
by rpdom
Sat Sep 26, 2020 9:41 am
Forum: C/C++
Topic: questions to C libs also for g++
Replies: 28
Views: 519

Re: questions to C libs also for g++

So what about this Perhaps instead (what I can possibly suspect from Paeryn's post) something like, e.g., #ifdef __cplusplus extern "C" { extern int ads1115Setup (int pinBase, int i2cAddress) ; } #else extern int ads1115Setup (int pinBase, int i2cAddress) ; #endif It all adds up to the same thing. ...
by rpdom
Sat Sep 26, 2020 6:19 am
Forum: C/C++
Topic: Differentiating between Pi 4 and Pi 3?
Replies: 11
Views: 421

Re: Differentiating between Pi 4 and Pi 3?

there is little reason to run popen on `cat /sys/firmware/devicetree/base/model` when you could just fopen `/sys/firmware/devicetree/base/model` directly though That is pretty much what the code I mentioned earlier does (just uses /proc/device-tree/model instead). My code is something like: int cou...
by rpdom
Sat Sep 26, 2020 6:12 am
Forum: General discussion
Topic: Why is using an RTC so complicated?
Replies: 17
Views: 524

Re: Why is using an RTC so complicated?

Why disable/remove fake-hwclock? It would be great if fake-hwclock would detect if an RTC is installed, and would not run on startup when an RTC is detected. That is an idea. Why not suggest it in the right place? Report it as a "wishlist" bug against the "fake-hwclock" package using Debian report ...
by rpdom
Sat Sep 26, 2020 5:55 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How is USB interface organized on Pi 3B?
Replies: 6
Views: 152

Re: How is USB interface organized on Pi 3B?

$50 is a lot for an SSD. I do not want to get involved into arguments here, but you have to include everything: usb adapter, cable, mounting hardware, shipping, and taxes. Ok, so I didn't include mounting hardware. I don't use any other than a few spacers glued between the Pi case and the SSD. USB ...
by rpdom
Sat Sep 26, 2020 5:48 am
Forum: Troubleshooting
Topic: Mount SMB share from Nvidia Shield to Raspberry Pi
Replies: 5
Views: 119

Re: Mount SMB share from Nvidia Shield to Raspberry Pi

you have a extra / in the command. Where? That looks like a normal cifs mount command to me. What am I doing wrong? EDIT: I should also note that, if I add in Kodi a file location pointing to smb:/my.shield.ip with the same username and password supplied to the mount command, I'm able to enter and ...
by rpdom
Sat Sep 26, 2020 5:42 am
Forum: Advanced users
Topic: APT FULL-UPGRADE asks to reboot for new version...
Replies: 20
Views: 555

Re: APT FULL-UPGRADE asks to reboot for new version...

GuruSR wrote:
Fri Sep 25, 2020 11:38 pm
GlowInTheDark wrote:
Fri Sep 25, 2020 11:09 pm
Have we identified which OS OP is running?

Might guess Raspbian, but it could be otherwise.
Yes, it's a 4B+ running 64bit.

GuruSR.
There is no such thing (currently) as a 4B+. There is a 4B.

If you are running a v7 kernel you are running 32-bit. The v8 kernel is 64-bit.
by rpdom
Fri Sep 25, 2020 7:52 pm
Forum: Beginners
Topic: LCD 1602 not recognized.
Replies: 12
Views: 218

Re: LCD 1602 not recognized.

The SDA and SCL were on different logical GPIOs on early model RPis. If your 1602 add-on was designed for those early RPis you'll need a tweak or two to the software to make it work on any RPi with 40 pin GPIO. What tweaks exactly ? Well, on the original Pi 1B pins 3 and 5 were i2c-0. On all other ...
by rpdom
Fri Sep 25, 2020 7:49 pm
Forum: Beginners
Topic: How to switch many (up to 24) relay's via the GPIO
Replies: 17
Views: 426

Re: How to switch many (up to 24) relay's via the GPIO

You are correct rpdom that the jumper's not set right for some users. I stole that from a random Ali ad long tome ago. Unfortunately, between work and home, I barely have time to scribble in couple red lines so not likely to pull out the Nikon and re-author a new pic any time soon. Intent was to sh...
by rpdom
Fri Sep 25, 2020 6:18 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How is USB interface organized on Pi 3B?
Replies: 6
Views: 152

Re: How is USB interface organized on Pi 3B?

I do not look to invest $50 into an SSD attachment because I already own enough USB keys to make it work, but I do have to do something about the Pi choking on IO. $50 is a lot for an SSD. Bare 60GB SSDs start around $14 and a USB2 to SATA adaptor cost a $few. Also 120GB for $20 or 240GB for $28 (t...
by rpdom
Fri Sep 25, 2020 12:36 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: How is USB interface organized on Pi 3B?
Replies: 6
Views: 152

Re: How is USB interface organized on Pi 3B?

Lucifer The Accuser wrote:
Thu Sep 24, 2020 10:38 pm
Do all 4 ports hang off the same bus to the CPU via a hub?
Yes, they do. The Pi 0 to 3 only have one USB2 channel from the SoC. On the 1B-3B this goes to a combined USB Hub/LAN chip. The 3B+ has a slightly different chip with two USB hubs and a LAN port.
by rpdom
Fri Sep 25, 2020 12:31 pm
Forum: Beginners
Topic: Is it possible to partition 64Gb SD card to use as USB external storage?
Replies: 5
Views: 136

Re: Is it possible to partition 64Gb SD card to use as USB external storage?

Yes, but some versions of other OSes will only recognise the first partition. You can format 64GB as FAT under Linux and it will be recognised.

If you are only going to use the card on a Linux system, you should probably use ext4 for performance and functionality.
by rpdom
Fri Sep 25, 2020 12:18 pm
Forum: General discussion
Topic: Raspberrry pi zero input pin voltage regulator
Replies: 3
Views: 94

Re: Raspberrry pi zero input pin voltage regulator

A resistor divider is one way. If you know your "9V" source is going to be pretty much exactly 9V DC, you could use a 3K3 and 6K8 resistor to drop the voltage to about 3V, which is sufficient to trigger the GPIO input. Connect it like this: 9V-----[ 6K8 ]-----GPIO-----[ 3K3 ]-----0V/GND That should ...
by rpdom
Fri Sep 25, 2020 6:16 am
Forum: Beginners
Topic: How to switch many (up to 24) relay's via the GPIO
Replies: 17
Views: 426

Re: How to switch many (up to 24) relay's via the GPIO

emma1997 wrote:
Thu Sep 24, 2020 10:30 pm
No conflict because opto LED is not connected in my diagram.
The diagram is correct, but the picture is not. The yellow Jumper J5 is shown as in place and is connecting 5V JD-VCC to VCC on the opto LED. Remove that jumper as well and it should be safe.

Go to advanced search