Go to advanced search

by rpdom
Wed Aug 04, 2021 7:01 pm
Forum: Other programming languages
Topic: Solved Assembly bx r3 stack get out of control
Replies: 9
Views: 559

Re: Solved Assembly bx r3 stack get out of control

You can't easily move anything other than an 8-bit value directly into a register. That number can be shifted to the left though.

But as you're using a 9-bit value you will probably need to

Code: Select all

mov r0, #0xff
add r0, #0x100
by rpdom
Wed Aug 04, 2021 5:09 pm
Forum: General discussion
Topic: Zip keeps running out of memory
Replies: 105
Views: 1603

Re: Zip keeps running out of memory

NTFS is going to be slow for a start. Do you know which USB to SATA controller that drive uses? If it is one of the jMicron ones it may be getting errors and having to retry as they don't work well. lsusb will show you the relevant info. If you get a line like: Bus 001 Device 004: ID 152d:0578 JMicr...
by rpdom
Wed Aug 04, 2021 3:52 pm
Forum: General discussion
Topic: Zip keeps running out of memory
Replies: 105
Views: 1603

Re: Zip keeps running out of memory

as I have said I think its some sort of disk cache It isn't the kernel cache. It only uses spare RAM and will automatically shrink the cache if a program needs that RAM. disk cache like write or read Yes. that is the kernel cache. You still haven't shown any evidence of this apart from saying that ...
by rpdom
Wed Aug 04, 2021 1:48 pm
Forum: General discussion
Topic: Zip keeps running out of memory
Replies: 105
Views: 1603

Re: Zip keeps running out of memory

kcajminer2312 wrote:
Wed Aug 04, 2021 11:54 am
there is no /root/.configrc on my system maybe its on the user pi
Filenames starting with a dot "." are hidden by default. Have you checked with "sudo ls -a /root" ?
by rpdom
Wed Aug 04, 2021 10:21 am
Forum: General discussion
Topic: Zip keeps running out of memory
Replies: 105
Views: 1603

Re: Zip keeps running out of memory

That free output looks normal. Where do you get
kcajminer2312 wrote:
Wed Aug 04, 2021 10:02 am
kswapd0 seems to think the pi only has 500MB
from?
by rpdom
Wed Aug 04, 2021 10:00 am
Forum: General discussion
Topic: Zip keeps running out of memory
Replies: 105
Views: 1603

Re: Zip keeps running out of memory

dist-upgrade updates the OS, I dont think full-upgrade does that dist-upgrade and full upgrade are just different names for the same thing. after changing the swapiness to 50 swap is filling before RAM Idle processes will be swapped out to free up RAM for other things. The higher the value of swapp...
by rpdom
Wed Aug 04, 2021 6:33 am
Forum: General discussion
Topic: STICKY: Raspberry Pi OS (64 bit) beta test version feedback
Replies: 877
Views: 208627

Re: STICKY: Raspberry Pi OS (64 bit) beta test version feedback

I'm having an issue with the latest update to kernel 5.10.52-v8+ #1440 on a Pi 3B+. It fails to boot when a monitor isn't attached. I'm trying to narrow down the cause and rule out any changes I have made to the OS. So far I've worked out that it stalls at the /boot partition check. Here's the end o...
by rpdom
Wed Aug 04, 2021 6:23 am
Forum: Troubleshooting
Topic: Issue after a recent update
Replies: 1
Views: 79

Re: Issue after a recent update

It looks like your libbz2-1.0 package has become corrupted somehow. That's not good. It may mean your SD card is failing. As that means apt is out of action, you'll need to try reinstalling the package another way. First, download the package file: wget http://raspbian.raspberrypi.org/raspbian/pool/...
by rpdom
Wed Aug 04, 2021 5:55 am
Forum: C/C++
Topic: Reading GPIO Registers on a Raspberry Pi from C or C++
Replies: 13
Views: 353

Re: Reading GPIO Registers on a Raspberry Pi from C or C++

As cleverca22 said earlier, I'd recommend to mmap /dev/gpiomem, as then you don't have to worry about start addresses at all. All the GPIO offsets will be from 0. That's what I use on my code that runs on any Pi. You also don't need to be root to access it, just a member of the gpio group. Also ther...
by rpdom
Tue Aug 03, 2021 7:50 pm
Forum: General discussion
Topic: On Providing Power to Raspberry Pis
Replies: 4
Views: 113

Re: On Providing Power to Raspberry Pis`

Check the thickness and quality of the wires connecting each Pi to the power supply.

Check the power supply is giving out a steady 5V (or 5.1 may be better to allow for a little drop in the wires). The power warning symbol is voltage, not current.
by rpdom
Mon Aug 02, 2021 8:54 pm
Forum: Troubleshooting
Topic: Kernel version on Pi 3
Replies: 4
Views: 130

Re: Kernel version on Pi 3

Try updating the Pi 3 again. 5.10.17 is a recent kernel, but 5.10.52 has just come out within the last week. Obviously you need to reboot afterwards for the new kernel to be loaded.
by rpdom
Mon Aug 02, 2021 5:45 am
Forum: Troubleshooting
Topic: won't boot after clone
Replies: 24
Views: 508

Re: won't boot after clone

I don't know much about Macs, not used one for a while, but it might be worth trying /dev/rdisk2 instead of /dev/disk2. You might see a speed-up of your copy.
by rpdom
Sun Aug 01, 2021 3:51 pm
Forum: General discussion
Topic: Change the order of panel applets
Replies: 2
Views: 67

Re: Change the order of panel applets

Right-click the taskbar. Select Add / Remove Panel Items. Select the applet you want to move and use "Up" and "Down" to move it to the left or right.
by rpdom
Sun Aug 01, 2021 8:07 am
Forum: Troubleshooting
Topic: Cannot load desktop after last update - *ERROR* Failed to allocate from CMA
Replies: 2
Views: 98

Re: Cannot load desktop after last update - *ERROR* Failed to allocate from CMA

How much memory do you have assigned to the GPU? It should be somewhere between 64MB and 256MB. Having higher than that can cause problems. I believe there was a change to how memory is used in a recent update.
by rpdom
Sat Jul 31, 2021 1:19 pm
Forum: Media centres
Topic: TV HAT vs Hauppauge WinTV-dualHD, and Pi models
Replies: 3
Views: 180

Re: TV HAT vs Hauppauge WinTV-dualHD, and Pi models

I'm using a Pi 3B (not plus) with the TV-HAT and it works fine for recording with TV Headend. I don't watch live TV on it, or do playback through the TV Headend interface. Instead I access the files using NFS and play them on a PC with mplayer, or a Pi Zero with omxplayer. My Pi has been sitting in ...
by rpdom
Thu Jul 29, 2021 7:33 pm
Forum: Troubleshooting
Topic: BME688 Weather Sensor
Replies: 3
Views: 96

Re: BME688 Weather Sensor

The BME280 sensor in your screenshot has the holes slightly out of line which forces a better connection to the pins without needing soldering. Your BME688 sensor presumably has the holes in a more normal alignment, which means they won't make a reliable connection without soldering.
by rpdom
Thu Jul 29, 2021 6:06 am
Forum: Python
Topic: Before I build, scoreboard questions.
Replies: 8
Views: 306

Re: Before I build, scoreboard questions.

Yes, that is possible. You can mix different types of WS2812B LEDs, but it might be easier to driver them using two separate channels. The Pi Zero doesn't have an analogue audio output, but it is possible to add a circuit with a small amp to do that for you. Or go for something like a Pi 3A+ - that ...
by rpdom
Wed Jul 28, 2021 2:12 pm
Forum: Troubleshooting
Topic: My Raspberry Pi 4 broke for no apparent reason - and was fixed in a very counterintuitive way!
Replies: 11
Views: 641

Re: My Raspberry Pi 4 broke for no apparent reason - and was fixed in a very counterintuitive way!

I tried shorting 3.3V to ground. The green LED blinked again, and this time I saw the Pi come to life!!! Somewhere you have something leaking voltage onto the 3.3V line. The MXL PMIC chip will not supply power to the Pi if it detects there is already voltage on the 3.3V line. By briefly shorting th...
by rpdom
Wed Jul 28, 2021 10:09 am
Forum: General discussion
Topic: How do you upload an image to this site?
Replies: 2
Views: 134

Re: How do you upload an image to this site?

Milliways wrote:
Wed Jul 28, 2021 9:41 am
How do you upload an image to this site?

There are [img] tags but apparently to way to upload.
Use the Attachments button, then you can upload an image file of up to 256KB. Then select the "show inline" option to embed the image with the correct tags.
by rpdom
Wed Jul 28, 2021 8:49 am
Forum: Beginners
Topic: LEDs?
Replies: 36
Views: 884

Re: LEDs?

The amount of power those LEDs will take shouldn't be enough to cause any problems. You'll still have 1200mA total available for the USB ports.
by rpdom
Wed Jul 28, 2021 8:22 am
Forum: Beginners
Topic: LEDs?
Replies: 36
Views: 884

Re: LEDs?

I can help with a diagram. I believe this is what is required.
LEDs.png
LEDs.png (5.45 KiB) Viewed 397 times
by rpdom
Tue Jul 27, 2021 7:12 pm
Forum: Beginners
Topic: update node.js problem
Replies: 18
Views: 549

Re: update node.js problem

mustafasei wrote:
Tue Jul 27, 2021 7:08 pm
sed -i 5,18d /etc/apt/sources.list
sed: couldn't open temporary file /etc/apt/sedhrErG9: Permission denied
Sorry, my fault. I forgot to say you need to put sudo in front of the sed command. I have corrected my previous post.
by rpdom
Tue Jul 27, 2021 6:40 pm
Forum: Beginners
Topic: update node.js problem
Replies: 18
Views: 549

Re: update node.js problem

If you type sudo nano /etc/apt/sources.list There are a few ways to do this. the most common is to use sudo nano /etc/apt/sources.list to let you edit the file, delete the lines you don't need, and the save the file by pressing Ctrl-o to "Write Out", then Ctrl-x to "Exit) as shown at ...
by rpdom
Tue Jul 27, 2021 3:38 pm
Forum: Beginners
Topic: update node.js problem
Replies: 18
Views: 549

Re: update node.js problem

below is the list : cat /etc/apt/sources.list deb http://mirrordirector.raspbian.org/raspbian/ jessie main contrib non-free rpi # Uncomment line below then 'apt-get update' to enable 'apt-get source' #deb-src http://archive.raspbian.org/raspbian/ jessie main contrib non-free rpi deb http://feeds.la...

Go to advanced search