Skip to content

Instantly share code, notes, and snippets.

View pietrushnic's full-sized avatar

Piotr Król pietrushnic

View GitHub Profile
U-Boot SPL 2015.10-rc4-00108-g5476399b916b-dirty (Oct 13 2015 - 23:44:00)
DRAM: 2048 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
>>spl:board_init_r()
boot device - 4
spl: nand - using hw ecc
nand: trying page 8192 ecc 40 / 1024 addr 5: success
mkimage signature not found - ih_magic = ea0000be
Jumping to U-Boot
SPL malloc() used 0x348 bytes (0 KB)
arm-linux-gnueabihf-ld.bfd: error: /home/pietrushnic/storage/wdc/projects/3mdeb/cubietruck/toolchains/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/libgcc.a(_udivmoddi4.o) uses VFP register arguments, u-boot does not
arm-linux-gnueabihf-ld.bfd: failed to merge target specific data of file /home/pietrushnic/storage/wdc/projects/3mdeb/cubietruck/toolchains/gcc-linaro-4.9-2015.05-x86_64_arm-linux-gnueabihf/bin/../lib/gcc/arm-linux-gnueabihf/4.9.3/libgcc.a(_udivmoddi4.o)
Makefile:1173: recipe for target 'u-boot' failed
make: *** [u-boot] Error 1
=> nand read 0x43000000 0x400000 0x96000
NAND read: device 0 offset 0x400000, size 0x96000
614400 bytes read: OK
=>
Unknown command '' - try 'help'
=> md.b 0x430539b0 0x50
430539b0: 1e ff 2f e1 1e ff 2f e1 1e ff 2f e1 00 00 a0 e3 ../.../.../.....
430539c0: 1e ff 2f e1 1e ff 2f e1 00 00 a0 e3 1e ff 2f e1 ../.../......./.
430539d0: 1e ff 2f e1 00 00 a0 e3 1e ff 2f e1 00 00 a0 e3 ../......./.....
[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: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: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: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
[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: