Go to advanced search

by HiassofT
Sat Jun 06, 2020 1:49 pm
Forum: General discussion
Topic: USB-MSD boot EEPROM update - 2020-05-28
Replies: 194
Views: 14563

Re: USB-MSD boot EEPROM update - 2020-05-28

I was quite positively surprised that the RPi4 booted fine from a micro SD card in my Transcend USB3 and my Hama branded USB2.0 multi-cardreaders. I didn't have much luck with these on PCs/laptops, probably because the PC BIOS USB boot implementations didn't cope well with multi-LUN devices and the ...
by HiassofT
Fri May 29, 2020 11:58 am
Forum: Advanced users
Topic: vim is weird on RPi
Replies: 26
Views: 1548

Re: vim is weird on RPi

I strongly advise against editing /usr/share/vim/vim81/defaults.vim, that file will be automatically replaced whenever vim is updated (via apt upgrade). apt has stuff in place to notice that and ask you to resolve it. I'm happy with the way I've hacked it. Ahem, have you tried "apt install --reinst...
by HiassofT
Fri May 29, 2020 11:40 am
Forum: Advanced users
Topic: vim is weird on RPi
Replies: 26
Views: 1548

Re: vim is weird on RPi

/usr/share/vim/vim81/defaults.vim contains this block: " In many terminal emulators the mouse works just fine. By enabling it you " can position the cursor, Visually select and scroll with the mouse. if has('mouse') set mouse=a endif Thank you. That block of code is now a comment on my systems. I s...
by HiassofT
Thu May 28, 2020 9:01 pm
Forum: Advanced users
Topic: vim is weird on RPi
Replies: 26
Views: 1548

Re: vim is weird on RPi

I'm not a fan of default mouse support in vim either, but the hints on why "set mouse=" in /etc/vim/vimrc (or .local) doesn't work are in the /etc/vim/vimrc file: " Vim will load $VIMRUNTIME/defaults.vim if the user does not have a vimrc. " This happens after /etc/vim/vimrc(.local) are loaded, so it...
by HiassofT
Tue May 19, 2020 12:56 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

I'm not 100% sure if there are specs available, but a while ago I probed the SPI clock signal (which runs at about 30MHz) of the TV hat and the signal looked fine https://www.raspberrypi.org/forums/viewtopic.php?p=1384233#p1384233 With proper trace routing etc I'd guess 40-50MHz shouldn't be a probl...
by HiassofT
Tue May 19, 2020 11:14 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

IIRC MASH modes aren't used in the clock driver, it uses a plain fractional divider (at MASH mode 0). In slave mode the PCM clock isn't used at all (as clock is provided externally), but it's rather unclear if there might be other limiting factors in the I2S block - the 25MHz clock limit is the only...
by HiassofT
Tue May 19, 2020 8:50 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

The maximum PCM clock rate is 25MHz, see Eric's commit review here https://mailman.alsa-project.org/piperm ... 27126.html

so long,

Hias
by HiassofT
Mon May 11, 2020 6:52 pm
Forum: General discussion
Topic: Assign permanent access names for infrared sensors
Replies: 1
Views: 57

Re: Assign permanent access names for infrared sensors

The easiest way would be to make use of the existing udev setup which give you /dev/input/by-path/XXX-event symlinks. With a gpio-ir receiver on gpio 5 you'd get a /dev/input/by-path/[email protected] symlink which points to the eventX device. You should have 2 platform-ir-receiver symlin...
by HiassofT
Mon May 11, 2020 2:13 pm
Forum: Advanced users
Topic: Raspberry pi 4 B 4K 60Hz doesn't work at all
Replies: 19
Views: 768

Re: Raspberry pi 4 B 4K 60Hz doesn't work at all

Your edid only shows 4:2:0 4k modes at 297MHz pixel clock, the RPi4 doesn't support that format. Check the settings on your TV, you should find an option named "HDMI ultra deep colour" or something similar like that and enable it. This enables 4:4:4 4k modes at 594MHz pixel clock which are supported...
by HiassofT
Mon May 11, 2020 10:41 am
Forum: General discussion
Topic: irrecord problem
Replies: 7
Views: 2277

Re: irrecord problem

Chances are very high the Philips remote uses the RC5 (or maybe RC6) protocol which are prefectly supported by the kernel. Just install the ir-keytable and v4l-utils packages (the latter is not strictly needed but will bring you ir-ctl to monitor raw signals, similar to "mode2") and then check if yo...
by HiassofT
Fri May 08, 2020 12:39 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

The info in the linked thread is still valid, I'm not aware of anyone implementing this though.

And, as mentioned in the last post of that thread, you can save yourself a lot of hassle by using a different SoC with more capable audio interfaces - RPi isn't really suited for that.

so long,

Hias
by HiassofT
Wed May 06, 2020 9:00 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

bcm2835-i2s hardware is 2-channel only. You can set up the link for 8ch 24/32bit TDM but can only send/receive on 2 of the TDM slots.

so long,

Hias
by HiassofT
Sun May 03, 2020 6:22 pm
Forum: Advanced users
Topic: IR codes without LIRC?
Replies: 4
Views: 154

Re: IR codes without LIRC?

Kernel rc devices send normal input events, so you can simply read them from stdin, just like you'd do with standard keyboard input. Or you can use something like python-evdev to access the input event devices directly (your user needs to be a member of the input group to access the /dev/input/event...
by HiassofT
Sun May 03, 2020 8:56 am
Forum: Advanced users
Topic: IR codes without LIRC?
Replies: 4
Views: 154

Re: IR codes without LIRC?

Just use ir-keytable to configure IR receive and ir-ctl for sending. I'd rather stay away from lirc, it's pretty unmaintained upstream and has a bunch of known bugs. The next raspbian kernel update will enable BPF IR decoders which means the kernel will be able to decode pretty much any IR protocol ...
by HiassofT
Sat May 02, 2020 7:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

AFAIK the bootloader doesn't check the compatible property (yet) but as brcm,bcm2835 is now the recommended value it wouldn't hurt changing it. My guess is though that bcm2708 should keep working for a long time, if the bootloader started rejecting bcm2708 that would cause serious issues with HATs t...
by HiassofT
Sat May 02, 2020 7:32 pm
Forum: General discussion
Topic: How to monitor two infrared sensors individually
Replies: 4
Views: 152

Re: How to monitor two infrared sensors individually

Forgot to add: you can also configure the rc devices with different keymaps and map the same scancode eg to KEY_L on one receiver and KEY_R on the other. Then you'll get 'l' or 'r' via stdin (just like when you press the keys on a keyboard). A more general problem though might be that both IR receiv...
by HiassofT
Sat May 02, 2020 7:18 pm
Forum: General discussion
Topic: How to monitor two infrared sensors individually
Replies: 4
Views: 152

Re: How to monitor two infrared sensors individually

You can load the gpio-ir overlay multiple times (with different gpio_pin parameters), this will give you two rc, lirc and input event devices. Just use ir-keytable to configure those (either to identical or different protocols / keymaps) and read the events from the lirc or input devices (adding a u...
by HiassofT
Sun Apr 26, 2020 9:32 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: What's the reason for 24/192 khz limitation for pcm output?
Replies: 1
Views: 173

Re: What's the reason for 24/192 khz limitation for pcm output?

The limit is actually 384kHz/32bit at 2 channels, Eric Anholt confirmed that the docs state a maximum bclk of 25MHz. There are no clock sources inside the RPi that are suitable to derive audio clock rates with an integer divisor (except 19.2MHz OSC on RPi0-3 which is fine for 8kHz and 16kHz at 24bit...
by HiassofT
Fri Apr 24, 2020 8:10 pm
Forum: General discussion
Topic: Update to default Pi4 bootloader
Replies: 54
Views: 5110

Re: Update to default Pi4 bootloader

I've updated 2 of my main RPi4s to stable pieeprom firmware today and no showstoppers to report so far - both SD card boot and TFTP netboot are still working fine.

so long,

Hias
by HiassofT
Thu Apr 16, 2020 1:31 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 288
Views: 29448

Re: Moving Linux Kernel to 5.4

FWIW: my cirrus logic audio card, which uses SPI for communication with the WM5102, is working fine with the 5.4 kernel (both on LibreELEC and Raspbian). Haven't checked with the TV hat though, but at least SPI is not completely broken :)

so long,

Hias
by HiassofT
Tue Apr 14, 2020 9:25 am
Forum: General discussion
Topic: Annual running cost of RPi4?
Replies: 13
Views: 633

Re: Annual running cost of RPi4?

About a year ago I checked secondary power consumption on the RPi4 and the maximum I saw during a "make .-j 4" kernel build was about 5.7W (this was well before all the power/thermal optimizations we've seen in the last year). So a rough estimate of max 7-10W primary/mains power consumption seems mo...
by HiassofT
Wed Apr 08, 2020 2:02 pm
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 288
Views: 29448

Re: Moving Linux Kernel to 5.4

Stack protection is a compiler feature that helps to guard against buffer overflows. SMP stands for Symmetric Multi Processing, which you can think of as support for multi-core platforms (which BCM2836, BCM2837 and BCM2711 are, but BCM2835 isn't). The commit is saying that the old way of doing stac...
by HiassofT
Sat Apr 04, 2020 8:22 am
Forum: Advanced users
Topic: Moving Linux Kernel to 5.4
Replies: 288
Views: 29448

Re: Moving Linux Kernel to 5.4

and you should havea new alsa device. (Only available when running with dtoverlay=vc4-kms-v3d-pi4). Dual HDMI audio should work from the driver level. Is it a case of replicating the vc4-hdmi.pcm.hdmi.0 section as vc4-hdmi.pcm.hdmi.1? (I was just going to try it, but the TV I have as a second monit...
by HiassofT
Thu Apr 02, 2020 9:15 am
Forum: Advanced users
Topic: PXE-BOOT RPi4. What am i missing?
Replies: 14
Views: 448

Re: PXE-BOOT RPi4. What am i missing?

The contents of option 66 (tftp server name) look odd: Option: (66) TFTP Server Name Length: 15 TFTP Server Name: 192.168.88.6/24 If present this should contain the IP address of the dhcp server (eg 192.168.88.6, without the /24 at the end). IIRC DNS isn't implemented in the firmware so we can't use...
by HiassofT
Mon Mar 30, 2020 5:42 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: STICKY: The I2S sound thread. [I2S works]
Replies: 970
Views: 522965

Re: STICKY: The I2S sound thread. [I2S works]

It's not problem to transfer data with more bclk cycles than valid data bits, the I2S block will automatically pad them. Just use the set_bclk_ratio or set_tdm_slot functions to set that to eg 64 bclk cycles per frame.

so long,

Hias

Go to advanced search