Skip to content

Instantly share code, notes, and snippets.

View pietrushnic's full-sized avatar

Piotr Król pietrushnic

View GitHub Profile
[18:39:11] pietrushnic:u-boot git:(u-boot-sunxi/nand-wip*) $ make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf-
CHK include/config/uboot.release
CHK include/generated/version_autogenerated.h
CHK include/generated/timestamp_autogenerated.h
UPD include/generated/timestamp_autogenerated.h
CHK include/generated/generic-asm-offsets.h
CHK include/generated/asm-offsets.h
HOSTCC tools/mkenvimage.o
HOSTLD tools/mkenvimage
HOSTCC tools/image-host.o
@pietrushnic
pietrushnic / gist:107c5ceab9383922ba1f
Created October 23, 2015 10:57
Cubietruck sunxi-3.4 NAND H27UCG8T2ATR-BC
root@cubietruck:~# sync; dd if=/dev/zero of=~/test.tmp bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 60.659 s, 8.6 MB/s
root@cubietruck:~# sync; echo 3 | tee /proc/sys/vm/drop_caches
3
root@cubietruck:~# sync; time dd if=~/test.tmp of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 35.5524 s, 14.7 MB/s
@pietrushnic
pietrushnic / gist:3016ba516c6d6e4b5e54
Last active October 23, 2015 10:57
Cubietruck mainline SanDisk Ultra SDHC I 8GB class 10
root@cubieboard2:~# sync; dd if=/dev/zero of=~/test.tmp bs=500K count=1024
1024+0 records in
1024+0 records out
524288000 bytes (524 MB) copied, 42.2453 s, 12.4 MB/s
root@cubieboard2:~# sync; echo 3 | tee /proc/sys/vm/drop_caches
3
[ 252.792430] tee (1725): drop_caches: 3
root@cubieboard2:~# sync; time dd if=~/test.tmp of=/dev/null bs=500K count=1024
1024+0 records in
1024+0 records out
@pietrushnic
pietrushnic / gist:d6ef7e512f7ecf9653ec
Created October 23, 2015 22:32
Buildroot image A20 OLinuXino MICRO
# df -h
Filesystem Size Used Available Use% Mounted on
/dev/root 5.3M 4.0M 910.0K 82% /
devtmpfs 503.4M 0 503.4M 0% /dev
tmpfs 503.5M 0 503.5M 0% /dev/shm
tmpfs 503.5M 24.0K 503.5M 0% /tmp
tmpfs 503.5M 16.0K 503.5M 0% /run
# free -m
total used free shared buffers cached
Mem: 1006 8 998 0 0 1
@pietrushnic
pietrushnic / gist:496e5f6825b90b6128b4
Created October 23, 2015 22:59
bootlog A20-OLinuXino-MICRO
[15-10-24 00:49:46 0.000001] \00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\0
@pietrushnic
pietrushnic / gist:2db8a787ff859364c7fd
Created November 10, 2015 01:00
iw dev wlan2 scan
root@cubietruck:~# iw dev wlan2 scan
BSS 30:b5:c2:0b:a5:54 (on wlan2)
TSF: 137808092374 usec (1d, 14:16:48)
freq: 2412
beacon interval: 100
capability: ESS Privacy ShortPreamble ShortSlotTime (0x0431)
signal: -26.00 dBm
last seen: 7960 ms ago
Information elements from Probe Response frame:
SSID: NoraPotfora
Executing /etc/qemu-ifup
Bringing up tap0 for bridged mode...
Adding tap0 to br0...
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
sudo qemu-system-arm -kernel u-boot -net nic,vlan=0 -net tap,vlan=0,ifname=tap0,script=/etc/qemu-ifup -nographic -M versatilepb -net dump,file=../../defects/u-boot/net_dump_pass
s.pcap
Executing /etc/qemu-ifup
Bringing up tap0 for bridged mode...
Adding tap0 to br0...
oss: Could not initialize DAC
oss: Failed to open `/dev/dsp'
oss: Reason: No such file or directory
oss: Could not initialize DAC
@pietrushnic
pietrushnic / gist:6892684
Last active December 25, 2015 01:09
clenver testing in debian live cd environment
sudo apt-get -y install git vim curl zsh
curl -L https://get.rvm.io | bash -s stable --ruby
source ~/.profile
bash --login
gem install clenver
git clone https://github.com/pietrushnic/clenver.git
git clone https://pietrushnic@bitbucket.org/pietrushnic/projects.git
rvm use ruby
[1:11:39] pietrushnic:qemu git:(ar7-raspi) $ make
CHK version_gen.h
CC aarch64-softmmu/target-arm/translate.o
/home/pietrushnic/projects/substances_actives/qemu/target-arm/translate.c: In function ‘gen_alignment_exception_insn’:
/home/pietrushnic/projects/substances_actives/qemu/target-arm/translate.c:1063:45: error: passing argument 2 of ‘gen_helper_alignment_exception’ from incompatible pointer type [-Werror=incompatible-pointer-types]
gen_helper_alignment_exception(cpu_env, addr);
^
In file included from /home/pietrushnic/projects/substances_actives/qemu/include/exec/helper-gen.h:59:0,
from /home/pietrushnic/projects/substances_actives/qemu/tcg/tcg-op.h:27,
from /home/pietrushnic/projects/substances_actives/qemu/target-arm/translate.c:26: