Manouchehri / smi2021

smi2021 v4l2 kernel driver
25 stars 13 forks source link

Can't detect firmware on Banana pi #21

Open mdbananapi opened 9 years ago

mdbananapi commented 9 years ago

Hi!

The module works fine on my laptop, but I have a small problem on my banana pi board, which I would like to know if it can be fixed. The smi2021 module is compiling and installing fine but the firmware is not loaded.

I have installed smi2021.ko module in the extra folder and it loads nicely but when I load the module with 'sudo modprobe smi2021' or 'sudo modprobe smi2021 forceasgm=1' it can not find the firmware. I load saa7115 module before this but in the dmesg there is no mention of saa7115.

Here is the output of dmesg: [ 4.398474] usb 2-1: new high-speed USB device number 2 using ehci-platform [ 4.548635] usb 2-1: New USB device found, idVendor=1c88, idProduct=0007 [ 4.548659] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 4.548670] usb 2-1: Product: SM-USB 007 [ 4.548678] usb 2-1: Manufacturer: Somagic, Inc. [ 4.548688] usb 2-1: SerialNumber: SMBL007

[ 1405.694236] usb 2-1: Looking for: smi2021_3f.bin [ 1405.694367] usb 2-1: Looking for: smi2021_3e.bin [ 1405.694434] usb 2-1: Looking for: smi2021_3c.bin [ 1405.694496] usb 2-1: could not load any firmware for this device [ 1405.694550] smi2021: probe of 2-1:1.0 failed with error -2 [ 1405.694759] usbcore: registered new interface driver smi2021

I have tried to copy the smi2021_3c.bin and smi2021_3f.bin firmware to the following folders, but without success: /usr/lib/firmware/ /lib/firmware/$(uname -r) /lib/firmware /usr/local/lib/firmware

When I copy the firmware to /lib/firmware/$(uname -r) or to /lib/firmware , the banana pi stops responding and freezes.

Both saa7115 and smi2021 are present in lsmod:

Module Size Used by smi2021 19069 0 snd_pcm 67444 1 smi2021 snd_timer 16928 1 snd_pcm snd 38416 3 snd_timer,smi2021,snd_pcm soundcore 858 1 snd saa7115 13955 0 rfcomm 30130 0 bnep 9700 2 bluetooth 295473 10 bnep,rfcomm brcmfmac 158682 0 brcmutil 4893 1 brcmfmac realtek 2263 0 evdev 9502 1 dwmac_sunxi 2111 0 sun4i_ts 3926 0 phy_sun4i_usb 4138 4

I am running Banana pi on Linux Sunxi Kernel 4.2.5. It is based on debian. I downloaded it from http://www.armbian.com/ and https://github.com/igorpecovnik/lib . I can not use another kernel because on banana pi, there is arm processor. The link to linux sunxi kernel is http://linux-sunxi.org/Linux_Kernel

Can someone help me to fix this issue? Or at least to point in the right direction? Because if the firmware is not loading because of some dependencies or some other configuration, I can ask the developers of linux sunxi to include that dependency. But before this, we need to know what is causing the freeze or why the firmware is not loading.

Thanks!

mdbananapi commented 9 years ago

I have made a few photos of the boot process with the easycap usb device plugged in in the usb port and the smi2021_3c.bin firmware in the firmware folder. I have noticed there some lines mentioning smi2021: (smi2021_usb_probe [smi2021]) from [] ...

When I boot without the smi2021_3c.bin firmware file in /usr/lib/firmware/ or /usr/firmware/, the banana pi loads nice, but if I put the firmware in those files, the banana pi does not boot and stays at those errors.

I have noticed the same variables from my boot error in the smi2021_main.c file. For example smi2021_usb_probe variable so maybe I can apply some patches to the smi2021_main.c file?

I have attached some images. 101120151172 101120151167

mastervolkov commented 9 years ago

I not have that device and can't debug... Sorry...

вт, 10 нояб. 2015, 22:47, mdbananapi notifications@github.com:

I have make a few photos of the boot process with the easycap usd device pluged in in the usb port. I have noticed there some lines mentioning smi2021: (smi2021_usb_probe [smi2021]) from [] ...

When I boot without the smi2021_3c.bin firmware file in /usr/lib/firmware/ or /usr/firmware/, the banana pi loads nice, but if I put the firmware in those files, the banana pi does not boot and stays at those errors.

I have noticed the same variables from my boot error in the smi2021_main.c file. For example smi2021_usb_probe variable so maybe I can apply some patches to the smi2021_main.c file?

I have attached some images. [image: 101120151172] https://cloud.githubusercontent.com/assets/13299916/11073604/108e9270-87f4-11e5-8c54-c14b026aa4a1.jpg [image: 101120151167] https://cloud.githubusercontent.com/assets/13299916/11073605/1091d7e6-87f4-11e5-890a-530df00c8fa6.jpg

— Reply to this email directly or view it on GitHub https://github.com/Manouchehri/smi2021/issues/21#issuecomment-155545978.

mdbananapi commented 8 years ago

Hi!

One of users of banana pi suggested my to debug it using a usb to ttl device, so I could see all output during boot. I have connected the usb to ttl device over the uart port of banana pi and now when I do sudo modprobe smi2021 forceasgm=1 I get an error like this: ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg)

I have placed the smi2021_3c.bin firmware in /lib/firmware/$(uname -r) and in /lib/firmware

Now banana pi does not stops but it shows that error.

I connect to banana pi via putty using the usb to ttl device connected to uart ports on banana pi.

Here is the full output from putty, with boot time and dmesg.

U-Boot SPL 2015.10-armbian (Nov 05 2015 - 09:50:21)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2

U-Boot 2015.10-armbian (Nov 05 2015 - 09:50:21 +0200) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

Setting up a 720x576i composite-pal console (overscan 32x20)
Error: no valid bmp image at 66000000
In:    serial
Out:   vga
Err:   vga
SCSI:  SUNXI SCSI INIT
SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
starting USB...
USB0:   USB EHCI 1.00
USB1:   USB OHCI 1.0
USB2:   USB EHCI 1.00
USB3:   USB OHCI 1.0
scanning bus 0 for devices... 2 USB Device(s) found
scanning bus 2 for devices... 1 USB Device(s) found
Hit any key to stop autoboot:  0
6944 bytes read in 262 ms (25.4 KiB/s)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
1973 bytes read in 322 ms (5.9 KiB/s)
## Executing script at 43100000
0 bytes read in 241 ms (0 Bytes/s)
27145 bytes read in 353 ms (74.2 KiB/s)
5583496 bytes read in 716 ms (7.4 MiB/s)
Kernel image @ 0x46000000 [ 0x000000 - 0x553288 ]
## Flattened Device Tree blob at 49000000
   Booting using the fdt blob at 0x49000000
   Using Device Tree in place at 49000000, end 49009a08

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Debian GNU/Linux 7 bananapi ttyS0

bananapi login: user1
Password:
Last login: Sat Nov 28 18:55:08 EET 2015 on ttyS0

 ____
| __ )  __ _ _ __   __ _ _ __   __ _
|  _ \ / _` | '_ \ / _` | '_ \ / _` |
| |_) | (_| | | | | (_| | | | | (_| |
|____/ \__,_|_| |_|\__,_|_| |_|\__,_|

Load: 0.49, 0.13, 0.04 - Board: 41.9°C - Memory: 964Mb

user1@bananapi:~$ dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.5-sunxi (root@ubuntu) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #1 SMP Thu Nov 5 10:57:15 EET 2015
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Banana Pi BPI-M1
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 261738
[    0.000000] free_area_init_node: node 0, pgdat c0a623c0, node_mem_map eeef8000
[    0.000000]   Normal zone: 1710 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 194560 pages, LIFO batch:31
[    0.000000]   HighMem zone: 67178 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] PERCPU: Embedded 11 pages/cpu @eeec7000 s15424 r8192 d21440 u45056
[    0.000000] pcpu-alloc: s15424 r8192 d21440 u45056 alloc=11*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260028
[    0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025760K/1046952K available (7899K kernel code, 348K rwdata, 2028K rodata, 328K init, 311K bss, 21192K reserved, 0K cma-reserved, 268712K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc09b9ef4   (9928 kB)
[    0.000000]       .init : 0xc09ba000 - 0xc0a0c000   ( 328 kB)
[    0.000000]       .data : 0xc0a0c000 - 0xc0a63360   ( 349 kB)
[    0.000000]        .bss : 0xc0a66000 - 0xc0ab3edc   ( 312 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000379] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000548] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000731] Console: colour dummy device 80x30
[    0.000872] console [tty1] enabled
[    0.000898] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000912] pid_max: default: 32768 minimum: 301
[    0.001056] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001067] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001802] Initializing cgroup subsys blkio
[    0.001829] Initializing cgroup subsys memory
[    0.001869] Initializing cgroup subsys devices
[    0.001883] Initializing cgroup subsys freezer
[    0.001896] Initializing cgroup subsys net_cls
[    0.001908] Initializing cgroup subsys perf_event
[    0.001956] CPU: Testing write buffer coherency: ok
[    0.002310] /cpus/cpu@0 missing clock-frequency property
[    0.002328] /cpus/cpu@1 missing clock-frequency property
[    0.002340] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002405] Setting up static identity map for 0x400082c0 - 0x40008318
[    0.004403] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004499] Brought up 2 CPUs
[    0.004522] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004528] CPU: All CPU(s) started in HYP mode.
[    0.004533] CPU: Virtualization extensions available.
[    0.005290] devtmpfs: initialized
[    0.013523] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.013921] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014221] xor: measuring software checksum speed
[    0.109965]    arm4regs  :  1262.000 MB/sec
[    0.210032]    8regs     :   778.800 MB/sec
[    0.310101]    32regs    :   799.200 MB/sec
[    0.310109] xor: using function: arm4regs (1262.000 MB/sec)
[    0.310255] pinctrl core: initialized pinctrl subsystem
[    0.311433] NET: Registered protocol family 16
[    0.312058] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.334621] cpuidle: using governor ladder
[    0.360177] cpuidle: using governor menu
[    0.366813] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.366829] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.540626] raid6: int32x1  gen()   138 MB/s
[    0.710599] raid6: int32x1  xor()   110 MB/s
[    0.880811] raid6: int32x2  gen()   185 MB/s
[    1.051090] raid6: int32x2  xor()   120 MB/s
[    1.221171] raid6: int32x4  gen()   197 MB/s
[    1.391336] raid6: int32x4  xor()   122 MB/s
[    1.561458] raid6: int32x8  gen()   179 MB/s
[    1.731600] raid6: int32x8  xor()   116 MB/s
[    1.731608] raid6: using algorithm int32x4 gen() 197 MB/s
[    1.731614] raid6: .... xor() 122 MB/s, rmw enabled
[    1.731621] raid6: using intx1 recovery algorithm
[    1.731947] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[    1.731993] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[    1.732739] reg-fixed-voltage gmac-3v3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/gmac_power_pin@0, deferring probe
[    1.733265] SCSI subsystem initialized
[    1.733578] libata version 3.00 loaded.
[    1.733901] usbcore: registered new interface driver usbfs
[    1.733970] usbcore: registered new interface driver hub
[    1.734071] usbcore: registered new device driver usb
[    1.734221] media: Linux media interface: v0.10
[    1.734281] Linux video capture interface: v2.00
[    1.734387] pps_core: LinuxPPS API ver. 1 registered
[    1.734395] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.734423] PTP clock support registered
[    1.736698] clocksource: Switched to clocksource arch_sys_counter
[    1.737688] simple-framebuffer 7fe79000.framebuffer: framebuffer at 0x7fe79000, 0x178e00 bytes, mapped to 0xf0200000
[    1.737708] simple-framebuffer 7fe79000.framebuffer: format=x8r8g8b8, mode=656x536x32, linelength=2880
[    1.744415] Console: switching to colour frame buffer device 82x33
[    1.750538] simple-framebuffer 7fe79000.framebuffer: fb0: simplefb registered!
[    1.761403] NET: Registered protocol family 2
[    1.762131] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.762226] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.762352] TCP: Hash tables configured (established 8192 bind 8192)
[    1.762441] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.762504] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.762802] NET: Registered protocol family 1
[    1.763248] RPC: Registered named UNIX socket transport module.
[    1.763263] RPC: Registered udp transport module.
[    1.763269] RPC: Registered tcp transport module.
[    1.763275] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.764170] hw perfevents: Failed to parse /pmu/interrupt-affinity[0]
[    1.764237] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    1.765479] futex hash table entries: 512 (order: 3, 32768 bytes)
[    1.774156] zpool: loaded
[    1.777174] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.779091] NFS: Registering the id_resolver key type
[    1.779175] Key type id_resolver registered
[    1.779183] Key type id_legacy registered
[    1.779887] Key type cifs.idmap registered
[    1.780184] fuse init (API version 7.23)
[    1.781282] JFS: nTxBlock = 8013, nTxLock = 64110
[    1.791646] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.798878] bounce: pool size: 64 pages
[    1.799001] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.799194] io scheduler noop registered
[    1.799210] io scheduler deadline registered
[    1.799265] io scheduler cfq registered (default)
[    1.801940] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.863540] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.887072] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud = 1500000) is a U6_16550A
[    1.910459] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 42, base_baud = 1500000) is a U6_16550A
[    1.933782] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 43, base_baud = 1500000) is a U6_16550A
[    1.940839] loop: module loaded
[    1.941139] Loading iSCSI transport class v2.0-870.
[    2.006773] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    2.006830] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled
[    2.006863] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    2.006880] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio slum part ccc
[    2.007949] scsi host0: ahci-sunxi
[    2.008315] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 30
[    2.009653] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    2.012492] tun: Universal TUN/TAP device driver, 1.6
[    2.012510] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.013167] PPP generic driver version 2.4.2
[    2.013426] PPP BSD Compression module registered
[    2.013440] PPP Deflate Compression module registered
[    2.013469] PPP MPPE Compression module registered
[    2.013487] NET: Registered protocol family 24
[    2.013531] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.013545] ehci-platform: EHCI generic platform driver
[    2.013967] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.014006] ohci-platform: OHCI generic platform driver
[    2.014388] usbcore: registered new interface driver usb-storage
[    2.014405] ftdi_elan: driver ftdi-elan
[    2.014878] usbcore: registered new interface driver ftdi-elan
[    2.015921] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as rtc0
[    2.015938] sunxi-rtc 1c20d00.rtc: RTC enabled
[    2.016066] i2c /dev entries driver
[    2.017209] axp20x 0-0034: AXP20x variant AXP209 found
[    2.024606] input: axp20x-pek as /devices/platform/soc@01c00000/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[    2.024812] axp20x-regulator axp20x-regulator: regulators node not found
[    2.027267] axp20x 0-0034: AXP20X driver loaded
[    2.029095] IR NEC protocol handler initialized
[    2.029113] IR RC5(x/sz) protocol handler initialized
[    2.029123] IR RC6 protocol handler initialized
[    2.029133] IR JVC protocol handler initialized
[    2.029143] IR Sony protocol handler initialized
[    2.029152] IR SANYO protocol handler initialized
[    2.029162] IR Sharp protocol handler initialized
[    2.029172] IR MCE Keyboard/mouse protocol handler initialized
[    2.029182] IR XMP protocol handler initialized
[    2.029302] usbcore: registered new interface driver uvcvideo
[    2.029309] USB Video Class driver (1.1.1)
[    2.030460] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.031223] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[    2.031712] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    2.066928] sunxi-mmc 1c0f000.mmc: base:0xf0178000 irq:27
[    2.067727] ledtrig-cpu: registered to indicate activity on CPUs
[    2.068041] usbcore: registered new interface driver usbhid
[    2.068051] usbhid: USB HID core driver
[    2.069033] ipip: IPv4 over IPv4 tunneling driver
[    2.069876] Initializing XFRM netlink socket
[    2.070855] NET: Registered protocol family 10
[    2.072098] NET: Registered protocol family 17
[    2.072157] NET: Registered protocol family 15
[    2.072222] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.072235] can: controller area network core (rev 20120528 abi 9)
[    2.072307] NET: Registered protocol family 29
[    2.072385] 8021q: 802.1Q VLAN Support v1.8
[    2.072453] Key type dns_resolver registered
[    2.083087] cpu cpu0: running cpufreq without cooling device: -38
[    2.083158] Registering SWP/SWPB emulation handler
[    2.084119] registered taskstats version 1
[    2.084163] zswap: loading zswap
[    2.084663] zpool: no driver for type zbud
[    2.084676] zswap: zbud zpool not available
[    2.084681] zswap: zpool creation failed
[    2.087947] Btrfs loaded
[    2.089478] Key type encrypted registered
[    2.091855] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01 00:00:14 UTC (14)
[    2.096386] gmac-3v3: disabling
[    2.096411] usb2-vbus: disabling
[    2.096419] usb1-vbus: disabling
[    2.096432] vcc5v0: disabling
[    2.096439] vcc3v0: disabling
[    2.113963] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.116403] mmc0: new high speed SDHC card at address 1234
[    2.117070] mmcblk0: mmc0:1234 SA08G 7.21 GiB
[    2.118606]  mmcblk0: p1
[    2.356808] ata1: SATA link down (SStatus 0 SControl 300)
[    2.379648] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    2.379792] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    2.390782] devtmpfs: mounted
[    2.391954] Freeing unused kernel memory: 328K (c09ba000 - c0a0c000)
[    3.545245] udevd[214]: starting version 175
[    3.974705] ehci-platform 1c14000.usb: EHCI Host Controller
[    3.974771] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    3.974975] ehci-platform 1c14000.usb: irq 28, io mem 0x01c14000
[    3.986951] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    3.987453] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.987479] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.987495] usb usb1: Product: EHCI Host Controller
[    3.987521] usb usb1: Manufacturer: Linux 4.2.5-sunxi ehci_hcd
[    3.987534] usb usb1: SerialNumber: 1c14000.usb
[    3.988828] hub 1-0:1.0: USB hub found
[    3.988957] hub 1-0:1.0: 1 port detected
[    3.990199] ehci-platform 1c1c000.usb: EHCI Host Controller
[    3.990269] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    3.990476] ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000
[    4.006873] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    4.007306] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    4.007324] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.007338] usb usb2: Product: EHCI Host Controller
[    4.007350] usb usb2: Manufacturer: Linux 4.2.5-sunxi ehci_hcd
[    4.007361] usb usb2: SerialNumber: 1c1c000.usb
[    4.008722] hub 2-0:1.0: USB hub found
[    4.008838] hub 2-0:1.0: 1 port detected
[    4.009947] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    4.010016] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    4.010274] ohci-platform 1c14400.usb: irq 29, io mem 0x01c14400
[    4.071748] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    4.071770] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.071781] usb usb3: Product: Generic Platform OHCI controller
[    4.071790] usb usb3: Manufacturer: Linux 4.2.5-sunxi ohci_hcd
[    4.071798] usb usb3: SerialNumber: 1c14400.usb
[    4.072951] hub 3-0:1.0: USB hub found
[    4.073052] hub 3-0:1.0: 1 port detected
[    4.073993] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    4.074046] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    4.074229] ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400
[    4.132903] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    4.132925] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.132935] usb usb4: Product: Generic Platform OHCI controller
[    4.132944] usb usb4: Manufacturer: Linux 4.2.5-sunxi ohci_hcd
[    4.132953] usb usb4: SerialNumber: 1c1c400.usb
[    4.133954] hub 4-0:1.0: USB hub found
[    4.134053] hub 4-0:1.0: 1 port detected
[    4.226989] sun7i-dwmac 1c50000.ethernet: no reset control found
[    4.227013]  Ring mode enabled
[    4.227022]  No HW DMA feature register supported
[    4.227029]  Normal descriptors
[    4.227035]  TX Checksum insertion supported
[    4.306830] usb 1-1: new high-speed USB device number 2 using ehci-platform
[    4.326750] libphy: stmmac: probed
[    4.326784] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[    4.326793] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[    4.458693] usb 1-1: New USB device found, idVendor=1c88, idProduct=0007
[    4.458720] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.458731] usb 1-1: Product: SM-USB 007
[    4.458739] usb 1-1: Manufacturer: Somagic, Inc.
[    4.458748] usb 1-1: SerialNumber: SMBL007
[    5.195096] cfg80211: World regulatory domain updated:
[    5.195124] cfg80211:  DFS Master region: unset
[    5.195132] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    5.195143] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    5.195152] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    5.195160] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    5.195171] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    5.195181] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    5.195190] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    5.195198] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    5.195207] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[    6.545166] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=writeback,commit=600,errors=remount-ro
[    8.861012] Adding 131068k swap on /var/swap.  Priority:-1 extents:2 across:155644k SSFS
[   11.126334] random: dd urandom read with 25 bits of entropy available
[   12.337251]  RX IPC Checksum Offload disabled
[   12.337284]  No MAC Management Counters available
[   17.317153] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   24.650478] Bluetooth: Core ver 2.20
[   24.650597] NET: Registered protocol family 31
[   24.650607] Bluetooth: HCI device and connection manager initialized
[   24.650633] Bluetooth: HCI socket layer initialized
[   24.650649] Bluetooth: L2CAP socket layer initialized
[   24.650690] Bluetooth: SCO socket layer initialized
[   24.694856] Bluetooth: RFCOMM TTY layer initialized
[   24.694912] Bluetooth: RFCOMM socket layer initialized
[   24.694954] Bluetooth: RFCOMM ver 1.11
[   24.717750] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   24.717776] Bluetooth: BNEP filters: protocol multicast
[   24.717806] Bluetooth: BNEP socket layer initialized
[   26.756141] random: nonblocking pool is initialized
user1@bananapi:~$
user1@bananapi:~$ modprobe saa7115 debug=1
user1@bananapi:~$ sudo modprobe smi2021 forceasgm=1
ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg)
jonjonarnearne commented 8 years ago

Hi,

see reply below.

On Nov 28, 2015 6:37 PM, "mdbananapi" notifications@github.com wrote:

Hi!

One of users of banana pi suggested

[... snip ...]

user1@bananapi:~$ user1@bananapi:~$ modprobe saa7115 debug=1 user1@bananapi:~$ sudo modprobe smi2021 forceasgm=1 ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg)

As it says here: see dmesg.

There should be some error messages concerning your attempt to modprobe the SMI module.

— Reply to this email directly or view it on GitHub.

mdbananapi commented 8 years ago

Hi!

Thanks for the fast reply.

After loading the saa7115 and smi2021 module, I ran dmesg again but it did not showed any new line regarding the somagic card.

Here is the dmesg after the smi2021 load:

user1@bananapi:~$ sudo modprobe saa7115 debug=1
[sudo] password for user1:
user1@bananapi:~$ sudo modprobe smi2021 forceasgm=1
ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg)
user1@bananapi:~$ sudo dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.5-sunxi (root@ubuntu) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #1 SMP Thu Nov 5 10:57:15 EET 2015
[    0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Banana Pi BPI-M1
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 261738
[    0.000000] free_area_init_node: node 0, pgdat c0a623c0, node_mem_map eeef8000
[    0.000000]   Normal zone: 1710 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 194560 pages, LIFO batch:31
[    0.000000]   HighMem zone: 67178 pages, LIFO batch:15
[    0.000000] psci: probing for conduit method from DT.
[    0.000000] psci: Using PSCI v0.1 Function IDs from DT
[    0.000000] PERCPU: Embedded 11 pages/cpu @eeec7000 s15424 r8192 d21440 u45056
[    0.000000] pcpu-alloc: s15424 r8192 d21440 u45056 alloc=11*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260028
[    0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025760K/1046952K available (7899K kernel code, 348K rwdata, 2028K rodata, 328K init, 311K bss, 21192K reserved, 0K cma-reserved, 268712K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0000000 - 0xff000000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xef800000   ( 760 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc09b9ef4   (9928 kB)
[    0.000000]       .init : 0xc09ba000 - 0xc0a0c000   ( 328 kB)
[    0.000000]       .data : 0xc0a0c000 - 0xc0a63360   ( 349 kB)
[    0.000000]        .bss : 0xc0a66000 - 0xc0ab3edc   ( 312 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Additional per-CPU info printed with stalls.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.000018] Switching to timer-based delay loop, resolution 41ns
[    0.000382] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000551] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns
[    0.000738] Console: colour dummy device 80x30
[    0.000879] console [tty1] enabled
[    0.000905] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000)
[    0.000920] pid_max: default: 32768 minimum: 301
[    0.001062] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001074] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.001804] Initializing cgroup subsys blkio
[    0.001833] Initializing cgroup subsys memory
[    0.001873] Initializing cgroup subsys devices
[    0.001888] Initializing cgroup subsys freezer
[    0.001901] Initializing cgroup subsys net_cls
[    0.001913] Initializing cgroup subsys perf_event
[    0.001960] CPU: Testing write buffer coherency: ok
[    0.002309] /cpus/cpu@0 missing clock-frequency property
[    0.002330] /cpus/cpu@1 missing clock-frequency property
[    0.002344] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002407] Setting up static identity map for 0x400082c0 - 0x40008318
[    0.004401] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.004496] Brought up 2 CPUs
[    0.004518] SMP: Total of 2 processors activated (96.00 BogoMIPS).
[    0.004524] CPU: All CPU(s) started in HYP mode.
[    0.004528] CPU: Virtualization extensions available.
[    0.005294] devtmpfs: initialized
[    0.013516] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4
[    0.013916] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.014229] xor: measuring software checksum speed
[    0.109983]    arm4regs  :  1261.600 MB/sec
[    0.210047]    8regs     :   778.800 MB/sec
[    0.310107]    32regs    :   799.200 MB/sec
[    0.310115] xor: using function: arm4regs (1261.600 MB/sec)
[    0.310255] pinctrl core: initialized pinctrl subsystem
[    0.311393] NET: Registered protocol family 16
[    0.312018] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.340183] cpuidle: using governor ladder
[    0.364604] cpuidle: using governor menu
[    0.371184] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.371203] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.550685] raid6: int32x1  gen()   138 MB/s
[    0.720641] raid6: int32x1  xor()   110 MB/s
[    0.890879] raid6: int32x2  gen()   185 MB/s
[    1.061160] raid6: int32x2  xor()   120 MB/s
[    1.231250] raid6: int32x4  gen()   197 MB/s
[    1.401384] raid6: int32x4  xor()   122 MB/s
[    1.571510] raid6: int32x8  gen()   179 MB/s
[    1.741669] raid6: int32x8  xor()   116 MB/s
[    1.741677] raid6: using algorithm int32x4 gen() 197 MB/s
[    1.741682] raid6: .... xor() 122 MB/s, rmw enabled
[    1.741688] raid6: using intx1 recovery algorithm
[    1.741994] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe
[    1.742040] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe
[    1.742839] reg-fixed-voltage gmac-3v3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/gmac_power_pin@0, deferring probe
[    1.743351] SCSI subsystem initialized
[    1.743659] libata version 3.00 loaded.
[    1.744011] usbcore: registered new interface driver usbfs
[    1.744083] usbcore: registered new interface driver hub
[    1.744170] usbcore: registered new device driver usb
[    1.744306] media: Linux media interface: v0.10
[    1.744377] Linux video capture interface: v2.00
[    1.744486] pps_core: LinuxPPS API ver. 1 registered
[    1.744494] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.744521] PTP clock support registered
[    1.746809] clocksource: Switched to clocksource arch_sys_counter
[    1.747803] simple-framebuffer 7fe79000.framebuffer: framebuffer at 0x7fe79000, 0x178e00 bytes, mapped to 0xf0200000
[    1.747822] simple-framebuffer 7fe79000.framebuffer: format=x8r8g8b8, mode=656x536x32, linelength=2880
[    1.754535] Console: switching to colour frame buffer device 82x33
[    1.760666] simple-framebuffer 7fe79000.framebuffer: fb0: simplefb registered!
[    1.771358] NET: Registered protocol family 2
[    1.772119] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    1.772215] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.772342] TCP: Hash tables configured (established 8192 bind 8192)
[    1.772439] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.772502] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.772802] NET: Registered protocol family 1
[    1.773292] RPC: Registered named UNIX socket transport module.
[    1.773307] RPC: Registered udp transport module.
[    1.773312] RPC: Registered tcp transport module.
[    1.773318] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.774231] hw perfevents: Failed to parse /pmu/interrupt-affinity[0]
[    1.774296] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
[    1.775520] futex hash table entries: 512 (order: 3, 32768 bytes)
[    1.784261] zpool: loaded
[    1.787271] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    1.789164] NFS: Registering the id_resolver key type
[    1.789235] Key type id_resolver registered
[    1.789242] Key type id_legacy registered
[    1.789970] Key type cifs.idmap registered
[    1.790278] fuse init (API version 7.23)
[    1.791356] JFS: nTxBlock = 8013, nTxLock = 64110
[    1.801758] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    1.809055] bounce: pool size: 64 pages
[    1.809180] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    1.809358] io scheduler noop registered
[    1.809376] io scheduler deadline registered
[    1.809432] io scheduler cfq registered (default)
[    1.812078] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver
[    1.873898] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled
[    1.897405] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud = 1500000) is a U6_16550A
[    1.920814] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 42, base_baud = 1500000) is a U6_16550A
[    1.944156] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 43, base_baud = 1500000) is a U6_16550A
[    1.951224] loop: module loaded
[    1.951527] Loading iSCSI transport class v2.0-870.
[    2.016887] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP
[    2.016941] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled
[    2.016975] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[    2.016992] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio slum part ccc
[    2.018036] scsi host0: ahci-sunxi
[    2.018404] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 30
[    2.019721] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
[    2.022573] tun: Universal TUN/TAP device driver, 1.6
[    2.022589] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    2.023249] PPP generic driver version 2.4.2
[    2.023493] PPP BSD Compression module registered
[    2.023507] PPP Deflate Compression module registered
[    2.023536] PPP MPPE Compression module registered
[    2.023554] NET: Registered protocol family 24
[    2.023598] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.023612] ehci-platform: EHCI generic platform driver
[    2.024025] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    2.024062] ohci-platform: OHCI generic platform driver
[    2.024426] usbcore: registered new interface driver usb-storage
[    2.024443] ftdi_elan: driver ftdi-elan
[    2.024948] usbcore: registered new interface driver ftdi-elan
[    2.026006] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as rtc0
[    2.026023] sunxi-rtc 1c20d00.rtc: RTC enabled
[    2.026132] i2c /dev entries driver
[    2.027294] axp20x 0-0034: AXP20x variant AXP209 found
[    2.034873] input: axp20x-pek as /devices/platform/soc@01c00000/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0
[    2.035075] axp20x-regulator axp20x-regulator: regulators node not found
[    2.037547] axp20x 0-0034: AXP20X driver loaded
[    2.039371] IR NEC protocol handler initialized
[    2.039391] IR RC5(x/sz) protocol handler initialized
[    2.039402] IR RC6 protocol handler initialized
[    2.039412] IR JVC protocol handler initialized
[    2.039421] IR Sony protocol handler initialized
[    2.039431] IR SANYO protocol handler initialized
[    2.039441] IR Sharp protocol handler initialized
[    2.039450] IR MCE Keyboard/mouse protocol handler initialized
[    2.039460] IR XMP protocol handler initialized
[    2.039595] usbcore: registered new interface driver uvcvideo
[    2.039603] USB Video Class driver (1.1.1)
[    2.040702] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0)
[    2.041444] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found
[    2.041916] sunxi-mmc 1c0f000.mmc: Got CD GPIO
[    2.077043] sunxi-mmc 1c0f000.mmc: base:0xf0178000 irq:27
[    2.077838] ledtrig-cpu: registered to indicate activity on CPUs
[    2.078164] usbcore: registered new interface driver usbhid
[    2.078173] usbhid: USB HID core driver
[    2.079124] ipip: IPv4 over IPv4 tunneling driver
[    2.080004] Initializing XFRM netlink socket
[    2.081043] NET: Registered protocol family 10
[    2.082313] NET: Registered protocol family 17
[    2.082370] NET: Registered protocol family 15
[    2.082442] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.082458] can: controller area network core (rev 20120528 abi 9)
[    2.082529] NET: Registered protocol family 29
[    2.082605] 8021q: 802.1Q VLAN Support v1.8
[    2.082674] Key type dns_resolver registered
[    2.093391] cpu cpu0: running cpufreq without cooling device: -38
[    2.093468] Registering SWP/SWPB emulation handler
[    2.094422] registered taskstats version 1
[    2.094465] zswap: loading zswap
[    2.094940] zpool: no driver for type zbud
[    2.094955] zswap: zbud zpool not available
[    2.094961] zswap: zpool creation failed
[    2.098458] Btrfs loaded
[    2.102052] Key type encrypted registered
[    2.104431] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01 00:00:14 UTC (14)
[    2.109051] gmac-3v3: disabling
[    2.109079] usb2-vbus: disabling
[    2.109086] usb1-vbus: disabling
[    2.109098] vcc5v0: disabling
[    2.109105] vcc3v0: disabling
[    2.124132] mmc0: host does not support reading read-only switch, assuming write-enable
[    2.126583] mmc0: new high speed SDHC card at address 1234
[    2.127256] mmcblk0: mmc0:1234 SA08G 7.21 GiB
[    2.128839]  mmcblk0: p1
[    2.366922] ata1: SATA link down (SStatus 0 SControl 300)
[    2.371793] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesystem
[    2.371833] EXT4-fs (mmcblk0p1): write access will be enabled during recovery
[    5.337798] random: nonblocking pool is initialized
[    6.559128] EXT4-fs (mmcblk0p1): recovery complete
[    6.626881] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null)
[    6.627013] VFS: Mounted root (ext4 filesystem) readonly on device 179:1.
[    6.628178] devtmpfs: mounted
[    6.629246] Freeing unused kernel memory: 328K (c09ba000 - c0a0c000)
[    7.729899] udevd[213]: starting version 175
[    8.163599] ehci-platform 1c14000.usb: EHCI Host Controller
[    8.163655] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1
[    8.163857] ehci-platform 1c14000.usb: irq 28, io mem 0x01c14000
[    8.176963] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00
[    8.177319] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.177337] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.177348] usb usb1: Product: EHCI Host Controller
[    8.177358] usb usb1: Manufacturer: Linux 4.2.5-sunxi ehci_hcd
[    8.177368] usb usb1: SerialNumber: 1c14000.usb
[    8.178448] hub 1-0:1.0: USB hub found
[    8.178537] hub 1-0:1.0: 1 port detected
[    8.179481] ehci-platform 1c1c000.usb: EHCI Host Controller
[    8.179541] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2
[    8.179761] ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000
[    8.197146] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00
[    8.197578] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    8.197596] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.197607] usb usb2: Product: EHCI Host Controller
[    8.197617] usb usb2: Manufacturer: Linux 4.2.5-sunxi ehci_hcd
[    8.197626] usb usb2: SerialNumber: 1c1c000.usb
[    8.198799] hub 2-0:1.0: USB hub found
[    8.198915] hub 2-0:1.0: 1 port detected
[    8.200057] ohci-platform 1c14400.usb: Generic Platform OHCI controller
[    8.200114] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3
[    8.200321] ohci-platform 1c14400.usb: irq 29, io mem 0x01c14400
[    8.264091] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001
[    8.264115] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.264126] usb usb3: Product: Generic Platform OHCI controller
[    8.264135] usb usb3: Manufacturer: Linux 4.2.5-sunxi ohci_hcd
[    8.264145] usb usb3: SerialNumber: 1c14400.usb
[    8.273331] hub 3-0:1.0: USB hub found
[    8.274009] hub 3-0:1.0: 1 port detected
[    8.275100] ohci-platform 1c1c400.usb: Generic Platform OHCI controller
[    8.275158] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4
[    8.275371] ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400
[    8.331703] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001
[    8.331725] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.331735] usb usb4: Product: Generic Platform OHCI controller
[    8.331744] usb usb4: Manufacturer: Linux 4.2.5-sunxi ohci_hcd
[    8.331753] usb usb4: SerialNumber: 1c1c400.usb
[    8.333196] hub 4-0:1.0: USB hub found
[    8.333617] hub 4-0:1.0: 1 port detected
[    8.387094] sun7i-dwmac 1c50000.ethernet: no reset control found
[    8.387125]  Ring mode enabled
[    8.387137]  No HW DMA feature register supported
[    8.387145]  Normal descriptors
[    8.387150]  TX Checksum insertion supported
[    8.504022] libphy: stmmac: probed
[    8.504051] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[    8.504059] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01)
[    8.517061] usb 2-1: new high-speed USB device number 2 using ehci-platform
[    8.668629] usb 2-1: New USB device found, idVendor=1c88, idProduct=0007
[    8.668663] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    8.668675] usb 2-1: Product: SM-USB 007
[    8.668684] usb 2-1: Manufacturer: Somagic, Inc.
[    8.668693] usb 2-1: SerialNumber: SMBL007
[    8.864098] cfg80211: World regulatory domain updated:
[    8.864122] cfg80211:  DFS Master region: unset
[    8.864130] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[    8.864142] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.864151] cfg80211:   (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[    8.864159] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[    8.864169] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[    8.864179] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[    8.864188] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[    8.864196] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[    8.864204] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   10.627909] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=writeback,commit=600,errors=remount-ro
[   12.949243] Adding 131068k swap on /var/swap.  Priority:-1 extents:2 across:155644k SSFS
[   14.748545]  RX IPC Checksum Offload disabled
[   14.748573]  No MAC Management Counters available
[   19.737293] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   27.555411] Bluetooth: Core ver 2.20
[   27.555541] NET: Registered protocol family 31
[   27.555553] Bluetooth: HCI device and connection manager initialized
[   27.555580] Bluetooth: HCI socket layer initialized
[   27.555598] Bluetooth: L2CAP socket layer initialized
[   27.555635] Bluetooth: SCO socket layer initialized
[   27.598344] Bluetooth: BNEP (Ethernet Emulation) ver 1.3
[   27.598369] Bluetooth: BNEP filters: protocol multicast
[   27.598395] Bluetooth: BNEP socket layer initialized
[   27.637090] Bluetooth: RFCOMM TTY layer initialized
[   27.637146] Bluetooth: RFCOMM socket layer initialized
[   27.637189] Bluetooth: RFCOMM ver 1.11
user1@bananapi:~$
jonjonarnearne commented 8 years ago

hm, that's strange. could you try to run the modprobe smi2021 without the forceagsm parameter. just to know that it isn't that parameter that is wrong? On Nov 28, 2015 6:53 PM, "mdbananapi" notifications@github.com wrote:

Hi!

Thanks for the fast reply.

After loading the saa7115 and smi2021 module, I ran dmesg again but it did not showed any new line regarding the somagic card.

Here is the dmesg after the smi2021 load:

user1@bananapi:~$ sudo modprobe saa7115 debug=1 [sudo] password for user1: user1@bananapi:~$ sudo modprobe smi2021 forceasgm=1 ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg) user1@bananapi:~$ sudo dmesg [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Initializing cgroup subsys cpu [ 0.000000] Initializing cgroup subsys cpuacct [ 0.000000] Linux version 4.2.5-sunxi (root@ubuntu) (gcc version 4.8.2 (Ubuntu/Linaro 4.8.2-16ubuntu4) ) #1 SMP Thu Nov 5 10:57:15 EET 2015 [ 0.000000] CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d [ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache [ 0.000000] Machine model: Banana Pi BPI-M1 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] On node 0 totalpages: 261738 [ 0.000000] free_area_init_node: node 0, pgdat c0a623c0, node_mem_map eeef8000 [ 0.000000] Normal zone: 1710 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 194560 pages, LIFO batch:31 [ 0.000000] HighMem zone: 67178 pages, LIFO batch:15 [ 0.000000] psci: probing for conduit method from DT. [ 0.000000] psci: Using PSCI v0.1 Function IDs from DT [ 0.000000] PERCPU: Embedded 11 pages/cpu @eeec7000 s15424 r8192 d21440 u45056 [ 0.000000] pcpu-alloc: s15424 r8192 d21440 u45056 alloc=11*4096 [ 0.000000] pcpu-alloc: [0] 0 [0] 1 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260028 [ 0.000000] Kernel command line: console=tty1 root=/dev/mmcblk0p1 rootwait rootfstype=ext4 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=1920x1080p60 panic=10 consoleblank=0 enforcing=0 loglevel=1 [ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes) [ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Memory: 1025760K/1046952K available (7899K kernel code, 348K rwdata, 2028K rodata, 328K init, 311K bss, 21192K reserved, 0K cma-reserved, 268712K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc09b9ef4 (9928 kB) [ 0.000000] .init : 0xc09ba000 - 0xc0a0c000 ( 328 kB) [ 0.000000] .data : 0xc0a0c000 - 0xc0a63360 ( 349 kB) [ 0.000000] .bss : 0xc0a66000 - 0xc0ab3edc ( 312 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Additional per-CPU info printed with stalls. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2. [ 0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2 [ 0.000000] NR_IRQS:16 nr_irqs:16 16 [ 0.000000] Architected cp15 timer(s) running at 24.00MHz (phys). [ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns [ 0.000006] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns [ 0.000018] Switching to timer-based delay loop, resolution 41ns [ 0.000382] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns [ 0.000551] clocksource: hstimer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 12741736309 ns [ 0.000738] Console: colour dummy device 80x30 [ 0.000879] console [tty1] enabled [ 0.000905] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=240000) [ 0.000920] pid_max: default: 32768 minimum: 301 [ 0.001062] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001074] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.001804] Initializing cgroup subsys blkio [ 0.001833] Initializing cgroup subsys memory [ 0.001873] Initializing cgroup subsys devices [ 0.001888] Initializing cgroup subsys freezer [ 0.001901] Initializing cgroup subsys net_cls [ 0.001913] Initializing cgroup subsys perf_event [ 0.001960] CPU: Testing write buffer coherency: ok [ 0.002309] /cpus/cpu@0 missing clock-frequency property [ 0.002330] /cpus/cpu@1 missing clock-frequency property [ 0.002344] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.002407] Setting up static identity map for 0x400082c0 - 0x40008318 [ 0.004401] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.004496] Brought up 2 CPUs [ 0.004518] SMP: Total of 2 processors activated (96.00 BogoMIPS). [ 0.004524] CPU: All CPU(s) started in HYP mode. [ 0.004528] CPU: Virtualization extensions available. [ 0.005294] devtmpfs: initialized [ 0.013516] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 4 [ 0.013916] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.014229] xor: measuring software checksum speed [ 0.109983] arm4regs : 1261.600 MB/sec [ 0.210047] 8regs : 778.800 MB/sec [ 0.310107] 32regs : 799.200 MB/sec [ 0.310115] xor: using function: arm4regs (1261.600 MB/sec) [ 0.310255] pinctrl core: initialized pinctrl subsystem [ 0.311393] NET: Registered protocol family 16 [ 0.312018] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.340183] cpuidle: using governor ladder [ 0.364604] cpuidle: using governor menu [ 0.371184] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers. [ 0.371203] hw-breakpoint: maximum watchpoint size is 8 bytes. [ 0.550685] raid6: int32x1 gen() 138 MB/s [ 0.720641] raid6: int32x1 xor() 110 MB/s [ 0.890879] raid6: int32x2 gen() 185 MB/s [ 1.061160] raid6: int32x2 xor() 120 MB/s [ 1.231250] raid6: int32x4 gen() 197 MB/s [ 1.401384] raid6: int32x4 xor() 122 MB/s [ 1.571510] raid6: int32x8 gen() 179 MB/s [ 1.741669] raid6: int32x8 xor() 116 MB/s [ 1.741677] raid6: using algorithm int32x4 gen() 197 MB/s [ 1.741682] raid6: .... xor() 122 MB/s, rmw enabled [ 1.741688] raid6: using intx1 recovery algorithm [ 1.741994] reg-fixed-voltage usb1-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb1_vbus_pin@0, deferring probe [ 1.742040] reg-fixed-voltage usb2-vbus: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/usb2_vbus_pin@0, deferring probe [ 1.742839] reg-fixed-voltage gmac-3v3: could not find pctldev for node /soc@01c00000/pinctrl@01c20800/gmac_power_pin@0, deferring probe [ 1.743351] SCSI subsystem initialized [ 1.743659] libata version 3.00 loaded. [ 1.744011] usbcore: registered new interface driver usbfs [ 1.744083] usbcore: registered new interface driver hub [ 1.744170] usbcore: registered new device driver usb [ 1.744306] media: Linux media interface: v0.10 [ 1.744377] Linux video capture interface: v2.00 [ 1.744486] pps_core: LinuxPPS API ver. 1 registered [ 1.744494] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it [ 1.744521] PTP clock support registered [ 1.746809] clocksource: Switched to clocksource arch_sys_counter [ 1.747803] simple-framebuffer 7fe79000.framebuffer: framebuffer at 0x7fe79000, 0x178e00 bytes, mapped to 0xf0200000 [ 1.747822] simple-framebuffer 7fe79000.framebuffer: format=x8r8g8b8, mode=656x536x32, linelength=2880 [ 1.754535] Console: switching to colour frame buffer device 82x33 [ 1.760666] simple-framebuffer 7fe79000.framebuffer: fb0: simplefb registered! [ 1.771358] NET: Registered protocol family 2 [ 1.772119] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 1.772215] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 1.772342] TCP: Hash tables configured (established 8192 bind 8192) [ 1.772439] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 1.772502] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 1.772802] NET: Registered protocol family 1 [ 1.773292] RPC: Registered named UNIX socket transport module. [ 1.773307] RPC: Registered udp transport module. [ 1.773312] RPC: Registered tcp transport module. [ 1.773318] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 1.774231] hw perfevents: Failed to parse /pmu/interrupt-affinity[0] [ 1.774296] hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available [ 1.775520] futex hash table entries: 512 (order: 3, 32768 bytes) [ 1.784261] zpool: loaded [ 1.787271] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 1.789164] NFS: Registering the id_resolver key type [ 1.789235] Key type id_resolver registered [ 1.789242] Key type id_legacy registered [ 1.789970] Key type cifs.idmap registered [ 1.790278] fuse init (API version 7.23) [ 1.791356] JFS: nTxBlock = 8013, nTxLock = 64110 [ 1.801758] SGI XFS with ACLs, security attributes, realtime, no debug enabled [ 1.809055] bounce: pool size: 64 pages [ 1.809180] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249) [ 1.809358] io scheduler noop registered [ 1.809376] io scheduler deadline registered [ 1.809432] io scheduler cfq registered (default) [ 1.812078] sun7i-a20-pinctrl 1c20800.pinctrl: initialized sunXi PIO driver [ 1.873898] Serial: 8250/16550 driver, 8 ports, IRQ sharing disabled [ 1.897405] 1c28000.serial: ttyS0 at MMIO 0x1c28000 (irq = 41, base_baud = 1500000) is a U6_16550A [ 1.920814] 1c28c00.serial: ttyS1 at MMIO 0x1c28c00 (irq = 42, base_baud = 1500000) is a U6_16550A [ 1.944156] 1c29c00.serial: ttyS2 at MMIO 0x1c29c00 (irq = 43, base_baud = 1500000) is a U6_16550A [ 1.951224] loop: module loaded [ 1.951527] Loading iSCSI transport class v2.0-870. [ 2.016887] ahci-sunxi 1c18000.sata: controller can't do PMP, turning off CAP_PMP [ 2.016941] ahci-sunxi 1c18000.sata: SSS flag set, parallel bus scan disabled [ 2.016975] ahci-sunxi 1c18000.sata: AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl platform mode [ 2.016992] ahci-sunxi 1c18000.sata: flags: ncq sntf stag pm led clo only pio slum part ccc [ 2.018036] scsi host0: ahci-sunxi [ 2.018404] ata1: SATA max UDMA/133 mmio [mem 0x01c18000-0x01c18fff] port 0x100 irq 30 [ 2.019721] Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011) [ 2.022573] tun: Universal TUN/TAP device driver, 1.6 [ 2.022589] tun: (C) 1999-2004 Max Krasnyansky maxk@qualcomm.com [ 2.023249] PPP generic driver version 2.4.2 [ 2.023493] PPP BSD Compression module registered [ 2.023507] PPP Deflate Compression module registered [ 2.023536] PPP MPPE Compression module registered [ 2.023554] NET: Registered protocol family 24 [ 2.023598] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 2.023612] ehci-platform: EHCI generic platform driver [ 2.024025] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 2.024062] ohci-platform: OHCI generic platform driver [ 2.024426] usbcore: registered new interface driver usb-storage [ 2.024443] ftdi_elan: driver ftdi-elan [ 2.024948] usbcore: registered new interface driver ftdi-elan [ 2.026006] sunxi-rtc 1c20d00.rtc: rtc core: registered rtc-sunxi as rtc0 [ 2.026023] sunxi-rtc 1c20d00.rtc: RTC enabled [ 2.026132] i2c /dev entries driver [ 2.027294] axp20x 0-0034: AXP20x variant AXP209 found [ 2.034873] input: axp20x-pek as /devices/platform/soc@01c00000/1c2ac00.i2c/i2c-0/0-0034/axp20x-pek/input/input0 [ 2.035075] axp20x-regulator axp20x-regulator: regulators node not found [ 2.037547] axp20x 0-0034: AXP20X driver loaded [ 2.039371] IR NEC protocol handler initialized [ 2.039391] IR RC5(x/sz) protocol handler initialized [ 2.039402] IR RC6 protocol handler initialized [ 2.039412] IR JVC protocol handler initialized [ 2.039421] IR Sony protocol handler initialized [ 2.039431] IR SANYO protocol handler initialized [ 2.039441] IR Sharp protocol handler initialized [ 2.039450] IR MCE Keyboard/mouse protocol handler initialized [ 2.039460] IR XMP protocol handler initialized [ 2.039595] usbcore: registered new interface driver uvcvideo [ 2.039603] USB Video Class driver (1.1.1) [ 2.040702] sunxi-wdt 1c20c90.watchdog: Watchdog enabled (timeout=16 sec, nowayout=0) [ 2.041444] sunxi-mmc 1c0f000.mmc: No vqmmc regulator found [ 2.041916] sunxi-mmc 1c0f000.mmc: Got CD GPIO [ 2.077043] sunxi-mmc 1c0f000.mmc: base:0xf0178000 irq:27 [ 2.077838] ledtrig-cpu: registered to indicate activity on CPUs [ 2.078164] usbcore: registered new interface driver usbhid [ 2.078173] usbhid: USB HID core driver [ 2.079124] ipip: IPv4 over IPv4 tunneling driver [ 2.080004] Initializing XFRM netlink socket [ 2.081043] NET: Registered protocol family 10 [ 2.082313] NET: Registered protocol family 17 [ 2.082370] NET: Registered protocol family 15 [ 2.082442] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. [ 2.082458] can: controller area network core (rev 20120528 abi 9) [ 2.082529] NET: Registered protocol family 29 [ 2.082605] 8021q: 802.1Q VLAN Support v1.8 [ 2.082674] Key type dns_resolver registered [ 2.093391] cpu cpu0: running cpufreq without cooling device: -38 [ 2.093468] Registering SWP/SWPB emulation handler [ 2.094422] registered taskstats version 1 [ 2.094465] zswap: loading zswap [ 2.094940] zpool: no driver for type zbud [ 2.094955] zswap: zbud zpool not available [ 2.094961] zswap: zpool creation failed [ 2.098458] Btrfs loaded [ 2.102052] Key type encrypted registered [ 2.104431] sunxi-rtc 1c20d00.rtc: setting system clock to 1970-01-01 00:00:14 UTC (14) [ 2.109051] gmac-3v3: disabling [ 2.109079] usb2-vbus: disabling [ 2.109086] usb1-vbus: disabling [ 2.109098] vcc5v0: disabling [ 2.109105] vcc3v0: disabling [ 2.124132] mmc0: host does not support reading read-only switch, assuming write-enable [ 2.126583] mmc0: new high speed SDHC card at address 1234 [ 2.127256] mmcblk0: mmc0:1234 SA08G 7.21 GiB [ 2.128839] mmcblk0: p1 [ 2.366922] ata1: SATA link down (SStatus 0 SControl 300) [ 2.371793] EXT4-fs (mmcblk0p1): INFO: recovery required on readonly filesystem [ 2.371833] EXT4-fs (mmcblk0p1): write access will be enabled during recovery [ 5.337798] random: nonblocking pool is initialized [ 6.559128] EXT4-fs (mmcblk0p1): recovery complete [ 6.626881] EXT4-fs (mmcblk0p1): mounted filesystem with writeback data mode. Opts: (null) [ 6.627013] VFS: Mounted root (ext4 filesystem) readonly on device 179:1. [ 6.628178] devtmpfs: mounted [ 6.629246] Freeing unused kernel memory: 328K (c09ba000 - c0a0c000) [ 7.729899] udevd[213]: starting version 175 [ 8.163599] ehci-platform 1c14000.usb: EHCI Host Controller [ 8.163655] ehci-platform 1c14000.usb: new USB bus registered, assigned bus number 1 [ 8.163857] ehci-platform 1c14000.usb: irq 28, io mem 0x01c14000 [ 8.176963] ehci-platform 1c14000.usb: USB 2.0 started, EHCI 1.00 [ 8.177319] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.177337] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.177348] usb usb1: Product: EHCI Host Controller [ 8.177358] usb usb1: Manufacturer: Linux 4.2.5-sunxi ehci_hcd [ 8.177368] usb usb1: SerialNumber: 1c14000.usb [ 8.178448] hub 1-0:1.0: USB hub found [ 8.178537] hub 1-0:1.0: 1 port detected [ 8.179481] ehci-platform 1c1c000.usb: EHCI Host Controller [ 8.179541] ehci-platform 1c1c000.usb: new USB bus registered, assigned bus number 2 [ 8.179761] ehci-platform 1c1c000.usb: irq 31, io mem 0x01c1c000 [ 8.197146] ehci-platform 1c1c000.usb: USB 2.0 started, EHCI 1.00 [ 8.197578] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.197596] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.197607] usb usb2: Product: EHCI Host Controller [ 8.197617] usb usb2: Manufacturer: Linux 4.2.5-sunxi ehci_hcd [ 8.197626] usb usb2: SerialNumber: 1c1c000.usb [ 8.198799] hub 2-0:1.0: USB hub found [ 8.198915] hub 2-0:1.0: 1 port detected [ 8.200057] ohci-platform 1c14400.usb: Generic Platform OHCI controller [ 8.200114] ohci-platform 1c14400.usb: new USB bus registered, assigned bus number 3 [ 8.200321] ohci-platform 1c14400.usb: irq 29, io mem 0x01c14400 [ 8.264091] usb usb3: New USB device found, idVendor=1d6b, idProduct=0001 [ 8.264115] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.264126] usb usb3: Product: Generic Platform OHCI controller [ 8.264135] usb usb3: Manufacturer: Linux 4.2.5-sunxi ohci_hcd [ 8.264145] usb usb3: SerialNumber: 1c14400.usb [ 8.273331] hub 3-0:1.0: USB hub found [ 8.274009] hub 3-0:1.0: 1 port detected [ 8.275100] ohci-platform 1c1c400.usb: Generic Platform OHCI controller [ 8.275158] ohci-platform 1c1c400.usb: new USB bus registered, assigned bus number 4 [ 8.275371] ohci-platform 1c1c400.usb: irq 32, io mem 0x01c1c400 [ 8.331703] usb usb4: New USB device found, idVendor=1d6b, idProduct=0001 [ 8.331725] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.331735] usb usb4: Product: Generic Platform OHCI controller [ 8.331744] usb usb4: Manufacturer: Linux 4.2.5-sunxi ohci_hcd [ 8.331753] usb usb4: SerialNumber: 1c1c400.usb [ 8.333196] hub 4-0:1.0: USB hub found [ 8.333617] hub 4-0:1.0: 1 port detected [ 8.387094] sun7i-dwmac 1c50000.ethernet: no reset control found [ 8.387125] Ring mode enabled [ 8.387137] No HW DMA feature register supported [ 8.387145] Normal descriptors [ 8.387150] TX Checksum insertion supported [ 8.504022] libphy: stmmac: probed [ 8.504051] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active [ 8.504059] eth0: PHY ID 001cc915 at 1 IRQ POLL (stmmac-0:01) [ 8.517061] usb 2-1: new high-speed USB device number 2 using ehci-platform [ 8.668629] usb 2-1: New USB device found, idVendor=1c88, idProduct=0007 [ 8.668663] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 8.668675] usb 2-1: Product: SM-USB 007 [ 8.668684] usb 2-1: Manufacturer: Somagic, Inc. [ 8.668693] usb 2-1: SerialNumber: SMBL007 [ 8.864098] cfg80211: World regulatory domain updated: [ 8.864122] cfg80211: DFS Master region: unset [ 8.864130] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time) [ 8.864142] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 8.864151] cfg80211: (2457000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A) [ 8.864159] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A) [ 8.864169] cfg80211: (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A) [ 8.864179] cfg80211: (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s) [ 8.864188] cfg80211: (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s) [ 8.864196] cfg80211: (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A) [ 8.864204] cfg80211: (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A) [ 10.627909] EXT4-fs (mmcblk0p1): re-mounted. Opts: data=writeback,commit=600,errors=remount-ro [ 12.949243] Adding 131068k swap on /var/swap. Priority:-1 extents:2 across:155644k SSFS [ 14.748545] RX IPC Checksum Offload disabled [ 14.748573] No MAC Management Counters available [ 19.737293] sun7i-dwmac 1c50000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off [ 27.555411] Bluetooth: Core ver 2.20 [ 27.555541] NET: Registered protocol family 31 [ 27.555553] Bluetooth: HCI device and connection manager initialized [ 27.555580] Bluetooth: HCI socket layer initialized [ 27.555598] Bluetooth: L2CAP socket layer initialized [ 27.555635] Bluetooth: SCO socket layer initialized [ 27.598344] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 27.598369] Bluetooth: BNEP filters: protocol multicast [ 27.598395] Bluetooth: BNEP socket layer initialized [ 27.637090] Bluetooth: RFCOMM TTY layer initialized [ 27.637146] Bluetooth: RFCOMM socket layer initialized [ 27.637189] Bluetooth: RFCOMM ver 1.11 user1@bananapi:~$

— Reply to this email directly or view it on GitHub https://github.com/Manouchehri/smi2021/issues/21#issuecomment-160324321.

mdbananapi commented 8 years ago

Yes, here is the output of modeprobe smi2021 without the parameter:


user1@bananapi:~$ sudo modprobe smi2021
ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg)

The dmesg message did not changed.

Could it be that the kernel somehow changed the smi2021 module? Because the last time I started banana pi and got the kernel panic error, it said: fixing recursive fault but reboot is needed

In the last image, the last line on https://github.com/Manouchehri/smi2021/issues/21#issuecomment-155545978

jonjonarnearne commented 8 years ago

I don't think the kernel can do that.

But I think it's strange that the dmesg doesn't change. Usually it should print some info about what symbols are missing.

Does the dmesg change on your computer (not banana pi) when you modprobe the saa7115 module? if it does, then you should also see those messages on the banana pi.

On Nov 28, 2015 6:59 PM, "mdbananapi" notifications@github.com wrote:

Yes, here is the output of modeprobe smi2021 without the parameter:

user1@bananapi:~$ sudo modprobe smi2021 ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg)

The dmesg message did not changed.

Could it be that the kernel somehow changed the smi2021 module? Because the last time I started banana pi and got the kernel panic error, it said: fixing recursive fault but reboot is needed

In the last image, the last line on #21 (comment) https://github.com/Manouchehri/smi2021/issues/21#issuecomment-155545978

— Reply to this email directly or view it on GitHub https://github.com/Manouchehri/smi2021/issues/21#issuecomment-160324590.

mdbananapi commented 8 years ago

I just tested this on my computer. This is without the sub easycap pluged in:

When I run sudo modprobe saa7115 debug=1 I get 2 lines in dmesg:

media: Linux media interface : v.0.10 video linux capture interface: v 2.00

and when I run sudo modprobe smi2021 I get usbcore: registered new interface driver: smi2021

and after I insert the easycap usb, it autostarts and in dmesg I get message the the chip was found, and the firmware is loaded and the device works.

But in banana pi, dmesg it does not output anything right now. Weather I run sudo modprobe saa7115 debug=1 or sudo modprobe smi2021

But in the past before that error, I remember that when I ran sudo modprobe saa7115 debug=1 and sudo modprobe smi2021 I got only 1 message in dmesg: usbcore: registered new interface driver: smi2021

the part from saa7115 was still missing.

jonjonarnearne commented 8 years ago

OK. The interface driver line for smi doesn't show until the module is loaded, so you will not see that until modprobe runs without errors.

At the moment it's hard for me to help you as there are no error messages in dmesg :) maybe the banana pi kernel need some compile flags to be more verbose? On Nov 28, 2015 7:18 PM, "mdbananapi" notifications@github.com wrote:

I just tested this on my computer. This is without the sub easycap pluged in:

When I run sudo modprobe saa7115 debug=1 I get 2 lines in dmesg:

media: Linux media interface : v.0.10 video linux capture interface: v 2.00

and when I run sudo modprobe smi2021 I get usbcore: registered new interface driver: smi2021

and after I insert the easycap usb, it autostarts and in dmesg I get message the the chip was found, and the firmware is loaded and the device works.

But in banana pi, dmesg it does not output anything right now. Weather I run sudo modprobe saa7115 debug=1 or sudo modprobe smi2021

But in the past before that error, I remember that when I ran sudo modprobe saa7115 debug=1 and sudo modprobe smi2021 I got only 1 message in dmesg: usbcore: registered new interface driver: smi2021

the part from saa7115 was still missing.

— Reply to this email directly or view it on GitHub https://github.com/Manouchehri/smi2021/issues/21#issuecomment-160326314.

mdbananapi commented 8 years ago

Can you please tell me what compile flags I should enable? Because I can compile a new kernel (but this takes a few hours to do. )

jonjonarnearne commented 8 years ago

I'm sorry, I was just speculating.

I don't think there are any options in the kernel to disable error messages from modprobe, and I can't understand why your banana pi kernel should disable it anyway :)

It's just that I'm lost here.

Can you see if you can get the dmesg to change at all after boot? You could also try insmod instead of modprobe, but then you will have to supply the path to the smi2021.ko file. That should be something like /lib/modules/{kernel-version}/kernel/drivers/media/usb/smi2021/smi2021.ko I'm not sure if that will be any different.

On Sat, Nov 28, 2015 at 7:45 PM, mdbananapi notifications@github.com wrote:

Can you please tell me what compile flags I should enable? Because I can compile a new kernel (but this takes a few hours to do. )

— Reply to this email directly or view it on GitHub https://github.com/Manouchehri/smi2021/issues/21#issuecomment-160328820.

Jonarne http://jonarne.no

mdbananapi commented 8 years ago

I did a reboot and tried insmod but it did not worked.

By the way, my smi2021.ko file has been installed in /lib/modules/{kernel-version}/extra/smi2021.ko

I have deleted the module and compiled it again.

When I rebooted, I first tried with the easycap device connected and when I did modprobe saa7115 it did nothing and in dmesg it showed nothing. But in lsmod it was showing saa7115.

After this I did modprobe smi2021 and banana pi froze. I was connected through ttl but this did not prevent from freezing. No message were being sent after this.

So I rebooted again, removed the easycap usb and when I ran modprobe saa7115 it still did not show nothing in dmesg, but when I ran modprobe smi2021 it showed:

[ 125.007165] usbcore: registered new interface driver smi2021

Maybe I should enable kernel crash dumps after all if ttl can not show anything during banana pi freeze?

I will compile the new kernel with debug options and will test it maybe I get some new messages there.

mastervolkov commented 8 years ago

If you do not see the: ERROR: could not insert 'smi2021': Unknown symbol in module, or unknown parameter (see dmesg) then module build and install right.

It would be interesting see you crash dump on modprobe smi2021

mdbananapi commented 8 years ago

I have bought a uard usb to ttl card and connected it to the banana pi to capture the error.

I have installed a new, fresh os, and recompiled again the somagic driver, and it finished nicely. I copied the firmware in the lib/firmware folder, then rebooted and connected via the uart port and finally captured the error :)

From what I understand, the firmware is detected successfully, but then it appears some errors which contains variables from the smi2021 module files.

[ 6.251989] usb 2-1: Looking for: smi2021_3f.bin [ 6.266279] usb 2-1: Looking for: smi2021_3e.bin [ 6.271056] usb 2-1: Looking for: smi2021_3c.bin [ 6.277395] usb 2-1: Found firmware for 0x003c [ 6.304936] usbcore: registered new interface driver smi2021 [ 6.310857] usb 2-1: USB disconnect, device number 2 done. [ 6.596826] usb 2-1: new high-speed USB device number 3 using ehci-platform [ 6.758588] usb 2-1: New USB device found, idVendor=1c88, idProduct=003c [ 6.765344] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.772701] usb 2-1: Product: SMI Grabber DEV [ 6.777247] usb 2-1: Manufacturer: Somagic, Inc. [ 6.782157] usb 2-1: SerialNumber: SMIGRABBER9876543210 [ 6.789332] smi2021 2-1:1.0: Chip autodetection start [ 6.808020] smi2021 2-1:1.0: WARNING !!! Issue #15. Response to chip version request

contains an error and request automatic once restarted.

The full output of the connection is on http://pastebin.com/x5jAgT14

After it reaches to the finish, it stays and does do nothing. If I restart and remove the usb card smi2021, then the linux works fine.

Can it be that this error is caused by the somagic driver/ firmware?

jonjonarnearne commented 8 years ago

good work, I found this in the paste:

[ 6.901035] Unable to handle kernel NULL pointer dereference at virtual address 0000000a

that is a kernel panic, and it's caused by the smi2021 driver.

I don't have time to look at the code now, but the crash seems to occur when the driver is trying to autodetect the saa7113 chip. There have been some changes to the code to handle some devices with other versions of the saa7114 chip, and there is something in that code that causes the panic. On Dec 26, 2015 7:48 PM, "mdbananapi" notifications@github.com wrote:

I have bought a uard usb to ttl card and connected it to the banana pi to capture the error.

I have installed a new, fresh os, and recompiled again the somagic driver, and it finished nicely. I copied the firmware in the lib/firmware folder, then rebooted and connected via the uart port and finally captured the error :)

From what I understand, the firmware is detected successfully, but then it appears some errors which contains variables from the smi2021 module files.

[ 6.251989] usb 2-1: Looking for: smi2021_3f.bin [ 6.266279] usb 2-1: Looking for: smi2021_3e.bin [ 6.271056] usb 2-1: Looking for: smi2021_3c.bin [ 6.277395] usb 2-1: Found firmware for 0x003c [ 6.304936] usbcore: registered new interface driver smi2021 [ 6.310857] usb 2-1: USB disconnect, device number 2 done. [ 6.596826] usb 2-1: new high-speed USB device number 3 using ehci-platform [ 6.758588] usb 2-1: New USB device found, idVendor=1c88, idProduct=003c [ 6.765344] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 6.772701] usb 2-1: Product: SMI Grabber DEV [ 6.777247] usb 2-1: Manufacturer: Somagic, Inc. [ 6.782157] usb 2-1: SerialNumber: SMIGRABBER9876543210 [ 6.789332] smi2021 2-1:1.0: Chip autodetection start [ 6.808020] smi2021 2-1:1.0: WARNING !!! Issue #15 https://github.com/Manouchehri/smi2021/issues/15. Response to chip version request

contains an error and request automatic once restarted.

The full output of the connection is on http://pastebin.com/x5jAgT14

After it reaches to the finish, it stays and does do nothing. If I restart and remove the usb card smi2021, then the linux works fine.

Can it be that this error is caused by the somagic driver/ firmware?

— Reply to this email directly or view it on GitHub https://github.com/Manouchehri/smi2021/issues/21#issuecomment-167353807.

mdbananapi commented 8 years ago

Thank you very much for the reply. Is there any possibility I could fix it/ or try to help fixing it? Please do not try to fix this now, as you said you have no time. It is better to wait when you will have more time so you could take a better look.

Anyway, I also would like to help (if I can) :)

tosiara commented 8 years ago

Hey guys, right now I have a Banana Pi ARM device and a smi2021 capture stick. Do you want me to perform any test:

Linux linux 3.4.90 #2 SMP PREEMPT Tue Aug 5 14:11:40 CST 2014 armv7l armv7l armv7l GNU/Linux

mdbananapi commented 8 years ago

Hi tosiara!

Have you managed to get the smi2021 to work on your banana pi? I see that you have an old kernel, 3.4.90, under which I also tried to compile the driver but it was too old to support.

tosiara commented 8 years ago

Yeah, right :( The newest kernel that I have is 3.10 for Odroid C1, but it is still too old:

smi2021_main.c:41:3: error: #error We only support 3.12 and above series kernels
 # error We only support 3.12 and above series kernels
mastervolkov commented 8 years ago

If you want use 3.4 - you can. But for kernel less then 3.12 need additional patch. You can read abot needed patch in https://github.com/Manouchehri/smi2021/wiki/BuildingKernelModule#add-supporting-modules

mdbananapi commented 8 years ago

@tosiara If you want to install a new linux image, with the latest version of kernel, you can use the Armbian Linux for ARM devices made by @igorpecovnik . I have installed that version of Linux and have the kernel 4.2 version, under which I managed to compile the smi2021 module but it gives me this kernel panic.

If you want to install Armbian Linux with the latest kernel, here are the steps (taken from https://github.com/igorpecovnik/lib ):

  1. If you are on Windows, you need to download and install a virtual box under which you will need to install a Linux OS. I used Oracle WM Virtual Box for this and installed Ubuntu Server. If you already have Linux on your computer than you do not need to follow this step.
  2. Install Git and then clone https://github.com/igorpecovnik/lib
  3. Then you need to copy the compile.sh file located in lib folder in the git files you just cloned. ex: cp lib/compile.sh .
  4. You need to make it executable. ex: chmod +x compile.sh
  5. You can run it. ex: ./compile.sh

This will start the compilation of a new image with Armbian Linux and latest kernel (or what version you need, you can configure this.)

By default the compiler does not starts menuconfig and you can not configure kernel. If you need to configure kernel, you need to change in compile.sh the line KERNEL_CONFIGURE="no" to KERNEL_CONFIGURE="yes"

This will allow you to configure kernel. In the past I had to include the saa7115 module and other dependencies by myself, but in the latest releases of the script, Igor has enabled them by default, so you can compile the smi2021 module without configuring kernel.

After the compilation will be finished, in the output folder there will be the image of the new os ex: Armbian_4.70_Bananapi_Debian_wheezy_4.2.6.raw You need to copy that and with the tool that is included in there by default (imagewriter.exe), under windows, you can copy and install the OS on your sd card. This will delete all data from sd card.

After this you just insert the sd card in banana pi and it starts normally.

As I have said before, with this kernel you can compile the smi2021 module but it gives kernel panic, so somehow it needs to be debugged.

At first I wanted to debug using Kdump, but I found out that this is impossible on banana pi (for me, since I am a novice in Linux) since getting the crash dumps with Kdump needs to have dual boot to load a new kernel when there is kernel panic, but banana pi does not have dual boot. :(

So a user from Armbian community suggested me to use UART adapter (USB to TTL). I found a cheap USB to TTL adapter on Aliexpress (aprox. $1) which I ordered and which arrived in 1 month in Europe. And then I connected my banana pi to the USB to TTL device, and connected the usb in my pc which runs windows, installed the driver for it and using Putty (serial), I connected to Banana Pi and captured the error. More info on how to connect UART adapter and which one to choose, you can read at Linux-Sunxi Wiki, http://linux-sunxi.org/UART and http://linux-sunxi.org/LeMaker_Banana_Pi

If you also want to debug using UART, then I suggest you to find the USB adapter somewhere locally in your city/country, as from Aliexpress it took almost 1 month for it to arrive. You will also need to edit the boot.cmd file to write console=ttyS0,115200 and change the log level from 1 to 7. More info in this thread: http://forum.armbian.com/index.php/topic/448-how-to-enable-kernel-crash-dumps-to-debug-kernel-panic/

ivanwyc commented 8 years ago

Had the same problem with RPI. This is my fix:

https://github.com/Manouchehri/smi2021/pull/28

Please consider the above PR.

mastervolkov commented 8 years ago

@mdbananapi is that fix solve You problem?