Banana Pi R1 on fedora 21 - kernel 4.0.4

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Guys,

Just an update from me, on the subject of kernel 4.0.4 and BPiR1 . The kernels have come and gone , and while waiting for 4.1 to come out I had a bit of a play to see if my original patch set would work on a series 4 kernel . And to cut a long story short it will not . So out came the spare board , and after a few hours of chasing new source for the switch we have a new patch . Hopefully there will not be a huge jump from 4.0.4 to 4.1 as far as the switch is concerned , but anyway the new patch is a better starting place compared with the old one . If any of you guys wants to have a shot at it here is my compiling procedure and gzipped patch attached .

Compiling method :

Delete old files:

  rm -rf BUILD/*
  rm -rf BUILDROOT/*
  rm -rf SOURCES/*
  rm -rf SPECS/*

Install KERNEL source:

  rpm -ivh ../Downloads/ARM/SRPMS/kernel-4.0.4-202.fc21.src.rpm

Copy b53 driver patch to SOURCES:

  cd SOURCES/
  cp ../../Downloads/ARM/SOURCES/linux-4.0.4-202.fc21.BPi-R1.patch .

Edit KERNEL config-generic to enable b53 drivers and f2fs:

  vi config-generic
 
  add following:
 
  CONFIG_B53=y
CONFIG_B53_SPI_DRIVER=y
CONFIG_B53_PHY_DRIVER=y
CONFIG_B53_SRAB_DRIVER=y
CONFIG_B53_PHY_FIXUP=y
CONFIG_SWCONFIG=y
CONFIG_SWCONFIG_LEDS=y
CONFIG_F2FS_FS=y
CONFIG_F2FS_STAT_FS=y
CONFIG_F2FS_FS_XATTR=y
CONFIG_F2FS_FS_POSIX_ACL=y
CONFIG_F2FS_FS_SECURITY=y
CONFIG_F2FS_CHECK_FS=y


Patch KERNEL spec file :

  cd ../SPECS/
  patch  < /home/msou/Downloads/ARM/SOURCES/kspec_4.0.4.patch

Execute KERNEL Compiling command from SPECS dir:

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

You notice that I am enabling f2fs , I am using that file system on my production server . These days you probably do not need to do it as upstream is already doing it . It is just a carryover from my old script .

The kernel spec patch looks like this :

--- kernel.spec        2015-05-28 06:50:08.000000000 +1000
+++ kernel.spec.new    2015-06-06 20:48:20.759296131 +1000
@@ -25,6 +25,7 @@ Summary: The Linux kernel
 %endif
 
 # % define buildid .local
+%define buildid .BPiR1
 
 # baserelease defines which build revision of this kernel version we're
 # building.  We used to call this fedora_build, but the magical name
@@ -682,6 +683,9 @@ Patch26209: 0001-ktime-Fix-ktime_divns-t
 Patch26211: mnt-Fail-collect_mounts-when-applied-to-unmounted-mo.patch
 Patch26212: fs_pin-Allow-for-the-possibility-that-m_list-or-s_li.patch
 
+# Bananapi R1 patch
+Patch41526: linux-4.0.4-202.fc21.BPi-R1.patch
+
 # END OF PATCH DEFINITIONS
 
 %endif
@@ -1467,6 +1471,9 @@ ApplyPatch 0001-ktime-Fix-ktime_divns-to
 ApplyPatch mnt-Fail-collect_mounts-when-applied-to-unmounted-mo.patch
 ApplyPatch fs_pin-Allow-for-the-possibility-that-m_list-or-s_li.patch
 
+# Patch for bananapi R1
+ApplyPatch linux-4.0.4-202.fc21.BPi-R1.patch
+
 # END OF PATCH APPLICATIONS
 
 %endif


Happy compiling .


Best Regards
Milorad

Attachment: linux-4.0.4-202.fc21.BPi-R1.patch.gz
Description: application/gzip

_______________________________________________
arm mailing list
arm@xxxxxxxxxxxxxxxxxxxxxxx
https://admin.fedoraproject.org/mailman/listinfo/arm

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux ARM (Vger)]     [Linux ARM]     [ARM Kernel]     [Fedora User Discussion]     [Older Fedora Users Discussion]     [Fedora Advisory Board]     [Fedora Security]     [Fedora Maintainers]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Mentors]     [Fedora Package Announce]     [Fedora Package Review]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Coolkey]     [Yum Users]     [Tux]     [Yosemite News]     [Linux Apps]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]

Powered by Linux