Go to advanced search

by rpdom
Sat Dec 14, 2019 7:16 am
Forum: General discussion
Topic: Raspberry pi 4 bcache kernel module
Replies: 2
Views: 50

Re: Raspberry pi 4 bcache kernel module

The bcache module is not included in the standard Raspbian kernel.

You could ask for it to be included in a future build, or build your own kernel based on the current one.
by rpdom
Fri Dec 13, 2019 8:15 pm
Forum: Beginners
Topic: Pi Zero W + Zerocam + Official case - is it really the wrong way round?
Replies: 2
Views: 59

Re: Pi Zero W + Zerocam + Official case - is it really the wrong way round?

Yes, I have one of those cameras and it doesn't mount correctly in the official case. The official camera modules do.
by rpdom
Fri Dec 13, 2019 7:00 pm
Forum: Camera board
Topic: Is a 30-pin camera compatible with Raspberry Pi Zero W?
Replies: 4
Views: 97

Re: Is a 30-pin camera compatible with Raspberry Pi Zero W?

Yes, you are off track. It's not possible.

Even with an adaptor the camera wouldn't work with the CSI interface on the Pi.

The Pi's HDMI is output only, so that can't connect to a camera.
by rpdom
Fri Dec 13, 2019 6:55 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 252

Re: command line does not show coloured text for prompt, dirs, scripts etc.

You said your TERM variable was set to xterm which implies running the full GUI but if you're running Raspbian Lite then something weird is going on. It should be "linux" if you're using the console or SSH. That depends on what you are connecting from. I connect to my Raspbian Buster Lite Pis from ...
by rpdom
Fri Dec 13, 2019 6:33 am
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1127

Re: [Solved] Annoying feature of 'apt-get uprgade'

While I think we are in agreement on the goodness of doing it in the general use case, if you have a generic system and I bet that many systems are running a very generic/default config of Raspbian, always accepting the new config is a fairly safe default. Likely much safer than exposing the issue ...
by rpdom
Thu Dec 12, 2019 4:50 pm
Forum: Bare metal, Assembly language
Topic: BX LR Seg Fault
Replies: 5
Views: 157

Re: BX LR Seg Fault

hippy wrote:
Thu Dec 12, 2019 2:29 pm
If you "push {lr}" at the start of your "print_r2:" routine you can probably replace your "bx lr" with "pop {pc}". That saves an instruction over 'pop {lr} / bx lr'.
I'd use "push {r0,r1,lr}" and "pop { r0,r1,pc)" to save even more instructions.
by rpdom
Thu Dec 12, 2019 4:49 pm
Forum: General discussion
Topic: New Pi 4B v1.2?
Replies: 172
Views: 11830

Re: New Pi 4B v1.2?

The boot ROM doesn't need to check the revision. The first bit of bootcode in the EEPROM can do that. The bootrom code doesn't need to know how big the EEPROM is to execute the first bit of code in it.

IIRC the revision code is held in OTP, so no changes to the ROM needed for that either.
by rpdom
Thu Dec 12, 2019 3:51 pm
Forum: Beginners
Topic: Looking for some Input Regarding Pi Zero
Replies: 7
Views: 203

Re: Looking for some Input Regarding Pi Zero

DougieLawson wrote:
Thu Dec 12, 2019 3:04 pm
The difference is that the W has on-board WiFi
and Bluetooth.
by rpdom
Thu Dec 12, 2019 11:39 am
Forum: Troubleshooting
Topic: Previously working bsh script now crashing
Replies: 11
Views: 220

Re: Previously working bsh script now crashing

You seem to have too many quotation marks on this line

Code: Select all

	telemetryLogfile=$scriptPath"/telemetry-"$telemetryDate".log"
Try this instead

Code: Select all

	telemetryLogfile="${scriptPath}/telemetry-${telemetryDate}.log"
by rpdom
Thu Dec 12, 2019 10:22 am
Forum: Troubleshooting
Topic: Pi4 solid red and green led
Replies: 34
Views: 1889

Re: Pi4 solid red and green led

PS I remember the times when used lead solder. When environmentalists forced all manufacturers to abandon lead solder (yes, it is harmful), many electronic devices began to fail. Badly soldered parts fell off. Alas, this is so. I believe that we should fight for the environment, but we should not s...
by rpdom
Thu Dec 12, 2019 9:52 am
Forum: Troubleshooting
Topic: Pi4 solid red and green led
Replies: 34
Views: 1889

Re: Pi4 solid red and green led

renice123 wrote:
Thu Dec 12, 2019 9:46 am
I was surprised that the fourth version of Raspberry went on sale in our country without an antistatic package.
It didn't.

The piece of cardboard with the pictures on is anti-static and a lot more environmentally friendly than a plastic bag.
by rpdom
Thu Dec 12, 2019 9:46 am
Forum: Graphics, sound and multimedia
Topic: How to play 2 videos simultaneously? - Pi 4 ModelB
Replies: 19
Views: 534

Re: How to play 2 videos simultaneously? - Pi 4 ModelB

omxplayer doesn't require the desktop at all, so you could boot to command line which will be faster.

Then look at a way to autostart the omxplayer instances. One method would be to put them in your crontab with the @reboot option.
by rpdom
Thu Dec 12, 2019 9:31 am
Forum: Python
Topic: Program code protection.
Replies: 3
Views: 142

Re: Program code protection.

The closest you get to that on a Pi is the serial number, but they are not completely unique (for Pi Zero to 3, at least). Also, depending on the method used to read the serial number, it isn't hard to fake it. In addition, as long as someone has physical access to the Pi and SD card, they could pre...
by rpdom
Wed Dec 11, 2019 7:51 pm
Forum: General discussion
Topic: We want "more"
Replies: 16
Views: 672

Re: We want "more"

Have you tried moving backwards through a file with more ? Have you tried using the cursor keys with more ? Have you tried searching backwards for text with more ? No. I don't know how to use "more" or "less". I stick to the old "pg" command (even though it is no longer available as standard in Bus...
by rpdom
Wed Dec 11, 2019 2:09 pm
Forum: Bare metal, Assembly language
Topic: ARM ASM && printf
Replies: 13
Views: 294

Re: ARM ASM && printf

Haha no worries ^ ^ Thumb indeed seems less frequently used (maybe it's because switching between these two at any time is so easy with a high level language compiler that people who know them tend not to care either). :) Most of the stuff I did was on an ARM2 or ARM3 (and a little on ARM1 which co...
by rpdom
Wed Dec 11, 2019 2:01 pm
Forum: General discussion
Topic: Watermark Desktop Wallpapers with IP addresses
Replies: 19
Views: 639

Re: Watermark Desktop Wallpapers

Not exactly tiny, but I have used imagemagick to put watermarks on images.
by rpdom
Wed Dec 11, 2019 1:23 pm
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1127

Re: Annoying feature of 'apt-get uprgade'

So what would APT have done; simply overwritten my existing file, or not overwritten it ? I can't see how doing either is better than how apt-get does it which gives me the choice of what to do before potentially breaking what I have. If apt does overwrite the file without asking, then I am definit...
by rpdom
Wed Dec 11, 2019 8:13 am
Forum: Bare metal, Assembly language
Topic: ARM ASM && printf
Replies: 13
Views: 294

Re: ARM ASM && printf

BX LR checks the least significant bit of LR and if it's 0, jumps to LR and treat binary data there as Arm instructions if it's 1, jumps to LR - 1 and treat binary data there as Thumb instructions In this way if your code is called from Thumb code it still returns correctly. This is the standard "r...
by rpdom
Wed Dec 11, 2019 3:41 am
Forum: Bare metal, Assembly language
Topic: ARM ASM && printf
Replies: 13
Views: 294

Re: ARM ASM && printf

I'm a bit rusty on some of this, especially the clib stuff. I think you have to use the -lc option on you ld line to link in the c library. Your "B LR" is wrong. B does not take a register as an argument. The way to return from a BL is to use "MOV PC,LR". I can't remember how to use printf from asse...
by rpdom
Wed Dec 11, 2019 2:59 am
Forum: Python
Topic: Ascii graphics in terminal
Replies: 5
Views: 178

Re: Ascii graphics in terminal

I'm sure raspi-config uses whiptail for the menus. It's just a bash script, so you can have a look at it.
by rpdom
Wed Dec 11, 2019 2:31 am
Forum: General discussion
Topic: [Solved] Annoying feature of 'apt-get uprgade'
Replies: 42
Views: 1127

Re: Annoying feature of 'apt-get uprgade'

You should find the new version of the file as /etc/xdg/lxsession/LXDE-pi/autostart.dpkg or /etc/xdg/lxsession/LXDE-pi/autostart.new I can't remember which, but dpkg usually keeps a copy of the new version or old version of a config file depending on which option you choose.
by rpdom
Tue Dec 10, 2019 6:33 pm
Forum: General discussion
Topic: Something wrong with my GPIO pins?
Replies: 2
Views: 81

Re: Something wrong with my GPIO pins?

You've got a pull down set on that pin (BCM 18/physical pin 12), so with nothing connect the pin level will be 0 which will match the False value in your test.

You'd need to pull the pin up to 3.3V to register a 1/True level and stop the "Button pressed" messages.
by rpdom
Tue Dec 10, 2019 11:43 am
Forum: The MagPi
Topic: Conquer the Command Line, 2nd Edition
Replies: 12
Views: 498

Re: Conquer the Command Line, 2nd Edition

I believe it used to be true with the earlier images of Raspbian. Then the first-boot script was set to generate new keys. I remember that being a concern, but I believe it was a false alarm. As far as I can tell, the host keys have been removed from the very first version of spindle 8 years ago: h...
by rpdom
Tue Dec 10, 2019 10:49 am
Forum: General discussion
Topic: Arduino IDE 32 bit for Raspberry
Replies: 13
Views: 385

Re: Arduino IDE 32 bit for Raspberry

Did you try running the install without sudo first?
by rpdom
Tue Dec 10, 2019 5:50 am
Forum: The MagPi
Topic: Conquer the Command Line, 2nd Edition
Replies: 12
Views: 498

Re: Conquer the Command Line, 2nd Edition

I believe it used to be true with the earlier images of Raspbian. Then the first-boot script was set to generate new keys.

Go to advanced search