June 21st, 2024

Upgrading my Chumby 8 kernel part 11: SD/CF card reader

Doug Brown discusses upgrading the Chumby 8 kernel, addressing an SD/CF card reader issue by modifying the USB storage driver and implementing a userspace daemon to manage the device effectively.

Read original articleLink Icon
Upgrading my Chumby 8 kernel part 11: SD/CF card reader

In his blog post, Doug Brown discusses his project to upgrade the Chumby 8 kernel and addresses an issue with the SD/CF card reader creating an empty /dev/sda device even when no cards were inserted. He delves into the technical details of the card reader IC, Alcor Micro AU6350, and the detection pins used to identify inserted cards. Brown explains his solution involving modifying the USB storage driver's probe function and adding GPIO interrupts on card detect pins to manage the device in userspace. He implements a strategy using the usb-storage driver's quirks parameter to ignore the device based on its USB vendor and product ID. Additionally, he develops a userspace daemon to handle card detect GPIO pins, remove the quirk, and connect/disconnect the card reader device accordingly. Brown's approach involves modifying the kernel command line in U-Boot and utilizing sysfs for device management, ultimately resolving the issue without major complications.

Link Icon 1 comments
By @msephton - 4 months
I had one of the squishy Chumby and wrote some stuff for it in Flash Lite. Good times! Time for me to catch up on your project, looks fun.