PINE64
Minimal 64bit ARM RootFS for Debian and Ubuntu - Printable Version

+- PINE64 (https://forum.pine64.org)
+-- Forum: PINE A64(+) (https://forum.pine64.org/forumdisplay.php?fid=4)
+--- Forum: Linux on Pine A64(+) (https://forum.pine64.org/forumdisplay.php?fid=6)
+--- Thread: Minimal 64bit ARM RootFS for Debian and Ubuntu (/showthread.php?tid=87)

Pages: 1 2 3 4 5


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - longsleep - 02-21-2016

(02-19-2016, 02:32 PM)umiddelb Wrote: @longsleep: Do you think you will be able to update  simpleimage-pine64-20160207-1.img.xz?

The simpleimage release has been updated. See http://forum.pine64.org/showthread.php?tid=99 for details what has changed and download URL.


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - umiddelb - 02-22-2016

(02-21-2016, 06:54 AM)longsleep Wrote: The simpleimage release has been updated. See http://forum.pine64.org/showthread.php?tid=99 for details what has changed and download URL.

Cool, I've updated the RootFS archives for Debian Jessie and Ubuntu Trusty to reflect this change.
I wasn't able to compile the mali kernel module on the PINE64 directly. May be someone has the time to figure it out.

This is how I've build the kernel on the PINE64:

Code:
#!/bin/sh
set -ex
git clone --depth 1 --single-branch -b pine64-hacks https://github.com/umiddelb/linux-pine64.git
curl -sSL https://github.com/longsleep/build-pine64-image/raw/master/blobs/pine64.dts > linux-pine64/arch/arm64/boot/dts/sun50i-a64-pine64-plus.dts
curl -sSL https://android.googlesource.com/platform/system/core/+archive/master/mkbootimg.tar.gz | tar -xzvf - mkbootimg
cd linux-pine64
make sun50iw1p1smp_linux_defconfig
make clean
make -j 4 Image sun50i-a64-pine64-plus.dtb modules
../mkbootimg --kernel arch/arm64/boot/Image --base 0x40000000 --kernel_offset 0x01080000 --board Pine64 --pagesize 2048 -o arch/arm64/boot/kernel.img
sudo cp arch/arm64/boot/dts/sun50i-a64-pine64-plus.dtb arch/arm64/boot/kernel.img /boot
sudo make modules_install
sudo make firmware_install
sudo make headers_install INSTALL_HDR_PATH=/usr



RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - Artyom - 02-28-2016

Hello everyone! Who can tell? 
1) Will Linux kernel support ARM Design Studio (ARM Gator Kernel Patch) out of the box?
2) Will support Real-Time linux kernel PREEMPT_RT (https://rt.wiki.kernel.org/index.php/Main_Page) out of the box? 

This would significantly expand the opportunities for Pine64 in robotics, avionics (as autopilot) and automation.


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - umiddelb - 02-28-2016

(02-28-2016, 12:23 AM)Artyom Wrote: Hello everyone! Who can tell? 
1) Will Linux kernel support ARM Design Studio (ARM Gator Kernel Patch) out of the box?
2) Will support Real-Time linux kernel PREEMPT_RT (https://rt.wiki.kernel.org/index.php/Main_Page) out of the box? 

This would significantly expand the opportunities for Pine64 in robotics, avionics (as autopilot) and automation.

You may fork https://github.com/longsleep/linux-pine64/tree/pine64-hacks-1.2 and apply the patchwork. I can run some tests on my pine64 then.


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - Artyom - 02-29-2016

(02-28-2016, 09:59 AM)umiddelb Wrote:
(02-28-2016, 12:23 AM)Artyom Wrote: Hello everyone! Who can tell? 
1) Will Linux kernel support ARM Design Studio (ARM Gator Kernel Patch) out of the box?
2) Will support Real-Time linux kernel PREEMPT_RT (https://rt.wiki.kernel.org/index.php/Main_Page) out of the box? 

This would significantly expand the opportunities for Pine64 in robotics, avionics (as autopilot) and automation.

You may fork https://github.com/longsleep/linux-pine64/tree/pine64-hacks-1.2 and apply the patchwork. I can run some tests on my pine64 then.

-------------------------ARM Streamline (ARM Gator) ----------------------------------------------------------------------------------------------------------
For ARM gator need kernel version 3.4 (https://github.com/ARM-software/gator). 
Instructions for integration into the kernel here http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0482b/BABEJAAI.html
We have kernet 3.10. I understand correctly?
------------------------------------------------------------------------------------------------------------------------------------------------------------------------

------------------------------------------------------- RT_PREEMPT --------------------------------------------------------------
This evening I will correct kernel and apply the patch RT_PREEMPT. How to finish correcting the kernel will write.
More information can be found here:

https://rt.wiki.kernel.org/index.php/Main_Page
https://rt.wiki.kernel.org/index.php/RT_PREEMPT_HOWTO

Fairly a good example of the use of real-time kernel can be found here:
http://docs.emlid.com/navio/Downloads/Real-time-Linux-RPi2/
http://www.emlid.com
--------------------------------------------------------------------------------------------------------------------------------------


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - umiddelb - 02-29-2016

(02-29-2016, 09:36 PM)Artyom Wrote: We have kernel 3.10. I understand correctly?
The BSP Linux kernel carries version number 3.10.65.


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - Artyom - 03-01-2016

(02-29-2016, 11:24 PM)umiddelb Wrote:
(02-29-2016, 09:36 PM)Artyom Wrote: We have kernel 3.10. I understand correctly?
The BSP Linux kernel carries version number 3.10.65.

I patch kernel. Link to download
https://yadi.sk/d/032Gpm_CponbR


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - janjwerner - 03-01-2016

@Artyom
Thanks for your work, I would suggest forking Longsleep's kernel repo on Github and put the changes in a separate branch. This should help moving forward having your changes visible, also given frequent changes to BSP tree it will help to keep the RT kernel updated.
c


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - Artyom - 03-01-2016

(03-01-2016, 10:20 AM)janjwerner Wrote: @Artyom
Thanks for your work, I would suggest forking Longsleep's kernel repo on Github and put the changes in a separate branch. This should help moving forward having your changes visible, also given frequent changes to BSP tree it will help to keep the RT kernel updated.
c

Thank you. But do not thank in advance. Bad sign in Russian)). You must first check if everything is working.


RE: Minimal 64bit ARM RootFS for Debian and Ubuntu - umiddelb - 03-01-2016

(03-01-2016, 10:28 AM)Artyom Wrote:
(03-01-2016, 10:20 AM)janjwerner Wrote: @Artyom
Thanks for your work, I would suggest forking Longsleep's kernel repo on Github and put the changes in a separate branch. This should help moving forward having your changes visible, also given frequent changes to BSP tree it will help to keep the RT kernel updated.
c

Thank you. But do not thank in advance. Bad sign in Russian)). You must first check if everything is working.

Doesn't compile on arm64, some of the patches may have damaged kernel dependency configuration:
Code:
debian@p64:~/kernel/3.10/linux-pine64-pine64-hacks-1.2-RT$ make sun50iw1p1smp_linux_defconfig
arch/arm64/Kconfig:572: can't open file "kernel/power/Kconfig"
/home/debian/kernel/3.10/linux-pine64-pine64-hacks-1.2-RT/scripts/kconfig/Makefile:105: recipe for target 'sun50iw1p1smp_linux_defconfig' failed
make[1]: *** [sun50iw1p1smp_linux_defconfig] Error 1
Makefile:503: recipe for target 'sun50iw1p1smp_linux_defconfig' failed
make: *** [sun50iw1p1smp_linux_defconfig] Error 2

Could you post which patch sets you've applied, please.