Skip to content

Instantly share code, notes, and snippets.

CC drivers/staging/media/sunxi/cedrus/cedrus.o
CC drivers/staging/media/sunxi/cedrus/cedrus_mpeg2.o
drivers/staging/media/sunxi/cedrus/cedrus.c: In function 'cedrus_request_validate':
drivers/staging/media/sunxi/cedrus/cedrus.c:125:8: error: implicit declaration of function 'v4l2_ctrl_request_hdl_find'; did you mean 'v4l2_ctrl_request_complete'? [-Werror=implicit-function-declaration]
hdl = v4l2_ctrl_request_hdl_find(req, parent_hdl);
^~~~~~~~~~~~~~~~~~~~~~~~~~
v4l2_ctrl_request_complete
drivers/staging/media/sunxi/cedrus/cedrus.c:125:6: warning: assignment to 'struct v4l2_ctrl_handler *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
hdl = v4l2_ctrl_request_hdl_find(req, parent_hdl);
^
@wens
wens / gist:1253f8091d4e04256cafcc60e5abc84f
Created August 3, 2016 06:51
2016-08-03 Hinet -> Hurricane Electric traceroute (mtr)
Packets Pings
Host Loss% Snt Last Avg Best Wrst StDev
1. router.asus.com 0.0% 39 0.6 0.6 0.5 0.8 0.0
2. 61-220-176-254.HINET-IP.hinet.net 0.0% 39 1.0 0.9 0.8 1.8 0.0
3. tpdt-3308.hinet.net 0.0% 39 0.8 3.8 0.8 48.4 9.8
4. TPDT-3012.hinet.net 0.0% 39 9.7 8.1 2.2 13.9 3.3
5. r4041-fo.ty.hinet.net 0.0% 39 4.7 4.5 2.6 6.5 0.9
6. r4031-fo.ty.hinet.net 0.0% 39 12.8 4.5 2.3 29.5 5.3
7. r11-pa.us.hinet.net
@wens
wens / Sinlinx_SinA31s_defconfig
Created February 12, 2016 14:03
Sinlinx SinA31s U-boot defconfig
CONFIG_ARM=y
CONFIG_ARCH_SUNXI=y
CONFIG_MACH_SUN6I=y
CONFIG_DRAM_CLK=432
CONFIG_DRAM_ZQ=251
CONFIG_USB1_VBUS_PIN=""
CONFIG_USB2_VBUS_PIN=""
#Uncomment if you have Sinlinx's 7" LCD
#CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:66000,le:90,ri:160,up:3,lo:127,hs:70,vs:20,sync:3,vmode:0"
#CONFIG_VIDEO_LCD_DCLK_PHASE=0
diff --git a/drivers/clk/sunxi/clk-sunxi.c b/drivers/clk/sunxi/clk-sunxi.c
index a860322e3d59..80dfecc0faad 100644
--- a/drivers/clk/sunxi/clk-sunxi.c
+++ b/drivers/clk/sunxi/clk-sunxi.c
@@ -707,9 +707,10 @@ static struct clk * __init sunxi_mux_clk_setup(struct device_node *node,
pr_warn("%s: failed to register mux clock %s: %ld\n", __func__,
clk_name, PTR_ERR(clk));
goto out_unmap;
+ }
@wens
wens / a83_emac.txt
Created January 14, 2016 09:46
A83 EMAC register dump right out of reset
=> md 0x01c30000
01c30000: 00000000 08000001 40000000 00000000 ...........@....
01c30010: 00000000 00000000 00000000 00000000 ................
01c30020: 00000000 00000000 00000000 00000000 ................
01c30030: 00000000 00000000 00000000 00000000 ................
01c30040: 00000000 00000000 00000000 00000000 ................
01c30050: 0000ffff ffffffff 0000ffff ffffffff ................
01c30060: 0000ffff ffffffff 0000ffff ffffffff ................
01c30070: 0000ffff ffffffff 0000ffff ffffffff ................
01c30080: 0000ffff ffffffff 0000ffff ffffffff ................
@wens
wens / a23_boot.txt
Last active August 29, 2015 14:13
sun8i boot log
Linux version 3.19.0-rc1-00053-g2151d086b310-dirty (wens@mirror2) (gcc version 4.9.2 ( 4.9.2-10) ) #38 SMP Fri Jan 16 18:24:55 CST 2015
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: Ippo Q8H Dual Core Tablet (v5)
bootconsole [earlycon0] enabled
Forcing write-allocate cache policy for SMP
Memory policy: Data cache writealloc
On node 0 totalpages: 128768
free_area_init_node: node 0, pgdat c0360d80, node_mem_map df207000
Normal zone: 1004 pages used for memmap
@wens
wens / a80_cpuinfo.txt
Created September 27, 2014 11:52
A80 cpuinfo
Features : swp half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpv4 idiva idivt
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xc07
CPU revision : 5
@wens
wens / gist:8d6d6c033c9e8bde922a
Created September 26, 2014 09:20
spidev dma test
root@debian:~# echo 1 > /dev/spidev32766.0
spi_master spi32766: tfr->tx_buf = (null), t->len = 2
spi_master spi32766: tfr->rx_buf = ee82d000, t->len = 2
Unable to handle kernel NULL pointer dereference at virtual address 00000000
pgd = c0003000
[00000000] *pgd=80000040004003, *pmd=00000000
Internal error: Oops: 2a07 [#1] PREEMPT SMP THUMB2
CPU: 0 PID: 48 Comm: spi32766 Not tainted 3.17.0-rc3-00064-ga5e9ad57-dirty #7
task: ee8cf200 ti: eeb64000 task.ti: eeb64000
PC is at v7_dma_inv_range+0x2c/0x40
@wens
wens / a31_dmatest.txt
Created September 21, 2014 08:23
A31 DMA test without AHB1 muxed to PLL6
root@debian:/sys/module/dmatest/parameters# grep . /sys/module/dmatest/parameters
/sys/module/dmatest/parameters/channel:dma0chan1
/sys/module/dmatest/parameters/iterations:10
/sys/module/dmatest/parameters/max_channels:0
/sys/module/dmatest/parameters/noverify:N
/sys/module/dmatest/parameters/pq_sources:3
/sys/module/dmatest/parameters/run:N
/sys/module/dmatest/parameters/test_buf_size:131072
/sys/module/dmatest/parameters/threads_per_chan:1
/sys/module/dmatest/parameters/timeout:3000
@wens
wens / gist:e02cf58080784ba0cf3d
Created September 12, 2014 11:23
a31 fastboot
set address 0x9
[ 38.898]SUNXI_USB_FASTBOOT_SETUP
[ 38.901]fastboot command = download:009c8000
[ 38.906]download
Starting download of 10256384 BYTES
Starting download of 9 MB
download response: DATA009c8000
[ 39.485]fastboot transfer finish
[ 39.489]SUNXI_USB_FASTBOOT_SETUP
[ 39.492]fastboot command = boot