Go to advanced search

by trejan
Sat Dec 14, 2019 4:49 pm
Forum: Beginners
Topic: Why it started to use swap when only 100MB of RAM is used?
Replies: 3
Views: 104

Re: Why it started to use swap when only 100MB of RAM is used?

You're doing or done something with a high amount of I/O as htop shows the cache to be consuming most of memory. The Linux swap algorithm tries to weigh up the benefits of keeping inactive pages in memory vs using those pages for cache. It doesn't just wait until a predefined threshold to start swap...
by trejan
Sat Dec 14, 2019 4:29 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Enabling multi SPI buses
Replies: 2
Views: 41

Re: Enabling multi SPI buses

Not possible. Your Pi 3+ doesn't have those extra SPI interfaces and you're limited to spi0 and spi1. The Pi 4 added several additional SPI controllers in the new BCM2711 SoC. See the BCM2711 preliminary datasheet for the pin mapping for those as there will likely be conflicts. It won't work for eve...
by trejan
Sat Dec 14, 2019 12:19 am
Forum: HATs and other add-ons
Topic: Uputronics U-blox GPS HAT - fixing HAT and GPSD service baud rate to 115200 on power up / reboot?
Replies: 4
Views: 307

Re: Uputronics U-blox GPS HAT - fixing HAT and GPSD service baud rate to 115200 on power up / reboot?

I'll have another look again for the '-s' option, last time all I found was posts/pages saying that I'd have to re-compile gpsd ..... Uhh. Never mind. The Debian version doesn't have that option. I've got the development version which added -s to set the speed. I didn't realise it was only recently...
by trejan
Sat Dec 14, 2019 12:06 am
Forum: HATs and other add-ons
Topic: Uputronics U-blox GPS HAT - fixing HAT and GPSD service baud rate to 115200 on power up / reboot?
Replies: 4
Views: 307

Re: Uputronics U-blox GPS HAT - fixing HAT and GPSD service baud rate to 115200 on power up / reboot?

What Raspbian are you running? You can disable the autobaud feature and force it by using the -s option for gpsd. Add it in /etc/default/gpsd You don't need the gpsctl commands once you've saved it in the Ublox module. If your GPS HAT is old then you'll need to add a lithium coin cell. Newer ones ha...
by trejan
Fri Dec 13, 2019 11:39 pm
Forum: C/C++
Topic: Best framework for maximum video performance?
Replies: 5
Views: 301

Re: Best framework for maximum video performance?

Be aware that OMX and MMAL aren't able to decode H265 even on a Pi 4. Read https://github.com/raspberrypi/firmware/issues/1168 If you're only going to be using H264 files then this isn't a problem.
by trejan
Fri Dec 13, 2019 11:35 pm
Forum: Camera board
Topic: Is a 30-pin camera compatible with Raspberry Pi Zero W?
Replies: 5
Views: 130

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

Is connecting through an NHD-FFC30, and then through 15 of those pins into the 15-pin end of the Pi 15-pin to MIPI CSI-2 a possibility? No. Your camera is not compatible at all with the Pi. Any attempt to jam it into the socket or via an adapter is going to risk the Pi and the camera. It definitely...
by trejan
Fri Dec 13, 2019 11:21 pm
Forum: Troubleshooting
Topic: GUI Hung In Password Loop
Replies: 3
Views: 90

Re: GUI Hung In Password Loop

It isn't the password. It immediately throws you back out again because something is stopping it from loading the desktop.

SSH into it and try "sudo rm /home/pi/.Xauthority"
by trejan
Fri Dec 13, 2019 11:17 pm
Forum: Beginners
Topic: Downloading Noobs or Raspbian.
Replies: 6
Views: 448

Re: Downloading Noobs or Raspbian.

This is evidence of a server misconfiguration: If the server is overloaded, the correct behaviour is (1) temporarily stop accepting new download requests, or (2) throttle transfer speeds as much as necessary to maintain continuous throughput, without pauses, so a timeout does not occur. What eviden...
by trejan
Fri Dec 13, 2019 10:21 pm
Forum: Windows 10 for IoT
Topic: How to Install Microsoft windows 10 IOT on Raspberry PI 4 ?
Replies: 4
Views: 170

Re: How to Install Microsoft windows 10 IOT on Raspberry PI 4 ?

Don't hold your breath for Pi 4 support as it looks like Microsoft has abandoned development of Windows 10 IoT Core for Raspberry Pi. They only made a single release for the 3B+ a couple years ago and it was a technical preview.
by trejan
Fri Dec 13, 2019 7:57 pm
Forum: General discussion
Topic: Raspberry Pi 3B+ and arm processor security
Replies: 3
Views: 151

Re: Raspberry Pi 3B+ and arm processor security

You only care about this CVE if you're trying to use TrustZone to separate the OS and your secure kernel. The flaw is that nothing restricts a privileged attacker in the EL1 OS from using the built-in debugging hardware to interfere with the EL3 secure kernel. TrustZone is not used by Raspbian or an...
by trejan
Fri Dec 13, 2019 7:37 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

OK, think I've found the issue. My home directory contained a file .bash_profile and none of my other Pi's had the file. Removing it and now the coloured text is back. Yeah. I've worked out why it was doing this now and why I didn't think .bash_profile existed. The overly complicated explanation is...
by trejan
Fri Dec 13, 2019 6:59 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

That depends on what you are connecting from. I connect to my Raspbian Buster Lite Pis from a laptop running the Debian Raspberry Pi Desktop. TERM on the laptop is xterm and the same when I connect with SSH to the Pi. Yeah. SSH will pass it through but still would be handy to know how you're connec...
by trejan
Fri Dec 13, 2019 5:36 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

I'm running Raspbian Lite, no gui or no lxterminal anyway. That would have been helpful to state in the original post. 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...
by trejan
Fri Dec 13, 2019 5:21 pm
Forum: HATs and other add-ons
Topic: USB HUB HAT not working
Replies: 6
Views: 123

Re: USB HUB HAT not working

I think there is a problem with the USB hub HAT or that little micro USB to micro USB bridge. As alphanumeric mentioned, the GPIO header connection is for power but the PWR LED is lit so presumably that is connected. The other connection made on the GPIO header is RX/TX for the onboard USB to serial...
by trejan
Fri Dec 13, 2019 5:12 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

Yeah. The .bashrc file is fine which is why when you run bash again it gives you the colours. The problem is that the bash spawned by lxterminal isn't running in interactive mode. Not sure why though. If you run lxterminal, it should spawn a new window. Does this bash have colour? Is this a custom s...
by trejan
Fri Dec 13, 2019 4:50 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

Not sure why it isn't working. Everything looks to be correct. Grasping at straws now. .bashrc and .profile should have -rw-r--r-- permissions and user/group should be your user. You can try running "bash -v" and it'll show you everything its loading. The .bashrc files for alias and dircolors should...
by trejan
Fri Dec 13, 2019 3:52 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

Does $HOME/.profile exist? Stock copy is /etc/skel/.profile
by trejan
Fri Dec 13, 2019 3:10 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

Odd. It looks like it isn't even loading .bashrc

What does echo $SHELL say?
by trejan
Fri Dec 13, 2019 2:32 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

Does it have an alias for ls if you just run "alias"? It should show: $ alias alias egrep='egrep --color=auto' alias fgrep='fgrep --color=auto' alias grep='grep --color=auto' alias ls='ls --color=auto' It is all setup in $HOME/.bashrc # enable color support of ls and also add handy aliases if [ -x /...
by trejan
Fri Dec 13, 2019 2:26 pm
Forum: Troubleshooting
Topic: (SOLVED) command line does not show coloured text for prompt, dirs, scripts etc.
Replies: 23
Views: 264

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

Does /usr/bin/dircolors exist? If it does exist, can you run it? It won't enable colour support if that binary is missing.
by trejan
Fri Dec 13, 2019 2:01 pm
Forum: HATs and other add-ons
Topic: TV-HAT and pcm5102 DAC
Replies: 3
Views: 74

Re: TV-HAT and pcm5102 DAC

Do not understand the HAT ID EEPROM issue completely, but I guess I figure that out. Proper HATs have an I2C EEPROM connected to the ID_SC and ID_SD pins on the GPIO header. The Pi firmware will read that EEPROM at startup and load the requested DT overlay so the user doesn't need to set up anythin...
by trejan
Fri Dec 13, 2019 1:21 pm
Forum: HATs and other add-ons
Topic: TV-HAT and pcm5102 DAC
Replies: 3
Views: 74

Re: TV-HAT and pcm5102 DAC

They don't conflict. The TV HAT uses SPI0 which is GPIO8, GPIO9, GPIO10 and GPIO11. The TV HAT ID EEPROM is on the usual GPIO0 and GPIO1 but can't share with another HAT ID EEPROM due to address clash. Your I2S DAC will need to be manually configured.
by trejan
Fri Dec 13, 2019 2:15 am
Forum: General discussion
Topic: ios
Replies: 7
Views: 2418

Re: ios

Now that the iBoot(bootrom) code is public and a lot has been decrypted due to checkm8 exploit would it be possible to copy the code from the bootrom and flash it on to the VC-4? No. iOS is very tightly linked to the Apple hardware. The Pi hardware is completely different and not compatible at all....

Go to advanced search