These page is about the stuff I missed/needed/forgot about the TS-7260. It's just all about stuff I stumbled with. It should always be reachable at http://ts7260.tisnix.be/ which will be a redirect to the current location.
- kernel compiling: you need to recompile the kernel if you want to use the I2C-patch or the serial-patch.
- I2C patch: this patch makes it possible to use the GPIO pinheader as a bit-banging I2C device.
- bat3: the bat3 code to control the TS-BAT3 missed some features. This is a try to add them.
- fconfig: redboot can be used while booting but you can also manipulate the setting while running linux.
- serial: by default the kernel only supports 6 COM ports. This patch fixes this issue.
- kernel26: some notes on how to compile a 2.6 kernel for ts-7260
If you think I could help you, you can always try to contact me at wimpunk+ts7260 at gmail dot com. If my spamfilter isn't to aggresive you'll get an answer.
My kernel patches are patches against the default kernel provided by Technology Systems. These are the steps you need to take to get your kernel compiled:
- Extract the embedded arm kernel:
tar -xvzf tskernel-2.4.26-ts11-src.tar.gz
- After extracting the kernel you can patch it with either my i2c-patch or my serial.patch or you could apply both
- Fix the crosscompile issue. By default the TS-kernel expects
to find the crosscompiler on something like
../../tools/crosstool/arm-9tdmi-linux-gnu/gcc-3.3.4-glibc-2.3.2/bin/but I think most people didn't installed their crosscompiler there. Mine didn't even had that name. You can either change the Makefile or add CROSS_COMPILE to as a make parameter.
Import the old configuration:
cp ./arch/arm/def-configs/ts7260 .config make oldconfig
Compile the kernel:
make menuconfig make bzImage make modules
Note: The current 2.4 kernel doesn't compile with gcc-4.0.1 - at least not the one I tried.
This patch is all about using GPIO as a bitbanging I2C controller. Get the i2c-patch and patch the kernel:
cd linux24 && patch -p1 & i2c-patch
Enable i2c by running
make menuconfig. You can find the option
on: character devices > I2C support > I2C bit-banging interfaces >
Ep93xx I2C using GPIO pins.
I've been testing the patch on a TS7260. I load the module as
insmod i2c-ep93xx [sda=sdapin] [scl=sclpin]
with optional params sda and scl. Default values are set at compiletime.
- It's all in googlecode: see the bat3 site on google code
- Original messages about the bat3 can be found on the ts-7000 forum on yahoo
- I've opened a googlegroup: check bat3 discuss
Modifying ts-kernel for more than 6 ports
Compiling a 2.6 kernel A while ago I discovered the linux-2.6 from ynezz and decided to give it a try. These are my basic notes about my tries
- Get the code from the repo
Make a default configuration
make ARCH=arm ts72xx_defconfig
Enable serial console:
CONFIG_SERIAL_8250=y <br /> CONFIG_SERIAL_8250_CONSOLE=y
Compile the modules:
make INSTALL_MOD_PATH=$(pwd)/../modules modules_install
Load the kernel:
load -b 0x00218000 -m http -h 192.168.1.12 /tmp/vmlinux exec -c "console=ttyAM0,115200 root=/dev/tssda1"
I used an openwrt image build earlier to test the kernel. Seemed to work pretty good. My openwrt config will be posted later.