I have the DS3231 module running on an BananaPi. Here is how:
Add this to/src/sys/arm/conf/ALLWINNER
This adds it to the kernel.
Then add the device to the device tree source /src/sys/boot/fdt/dts/arm/bananapi.dts
Insert this at the bottom:
Then run crochet and make an image to test:
Then move to your /crochet/work directory and use dd to write image.
For example:
Add this to/src/sys/arm/conf/ALLWINNER
Code:
device ds3231
Then add the device to the device tree source /src/sys/boot/fdt/dts/arm/bananapi.dts
Insert this at the bottom:
Code:
&i2c0 {
rtc {
compatible = "maxim,ds3231";
reg = <0xd0>;
};
};
Then run crochet and make an image to test:
./crochet.sh -b BananaPi
Then move to your /crochet/work directory and use dd to write image.
For example:
dd if=FreeBSD-armv6-11.0-ALLWINNER-305354_308093M.img of=/dev/da0 bs=10240 conv=sync
Last edited: