This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Following command will relocate the linux kernel elf file from | |
# 0xc000_0000 to 0x8000_0000 which coincides with the actual load | |
# address on TI OMAP3 platforms. | |
# This should also work for debugging the second stage of u-boot | |
# after it has been relocated | |
arm-none-linux-gnueabi-objcopy --change-addresses -0x40000000 vmlinux vmlinux.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Following command will reorder 32 bit words from little endian to big endian | |
# | |
# This is needed on TI81xx platforms to convert a standard LE bootloader/SPL/MLO | |
# to a byte ordering the works via SPI flash | |
arm-none-linux-gnueabi-objcopy -Ibinary --reverse-bytes=4 MLO MLO.spi | |
# Output: | |
# $ hexdump -C MLO | head -n2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Enable functional and interface clocks for gpt9 (bit 10) | |
devmem2 0x48005000 w 0x00000c00 | |
devmem2 0x48005010 w 0x0003Ec00 | |
# Zero pwm | |
devmem2 0x49040024 w 0 | |
# Switch to gpt9_pwm_evt in mux |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# This generates a test PWM that should be ~ 1.2kHz @ 75% +duty cycle | |
# on TI8148 boards with the default timer clock source | |
# | |
# Parse devmem2 output | |
get_devmem2() { | |
devmem2 $1 w | grep "^Read" | sed -e "s/.*:\s*//" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# U-Boot + TI8148 EVM + TIM7 PWM | |
# 75% +Duty Cycle, 1.221 kHz, 3.3Vpp | |
# Measure @ RA11.4 or RA11.5 | |
# Mux | |
mw.l 0x48140ac8 0x60040 | |
# Config | |
base 0x4804a000 | |
mw.l 0x40 0xFFFFc000 | |
mw.l 0x4c 0xFFFFf000 | |
mw.l 0x44 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# U-Boot + TI8148 EVM + TIM7 Counter/Capture | |
# Short RA11.4/RA11.5 to 3.3V @ C177 | |
# Mux (pull-up doesn't work in TIM7 MUXMODE) | |
mw.l 0x48140ac8 0x60040 | |
# Config | |
base 0x4804a000 | |
mw.l 0x40 0 | |
mw.l 0x44 1 | |
# Start | |
mw.l 0x38 0x00303 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <time.h> | |
#include <unistd.h> | |
#include <sched.h> | |
#include <string.h> | |
double diff(struct timespec *start, struct timespec *end) | |
{ | |
struct timespec temp; | |
if ((end->tv_nsec-start->tv_nsec)<0) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Welcome to minicom 2.6.1 | |
OPTIONS: I18n | |
Compiled on Apr 24 2012, 20:51:15. | |
Port /dev/ttyUSB2 | |
Press CTRL-A Z for help on special keys | |
at | |
OK |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
This is designed primarily for use with accessing /dev/mem on OMAP platforms. | |
It should work on other platforms and work to mmap() files rather then just | |
/dev/mem, but these use cases aren't well tested. | |
All file accesses are aligned to DevMem.word bytes, which is 4 bytes on ARM | |
platforms to avoid data abort faults when accessing peripheral registers. | |
References: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
export CLIENT=client | |
export KLIB_BUILD=/ssd/sandbox/${CLIENT}/oe/arago-tmp/sysroots/ti814x-evm-angstrom-linux-gnueabi/kernel | |
export KLIB_BUILD={$HOME}/go/${CLIENT}/linux-omap3 | |
export INSTALL_MOD_PATH=/nfsroots/${CLIENT} | |
export KLIB=${INSTALL_MOD_PATH} | |
export DESTDIR=${INSTALL_MOD_PATH} | |
export DEPMOD=echo | |
export LDFLAGS="" | |
export RSYNC_PASSWORD="" |
OlderNewer