
In case you want to build your own image:

Start with a build environment that works, and that built at least once before. (A patch is applied to timer.c, and we need to replace that file AFTER patching).

Replace timer.c, *AND delete timer.o in that directory!* in directory:

	openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.14.18/arch/mips/ralink
	
Place timerall.h in directory:

	/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.14.18/include/linux
	
Create directory /timerall in:

	/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.14.18/drivers

place Kconfig, Makefile, timerall-class.c, timerall-gpio.c, timerall-core.c and timerall.h in:

	/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.14.18/drivers/timerall
	

Modify two files in:

	/openwrt/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.14.18/drivers

Add in Kconfig (Above last line):
	source "drivers/timerall/Kconfig"

Add in makefile:
	obj-y    			+= timerall/ 

Do: make kernel_menuconfig, find 'Timerall Support' under 'Device Drivers' and select all options.

Now do a make, and timerall is added.

During start up, DMESG should give the line: timeralls_create_of() found %d ta-devices

The supplied .dts file will configure:
stepper  on gpios 1 2 3 4
pwm on gpio 21
servo1 on gpio 17
servo2 on gpio 20

	

Ton Augustin, May 2015	<ton@augustin.com>


