Go to advanced search

by PhilE
Sun Jul 12, 2020 7:01 pm
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 8
Views: 188

Re: Cant turn off Power LED on Rasp Pi 4 Model B

pwr_led_trigger=none is sufficient to turn off the LED - I was just making the point (unsuccessfully) that the settings as written should have worked. activelow=on should invert the trigger - as used on Pi Zero to combine the ACT and PWR functions into one LED.
by PhilE
Sun Jul 12, 2020 2:43 pm
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 8
Views: 188

Re: Cant turn off Power LED on Rasp Pi 4 Model B

I've run some tests using the latest rpi-update kernel (5.4.50-v7l+) on 4Bs of various vintages, cutting and pasting your settings: # Disable the ACT LED. dtparam=act_led_trigger=none dtparam=act_led_activelow=off # Disable the PWR LED. dtparam=pwr_led_trigger=none dtparam=pwr_led_activelow=off All ...
by PhilE
Sun Jul 12, 2020 6:37 am
Forum: Device Tree
Topic: how can I add ILI2117ADS cap touch at Device Tree ?
Replies: 3
Views: 94

Re: how can I add ILI2117ADS cap touch at Device Tree ?

5.4 is the kernel version we are about to switch to. If it doesn't include ili2117 support then 4.19 certainly doesn't either.
by PhilE
Sat Jul 11, 2020 3:26 pm
Forum: Device Tree
Topic: how can I add ILI2117ADS cap touch at Device Tree ?
Replies: 3
Views: 94

Re: how can I add ILI2117ADS cap touch at Device Tree ?

The 5.6. and 5.7 kernels have support for the ilitek 2117 - 5.4 is too old, but if there's a demand we might be able to back-port it. You could try building 5.6 or 5.7 kernels yourself, following our guide: https://www.raspberrypi.org/documentation/linux/kernel/building.md Feel free to post your who...
by PhilE
Sat Jul 11, 2020 12:19 pm
Forum: Device Tree
Topic: Cant turn off Power LED on Rasp Pi 4 Model B
Replies: 8
Views: 188

Re: Cant turn off Power LED on Rasp Pi 4 Model B

Did you load the actual overlay? The parameters are not going to have an effect unless you first call dtoverlay=act-led. That's not correct - the base DTBs also expose parameters, not just overlays. The distinction is useful because base DTBs can have different implementations of a common parameter...
by PhilE
Thu Jul 09, 2020 7:07 pm
Forum: Compute Module
Topic: CM4 release date
Replies: 12
Views: 7363

Re: CM4 release date

"Trickling" is a better word - "leaking" sounds unintentional.
by PhilE
Thu Jul 09, 2020 1:11 pm
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

You would probably find it easier to spot anything strange if you added the Ethernet Source and Destination as columns in Wireshark. Expand the packet details and right click on Destination in the Ethernet section and choose "Apply as column" - don't be surprised if it ends up off the side of the wi...
by PhilE
Thu Jul 09, 2020 10:04 am
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

You need to look at the packets to understand properly what is happening. Install wireshark (with a GUI) or tshark (text-based) to capture the traffic on either side (or both). This will then allow you to look at the MAC addresses as well as the IP addresses. You can also use "arp -a" to show the as...
by PhilE
Thu Jul 09, 2020 8:54 am
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

Oops - I forgot to renumber one of the "reg" properties in the new dts. And it still contains some things needed for LAN7515 but not SMSC9512. This should be better: usb@7e980000 { compatible = "brcm,bcm2708-usb"; reg = < 0x7e980000 0x10000 0x7e006000 0x1000 >; interrupts = < 0x01 0x09 0x02 0x00 >; ...
by PhilE
Thu Jul 09, 2020 8:42 am
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

To make the sysctl changes persistent, add them to /etc/sysctl.conf.
by PhilE
Thu Jul 09, 2020 8:40 am
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

Thanks for the "lsusb -t", that clarifies things a lot. Let's compare to a similar, known-working configuration - Pi 3B+: pi@raspberrypi:~$ lsusb -t /: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=dwc_otg/1p, 480M |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/4p, 480M |__ Port 1: Dev 3, If 0, Class...
by PhilE
Thu Jul 09, 2020 8:14 am
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

Your network configuration has two interfaces on the same subnet, which has some interesting properties. Sending a packet to a new IP address requires using the ARP protocol to find a MAC address for the IP address. As originally defined, hosts with multiple interfaces on the same subnet can lead to...
by PhilE
Thu Jul 09, 2020 8:00 am
Forum: Device Tree
Topic: two LAN951x - two ethernet on CM3+
Replies: 14
Views: 263

Re: two LAN951x - two ethernet on CM3+

What does "lsusb -t" show? It helps to be sure of the topology.
by PhilE
Wed Jul 08, 2020 12:23 pm
Forum: General discussion
Topic: Audio Pi
Replies: 3
Views: 217

Re: Audio Pi

The Pi itself has HDMI, and there are a number of soundcards with optical outputs - the HifiBerry Digi springs to mind - but I'm not aware of Bluetooth modules with external antennae.

You might get more responses now I've fixed the URL in your post.
by PhilE
Wed Jul 08, 2020 10:12 am
Forum: Compute Module
Topic: Compute Module Ethernet MAC Address
Replies: 13
Views: 5892

Re: Compute Module Ethernet MAC Address

[ Previous answer updated to clarify that the default serial-number-based MAC address is available to other hardware modules. ]
by PhilE
Wed Jul 08, 2020 10:07 am
Forum: Compute Module
Topic: Compute Module Ethernet MAC Address
Replies: 13
Views: 5892

Re: Compute Module Ethernet MAC Address

The serial-number derived MAC address is made available to other ethernet interfaces via Device Tree - i.e. by setting the "local_mac_address" property of the node referred to by the "ethernet0" alias. If you want to use a different value these days you should be using the "force_mac_address" config...
by PhilE
Tue Jul 07, 2020 7:14 pm
Forum: Device Tree
Topic: [SOLVED] How does start.elf know which .dtb should it load?
Replies: 2
Views: 143

Re: How does start.elf know which .dtb should it load?

It's all derived from the board revision code that is written to OTP during manufacture. Run "cat /proc/cpuinfo" to read the revision code (and serial number) for your Pi.
by PhilE
Tue Jul 07, 2020 4:27 pm
Forum: Compute Module
Topic: I have a new problem about gpis40-43 for UART
Replies: 1
Views: 71

Re: I have a new problem about gpis40-43 for UART

Flow control on UART1 doesn't work properly, but to enable the ttyS0 driver so you can try it yourself you need to include "8250.nr_uarts=1" in cmdline.txt.
by PhilE
Sat Jul 04, 2020 3:00 pm
Forum: Compute Module
Topic: And now,about TXD1 RXD1 on gpio40,41
Replies: 2
Views: 103

Re: And now,about TXD1 RXD1 on gpio40,41

ttyS0 is correct. UART1 is the mini-UART, an 8250 clone. There is only one 8250-like UART, and the numbering starts at zero, hence ttyS0.
by PhilE
Fri Jul 03, 2020 1:07 pm
Forum: Device Tree
Topic: Pi-4 Activating additional UART ports
Replies: 74
Views: 31779

Re: Pi-4 Activating additional UART ports

No idea - sorry. The overlay seems fairly innocuous.
by PhilE
Fri Jul 03, 2020 8:10 am
Forum: Device Tree
Topic: [SOLVED]ad7124-8 device tree
Replies: 4
Views: 242

Re: ad7124-8 device tree

I think what's happening here is that the driver is enumerating all child nodes, assuming that they will be "channel@" declarations and trying to read their "reg" properties, but this is tripped up by your ad7124_mclk node because that doesn't have one (of_property_read_u32 returns -22/-EINVAL if th...
by PhilE
Thu Jul 02, 2020 9:53 am
Forum: Device Tree
Topic: [SOLVED]ad7124-8 device tree
Replies: 4
Views: 242

Re: ad7124-8 device tree

There's nothing obviously wrong with your overlay, although it is strange that all of the fragments declaring the channels are hidden ("__dormant__") - presumably you were going to add some parameters to enable them. I suggest enabling one by default, at least during testing, in case that is the pro...
by PhilE
Mon Jun 29, 2020 8:54 am
Forum: Compute Module
Topic: about sdio for wifi module
Replies: 2
Views: 279

Re: about sdio for wifi module

Using the sdio overlay changes the pulls on the pins. Before dtoverlay=sdio: pi@raspberrypi:~$ raspi-gpio get 22-27 GPIO 22: level=0 fsel=0 func=INPUT pull=DOWN GPIO 23: level=0 fsel=0 func=INPUT pull=DOWN GPIO 24: level=0 fsel=0 func=INPUT pull=DOWN GPIO 25: level=0 fsel=0 func=INPUT pull=DOWN GPIO...
by PhilE
Mon Jun 29, 2020 8:49 am
Forum: Compute Module
Topic: I want to use sdio to launch a wifi module
Replies: 3
Views: 159

Re: I want to use sdio to launch a wifi module

Yes, you can use 34-39 instead: pi@raspberrypi:~$ dtoverlay -h sdio Name: sdio Info: Selects the bcm2835-sdhost SD/MMC driver, optionally with overclock, and enables SDIO via GPIOs 22-27. An example of use in 1-bit mode is "dtoverlay=sdio,bus_width=1,gpios_22_25" Usage: dtoverlay=sdio,<param>=<val> ...
by PhilE
Sun Jun 28, 2020 8:25 pm
Forum: General discussion
Topic: 4B having issues with USB serial and booting with USB ports populated.
Replies: 7
Views: 448

Re: 4B having issues with USB serial and booting with USB ports populated.

By the looks of things your clock is running at a fixed rate like it should, so that is one thing we can rule out. UART communication is more tricky to get right than some other methods because both sides have to agree on the baud rate yet they have no way of exchanging that information. When you sa...

Go to advanced search