Go to advanced search

by PhilE
Tue Jun 19, 2018 8:07 am
Forum: Device Tree
Topic: Rfid(RC522) on Raspberry pie3 is not working
Replies: 1
Views: 56

Re: Rfid(RC522) on Raspberry pie3 is not working

You almost certainly have a wiring fault somewhere - many, many people have claimed that this doesn't work, and almost all of them have been proved wrong.

Please post photos of the wiring, showing an overall view and then the details of each end so I can trace each wire through.
by PhilE
Sat Jun 16, 2018 4:19 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C failure rate
Replies: 33
Views: 5019

Re: I2C failure rate

No, clock speed being a more accurate name for the I2C bus speed set using i2c_arm_baudrate. Whatever value you find works well at idle, multiply it by 250/400 and use that add the new value.
by PhilE
Fri Jun 15, 2018 4:03 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C failure rate
Replies: 33
Views: 5019

Re: I2C failure rate

What clock speed are you requesting? My suggestion was based on the default of 100kHz, but if you have reduced this then you will also need to reduce the new value proportionally.
by PhilE
Thu Jun 14, 2018 12:53 pm
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: Force Sensor
Replies: 4
Views: 205

Re: Force Sensor

[Moved to Interfacing]
by PhilE
Wed Jun 13, 2018 7:16 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 17
Views: 573

Re: CM3 module crash after ejecting sd card

Did you ever try pulling the card out while, for example, recording video to it?
by PhilE
Wed Jun 13, 2018 10:58 am
Forum: Interfacing (DSI, CSI, I2C, etc.)
Topic: I2C failure rate
Replies: 33
Views: 5019

Re: I2C failure rate

That means that the reduced I2C clock rate - i2c_arm_baudrate* (normal_freq/turbo_freq) - is OK but the full rate - i2c_arm_baudrate - is possibly too high. The default i2c_arm_baudrate is 100KHz, which would make the reduced rate 62.5KHz. Try setting:

Code: Select all

dtparam=i2c_arm_baudrate=60000
by PhilE
Tue Jun 12, 2018 8:19 pm
Forum: Device Tree
Topic: Overlays and A/B rootfs?
Replies: 14
Views: 568

Re: Overlays and A/B rootfs?

Yes, that works - you can just do "manually" what the overlay parameters would have done once applied.
by PhilE
Tue Jun 12, 2018 7:19 pm
Forum: Device Tree
Topic: Overlays and A/B rootfs?
Replies: 14
Views: 568

Re: Overlays and A/B rootfs?

I have to see how to inject a parameter like the 24db_gain thing, but I don't expect a problem there (...)
I think that may prove to be more of a problem. The parameters are a Pi-specific extension, so I doubt U-boot will support them (but I've been wrong about U-boot before so who knows?).
by PhilE
Tue Jun 12, 2018 2:57 pm
Forum: Device Tree
Topic: Overlays and A/B rootfs?
Replies: 14
Views: 568

Re: Overlays and A/B rootfs?

I had hopes the stock device tree would show signs of distress when an overlay is not found in /overlays, but overall it always feels okay: if start.elf finds an option it seems to generate nodes with status = "okay" even when there is an obvious problem. So I can't really start by looking at the t...
by PhilE
Tue Jun 12, 2018 2:37 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 17
Views: 573

Re: CM3 module crash after ejecting sd card

What is the data being written to the card?

Have you considered a different filing system?
by PhilE
Tue Jun 12, 2018 1:59 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 17
Views: 573

Re: CM3 module crash after ejecting sd card

I think the same advice applies. Seriously, what is your use case that makes it sensible to allow an SD card to be removed while it is being written to?
by PhilE
Tue Jun 12, 2018 1:29 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 17
Views: 573

Re: CM3 module crash after ejecting sd card

It does sound a bit like the old joke: Patient: Doctor, it hurts when I <something random>. Doctor: Well, don't <something random>. Despite that, I took a look at the problem (using an NFS-rooted Pi 3B+), and I also found it didn't respond well to having the card removed during writes. I thought it ...
by PhilE
Tue Jun 12, 2018 12:16 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 17
Views: 573

Re: CM3 module crash after ejecting sd card

So does it just freeze? Or reboot? Any information you give may be useful.
by PhilE
Tue Jun 12, 2018 12:00 pm
Forum: Compute Module
Topic: CM3 module crash after ejecting sd card
Replies: 17
Views: 573

Re: CM3 module crash after ejecting sd card

1. Have you looked at /var/log/syslog for error messages?
2. Do you see any messages on the display or via a serial port on GPIO14&15?
by PhilE
Mon Jun 11, 2018 11:45 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 398
Views: 22109

Re: Raspberry Pi 3 B+ lockups

Great. And just with 6by9's "sudo ethtool -K eth0 tx-tcp-segmentation off"? I understand that you may have better things to do...
by PhilE
Mon Jun 11, 2018 8:39 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 398
Views: 22109

Re: Raspberry Pi 3 B+ lockups

Thanks for the feedback. If you can spare the time, would you try just disabled the TX offloading?:

Code: Select all

ethtool --offload eth0 tx off
Thanks in advance - this kind of testing really helps to narrow down the search.
by PhilE
Fri Jun 08, 2018 2:17 pm
Forum: Device Tree
Topic: Overlays and A/B rootfs?
Replies: 14
Views: 568

Re: Overlays and A/B rootfs?

Although there are multiple boot methods, they all(*) boil down to: 1) Locate and load bootcode.bin 2) Load config.txt 3) Load start*.elf 4) Load config.txt (yes, start.elf effectively starts from scratch w.r.t. config.txt) 5) Load the kernel (which can be U-boot) and cmdline.txt 6) Load the DTB and...
by PhilE
Thu Jun 07, 2018 8:31 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 398
Views: 22109

Re: Raspberry Pi 3 B+ lockups

I'm pretty sure there is some issue with network shares in one direction or the other, and I'll be delighted when we find a configuration that allows us to reproduce the problem and begin to solve it.
by PhilE
Tue Jun 05, 2018 8:26 am
Forum: Troubleshooting
Topic: Raspberry Pi 3 B+ lockups
Replies: 398
Views: 22109

Re: Raspberry Pi 3 B+ lockups

The closer to a cleanly installed image - ideally Raspbian, but Kodi would be OK - the more likely we are to be able to reproduce the problem here at Pi Towers. 1. Is there anything that might be active on your system overnight that you are aware of? 2. Does it connect to any external storage or net...
by PhilE
Mon Jun 04, 2018 9:09 pm
Forum: Device Tree
Topic: Can not use some GPIOs with matrix_keypad - why?
Replies: 6
Views: 412

Re: Can not use some GPIOs with matrix_keypad - why?

Ah - I think you must have missed the reference to the pins node that I added to the first fragment: pinctrl-names = "default"; pinctrl-0 = <&keymatrix_pins>; Your solution will work, but only until you apply some other overlay that uses the same trick of getting the gpio node to activate your pinct...
by PhilE
Fri Jun 01, 2018 10:03 pm
Forum: Device Tree
Topic: Can not use some GPIOs with matrix_keypad - why?
Replies: 6
Views: 412

Re: Can not use some GPIOs with matrix_keypad - why?

You need to include "-@" in the dtc command line, otherwise it won't generate the necessary symbols.
by PhilE
Fri Jun 01, 2018 7:23 pm
Forum: Device Tree
Topic: Loading of kernel module with overlay
Replies: 18
Views: 724

Re: Loading of kernel module with overlay

This comment is interesting: In reply to this post by Bugzilla from bugzilla@busybox.net https://bugs.busybox.net/show_bug.cgi?id=9541 --- Comment #4 from Artem Synytsyn <[hidden email]> --- Now it works! Really, problem was in BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y option. Thank you very much! A...
by PhilE
Fri Jun 01, 2018 4:47 pm
Forum: Device Tree
Topic: Loading of kernel module with overlay
Replies: 18
Views: 724

Re: Loading of kernel module with overlay

That behaviour (that the kernel always uses udev to load driver modules) does not match my experience, as I described earlier - for me, modprobe was used for the static device tree provided by the firmware (after applying config.txt overlays), and udev for devices hot-plugged with runtime overlays. ...
by PhilE
Fri Jun 01, 2018 3:46 pm
Forum: Device Tree
Topic: Loading of kernel module with overlay
Replies: 18
Views: 724

Re: Loading of kernel module with overlay

Overlays can be applied before the kernel starts using "dtoverlay-..." in config.txt; as far as the kernel is concerned the result should be indistinguishable from a modified .dtb file. They can also be applied at runtime with the "dtoverlay" command - these are clearly different. Which type of over...
by PhilE
Fri Jun 01, 2018 3:13 pm
Forum: Device Tree
Topic: custom cm3 board uart0 & uart1
Replies: 1
Views: 277

Re: custom cm3 board uart0 & uart1

All configuration files work in (Broadcom) GPIO numbers, not physical pin numbers. It can be confusing, since we tend to use the word pin interchangeably with GPIO, but it is important to be clear that unless we are explicitly referring to the 40-pin header, the CM edge connector or attaching wires ...

Go to advanced search