Jump to content

DreamDreams

Members
  • Posts

    48
  • Joined

  • Last visited

Posts posted by DreamDreams

  1. Here is the exact process I followed.

     

    1. Installed Armbian_5.24.161216_Orangepizero_Ubuntu_xenial_3.4.113.img onto a 16 GB SD card using Win32DiskImager.
    2. Mounted the uSD in Ubuntu Laptop and expanded the partition using GParted.
    3. Deleted everything from uSD except /boot and /lib/modules
    4. Mounted openwrt-15.05.1-sunxi-root.ext4 on Ubuntu using loopback interface on /mnt/openwrt
    5. Copied over the contents of /mnt/openwrt to the root of uSD by merging folders when prompted.
    6. Modified /etc/init.d/boot and added ulimit -n 10000 before /sbin/kmloader command (line39).
    7. Executed the following code inside /lib/modules/3.4.113-sun8i 

       

      for x in `find -name *.ko`
      do
          ln -s $x .
      done
      
      

    After executing the above steps, I transferred the uSD to OPiZero and booted from it. Then I connected the OPZ LAN to my wifi routers LAN socket and scanned my local network for new devices. Nothing showed up. Read on OpenWRT website that when OpenWRT is freshly installed, it assigns 192.168.1.1/24 to the LAN interface. I double checked that there is no IP conflict on my lan but still nothing showed up on my network scan. I was unable to ping or telnet to 192.168.1.1.

     

    I even tried connecting my OPZ directly to my laptop using normal ethernet cable. I assigned my Laptop LAN 192.168.1.2/24 and tried to ping OPZ. Nothing happened. Since my laptop has Gbit ethernet I assumed a cross cable is not necessary since Gbit NIC can auto configure connects.

     

    Sorry there is another folder from Armbian that needs to be retained, which is /lib/firmware. 

     

    To be sure whether it boots or had anything wrong during the process, you better have a TTL cable to attach to serial console. Otherwise you'd have to guess.

  2. This is very interesting info. Thank's for that. I am using OpenWrt from some time for my LamoboR1. Armbian is great project, but for server purposes i couldn't find some useful and user friendly firewall (ip tables), router like solution. All is crazy command line chains i have to describe manually for simplest things even, or outdated and functionally limited GUI-s. Which is not related to Armbian itself, of course. OpenWrt is simple enough in firewall part and easy for maintaining and monitor. So i sacrifice Desktop and multimedia part in a favour of current needs.

    The problem is - i try to make some OrangePi-s of mine, something like backup router and although Orange Pi Plus and 2 is supported by OpenWrt i couldn't build image that can work with OrangePi PC for example. I try to replace bootable part with the one from Armbian and Loboris images, but non bootable again. But never thought of doing it the opposite way :). What i don't understand is the part with relinking .ko files. Maybe it's a dumb question, but you symlink .ko files to what exactly?

    And this OpenWrt rootfs you using, for what kernel version is built? I tried 4xxxx kernel and it worked ok, but OpenWrt packages reported wrong version and was uninstallable, only prebuilt worked. So i am with kernel 3.18.29 now. But this combination with Armbian boot part, is it make OpenWrt packages compatible from OpenWrt repos, or need to be prebuilt?

    1. About relinking .ko files. It's just a quick hack because I don't want to figure out why OpenWRT's kernel module is organized that way. I just linked all ko files to /lib/modules/3.4.113/. Just check OpenWRT dir layout. 

    2. This solution has nothing to do with OpenWRT's own kernel image an kernel module. It's just Armbian's kernel 3.4.113. If you find yourself not able to understand this maybe you need to catch up with some basic Linux concepts. 

  3. Okay, I have the XR819 driver compiling against https://github.com/megous/linux/(this is the kernel source Armbian appears to have switched to).

     

    linux-49-xradio.png

     

    Should I submit a pull request to the above repo, or to the Armbian repo?

     

    Not sure where the firmware for the radio comes from though, I just grabbed it out of the Armbian image.

     

    Pull request submitted to megous/linux...

     

    I compiled Armbian against your repo but after loading the module nothing happens, wlan0 doesn't show up in ifconfig -a, nor is there any error message.

  4. Folks, please let's start to use this forum in a productive way. It's not about Armbian but about collecting knowledge and joining development efforts.

     

    What about posting a simple tutorial how to create an OpenWRT image based on Armbian? Next step: suggestion how to 'mis-use' Armbian's build system to produce 'foreign' OS Images?

     

    We currently support +40 SBC with our build system. And we *CARE* about settings and squeezing the max out of the boards unlike other projects (DietPi as a negative example). And when you look around the wheel gets reinvented every second. OpenWRT is one example, Kali Linux or Volumio are others. So sad.

     

    I'm not familiar with Armbian's build system other than use it for several times. But my post #6 above can surely produce a working OpenWRT image manually. Maybe someone can integrate it into Armbian's build system.

  5. Without u-boot suitable for H3 OpenWRT will not be able to boot and then it's a way better idea to rely on mainline kernel with the fixed xradio_wlan driver from there. Trying to use OpenWRT with the smelly 3.4.x Android kernel is not a good idea.

     

    PS: I moved your posts since off-topic stuff belongs to 'Free' forum.

     

    I did try to build mainline kernel last week (using Igor's script) but didn't find xradio_wlan driver. Did I miss something?

  6. Care to explain even further?

    Haven't done things like this before

     

    Thanks in advance

     

    What I did is simple:

    1. Install Armbian

    2. delete everything except /boot and /lib/modules from rootfs

    3. copy over OpenWRT rootfs 

     

    And that's it. This means I use u-boot, kernel, initrd and all settings from Armbian, only userland from OpenWRT. 

     

    And one minor tweak. Since how OpenWRT organize kernel modules is different, I have to do following:

    1. symlink all .ko files to /lib/modules/3.4.112 using

    for x in `find -name *.ko`
    do
        ln -s $x .
    done
    

    2. OpenWRT's /sbin/kmodloader seems trying to open all ko files at once for stat and Armbian has a lot of modules under /lib/modules/3.4.112 dir so kmodloader will run out of file handle. I'm lazy to try to figure out which one is needed, so I simply change ulimit before kmodloader is ran in /etc/init.d/boot. Add one line at line 40:

    ulimit -n 10000
    
  7. Kernel log from serial console:

    [ 9240.894559] swapper/3: page allocation failure: order:10, mode:0x20
    [ 9240.896677] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.896688] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.896698]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.896714]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.897241] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.897253] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.897262]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.897274]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.897400] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.897410] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.897419]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.897429]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.900264] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.900274] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.900283]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.900295]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.901423] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.901433] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.901442]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.901453]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.901770] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.901780] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.901789]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.901799]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.902073] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.902083] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.902092]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.902103]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.905836] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.905846] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.905855]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.905867]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.911896] swapper/2: page allocation failure: order:9, mode:0x20
    [ 9240.911907] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.911916]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.911928]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9240.912015] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9240.912024]   cache: size-2097152, object size: 2097152, order: 9
    [ 9240.912035]   node 0: slabs: 36/36, objs: 36/36, free: 0
    [ 9246.175988] warn_alloc_failed: 344 callbacks suppressed
    [ 9246.185939] swapper/3: page allocation failure: order:10, mode:0x20
    [ 9246.185939] kmem_getpages: 344 callbacks suppressed
    [ 9246.185939] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.185939]   cache: size-4194304, object size: 4194304, order: 10
    [ 9246.185939]   node 0: slabs: 25/26, objs: 25/26, free: 1
    [ 9246.324452] swapper/2: page allocation failure: order:10, mode:0x20
    [ 9246.337061] swapper/3: page allocation failure: order:10, mode:0x20
    [ 9246.337072] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.337081]   cache: size-4194304, object size: 4194304, order: 10
    [ 9246.337095]   node 0: slabs: 26/26, objs: 26/26, free: 0
    [ 9246.396937] swapper/0: page allocation failure: order:9, mode:0x20
    [ 9246.396949] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.396959]   cache: size-2097152, object size: 2097152, order: 9
    [ 9246.396974]   node 0: slabs: 31/31, objs: 31/31, free: 0
    [ 9246.334408] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.334408]   cache: size-4194304, object size: 4194304, order: 10
    [ 9246.334408]   node 0: slabs: 23/26, objs: 23/26, free: 3
    [ 9246.505363] ksoftirqd/2: page allocation failure: order:9, mode:0x20
    [ 9246.510339] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.510339]   cache: size-2097152, object size: 2097152, order: 9
    [ 9246.540656] swapper/3: page allocation failure: order:9, mode:0x20
    [ 9246.540666] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.540675]   cache: size-2097152, object size: 2097152, order: 9
    [ 9246.540689]   node 0: slabs: 32/32, objs: 32/32, free: 0
    [ 9246.554050] swapper/1: page allocation failure: order:9, mode:0x20
    [ 9246.554061] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.554071]   cache: size-2097152, object size: 2097152, order: 9
    [ 9246.554083]   node 0: slabs: 32/32, objs: 32/32, free: 0
    [ 9246.510339]   node 0: slabs: 32/33, objs: 32/33, free: 1
    [ 9246.842800] swapper/3: page allocation failure: order:9, mode:0x20
    [ 9246.852754] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.852754]   cache: size-2097152, object size: 2097152, order: 9
    [ 9246.852754]   node 0: slabs: 31/34, objs: 31/34, free: 3
    [ 9246.940070] swapper/1: page allocation failure: order:10, mode:0x20
    [ 9246.944507] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9246.944507]   cache: size-4194304, object size: 4194304, order: 10
    [ 9246.944507]   node 0: slabs: 26/26, objs: 26/26, free: 0
    [ 9247.000889] ksoftirqd/1: page allocation failure: order:10, mode:0x20
    [ 9247.010035] SLAB: Unable to allocate memory on node 0 (gfp=0x20)
    [ 9247.010035]   cache: size-4194304, object size: 4194304, order: 10
    [ 9247.010035]   node 0: slabs: 26/26, objs: 26/26, free: 0
    [ 9247.080344] Unable to handle kernel NULL pointer dereference at virtual address 00000004
    [ 9247.090304] pgd = c0004000
    [ 9247.090304] [00000004] *pgd=00000000
    [ 9247.090304] sunxi oops: enable sdcard JTAG interface
    [ 9247.090304] sunxi oops: cpu frequency: 1008 MHz
    [ 9247.090304] sunxi oops: ddr frequency: 624 MHz
    [ 9247.090304] sunxi oops: gpu frequency: 105 MHz
    [ 9247.090304] sunxi oops: cpu temperature: 56 
    [ 9247.090304] Internal error: Oops: 817 [#1] PREEMPT SMP ARM
    [ 9247.090304] Modules linked in: xfrm6_mode_tunnel macvlan iptable_nat ipt_MASQUERADE nf_nat_ftp nf_nat nf_conntrack_ipv6 nf_conntrack_ipv4 xt_time xt_tcpudp xt_state xt_quota xt_pkttype xt_physdev xt_owner xt_multipor]
    [ 9247.090304] CPU: 0    Not tainted  (3.4.112-sun8i #14)
    [ 9247.090304] PC is at skb_dequeue+0x5c/0x74
    [ 9247.090304] LR is at _raw_spin_lock_irqsave+0x18/0x1c
    [ 9247.090304] pc : [<c0568164>]    lr : [<c069147c>]    psr: a0000193
    [ 9247.090304] sp : c09b1da8  ip : 00000000  fp : c09b1dc4
    [ 9247.090304] r10: 00000040  r9 : 000000c8  r8 : d75ddc60
    [ 9247.090304] r7 : 000000c6  r6 : d5958538  r5 : d595852c  r4 : d2a76b00
    [ 9247.090304] r3 : d595852c  r2 : 00000000  r1 : 60000113  r0 : 60000113
    [ 9247.090304] Flags: NzCv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment kernel
    [ 9247.090304] Control: 10c5387d  Table: 54f2406a  DAC: 00000015
    [ 9247.090304] 
    [ 9247.090304] PC: 0xc05680e4:
    [ 9247.090304] 80e4  e28320b4 e1921f9f e2811001 e1820f91 e3300000 1afffffa e5933000 eafffff5
    [ 9247.090304] 8104  e89da800 e1a0c00d e92dd8f0 e24cb004 e52de004 e8bd4000 e280600c e1a05000
    [ 9247.090304] 8124  e1a00006 eb04a4cd e5954000 e1550004 03a04000 e1a01000 0a00000a e3540000
    [ 9247.090304] 8144  0a000008 e5953008 e3a0c000 e2433001 e5853008 e894000c e584c004 e584c000
    [ 9247.090304] 8164  e5823004 e5832000 e1a00006 eb04a2f7 e1a00004 e89da8f0 e1a0c00d e92dd8f0
    [ 9247.090304] 8184  e24cb004 e52de004 e8bd4000 e280600c e1a05000 e1a00006 eb04a4b0 e5954004
    [ 9247.090304] 81a4  e1550004 03a04000 e1a01000 0a00000a e3540000 0a000008 e5953008 e3a0c000
    [ 9247.090304] 81c4  e2433001 e5853008 e894000c e584c004 e584c000 e5823004 e5832000 e1a00006
    [ 9247.090304] 
    [ 9247.090304] LR: 0xc06913fc:
    [ 9247.090304] 13fc  e3330000 01853f92 e3530000 0a000012 e121f000 e5943004 e2433001 e5843004
    [ 9247.090304] 141c  e5943000 e3130002 0a000000 ebfffbd7 e5953004 e3530000 03a03001 05853004
    [ 9247.090304] 143c  e5953000 e3530000 0affffe5 e5953004 e3530000 0affffe2 eafffff8 f57ff05f
    [ 9247.090304] 145c  e5853004 e89da830 e1a0c00d e92dd800 e24cb004 e52de004 e8bd4000 ebffffcf
    [ 9247.090304] 147c  e89da800 e1a0c00d e92dd800 e24cb004 e52de004 e8bd4000 ebfffff2 e89da800
    [ 9247.090304] 149c  e1a0c00d e92dd800 e24cb004 e52de004 e8bd4000 ebffffeb e89da800 e1a0c00d
    [ 9247.090304] 14bc  e92dd830 e24cb004 e52de004 e8bd4000 ebffffba e1a04000 ebe67a71 e121f004
    [ 9247.090304] 14dc  e89da830 e1a0c00d e92dd800 e24cb004 e52de004 e8bd4000 ebffffef e89da800
    [ 9247.090304] 
    [ 9247.090304] SP: 0xc09b1d28:
    [ 9247.090304] 1d28  00000000 20000113 c09b1d4c c09b1d40 c06913b8 c0573984 c0568164 a0000193
    [ 9247.090304] 1d48  ffffffff c09b1d94 c09b1dc4 c09b1d60 c000dad8 c0008370 60000113 60000113
    [ 9247.090304] 1d68  00000000 d595852c d2a76b00 d595852c d5958538 000000c6 d75ddc60 000000c8
    [ 9247.090304] 1d88  00000040 c09b1dc4 00000000 c09b1da8 c069147c c0568164 a0000193 ffffffff
    [ 9247.090304] 1da8  d5958000 c09ff2a0 c0ad5d54 000000c6 c09b1df4 c09b1dc8 c0463740 c0568114
    [ 9247.090304] 1dc8  c0576a74 c0575d6c d5958548 d5958548 d2919b40 d75ddc80 00000001 390873e1
    [ 9247.090304] 1de8  c09b1e34 c09b1df8 c0465b38 c04636bc 00000000 c09b1e08 c042148c 51800040
    [ 9247.090304] 1e08  43b9e851 d5958548 c0ff1e00 00000001 c09b0000 0000012c 00000040 c0a257c3
    [ 9247.090304] 
    [ 9247.090304] FP: 0xc09b1d44:
    [ 9247.090304] 1d44  a0000193 ffffffff c09b1d94 c09b1dc4 c09b1d60 c000dad8 c0008370 60000113
    [ 9247.090304] 1d64  60000113 00000000 d595852c d2a76b00 d595852c d5958538 000000c6 d75ddc60
    [ 9247.090304] 1d84  000000c8 00000040 c09b1dc4 00000000 c09b1da8 c069147c c0568164 a0000193
    [ 9247.090304] 1da4  ffffffff d5958000 c09ff2a0 c0ad5d54 000000c6 c09b1df4 c09b1dc8 c0463740
    [ 9247.090304] 1dc4  c0568114 c0576a74 c0575d6c d5958548 d5958548 d2919b40 d75ddc80 00000001
    [ 9247.090304] 1de4  390873e1 c09b1e34 c09b1df8 c0465b38 c04636bc 00000000 c09b1e08 c042148c
    [ 9247.090304] 1e04  51800040 43b9e851 d5958548 c0ff1e00 00000001 c09b0000 0000012c 00000040
    [ 9247.090304] 1e24  c0a257c3 c09b1e74 c09b1e38 c0576bc8 c04659a8 c09b1e84 c09b20c0 c0ff1e08
    [ 9247.090304] 
    [ 9247.090304] R3: 0xd59584ac:
    [ 9247.090304] 84ac  00000000 00000000 00000000 00000000 00000000 d5b8f800 00000000 00000000
    [ 9247.090304] 84cc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 84ec  00000000 00000000 00000000 00000000 00000000 d75dc000 d49a7c00 0000002f
    [ 9247.090304] 850c  00000030 575dc000 000007ff d75dd000 d5b8f400 000000c6 000000c8 575dd000
    [ 9247.090304] 852c  d2919b40 d1244d80 0000007e 00000001 00000000 d5958000 c09ff2f8 c0ff1e08
    [ 9247.090304] 854c  c0ff1e08 00000001 00000040 c046599c 00000000 d5958000 d5958094 d5958094
    [ 9247.090304] 856c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 858c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 
    [ 9247.090304] R4: 0xd2a76a80:
    [ 9247.090304] 6a80  00000000 00000000 00000000 00000000 00000040 00000000 0000000e 00000000
    [ 9247.090304] 6aa0  00000000 00080004 00000000 d53a7b08 00000000 00000000 00000002 a6bb2759
    [ 9247.090304] 6ac0  00000000 00000000 00000008 00000000 00000000 c3c0004e c3c0004e c3c00040
    [ 9247.090304] 6ae0  c3c0008e c3ffff40 c3c00000 c3c0004e 000010c0 00000001 00000000 00000000
    [ 9247.090304] 6b00  00000000 d29e9740 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 6b20  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 6b40  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 6b60  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 
    [ 9247.090304] R5: 0xd59584ac:
    [ 9247.090304] 84ac  00000000 00000000 00000000 00000000 00000000 d5b8f800 00000000 00000000
    [ 9247.090304] 84cc  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 84ec  00000000 00000000 00000000 00000000 00000000 d75dc000 d49a7c00 0000002f
    [ 9247.090304] 850c  00000030 575dc000 000007ff d75dd000 d5b8f400 000000c6 000000c8 575dd000
    [ 9247.090304] 852c  d2919b40 d1244d80 0000007e 00000001 00000000 d5958000 c09ff2f8 c0ff1e08
    [ 9247.090304] 854c  c0ff1e08 00000001 00000040 c046599c 00000000 d5958000 d5958094 d5958094
    [ 9247.090304] 856c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 858c  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 
    [ 9247.090304] R6: 0xd59584b8:
    [ 9247.090304] 84b8  00000000 00000000 d5b8f800 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 84d8  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 84f8  00000000 00000000 d75dc000 d49a7c00 0000002f 00000030 575dc000 000007ff
    [ 9247.090304] 8518  d75dd000 d5b8f400 000000c6 000000c8 575dd000 d2919b40 d1244d80 0000007e
    [ 9247.090304] 8538  00000001 00000000 d5958000 c09ff2f8 c0ff1e08 c0ff1e08 00000001 00000040
    [ 9247.090304] 8558  c046599c 00000000 d5958000 d5958094 d5958094 00000000 00000000 00000000
    [ 9247.090304] 8578  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 8598  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
    [ 9247.090304] 
    [ 9247.090304] R8: 0xd75ddbe0:
    [ 9247.090304] dbe0  05de0381 010007ff 5523a040 575ddbf0 05de0381 010007ff 55090040 575ddc00
    [ 9247.090304] dc00  00800381 010007ff 42000040 575ddc10 05de0381 010007ff 4c000040 575ddc20
    [ 9247.090304] dc20  05de0381 010007ff 50f70040 575ddc30 05de0381 010007ff 48400040 575ddc40
    [ 9247.090304] dc40  05de0381 010007ff 523e0040 575ddc50 05de0381 010007ff 44800040 575ddc60
    [ 9247.090304] dc60  05de0381 010007ff 51c80040 575ddc70 05de0381 010007ff 51800040 575ddc80
    [ 9247.090304] dc80  05de0381 010007ff 53e60040 575ddc90 05de0381 010007ff 50d34040 575ddca0
    [ 9247.090304] dca0  00460320 010007ff 514e0040 575ddcb0 00460320 010007ff 52afa040 575ddcc0
    [ 9247.090304] dcc0  05de0381 010007ff 50eba040 575ddcd0 05de0381 010007ff 49700040 575ddce0
    [ 9247.090304] Process swapper/0 (pid: 0, stack limit = 0xc09b02f8)
    [ 9247.090304] Stack: (0xc09b1da8 to 0xc09b2000)
    [ 9247.090304] 1da0:                   d5958000 c09ff2a0 c0ad5d54 000000c6 c09b1df4 c09b1dc8
    [ 9247.090304] 1dc0: c0463740 c0568114 c0576a74 c0575d6c d5958548 d5958548 d2919b40 d75ddc80
    [ 9247.090304] 1de0: 00000001 390873e1 c09b1e34 c09b1df8 c0465b38 c04636bc 00000000 c09b1e08
    [ 9247.090304] 1e00: c042148c 51800040 43b9e851 d5958548 c0ff1e00 00000001 c09b0000 0000012c
    [ 9247.090304] 1e20: 00000040 c0a257c3 c09b1e74 c09b1e38 c0576bc8 c04659a8 c09b1e84 c09b20c0
    [ 9247.090304] 1e40: c0ff1e08 000da6f6 00000000 c09b0000 c09b208c 00000003 00000001 c0a4b2c0
    [ 9247.090304] 1e60: 00000102 0000000a c09b1ebc c09b1e78 c00309e0 c0576af4 c09b1ea4 c09b1e88
    [ 9247.090304] 1e80: c00a3174 c09b20c0 00000000 000da6f5 c09b7780 c09b0000 c09d3520 c09b0000
    [ 9247.090304] 1ea0: 00000072 00000000 c098b824 00000000 c09b1ed4 c09b1ec0 c0030f88 c0030908
    [ 9247.090304] 1ec0: c09ae230 c09d3520 c09b1efc c09b1ed8 c000ef58 c0030f3c c09d1ca0 c09b1f20
    [ 9247.090304] 1ee0: f1c82000 c09b1f54 c0fecc00 c098b824 c09b1f1c c09b1f00 c000853c c000eed4
    [ 9247.090304] 1f00: c000f2dc 60000013 ffffffff c09b1f54 c09b1f74 c09b1f20 c000db40 c00084fc
    [ 9247.090304] 1f20: c0fefb38 c09d224c 0000000f 00000000 c09b0000 c0a4ca48 00000001 ffffffff
    [ 9247.090304] 1f40: c0fecc00 c098b824 00000000 c09b1f74 c09b1f78 c09b1f68 c000f2d8 c000f2dc
    [ 9247.090304] 1f60: 60000013 ffffffff c09b1f8c c09b1f78 c000f694 c000f2b4 c09b1f94 c0a4ca48
    [ 9247.090304] 1f80: c09b1fb4 c09b1f90 c067f558 c000f5f8 c00ad2a8 00000001 00000000 c09d3300
    [ 9247.090304] 1fa0: 00000000 c09d1c40 c09b1ff4 c09b1fb8 c095c8a8 c067f4c8 ffffffff ffffffff
    [ 9247.090304] 1fc0: c095c33c 00000000 00000000 c098b824 10c5387d c09d1c9c c098b820 c09d7d44
    [ 9247.090304] 1fe0: 4000406a 410fc075 00000000 c09b1ff8 40008044 c095c5c0 00000000 00000000
    [ 9247.090304] [<c0568164>] (skb_dequeue+0x5c/0x74) from [<c0463740>] (geth_rx_refill+0x90/0x180)
    [ 9247.090304] [<c0463740>] (geth_rx_refill+0x90/0x180) from [<c0465b38>] (geth_poll+0x19c/0x1cc)
    [ 9247.090304] [<c0465b38>] (geth_poll+0x19c/0x1cc) from [<c0576bc8>] (net_rx_action+0xe0/0x1e0)
    [ 9247.090304] [<c0576bc8>] (net_rx_action+0xe0/0x1e0) from [<c00309e0>] (__do_softirq+0xe4/0x240)
    [ 9247.090304] [<c00309e0>] (__do_softirq+0xe4/0x240) from [<c0030f88>] (irq_exit+0x58/0xa4)
    [ 9247.090304] [<c0030f88>] (irq_exit+0x58/0xa4) from [<c000ef58>] (handle_IRQ+0x90/0xbc)
    [ 9247.090304] [<c000ef58>] (handle_IRQ+0x90/0xbc) from [<c000853c>] (gic_handle_irq+0x4c/0x6c)
    [ 9247.090304] [<c000853c>] (gic_handle_irq+0x4c/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
    [ 9247.090304] Exception stack(0xc09b1f20 to 0xc09b1f68)
    [ 9247.090304] 1f20: c0fefb38 c09d224c 0000000f 00000000 c09b0000 c0a4ca48 00000001 ffffffff
    [ 9247.090304] 1f40: c0fecc00 c098b824 00000000 c09b1f74 c09b1f78 c09b1f68 c000f2d8 c000f2dc
    [ 9247.090304] 1f60: 60000013 ffffffff
    [ 9247.090304] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
    [ 9247.090304] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
    [ 9247.090304] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c067f558>] (rest_init+0x9c/0xb8)
    [ 9247.090304] [<c067f558>] (rest_init+0x9c/0xb8) from [<c095c8a8>] (start_kernel+0x2f4/0x354)
    [ 9247.090304] Code: e5853008 e894000c e584c004 e584c000 (e5823004) 
    [ 9249.547111] ---[ end trace bc903b5b8c9d2fd4 ]---
    [ 9249.560238] Kernel panic - not syncing: Fatal exception in interrupt
    [ 9249.575393] CPU3: stopping
    [ 9249.585388] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0687a10>] (dump_stack+0x20/0x24)
    [ 9249.585388] [<c0687a10>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298)
    [ 9249.585388] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c)
    [ 9249.585388] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
    [ 9249.585388] Exception stack(0xd58fff68 to 0xd58fffb0)
    [ 9249.585388] ff60:                   c1007b38 c09d224c 0000000f 00000000 d58fe000 00000003
    [ 9249.585388] ff80: d58fe000 c0a2a2a4 4000406a 410fc075 00000000 d58fffbc d58fffc0 d58fffb0
    [ 9249.585388] ffa0: c000f2d8 c000f2dc 60000013 ffffffff
    [ 9249.585388] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
    [ 9249.585388] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
    [ 9249.585388] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c068491c>] (secondary_start_kernel+0x108/0x12c)
    [ 9249.585388] [<c068491c>] (secondary_start_kernel+0x108/0x12c) from [<40683f34>] (0x40683f34)
    [ 9249.585389] CPU2: stopping
    [ 9249.585389] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0687a10>] (dump_stack+0x20/0x24)
    [ 9249.585389] [<c0687a10>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298)
    [ 9249.585389] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c)
    [ 9249.585389] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
    [ 9249.585389] Exception stack(0xd58f1f68 to 0xd58f1fb0)
    [ 9249.585389] 1f60:                   c0fffb38 c09d224c 0000000f 00000000 d58f0000 00000002
    [ 9249.585389] 1f80: d58f0000 c0a2a2a4 4000406a 410fc075 00000000 d58f1fbc d58f1fc0 d58f1fb0
    [ 9249.585389] 1fa0: c000f2d8 c000f2dc 60000013 ffffffff
    [ 9249.585389] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
    [ 9249.585389] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
    [ 9249.585389] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c068491c>] (secondary_start_kernel+0x108/0x12c)
    [ 9249.585389] [<c068491c>] (secondary_start_kernel+0x108/0x12c) from [<40683f34>] (0x40683f34)
    [ 9249.585389] CPU1: stopping
    [ 9249.585389] [<c0016a20>] (unwind_backtrace+0x0/0xe8) from [<c0687a10>] (dump_stack+0x20/0x24)
    [ 9249.585389] [<c0687a10>] (dump_stack+0x20/0x24) from [<c0014170>] (handle_IPI+0x114/0x298)
    [ 9249.585389] [<c0014170>] (handle_IPI+0x114/0x298) from [<c0008554>] (gic_handle_irq+0x64/0x6c)
    [ 9249.585389] [<c0008554>] (gic_handle_irq+0x64/0x6c) from [<c000db40>] (__irq_svc+0x40/0x74)
    [ 9249.585389] Exception stack(0xd58c1f68 to 0xd58c1fb0)
    [ 9249.585389] 1f60:                   c0ff7b38 c09d224c 0000000f 00000000 d58c0000 00000001
    [ 9249.585389] 1f80: d58c0000 c0a2a2a4 4000406a 410fc075 00000000 d58c1fbc d58c1fc0 d58c1fb0
    [ 9249.585389] 1fa0: c000f2d8 c000f2dc 60000013 ffffffff
    [ 9249.585389] [<c000db40>] (__irq_svc+0x40/0x74) from [<c000f2dc>] (default_idle+0x34/0x3c)
    [ 9249.585389] [<c000f2dc>] (default_idle+0x34/0x3c) from [<c000f694>] (cpu_idle+0xa8/0xf4)
    [ 9249.585389] [<c000f694>] (cpu_idle+0xa8/0xf4) from [<c068491c>] (secondary_start_kernel+0x108/0x12c)
    [ 9249.585389] [<c068491c>] (secondary_start_kernel+0x108/0x12c) from [<40683f34>] (0x40683f34)
    [ 9249.570216] [hotplug]: cpu(0) try to kill cpu(1)
    [ 9249.570216] [hotplug]: try to kill cpu:1 failed!
    [ 9249.570216] [hotplug]: cpu(0) try to kill cpu(2)
    [ 9249.570216] [hotplug]: try to kill cpu:2 failed!
    [ 9249.570216] [hotplug]: cpu(0) try to kill cpu(3)
    [ 9249.570216] [hotplug]: try to kill cpu:3 failed!
    [ 9249.570216] Rebooting in 3 seconds..
    [ 9249.570216] Restarting Linux version 3.4.112-sun8i (root@xenial) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.1) ) #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016
    [ 9249.570216] 
    
    
  8. I was sort of disappointed with my RPi 2 VPN performance, which is about 2.5MiB/s while normal traffic can easily exceeds 5.5MiB/s. 

     

    So I setup same VPN config on OPi One and run the test. The speed is impressive which is well above 5 MiB/s but it could only last about 10s before the box reboots itself. I can see one cpu core is occupied 100% by softirqd ( about 80% on RPi 2). My kernel version is 3.4.112 and StrongSwan version is 5.3.3. 

     

    Don't have further information yet. When I get a chance to hook up serial console, I may collect more info. 

  9. Hello there,

     

    I got my Opi Zero today and I am trying to do exactly what you did.

     

    Run OpenWRT with a custom kernel/modules that support this board. Can you please share the method to build OpenWRT with support for OPi Zero.

     

    It would be even better if you can share your image with the community. I am sure many like me are looking for it.

     

    Thanks in advance.

     

    You don't need to build OpenWRT yourself. Just use sunxi img from here: https://downloads.openwrt.org/chaos_calmer/15.05.1/sunxi/generic/ + /boot/ and /lib/modules/ from Armbian.

  10. I tried the 3.4.112 on Pi One and 3.4.113 on Pi Zero. Both have the same problem which is that no unicast packets are flowing into the macvlan device when I run tcpdump on it. 

     

    The device was created like this:

    ip link add link eth0 address 1E:74:C0:DC:BB:01 vlan mtu 1500 type macvlan

     

    I can see inbound broadcast and multicast packets though. Outbound packets also seem fine. I can see arp request and ICMP request (if set static arp entry on PI) from the other end. 

     

    Does anybody have any clue what it could it?

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines