OpenvSwitch in BPI-R2 kernel 4.14.48-bpi-r2-main

(Cris Josh) #1

I am trying to install openvswitch in the BPI-R2(image ubuntu-18.04-bpi-r2-preview with kernel 4.14.48-bpi-r2-main) but I get some errors. When I execute ./configure --with-linux=/lib/modules/4.14.48-bpi-r2-main/build, shows an error that says build does not exist. I execute ln -s /root/openvswitch-2.10.1/datapath/linux/openvswitch.ko /lib/modules/4.14.48-bpi-r2-main and then depmod -a and it returns too many levels of symbolic links.

Does anyone know why this happens?

(Frank W.) #2

I guess you need kernelsources for your current kernel

To get it you can checkout 1e4a88f6cab247b73acf427493567bbbafcd3ad3 (merge of 4.14.48) or 4bfb0a99da80be0a1ee711e435c6577893fae20a (merge of hdmi) from my github-repo


Please post link to configure-script, so we can look what this does when printing this error

(Frank W.) #3
root@bpi-r2:/boot/bananapi/bpi-r2/linux# ls -l /lib/modules/$(uname -r)                                                                                            
insgesamt 184                                                                                                                                                      
lrwxrwxrwx  1 root root    36 Okt 24 11:39 build -> /media/data_ext/bpi-r2-kernel/github                                                                           
lrwxrwxrwx  1 root root    36 Okt 24 11:39 source -> /media/data_ext/bpi-r2-kernel/github

these 2 links defaulting to my directory where i have built the kernel. download source for your kernelversion, unpack it (maybe to /usr/src/kernel_4.14.48) and change symlink of build and source to this directory…maybe you have to rebuild kernel

HTH Frank