Bananian

Bananian on BPI-Router - Discussion

99 30749
mattrix  
Bananian replied at Wed Dec 10, 2014 03:42
see attachment

Thank you

Will try tonight.

mattrix  
Edited by mattrix at Mon Dec 15, 2014 18:11

That didn't work. Worth a try.

Ok, if anyone want's to join the effort, you can download the new kernel and modules here:
https://mega.co.nz/#!nZghFTiJ!aR ... D71j73sQURDcnJGJkl0

Move that onto the BPi-router, then
  1. tar -xvf bpi-r1-bananian.tar
  2. mount /dev/mmcblk0p1 /mnt
  3. cp -f boot/uImage /mnt/
  4. sync
  5. umount /mnt

  6. mv  /lib/modules  /lib/modules.tmp
  7. cp -aP lib/* /lib/
  8. rm -rf /lib/modules.tmp

  9. reboot
Copy the Code
You will now be able to use the ethernet ports on the router etc.

Next thing is to get swconfig working, here is the source I'm trying to build
https://mega.co.nz/#!2ABQzLoK!-H ... vAtD3QUrQXVtIF03Fec

mattrix  

mattrix  
  1. fatal error: netlink/netlink.h: No such file or directory
Copy the Code
  1. apt-get install libnl-dev libpopt-dev
Copy the Code
  1. fatal error: linux/switch.h: No such file or directory
Copy the Code
Copying over header files...

mattrix  
Edited by mattrix at Wed Dec 10, 2014 23:16
  1. /usr/include/linux/switch.h:19:27: fatal error: net/genetlink.h: No such file or directory
Copy the Code
That's the end of my efforts

Hope someone can get the final steps going.

We may not even need SWCONFIG to configure it, I'm not sure.

Hi,
thank you for the working kernel and kernel sources.

the seemingly missing includes seems to belong to the libnl*-Packages. However it seems that the include paths are messed up (openwrt uses the package libnl-tiny).

However has anyone already tried to get all ports working using vlans? I have actually no time available to do it by myself.

modprobe 8021q

apt-get install vlan
#Adding a vlan. 222 is the vlan number and can be choosen freely)
vconfig add eth0 222

Further information regarding vlan-configuration can be found for example under:
https://wiki.debian.org/NetworkC ... .28Etch.2C_Lenny.29

Hi,

I was able to compile the swconfig command under bananian (after building libuci & libubox from source) and lots of hardcoding at the include paths regarding libnl (and some changes at the makefile (eg. changing -lnl to -lnl-3 ).
However if I issue the following  swconfig  command the whole BPI-R1 router stops working:

swconfig dev eth0 set apply

mattrix  
Edited by mattrix at Mon Dec 15, 2014 16:55

Are you able to upload and share your compiled swconfig?

The source for SWCONFIG I uploaded here:
https://mega.co.nz/#!2ABQzLoK!-H ... vAtD3QUrQXVtIF03Fec

has all the LUBUCI stuff removed, maybe try that so you shouldn't need libuci & libubox.

mattrix  
Or, share the source with the updated include paths.

Also, we may need to change the switch.h file in the kernel itself
Here: https://bitbucket.org/matthuisma ... h.h?at=bananapi-3.4

#ifndef __KERNEL__
#include <netlink/netlink.h>
#include <netlink/genl/genl.h>
#include <netlink/genl/ctrl.h>
#endif

These might need to be changed?

mattrix  
Also noticed in the swconfig (userspace) part in the swlib.c, I have
#include <linux/switch.h>

commented out, you should undo this as well.

You have to log in before you can reply Login | Sign Up

Points Rules