Skip to content

Instantly share code, notes, and snippets.

View olegslavkin's full-sized avatar

Slavkin Oleg olegslavkin

  • Russia, Moscow
View GitHub Profile
<?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'
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 / .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 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 / 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 / R1
Created April 3, 2016 17:16
Базовая конфигурация для проекта "CCIE за год" http://ccie.linkmeup.ru/
hostname R1
!
interface Loopback0
ip address 180.1.1.1 255.255.255.255
ipv6 address 2001:C0FF:EE:1::1:1/128
!
interface Ethernet0/1
no shutdown
description to SW1 E0/0
no ip address
$ qemu-system-arm -version
QEMU emulator version 2.5.0, Copyright (c) 2003-2008 Fabrice Bellard
$ qemu-system-arm -M help
Supported machines are:
akita Sharp SL-C1000 (Akita) PDA (PXA270)
borzoi Sharp SL-C3100 (Borzoi) PDA (PXA270)
canon-a1100 Canon PowerShot A1100 IS
cheetah Palm Tungsten|E aka. Cheetah PDA (OMAP310)
collie Sharp SL-5500 (Collie) PDA (SA-1110)
connex Gumstix Connex (PXA255)
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<lab name="Linkmeup" version="1" author="MY">
<description>Linkmeup CCIE in one year lab</description>
<topology>
<nodes>
<node id="1" name="R1" type="iol" template="iol" image="L3-ADVENTERPRISEK9-M-15.4-2T.bin" ethernet="1" nvram="1024" ram="256" serial="1" delay="0" icon="Router.png" config="0" left="611" top="110">
<interface id="16" name="e0/1" type="ethernet" network_id="1"/>
<interface id="1" type="serial" name="s1/0" remote_id="2" remote_if="1"/>
</node>
<node id="2" name="R2" type="iol" template="iol" image="L3-ADVENTERPRISEK9-M-15.4-2T.bin" ethernet="1" nvram="1024" ram="256" serial="1" delay="0" icon="Router.png" config="0" left="261" top="120">