Use and automate kernel updates for the PCF8563 RTC Shield on the ODROID-C2 running Arch ARM.
- Physically install the RTC Shield on the ODROID-C2 as depicted here.
- Download and install odroid-c2-rtc from the AUR.
- Edit
/etc/mkinitcpio.conf
and add the following two modules to the MODULES array:
MODULES=( aml_i2c rtc_pcf8563 ... )
- Regenerate the kernel image:
# mkinitcpio -p linux-odroid-c2
==> Building image from preset: /etc/mkinitcpio.d/linux-odroid-c2.preset: 'default'
-> -k 3.16.61-1-ARCH -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 3.16.61-1-ARCH
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [keyboard]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating gzip-compressed initcpio image: /boot/initramfs-linux.img
==> Image generation successful
Currently, the sx865x module needed to use the 3.5" touchscreen breaks the needed module to communicate with RTC shield. I have this code create a blacklist file for sx865x to work-around. A consequence of this is the touch screen won't work with the RTC. If you know what is driving these errors, or have a fix, please let me know. See this forum post for details.