-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Built-in serial port losing characters #854
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I assume it is the Feb 23rd firmware. Can you confirm this. Are you seeing this with console output, or are you using the uart for file transfer. |
Confirmed the Feb 23rd breaks: 9e69b79f484fe005d7eca698962f3ee27fa00aaf (I couldn't find the commit for: cc47954caf69dbf60bcd8d2580029469e70bc77b) And 8ddfa1f9eba8a207724644b22255597757dbcb75 works. I am using a custom protocol between the RPi and an Apple II (yep). If you have an Apple II, I can help set you up - but the failure is right off the bat. I can send the relevant serial port settings, if that helps. |
This is the likely commit which changed behaviour: 2c54213 Please post any info on how you set up the uart from the linux end. I'm afraid I don't have an Apply II to hand. |
This is the relevant code that inits the serial port and begins the communication protocol. It will sometimes make the initial sync, but nothing after.
From: https://github.com/dschmenk/apple2pi/blob/master/src/a2pid.c So perhaps the way I set the blocking to 1 or 3 characters is causing problems with the uart commit. That would explain why my daemon is waiting forever for characters to send/receive. |
There does appear to be a new version of the uart patch: Here is a kernel with the updated patch: Can you test it? |
Hurray! That patch got it working again. Apple II Pi says "Thanks!". http://schmenk.is-a-geek.com/wordpress/?p=151 https://www.youtube.com/watch?v=OpevIc3_H1g&list=PLlPKgUMQbJ7_bSF7wZ7aHwHC-JularURb&index=3 Dave... |
Great. Next official firmware update will include this version. |
firmware: arm_loader: Support HATs on all boards with the bplus layout firmware: dtblob: Remove the static i2c0 pin assignments for B+ and 2B firmware: arm_loader: Use bcm2708-rpi-cm.dtb on a Compute Module kernel: enable mcp2515 CAN controller module plus the corrresponding overlay See: raspberrypi/linux#868 kernel: Built-in serial port losing characters See: raspberrypi/linux#854 kernel: SPI: enable compiling upstream spi-bcm2835 driver and add overlay to allow us to load the driver See: raspberrypi/linux#866
firmware: arm_loader: Support HATs on all boards with the bplus layout firmware: dtblob: Remove the static i2c0 pin assignments for B+ and 2B firmware: arm_loader: Use bcm2708-rpi-cm.dtb on a Compute Module kernel: enable mcp2515 CAN controller module plus the corrresponding overlay See: raspberrypi/linux#868 kernel: Built-in serial port losing characters See: raspberrypi/linux#854 kernel: SPI: enable compiling upstream spi-bcm2835 driver and add overlay to allow us to load the driver See: raspberrypi/linux#866
This is in latest firmware update. |
Ran it through it’s paces and looks good from here. Thanks, Dave…
|
firmware: arm_loader: Support HATs on all boards with the bplus layout firmware: dtblob: Remove the static i2c0 pin assignments for B+ and 2B firmware: arm_loader: Use bcm2708-rpi-cm.dtb on a Compute Module kernel: enable mcp2515 CAN controller module plus the corrresponding overlay See: raspberrypi/linux#868 kernel: Built-in serial port losing characters See: raspberrypi/linux#854 kernel: SPI: enable compiling upstream spi-bcm2835 driver and add overlay to allow us to load the driver See: raspberrypi/linux#866
The latest kernel (Feb 26th) is losing characters at 115K baud (the only rate I've tried). The Feb 12th kernel worked fine.
512MB Model B.
The text was updated successfully, but these errors were encountered: