Skip to content

Instantly share code, notes, and snippets.

View olegslavkin's full-sized avatar

Slavkin Oleg olegslavkin

  • Russia, Moscow
View GitHub Profile
Linux version 2.6.35.3-571-gcca29a0 (ubuntu@ubuntu) (gcc version 4.4.4 (4.4.4_09.06.2010) ) #8 PREEMPT Wed Sep 11 12:15:39 EDT 2013
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
CPU: VIVT data cache, VIVT instruction cache
Machine: Freescale MX28EVK board
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c050de24, node_mem_map c0558000
DMA zone: 32 pages used for memmap
DMA zone: 0 pages reserved
DMA zone: 4064 pages, LIFO batch:0
diff -Naur a/mk_mx28_sd b/mk_mx28_sd
--- a/mk_mx28_sd 2010-10-06 09:47:42.000000000 -0500
+++ b/mk_mx28_sd 2012-11-30 13:38:34.508199154 -0600
@@ -178,7 +178,7 @@
n
p
1
-1
+2048
+32M
@olegslavkin
olegslavkin / hello_elf_headers.txt
Created November 6, 2013 13:30
readelf -a helloworld >> hello_elf_headers.txt on board Tion-Pro28 (Freescale iMX.28 (Freescale MX28EVK board)
ELF Header:
Magic: 7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
Class: ELF32
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: ARM
Version: 0x1
@olegslavkin
olegslavkin / QEMU ARM CPU list.txt
Created December 19, 2013 11:31
List ARM CPU support qemu-1.7.50
slavkin@dev-1 /mnt/qemu/qemu $ qemu-system-arm -cpu help
Available CPUs:
arm1026
arm1136
arm1136-r2
arm1176
arm11mpcore
arm926
arm946
cortex-a15
@olegslavkin
olegslavkin / .bashrc
Created December 19, 2013 11:40
.bashrc CLFS
clfs@dev-1 ~ $ cat .bashrc
set +h
umask 022
CLFS=/mnt/clfs
LC_ALL=POSIX
PATH=${CLFS}/cross-tools/bin:/bin:/usr/bin
export CLFS LC_ALL PATH
unset CFLAGS
unset CXXFLAGS
export CLFS_HOST="x86_64-cross-linux-gnu"
@olegslavkin
olegslavkin / qemu-arm.help.txt
Last active July 7, 2019 15:52
qemu arm help
usage: qemu-arm [options] program [arguments...]
Linux CPU emulator (compiled for arm emulation)
Options and associated environment variables:
Argument Env-variable Description
-h print this help
-g port QEMU_GDB wait gdb connection to 'port'
-L path QEMU_LD_PREFIX set the elf interpreter prefix to 'path'
-s size QEMU_STACK_SIZE set the stack size to 'size' bytes
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!--
Documented at
http://linux.die.net/man/5/fonts-conf
To check font mapping run the command at terminal
$ fc-match 'helvetica Neue'
@olegslavkin
olegslavkin / ryu.sh
Created February 13, 2016 12:46
Install Ryu Controller (Ubuntu 14.04.3 Server)
#!/bin/bash
# Install RYU (Ubuntu 14.04.3)
# Author: Oleg Slavkin
echo "Step 1. Install tools"
sudo apt-get -y install git python-pip python-dev
echo "Step 2. Install python packages"
sudo apt-get -y install python-eventlet python-routes python-webob python-paramiko
@olegslavkin
olegslavkin / mininet.sh
Created February 13, 2016 12:47
Install mininet (Ubuntu 14.04.3 Server)
!#/bin/bash
# Install mininet (check Ubuntu 14.04.3)
# Author Oleg Slavkin (oleg@slavkin.info)
echo "Step 1. Install packages"
sudo apt-get install -y pyflakes pep8 pylint python-pexpect socat iperf iproute help2man openssh-client
echo "Step 2. Clone mininet git Repo"
cd ~/
git clone git://github.com/mininet/mininet
@olegslavkin
olegslavkin / ovs.sh
Last active June 20, 2022 12:08
Install Openvswitch from source (Ubuntu 14.04.3 Server)
!#/bin/bash
# Install openvswitch Ubuntu 14.04.3
# Author: Oleg Slavkin (oleg@slavkin.info)
echo "-------------------------------"
echo "Step 1. Install git package"
echo "-------------------------------"
sudo apt-get update
sudo apt-get -y install git