Skip to content

Instantly share code, notes, and snippets.

@tsunghanlin
tsunghanlin / uboot-note
Last active May 11, 2016 00:50
u-boot tracing
GD's setting is here:
setup_dest_addr()
and gd->relocaddr (this is located in x0 in armv8 arch. defined in crt0_64.S)
Debugging uboot: http://www.denx.de/wiki/view/DULG/DebuggingUBoot
@tsunghanlin
tsunghanlin / Makefile
Created April 6, 2016 07:29
Makefile for ARMv8 semihosting
TARGET = test.elf
CROSS_COMPILE = aarch64-elf-
CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)ld
CSRC = init.c trap.c
ASM_SRC = entry.S trap.S
CFLAGS += -mcpu=cortex-a53
$ sudo src/openocd -d3 -f ./tcl/interface/ftdi/flyswatter2.cfg -f ./tcl/board/ti_pandaboard_es.cfg
Open On-Chip Debugger 0.10.0-dev-00226-ge0a28b290f77 (2016-02-28-15:55)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
User : 13 3 command.c:546 command_print(): debug_level: 3
Debug: 14 3 options.c:98 add_default_dirs(): bindir=/usr/local/bin
Debug: 15 3 options.c:99 add_default_dirs(): pkgdatadir=/usr/local/share/openocd
Debug: 16 3 options.c:100 add_default_dirs(): run_prefix=
Debug: 17 3 configuration.c:44 add_script_search_dir(): adding /home/johnny/.openocd
git diff `git rev-list HEAD | tail -n 1` HEAD
1. https://www.96boards.org/forums/topic/410c-bootloader/
2. https://www.96boards.org/forums/topic/creating-a-baremetal-kernel-for-410c/
3. https://www.codeaurora.org/blogs/little-kernel-based-android-bootloader
4. http://builds.96boards.org/releases/dragonboard410c/linaro/ubuntu/latest/
5. Linux kernel: Documentation/arm64/booting.txt
@tsunghanlin
tsunghanlin / find_text_in_pdf.sh
Last active December 4, 2015 01:54
Find text in pdf files in some given paths
#!/bin/bash
usage ()
{
echo "Usage: ./find_text_in_pdf.sh pathname pattern"
exit
}
if [ "$#" -ne 2 ]; then
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 3.12.0-rc1 Kernel Configuration
#
CONFIG_ARM=y
CONFIG_MIGHT_HAVE_PCI=y
CONFIG_SYS_SUPPORTS_APM_EMULATION=y
CONFIG_HAVE_PROC_CPU=y
CONFIG_NO_IOPORT=y
CONFIG_STACKTRACE_SUPPORT=y
struct A {
double x;
} _;
A& operator^(double x, A& a) {
a.x = x;
return a;
}
double operator^(A& a, double y) {