[fedora-arm] Banana Pi R1 on fedora 21

mo.ucina mo.ucina at gmail.com
Wed Jan 7 04:42:06 UTC 2015


Hello guys,

I had a check through my patch file , and noticed an odd thing : only 
full new files were there , I had 3 bits missing which add/remove code 
from existing files . I have fixed this up and re-run the compilation . 
I have checked my patch against the bananian code here :

https://bitbucket.org/matthuisman/bpi-r1_bananian/commits/9558b0c5d7d0b614dee8e7517271257ede2fcbc1

  as well as original :

http://thread.gmane.org/gmane.linux.network/288039

and I think I have everything in the right place . Now when I run the 
rpmbuild , I am getting this error just after my patch is run (patch40000) :

+ '[' '!' -f 
/home/msou/rpmbuild/SOURCES/linux-3.17.7-300.fc21-bananaR1.patch ']'
Patch40000: linux-3.17.7-300.fc21-bananaR1.patch
+ case "$patch" in
+ patch -p1 -F1 -s
+ chmod +x scripts/checkpatch.pl
+ touch .scmversion
+ mkdir configs
+ for i in '*.config'
+ mv kernel-3.17.7-aarch64.config .config
++ head -1 .config
++ cut -b 3-
+ Arch=arm64
+ make ARCH=arm64 listnewconfig
+ grep -E '^CONFIG_'
In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c: In function 'get_symbol_str':
scripts/kconfig/menu.c:590:18: warning: 'jump' may be used uninitialized 
in this function [-Wmaybe-uninitialized]
      jump->offset = strlen(r->s);
                   ^
In file included from scripts/kconfig/zconf.tab.c:2537:0:
scripts/kconfig/menu.c:551:19: note: 'jump' was declared here
   struct jump_key *jump;
                    ^
+ '[' -s .newoptions ']'
+ cat .newoptions
CONFIG_SWCONFIG
+ exit 1
error: Bad exit status from /var/tmp/rpm-tmp.IFez6P (%prep)


RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.IFez6P (%prep)

my command line is this :

rpmbuild -bb --with=baseonly --without=debuginfo --without=perf 
--target=armv7hl --without=pae --define="_arch arm" 
--define="_build_arch arm"  kernel.spec

And the bits of the file I added to the patch is pretty small , 
yesterday without those bits the kernel did compile (but without the 
drivers) .

This was the missing stuff :

diff -uNrp kernel-3.17.7-300.fc21.orig/drivers/net/phy/Kconfig 
kernel-3.17.7-300.fc21.new/drivers/net/phy/Kconfig
--- kernel-3.17.7-300.fc21.orig/drivers/net/phy/Kconfig 1970-01-01 
10:00:00.000000000 +1000
+++ kernel-3.17.7-300.fc21.new/drivers/net/phy/Kconfig 2015-01-05 
23:35:00.620278708 +1100
@@ -12,6 +12,12 @@ menuconfig PHYLIB

  if PHYLIB

+config SWCONFIG
+    tristate "Switch configuration API"
+    ---help---
+      Switch configuration API using netlink. This allows
+      you to configure the VLAN features of certain switches.
+
  comment "MII PHY device drivers"

  config AT803X_PHY
@@ -205,6 +211,8 @@ config MDIO_BUS_MUX_MMIOREG

        Currently, only 8-bit registers are supported.

+source "drivers/net/phy/b53/Kconfig"
+
  endif # PHYLIB

  config MICREL_KS8995MA
diff -uNrp kernel-3.17.7-300.fc21.orig/drivers/net/phy/Makefile 
kernel-3.17.7-300.fc21.new/drivers/net/phy/Makefile
--- kernel-3.17.7-300.fc21.orig/drivers/net/phy/Makefile 1970-01-01 
10:00:00.000000000 +1000
+++ kernel-3.17.7-300.fc21.new/drivers/net/phy/Makefile 2015-01-05 
23:35:00.620278708 +1100
@@ -3,6 +3,7 @@
  libphy-objs            := phy.o phy_device.o mdio_bus.o

  obj-$(CONFIG_PHYLIB)        += libphy.o
+obj-$(CONFIG_SWCONFIG)        += swconfig.o
  obj-$(CONFIG_MARVELL_PHY)    += marvell.o
  obj-$(CONFIG_DAVICOM_PHY)    += davicom.o
  obj-$(CONFIG_CICADA_PHY)    += cicada.o
@@ -10,6 +11,7 @@ obj-$(CONFIG_LXT_PHY)        += lxt.o
  obj-$(CONFIG_QSEMI_PHY)        += qsemi.o
  obj-$(CONFIG_SMSC_PHY)        += smsc.o
  obj-$(CONFIG_VITESSE_PHY)    += vitesse.o
+obj-$(CONFIG_B53)        += b53/
  obj-$(CONFIG_BROADCOM_PHY)    += broadcom.o
  obj-$(CONFIG_BCM63XX_PHY)    += bcm63xx.o
  obj-$(CONFIG_BCM7XXX_PHY)    += bcm7xxx.o


with this bit at the end :


diff -uNrp kernel-3.17.7-300.fc21.orig/include/uapi/linux/Kbuild 
kernel-3.17.7-300.fc21.new/include/uapi/linux/Kbuild
--- kernel-3.17.7-300.fc21.orig/include/uapi/linux/Kbuild 1970-01-01 
10:00:00.000000000 +1000
+++ kernel-3.17.7-300.fc21.new/include/uapi/linux/Kbuild 2015-01-05 
23:53:11.552287168 +1100
@@ -368,6 +368,7 @@ header-y += stddef.h
  header-y += string.h
  header-y += suspend_ioctls.h
  header-y += swab.h
+header-y += switch.h
  header-y += synclink.h
  header-y += sysctl.h
  header-y += sysinfo.h


If anybody wants to check/try my patch file I can send it and would 
appreciate any help , did not want to post it here as it is about 140kb .


Best Regards

Milorad





More information about the arm mailing list