Kernel for A64 git
(05-27-2016, 03:43 PM)lvcargnini Wrote:
(02-14-2016, 03:00 AM)longsleep Wrote: To easily build the Kernel as provided in the BSP i have added it to Git including patches to make it actually compile and work suitably:

https://github.com/longsleep/linux-pine6...ne64-hacks

Use it together with my build tools at https://github.com/longsleep/build-pine64-image to create working and bootable Linux images from source.

The Kernel and U-Boot from the BSP uses the device tree from https://github.com/longsleep/build-pine6...pine64.dts and a suitable Kernel configuration is at https://github.com/longsleep/linux-pine6..._defconfig

Start with reading https://github.com/longsleep/build-pine6.../README.md and do not forget about U-Boot https://github.com/longsleep/build-pine6...ostprocess

I publish compiled Linux Kernel builds for image builders from that tree. This gives you Kernel, initrd, dtb and modules which can be easily combined with any rootfs.

Download BSP Linux Kernel tarball

Release history:

**3.10.65-2-pine64-longsleep-39 (20160305)**
- Initial public release

**3.10.65-2-pine64-longsleep-39-1 (20160306)**
- Updated tarball to use new U-Boot file structure

**3.10.65-2-pine64-longsleep-39-2 (20160311)**
- Updated device tree for better thermal behavior
- uEnv.txt is now uEnv.txt.in in tarball
- Kernel firmware is now included
- Kernel headers are now included

**3.10.65-2-pine64-longsleep-43 (20160311)**
- Enabled media platform devices (video)
- Enabled USB UVC and CPiA2 camera driver
- Enabled video engine (cedar_ve)
- Enabled various rc drivers

**3.10.65-3-pine64-longsleep-2 (20160319)**
- Tagged as 3.10.65-3-pine64
- Added device tree for Pine64 512MB/100M NIC model
- Enabled support for USB audio
- Critical shut down is now at 108°C (was 100°C)
- Disabled Kernel mode realtime group scheduling

**3.10.65-4-pine64-longsleep-16 (20160403)**
- Tagged as 3.10.65-4-pine64
- Fixed Ethernet Kernel crash when booted with more than 1GB RAM

**3.10.65-5-pine64-longsleep-19 (20160415)**
- Tagged as 3.10.65-5-pine64
- Support misc input devices (uinput, gpio) as module
- Tree cleanup (thanks to Alexander Graf)
- Fixed EFI boot (thanks to Alexander Graf)
- Removed FEX parsing (thanks to Alexander Graf)
- Fix a possible oops while loading codec (thanks to Alexander Graf)
- Support USB serial devices (cp210x, ftdi_sio) as module
- Support CIFS as module

**3.10.65-7-pine64-longsleep-28 (20160415)**
- Tagged as 3.10.65-7-pine64
- Backported crc32 arm64 optimizations from mainline
- Support more USB serial devices (ch341) as module
- Support more USB devices (acm, printers) as module
- Various crypto modules are now built-in
- Removed and cleaned up lots of debugging
- Audio codec sound driver is no longer built-in and now a module (HDMI audio still built-in)

**3.10.101-0-pine64-longsleep-39 (20160507)**
- Tagged as 3.10.101-0-pine64
- Merged with Linux stable 3.10 tree up to the current 3.10.101 (All say thanks to Mikhail which did the work for Armbian)
- Ported framebuffer patch over from OpenELEC for H3 fixing resolution switching (Thanks to Jernej Škrabec for pointing me to it)
- Enable vsync wait (porting patch from OpenELEC for H3)
- Enable task account support for iotop support (Thanks to Christoph Bayer)
- Enable I2C support (Thanks to Martin Ayotte)
- Enable a ton of USB wifi network drivers as module (see here)
- Enable network scheduling modules

**3.10.101-1-pine64-longsleep-41 (20160516)**
- Tagged as 3.10.101-1-pine64
- Enable XFS, FS2FS and HFS+ as module
- Fix sunxi-ss ahash registration and disable SHA-224
- Enable BLK_DEV_BSG for better udev compatibility

**3.10.101-2-pine64-longsleep-48 (20160521)**
- Tagged as 3.10.101-2-pine64
- Enable various netfilter and namespace features to make LXD happy
- Disable XFS module (not compatible with user namespaces in Kernel 3.10)
- Backported apparmor3
- Enable/changed various additional features to for complete secure container support

**3.10.101-3-pine64-longsleep-50 (20160524)**
- Tagged as 3.10.101-3-pine64
- Backported capability dropping in user namespaces, fixing unprivileged containers

**3.10.101-4-pine64-longsleep-51 (20160526)**
- Tagged as 3.10.101-4-pine64
- Release tarballs now include proper headers in /usr/src/linux-headers-<version>
- All gear for out-of-tree module compile now included and at correct location, fixes DKMS support
- Enable network bonding module
- Include network dummy
- Include sound sequencer
- Enable virtual midi and dummy sound sequencer module

To make your own Linux image with this Kernel, check out my simple image releases which combine U-Boot and a suitable disk layout at http://forum.pine64.org/showthread.php?tid=99 for details and download.

Released tarballs are signed with a detached GPG signature (.asc) signed by my personal key 0x090EF0DB. Get the key and verify that the download is intact and unmodified.
Code:
gpg --keyserver keyserver.ubuntu.com --recv-keys 090EF0DB
gpg --with-fingerprint arch-pine64-*.xz.asc


To update both Kernel an U-Boot to the latest releases, run the following commands (as root):
Code:
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)
and reboot.

Your feedback is most welcome.

How to add to support into the official linux kernel tree ?

Official support is currently being worked on by the linux-sunxi community.
Donate BTC: 3Eav9uqXi8Nx1axb7QjK6xV4km4K9YGv9a
I just pushed a new awesome Kernel release. It updates to latest 3.10 stable tree and enables various modules as requested over the last couple of weeks. For details, see the first post of this thread.

Get 3.10.102-0-pine64-longsleep-7 from https://www.stdin.xyz/downloads/people/l...ges/linux/

Update like this (as root, not sudo!) on any of my images:
Code:
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_uboot.sh)
bash <(curl -s https://raw.githubusercontent.com/longsleep/build-pine64-image/master/simpleimage/platform-scripts/pine64_update_kernel.sh)
(06-17-2016, 02:32 PM)longsleep Wrote: I just pushed a new awesome Kernel release. It updates to latest 3.10 stable tree and enables various modules as requested over the last couple of weeks. For details, see the first post of this thread.

Get 3.10.102-0-pine64-longsleep-7 from https://www.stdin.xyz/downloads/people/l...ges/linux/


For your next build, can you enable a couple more kernel config options?   These look to be the only remaining* options preventing 'ip rule'  family from functioning:

CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_FIB_RULES=y

(* edited after validating )

root@p64:~# uname -a
Linux p64 3.10.102-hepcat #1 SMP PREEMPT Wed Jul 6 13:40:13 AKDT 2016 aarch64 aarch64 aarch64 GNU/Linux
root@p64:~# ip rule
0: from all lookup local
32766: from all lookup main
32767: from all lookup default


Thanks!
It is possible to get hifiberry working?
https://www.hifiberry.com/guides/hifiber...iguration/
Dunno if its possible because the guide mentioned 3.12.x
Update:
Ah shit I found my answer
https://www.hifiberry.com/linuxkerne
3.10 is not supported Sad
Does is specifically say what is needed from 3.12.x maybe you can backport the necessary patches?
Come have a chat in the Pine A64 IRC channel >>
(07-05-2016, 11:57 PM)ak_hepcat Wrote: For your next build, can you enable a couple more kernel config options?   These look to be the only remaining* options preventing 'ip rule'  family from functioning:

CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_IP_MULTIPLE_TABLES=y
CONFIG_IP_FIB_TRIE_STATS=y
CONFIG_IP_ROUTE_MULTIPATH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_IPV6_MULTIPLE_TABLES=y
CONFIG_IPV6_SUBTREES=y
CONFIG_FIB_RULES=y

Done https://github.com/longsleep/linux-pine6...1d579751ad
I just pushed a new awesome Kernel release. It brings a security fix and some additional modules. For details, see the first post of this thread.

Get 3.10.102-2-pine64-longsleep-66 from https://www.stdin.xyz/downloads/people/l...ges/linux/
Thanks!
Come have a chat in the Pine A64 IRC channel >>
(07-16-2016, 06:25 AM)longsleep Wrote: I just pushed a new awesome Kernel release. It brings a security fix and some additional modules. For details, see the first post of this thread.

Get 3.10.102-2-pine64-longsleep-66 from https://www.stdin.xyz/downloads/people/l...ges/linux/

Verified:

root@p64:~# uname -a
Linux p64 3.10.102-2-pine64-longsleep #66 SMP PREEMPT Sat Jul 16 10:53:13 CEST 2016 aarch64 aarch64 aarch64 GNU/Linux

root@p64:~# ip rule show
0:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default

Thanks a bunch, longsleep!

Big Grin
well atleast for now we don't need to worry about unwanted escalation of privileges in that area. Good job mate Wink
If you like my work be sure to check out my site or wish to donate to the cause

Cheers Big Grin


Possibly Related Threads…
Thread Author Replies Views Last Post
  PineA64+: Audio in 5.0 Kernel puzzles 6 1,652 11-13-2019, 09:41 AM
Last Post: roel
  Rockpro64 NFS root mount (kernel 4.20) - ethernet help? tenspd137 0 735 12-06-2018, 01:14 AM
Last Post: tenspd137
  NVMe and new kernel bjbb17 0 634 09-25-2018, 03:39 PM
Last Post: bjbb17
  Real-time linux kernel Artyom 45 21,613 09-11-2018, 01:08 AM
Last Post: zzwpine
  DKMS on kernel 3.10.107-pine64 obrienmd 5 1,801 06-21-2018, 05:45 PM
Last Post: evilbunny
  Gentoo for pine64 - longsleep kernel incoherent 0 1,371 12-09-2017, 08:14 AM
Last Post: incoherent
  [SOLVED] UEFI + Fedora Mainline Kernel Booting! cztian 0 1,225 07-13-2017, 08:38 PM
Last Post: cztian
  Mainline kernel [Solved] jeroen79 11 4,850 02-08-2017, 06:19 AM
Last Post: umiddelb
Question Need help : Issue in running compiled kernel with tftp+uboot dinesh.bhoyar 2 1,469 01-30-2017, 12:44 AM
Last Post: dinesh.bhoyar
  Jackd triggers kernel warning cztian 0 1,448 09-03-2016, 08:16 AM
Last Post: cztian

Forum Jump:


Users browsing this thread: 2 Guest(s)