Skip to content

Instantly share code, notes, and snippets.

View pietrushnic's full-sized avatar

Piotr Król pietrushnic

View GitHub Profile
[1:08:57] pietrushnic:rpi2_qemu $ qemu-system-arm -M raspi2 -kernel 2015-11-21-raspbian-boot/kernel7.img -sd 2015-11-21-raspbian-jessie.img -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -dtb 2015-11-21-raspbian-boot/bcm2709-rpi-2-b.dtb -serial stdio
WARNING: Image format was not specified for '2015-11-21-raspbian-jessie.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.13-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #826 SMP PREEMPT
[1:24:04] pietrushnic:rpi2_qemu $ qemu-system-arm -M raspi2 -kernel 2015-11-21-raspbian-boot/kernel7.img -sd 2015-11-21-raspbian-jessie.img -append "rw earlyprintk loglevel=8 console=ttyAMA0,115200 dwc_otg.lpm_enable=0 root=/dev/mmcblk0p2" -dtb 2015-11-21-raspbian-boot/bcm2709-rpi-2-b.dtb -serial stdio
WARNING: Image format was not specified for '2015-11-21-raspbian-jessie.img' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions.
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0xf00
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.1.13-v7+ (dc4@dc4-XPS13-9333) (gcc version 4.8.3 20140303 (prerelease) (crosstool-NG linaro-1.13.1+bzr2650 - Linaro GCC 2014.03) ) #826 SMP PREEMPT
U-Boot SPL 2016.01-rc3 (Jan 10 2016 - 01:41:38)
FIXME: manually forced to use I2C3
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from
U-Boot 2016.01-rc3 (Jan 10 2016 - 01:41:38 +0100) Allwinner Technology
CPU: Allwinner A20 (SUN7I)
# ========
# captured on: Fri Jan 1 00:59:43 2010
# hostname : a20-olinuxino
# os release : 3.4.104
# perf version : 3.4.104
# arch : armv7l
# nrcpus online : 2
# nrcpus avail : 2
# cpudesc : ARMv7 Processor rev 4 (v7l)
# total memory : 1010528 kB
@pietrushnic
pietrushnic / gist:bd73f898a0a7787f8398
Created February 18, 2016 13:34
cat /proc/dev/net
Inter-| Receive | Transmit
face |bytes packets errs drop fifo frame compressed multicast|bytes packets errs drop fifo colls carrier compressed
lo: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
tunl0: 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
wlan1: 0 0 0 3141 0 0 0 0 0 0 0 0 0 0 0 0
wlan0: 7656680 55499 0 317 0 0 0 0 156026905 102038 0 0 0 0 0 0
Wiphy phy0
Band 1:
Capabilities: 0x1862
HT20/HT40
Static SM Power Save
RX HT20 SGI
RX HT40 SGI
No RX STBC
Max AMSDU length: 7935 bytes
DSSS/CCK HT40
2470 PCengines Press F10 key now for boot menu:
2471 Select boot device:
2472
2473 1. USB MSC Drive UFD 3.0 Silicon-Power16G 1100
2474 2. Payload [memtest]
2475 3. Payload [pci8086,157b.rom]
2476 4. Payload [setup]
2477
2478 Searching bootorder for: HALT
2479 drive 0x000f2dc0: PCHS=0/0/0 translation=lba LCHS=1024/255/63 s=31490048
1867 Initialized USB HUB (0 ports used)
1868 All threads complete.
1869 Scan for option roms
1870 Running option rom at c100:0003
1871
1872
1873 iPXE (http://ipxe.org) 01:00.0 C100 PCI2.10 PnP PMMpmm call arg1=1
1874 pmm call arg1=0
1875 +DFF56070pmm call arg1=1
1876 pmm call arg1=0
[23:09:28] pietrushnic:coreboot $ ../../coreboot/util/cbfstool/cbfstool ../../apu2_fw_working_copy.bin print
Name Offset Type Size
img/setup 0x0 payload 111848
bootorder_map 0x1b540 raw 60
bootorder_def 0x1b5c0 raw 167
etc/boot-menu-message 0x1b6c0 raw 43
etc/boot-menu-key 0x1b740 raw 8
etc/boot-menu-wait 0x1b780 raw 8
spd.bin 0x1b7c0 spd 256
vgaroms/sgabios.bin 0x1b900 raw 4096
[23:09:17] pietrushnic:coreboot $ ../../coreboot/util/cbfstool/cbfstool build/coreboot.rom print
Name Offset Type Size
cmos_layout.bin 0x0 cmos_layout 1776
spd.bin 0x740 spd 256
fallback/romstage 0x880 stage 339604
genroms/pxe.rom 0x53780 raw 71680
img/memtest 0x64fc0 payload 46951
fallback/ramstage 0x70780 stage 208552
fallback/payload 0xa3680 payload 50778
img/setup 0xafd40 payload 47718