OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

2 Pages V  < 1 2  
Reply to this topicStart new topic
> Compile kernel inside gemini : Is it possible ?
galodoido
post Jun 9 2018, 08:28 AM
Post #16





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



rolleyes.gif
QUOTE(galodoido @ Jun 9 2018, 10:50 AM) *
QUOTE(galodoido @ Jun 9 2018, 09:08 AM) *
QUOTE(Beiriannydd @ Jun 9 2018, 03:37 AM) *
QUOTE(galodoido @ Jun 8 2018, 08:37 AM) *
Ok . Thank you.
I reduced the size of terminal ( fonts ) and I was able to do make menuconfig. But using the same (.config ) and compiling with internal gcc ( as suggested by Beiriannydd ) and enabling only kernel module support , I can't compile the kernel. Some errors at the end.

You will have to paste the errors or we can't help you. There could be any number of issues.

I decided to compile in my macbook. It is fast. But the error is the same.

First I have to create a dir named tools in /kernel-3.18/tools
An error saying that dir tools does not exist. So the dir after the creation is /kernel-3.18/tools/tools.
Then the compilation starts and finished without notice of errors.
But scrolling the compilation I saw this error :
CC sound/usb/proc.o
In file included from drivers/misc/mediatek/base/power/mt6797/mt_eem.c:1036:0:
drivers/misc/mediatek/base/power/mt6797/../../../include/mt-plat/mt6797/include/mach/mt_thermal.h:27:24: fatal error: mt_gpufreq.h: No such file or directory
#include "mt_gpufreq.h"
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/misc/mediatek/base/power/mt6797/mt_eem.o' failed
make[6]: *** [drivers/misc/mediatek/base/power/mt6797/mt_eem.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base/power/mt6797' failed
make[5]: *** [drivers/misc/mediatek/base/power/mt6797] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base/power' failed
make[4]: *** [drivers/misc/mediatek/base/power] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base' failed
make[3]: *** [drivers/misc/mediatek/base] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek' failed
make[2]: *** [drivers/misc/mediatek] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
Makefile:939: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/usb/quirks.o
CC net/ipv6/af_inet6.o
Interesting is the .config file is the same I use when compiling following this instructions below; The difference is that I am compiling inside the tree kernel-3.18 and not to a KERNEL_OUT dir.

https://www.oesf.org/forum/index.php?act=Po...amp;qpid=286798

$ make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 aeon6797_6m_n_halium_defconfig
$ make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 CROSS_COMPILE=../aarch64-linux-android-4.9/bin/aarch64-linux-android- -j8

Thank you again


compiled only the modules with success ( make modules ).
but when sudo modprobe " some module " an error : could not insert "some module " . Exec format error.
thank you.


Re-compiled kernel with only modules support in my macbook . Reflashed gemini.
modprobe my dibcom module ( digital usb tv ) and it worked like a charm.

Video in youtube with my gemini and vlc playing local tv network ( GLOBO TV ).
will upload it in youtube and post link here in a few hours .
rolleyes.gif
Go to the top of the page
 
+Quote Post
galodoido
post Jun 9 2018, 08:54 AM
Post #17





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(galodoido @ Jun 9 2018, 01:28 PM) *
rolleyes.gif
QUOTE(galodoido @ Jun 9 2018, 10:50 AM) *
QUOTE(galodoido @ Jun 9 2018, 09:08 AM) *
QUOTE(Beiriannydd @ Jun 9 2018, 03:37 AM) *
QUOTE(galodoido @ Jun 8 2018, 08:37 AM) *
Ok . Thank you.
I reduced the size of terminal ( fonts ) and I was able to do make menuconfig. But using the same (.config ) and compiling with internal gcc ( as suggested by Beiriannydd ) and enabling only kernel module support , I can't compile the kernel. Some errors at the end.

You will have to paste the errors or we can't help you. There could be any number of issues.

I decided to compile in my macbook. It is fast. But the error is the same.

First I have to create a dir named tools in /kernel-3.18/tools
An error saying that dir tools does not exist. So the dir after the creation is /kernel-3.18/tools/tools.
Then the compilation starts and finished without notice of errors.
But scrolling the compilation I saw this error :
CC sound/usb/proc.o
In file included from drivers/misc/mediatek/base/power/mt6797/mt_eem.c:1036:0:
drivers/misc/mediatek/base/power/mt6797/../../../include/mt-plat/mt6797/include/mach/mt_thermal.h:27:24: fatal error: mt_gpufreq.h: No such file or directory
#include "mt_gpufreq.h"
^
compilation terminated.
scripts/Makefile.build:257: recipe for target 'drivers/misc/mediatek/base/power/mt6797/mt_eem.o' failed
make[6]: *** [drivers/misc/mediatek/base/power/mt6797/mt_eem.o] Error 1
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base/power/mt6797' failed
make[5]: *** [drivers/misc/mediatek/base/power/mt6797] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base/power' failed
make[4]: *** [drivers/misc/mediatek/base/power] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek/base' failed
make[3]: *** [drivers/misc/mediatek/base] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc/mediatek' failed
make[2]: *** [drivers/misc/mediatek] Error 2
scripts/Makefile.build:402: recipe for target 'drivers/misc' failed
make[1]: *** [drivers/misc] Error 2
Makefile:939: recipe for target 'drivers' failed
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....
CC sound/usb/quirks.o
CC net/ipv6/af_inet6.o
Interesting is the .config file is the same I use when compiling following this instructions below; The difference is that I am compiling inside the tree kernel-3.18 and not to a KERNEL_OUT dir.

https://www.oesf.org/forum/index.php?act=Po...amp;qpid=286798

$ make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 aeon6797_6m_n_halium_defconfig
$ make O=../KERNEL_OUT -C kernel-3.18 ARCH=arm64 CROSS_COMPILE=../aarch64-linux-android-4.9/bin/aarch64-linux-android- -j8

Thank you again


compiled only the modules with success ( make modules ).
but when sudo modprobe " some module " an error : could not insert "some module " . Exec format error.
thank you.


Re-compiled kernel with only modules support in my macbook . Reflashed gemini.
modprobe my dibcom module ( digital usb tv ) and it worked like a charm.

Video in youtube with my gemini and vlc playing local tv network ( GLOBO TV ).
will upload it in youtube and post link here in a few hours .
rolleyes.gif


Here is the link:

https://www.youtube.com/watch?v=6ohN_9FOLRA...eature=youtu.be

smile.gif tongue.gif
Go to the top of the page
 
+Quote Post
jthenley
post Jun 13 2018, 09:54 PM
Post #18





Group: Members
Posts: 2
Joined: 10-June 18
Member No.: 824,227



QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767
Go to the top of the page
 
+Quote Post
galodoido
post Jun 14 2018, 03:38 AM
Post #19





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(jthenley @ Jun 14 2018, 02:54 AM) *
QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767


Wall was already in the KBUILD_CFLAGS

Changed only kernel-3.18 to kernel_3.18 to,preserve my previous kernel modules already compiled as described before.

Unfortunately following your instructions no success . see below:

LD drivers/mmc/built-in.o
CC fs/compat_ioctl.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
CC fs/binfmt_script.o
CC net/ipv4/sysctl_net_ipv4.o
CC fs/binfmt_elf.o
CC net/ipv4/sysfs_net_ipv4.o
CC net/ipv4/proc.o
CC fs/compat_binfmt_elf.o
CC fs/mbcache.o
CC net/ipv4/fib_rules.o
CC net/ipv4/ipmr.o
CC fs/posix_acl.o
CC net/ipv4/ipip.o
CC net/ipv4/syncookies.o
CC net/ipv4/ah4.o
CC net/ipv4/esp4.o
CC net/ipv4/ipcomp.o
CC net/ipv4/xfrm4_tunnel.o
CC net/ipv4/xfrm4_mode_beet.o
CC fs/coredump.o
CC net/ipv4/tunnel4.o
CC net/ipv4/xfrm4_mode_transport.o
CC net/ipv4/xfrm4_mode_tunnel.o
CC fs/drop_caches.o
CC net/ipv4/ipconfig.o
CC fs/fhandle.o
CC fs/dcookies.o
CC net/ipv4/netfilter.o
CC net/ipv4/inet_diag.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o
CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o
CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o
LD fs/built-in.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC net/ipv4/tcp_diag.o
CC net/ipv4/udp_diag.o
CC net/ipv4/tcp_cubic.o
CC net/ipv4/netfilter/nf_log_ipv4.o
CC net/ipv4/xfrm4_policy.o
CC net/ipv4/xfrm4_state.o
CC net/ipv4/netfilter/nf_reject_ipv4.o
CC net/ipv4/xfrm4_input.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC net/ipv4/netfilter/nf_nat_masquerade_ipv4.o
CC net/ipv4/xfrm4_output.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC net/ipv4/xfrm4_protocol.o
CC net/ipv4/netfilter/ip_tables.o
CC net/ipv4/netfilter/iptable_filter.o
CC net/ipv4/netfilter/iptable_mangle.o
CC net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/iptable_raw.o
CC net/ipv4/netfilter/ipt_MASQUERADE.o
CC net/ipv4/netfilter/ipt_REJECT.o
CC net/ipv4/netfilter/arp_tables.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat_ipv4.o
LD net/ipv4/netfilter/built-in.o
LD net/ipv4/built-in.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'net' failed
make[1]: *** [net] Error 2
make[1]: Leaving directory '/home/gemini/KERNEL_OUT'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/gemini/kernel_3.18'
gemini@localhost:~$
Go to the top of the page
 
+Quote Post
galodoido
post Jun 14 2018, 03:44 AM
Post #20





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(galodoido @ Jun 14 2018, 08:38 AM) *
QUOTE(jthenley @ Jun 14 2018, 02:54 AM) *
QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767


Wall was already in the KBUILD_CFLAGS

Changed only kernel-3.18 to kernel_3.18 to,preserve my previous kernel modules already compiled as described before.

Unfortunately following your instructions no success . see below:

LD drivers/mmc/built-in.o
CC fs/compat_ioctl.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
CC fs/binfmt_script.o
CC net/ipv4/sysctl_net_ipv4.o
CC fs/binfmt_elf.o
CC net/ipv4/sysfs_net_ipv4.o
CC net/ipv4/proc.o
CC fs/compat_binfmt_elf.o
CC fs/mbcache.o
CC net/ipv4/fib_rules.o
CC net/ipv4/ipmr.o
CC fs/posix_acl.o
CC net/ipv4/ipip.o
CC net/ipv4/syncookies.o
CC net/ipv4/ah4.o
CC net/ipv4/esp4.o
CC net/ipv4/ipcomp.o
CC net/ipv4/xfrm4_tunnel.o
CC net/ipv4/xfrm4_mode_beet.o
CC fs/coredump.o
CC net/ipv4/tunnel4.o
CC net/ipv4/xfrm4_mode_transport.o
CC net/ipv4/xfrm4_mode_tunnel.o
CC fs/drop_caches.o
CC net/ipv4/ipconfig.o
CC fs/fhandle.o
CC fs/dcookies.o
CC net/ipv4/netfilter.o
CC net/ipv4/inet_diag.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o
CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o
CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o
LD fs/built-in.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC net/ipv4/tcp_diag.o
CC net/ipv4/udp_diag.o
CC net/ipv4/tcp_cubic.o
CC net/ipv4/netfilter/nf_log_ipv4.o
CC net/ipv4/xfrm4_policy.o
CC net/ipv4/xfrm4_state.o
CC net/ipv4/netfilter/nf_reject_ipv4.o
CC net/ipv4/xfrm4_input.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC net/ipv4/netfilter/nf_nat_masquerade_ipv4.o
CC net/ipv4/xfrm4_output.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC net/ipv4/xfrm4_protocol.o
CC net/ipv4/netfilter/ip_tables.o
CC net/ipv4/netfilter/iptable_filter.o
CC net/ipv4/netfilter/iptable_mangle.o
CC net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/iptable_raw.o
CC net/ipv4/netfilter/ipt_MASQUERADE.o
CC net/ipv4/netfilter/ipt_REJECT.o
CC net/ipv4/netfilter/arp_tables.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat_ipv4.o
LD net/ipv4/netfilter/built-in.o
LD net/ipv4/built-in.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'net' failed
make[1]: *** [net] Error 2
make[1]: Leaving directory '/home/gemini/KERNEL_OUT'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/gemini/kernel_3.18'
gemini@localhost:~$


as I said below to work ( includind modules )

Re-compiled kernel with only modules support in my macbook . Reflashed gemini whit this kernel .

compiled only the modules inside gemini with success ( make modules ).

modprobe my dibcom module ( digital usb tv ) and it worked like a charm.

Video in youtube with my gemini and vlc playing local tv network ( GLOBO TV ).


Here is the link:

https://www.youtube.com/watch?v=6ohN_9FOLRA...eature=youtu.be

rolleyes.gif
tongue.gif
Go to the top of the page
 
+Quote Post
mgfm99
post Jun 24 2018, 01:30 AM
Post #21





Group: Members
Posts: 12
Joined: 2-March 18
Member No.: 818,566





I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all[/quote]

I'm keen on compiling the kernel headers so I can install the displaylink driver for HDMI out. Following the instructions, I've managed to compile the kernel on the Gemini PDA, but all the scripts I've tried for generating the debian package for the kernel headers fail. Does anyone have a suggestion how one can do that?
Go to the top of the page
 
+Quote Post
JavaDevGuy
post Jun 28 2018, 12:35 PM
Post #22





Group: Members
Posts: 3
Joined: 21-June 18
Member No.: 824,847



QUOTE(jthenley @ Jun 13 2018, 10:54 PM) *
QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767


Hi @jthenley I tried compiling the kernel following the instructions suggested and hit the same error that @galodoido hit, what did you do to work around this? I also tried on my Mac but hit even more errors. I'd like to add a few kernel options so I can run docker on my new gemini smile.gif

Thanks.
Go to the top of the page
 
+Quote Post
JavaDevGuy
post Jul 5 2018, 12:39 AM
Post #23





Group: Members
Posts: 3
Joined: 21-June 18
Member No.: 824,847



QUOTE(galodoido @ Jun 14 2018, 04:44 AM) *
QUOTE(galodoido @ Jun 14 2018, 08:38 AM) *
QUOTE(jthenley @ Jun 14 2018, 02:54 AM) *
QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767


Wall was already in the KBUILD_CFLAGS

Changed only kernel-3.18 to kernel_3.18 to,preserve my previous kernel modules already compiled as described before.

Unfortunately following your instructions no success . see below:

LD drivers/mmc/built-in.o
CC fs/compat_ioctl.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
CC fs/binfmt_script.o
CC net/ipv4/sysctl_net_ipv4.o
CC fs/binfmt_elf.o
CC net/ipv4/sysfs_net_ipv4.o
CC net/ipv4/proc.o
CC fs/compat_binfmt_elf.o
CC fs/mbcache.o
CC net/ipv4/fib_rules.o
CC net/ipv4/ipmr.o
CC fs/posix_acl.o
CC net/ipv4/ipip.o
CC net/ipv4/syncookies.o
CC net/ipv4/ah4.o
CC net/ipv4/esp4.o
CC net/ipv4/ipcomp.o
CC net/ipv4/xfrm4_tunnel.o
CC net/ipv4/xfrm4_mode_beet.o
CC fs/coredump.o
CC net/ipv4/tunnel4.o
CC net/ipv4/xfrm4_mode_transport.o
CC net/ipv4/xfrm4_mode_tunnel.o
CC fs/drop_caches.o
CC net/ipv4/ipconfig.o
CC fs/fhandle.o
CC fs/dcookies.o
CC net/ipv4/netfilter.o
CC net/ipv4/inet_diag.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o
CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o
CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o
LD fs/built-in.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC net/ipv4/tcp_diag.o
CC net/ipv4/udp_diag.o
CC net/ipv4/tcp_cubic.o
CC net/ipv4/netfilter/nf_log_ipv4.o
CC net/ipv4/xfrm4_policy.o
CC net/ipv4/xfrm4_state.o
CC net/ipv4/netfilter/nf_reject_ipv4.o
CC net/ipv4/xfrm4_input.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC net/ipv4/netfilter/nf_nat_masquerade_ipv4.o
CC net/ipv4/xfrm4_output.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC net/ipv4/xfrm4_protocol.o
CC net/ipv4/netfilter/ip_tables.o
CC net/ipv4/netfilter/iptable_filter.o
CC net/ipv4/netfilter/iptable_mangle.o
CC net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/iptable_raw.o
CC net/ipv4/netfilter/ipt_MASQUERADE.o
CC net/ipv4/netfilter/ipt_REJECT.o
CC net/ipv4/netfilter/arp_tables.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat_ipv4.o
LD net/ipv4/netfilter/built-in.o
LD net/ipv4/built-in.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'net' failed
make[1]: *** [net] Error 2
make[1]: Leaving directory '/home/gemini/KERNEL_OUT'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/gemini/kernel_3.18'
gemini@localhost:~$


as I said below to work ( includind modules )

Re-compiled kernel with only modules support in my macbook . Reflashed gemini whit this kernel .

compiled only the modules inside gemini with success ( make modules ).

modprobe my dibcom module ( digital usb tv ) and it worked like a charm.

Video in youtube with my gemini and vlc playing local tv network ( GLOBO TV ).


Here is the link:

https://www.youtube.com/watch?v=6ohN_9FOLRA...eature=youtu.be

rolleyes.gif
tongue.gif


@galodoido what libraries and headers did you add to your Mac to cross compile? I tried to compile on my Mac but got an error about a missing elf.h header? I was following the instructions to cross-compile from the "How to build" article.
Go to the top of the page
 
+Quote Post
galodoido
post Jul 10 2018, 04:07 PM
Post #24





Group: Members
Posts: 156
Joined: 13-May 18
Member No.: 822,555



QUOTE(JavaDevGuy @ Jul 5 2018, 05:39 AM) *
QUOTE(galodoido @ Jun 14 2018, 04:44 AM) *
QUOTE(galodoido @ Jun 14 2018, 08:38 AM) *
QUOTE(jthenley @ Jun 14 2018, 02:54 AM) *
QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767


Wall was already in the KBUILD_CFLAGS

Changed only kernel-3.18 to kernel_3.18 to,preserve my previous kernel modules already compiled as described before.

Unfortunately following your instructions no success . see below:

LD drivers/mmc/built-in.o
CC fs/compat_ioctl.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
CC fs/binfmt_script.o
CC net/ipv4/sysctl_net_ipv4.o
CC fs/binfmt_elf.o
CC net/ipv4/sysfs_net_ipv4.o
CC net/ipv4/proc.o
CC fs/compat_binfmt_elf.o
CC fs/mbcache.o
CC net/ipv4/fib_rules.o
CC net/ipv4/ipmr.o
CC fs/posix_acl.o
CC net/ipv4/ipip.o
CC net/ipv4/syncookies.o
CC net/ipv4/ah4.o
CC net/ipv4/esp4.o
CC net/ipv4/ipcomp.o
CC net/ipv4/xfrm4_tunnel.o
CC net/ipv4/xfrm4_mode_beet.o
CC fs/coredump.o
CC net/ipv4/tunnel4.o
CC net/ipv4/xfrm4_mode_transport.o
CC net/ipv4/xfrm4_mode_tunnel.o
CC fs/drop_caches.o
CC net/ipv4/ipconfig.o
CC fs/fhandle.o
CC fs/dcookies.o
CC net/ipv4/netfilter.o
CC net/ipv4/inet_diag.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o
CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o
CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o
LD fs/built-in.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC net/ipv4/tcp_diag.o
CC net/ipv4/udp_diag.o
CC net/ipv4/tcp_cubic.o
CC net/ipv4/netfilter/nf_log_ipv4.o
CC net/ipv4/xfrm4_policy.o
CC net/ipv4/xfrm4_state.o
CC net/ipv4/netfilter/nf_reject_ipv4.o
CC net/ipv4/xfrm4_input.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC net/ipv4/netfilter/nf_nat_masquerade_ipv4.o
CC net/ipv4/xfrm4_output.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC net/ipv4/xfrm4_protocol.o
CC net/ipv4/netfilter/ip_tables.o
CC net/ipv4/netfilter/iptable_filter.o
CC net/ipv4/netfilter/iptable_mangle.o
CC net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/iptable_raw.o
CC net/ipv4/netfilter/ipt_MASQUERADE.o
CC net/ipv4/netfilter/ipt_REJECT.o
CC net/ipv4/netfilter/arp_tables.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat_ipv4.o
LD net/ipv4/netfilter/built-in.o
LD net/ipv4/built-in.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'net' failed
make[1]: *** [net] Error 2
make[1]: Leaving directory '/home/gemini/KERNEL_OUT'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/gemini/kernel_3.18'
gemini@localhost:~$


as I said below to work ( includind modules )

Re-compiled kernel with only modules support in my macbook . Reflashed gemini whit this kernel .

compiled only the modules inside gemini with success ( make modules ).

modprobe my dibcom module ( digital usb tv ) and it worked like a charm.

Video in youtube with my gemini and vlc playing local tv network ( GLOBO TV ).


Here is the link:

https://www.youtube.com/watch?v=6ohN_9FOLRA...eature=youtu.be

rolleyes.gif
tongue.gif


@galodoido what libraries and headers did you add to your Mac to cross compile? I tried to compile on my Mac but got an error about a missing elf.h header? I was following the instructions to cross-compile from the "How to build" article.


Sorry , only saw your message today : there is a lot of messages in this forum :

My macbook air has dual boot : mac and linux. ( debian stretch ), as I mentioned before in this topic.
Go to the top of the page
 
+Quote Post
JavaDevGuy
post Jul 22 2018, 07:58 PM
Post #25





Group: Members
Posts: 3
Joined: 21-June 18
Member No.: 824,847



QUOTE(galodoido @ Jul 10 2018, 05:07 PM) *
QUOTE(JavaDevGuy @ Jul 5 2018, 05:39 AM) *
QUOTE(galodoido @ Jun 14 2018, 04:44 AM) *
QUOTE(galodoido @ Jun 14 2018, 08:38 AM) *
QUOTE(jthenley @ Jun 14 2018, 02:54 AM) *
QUOTE(galodoido @ Jun 6 2018, 04:57 PM) *
Hi.
I've tried to compile the kernel as described in another post .

For the community modified kernel:
https://github.com/gemian/gemini-linux-kernel-3.18

How to build:
https://github.com/gemian/gemini-keyboard-a...rnelCompilation

How to flash (from device):
https://github.com/gemian/gemini-keyboard-a...date-the-kernel


But I've tried inside gemini.
Unfortunately, it is not possible inside gemini.
Only outside,from an external pc with linux ( with success )

I think it was because aarch64-linux-gnu gcc will not run on arm64 plattaform.
Is there a way to compile inside gemini ?
I need linux headers to compile video4linux.
Maybe the camera will work with video4linux.
Maybe there is kernel with files to compile directly inside the gemini ( Makefile and a full tree of files ).

Thank you all


Yes you can. I've updated instructions for how to build on gemini :-)

https://github.com/gemian/gemini-keyboard-a...rnelCompilation

You can see it here (I have to borrow my wife's facebook account to engage with the Facebook community!

https://m.facebook.com/groups/1774620199505...842036069430767


Wall was already in the KBUILD_CFLAGS

Changed only kernel-3.18 to kernel_3.18 to,preserve my previous kernel modules already compiled as described before.

Unfortunately following your instructions no success . see below:

LD drivers/mmc/built-in.o
CC fs/compat_ioctl.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'drivers' failed
make[1]: *** [drivers] Error 2
CC fs/binfmt_script.o
CC net/ipv4/sysctl_net_ipv4.o
CC fs/binfmt_elf.o
CC net/ipv4/sysfs_net_ipv4.o
CC net/ipv4/proc.o
CC fs/compat_binfmt_elf.o
CC fs/mbcache.o
CC net/ipv4/fib_rules.o
CC net/ipv4/ipmr.o
CC fs/posix_acl.o
CC net/ipv4/ipip.o
CC net/ipv4/syncookies.o
CC net/ipv4/ah4.o
CC net/ipv4/esp4.o
CC net/ipv4/ipcomp.o
CC net/ipv4/xfrm4_tunnel.o
CC net/ipv4/xfrm4_mode_beet.o
CC fs/coredump.o
CC net/ipv4/tunnel4.o
CC net/ipv4/xfrm4_mode_transport.o
CC net/ipv4/xfrm4_mode_tunnel.o
CC fs/drop_caches.o
CC net/ipv4/ipconfig.o
CC fs/fhandle.o
CC fs/dcookies.o
CC net/ipv4/netfilter.o
CC net/ipv4/inet_diag.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4_compat.o
CC net/ipv4/netfilter/nf_conntrack_l3proto_ipv4.o
CC net/ipv4/netfilter/nf_conntrack_proto_icmp.o
CC net/ipv4/netfilter/nf_nat_l3proto_ipv4.o
LD fs/built-in.o
CC net/ipv4/netfilter/nf_nat_proto_icmp.o
CC net/ipv4/netfilter/nf_defrag_ipv4.o
CC net/ipv4/tcp_diag.o
CC net/ipv4/udp_diag.o
CC net/ipv4/tcp_cubic.o
CC net/ipv4/netfilter/nf_log_ipv4.o
CC net/ipv4/xfrm4_policy.o
CC net/ipv4/xfrm4_state.o
CC net/ipv4/netfilter/nf_reject_ipv4.o
CC net/ipv4/xfrm4_input.o
CC net/ipv4/netfilter/nf_nat_pptp.o
CC net/ipv4/netfilter/nf_nat_masquerade_ipv4.o
CC net/ipv4/xfrm4_output.o
CC net/ipv4/netfilter/nf_nat_proto_gre.o
CC net/ipv4/xfrm4_protocol.o
CC net/ipv4/netfilter/ip_tables.o
CC net/ipv4/netfilter/iptable_filter.o
CC net/ipv4/netfilter/iptable_mangle.o
CC net/ipv4/netfilter/iptable_nat.o
CC net/ipv4/netfilter/iptable_raw.o
CC net/ipv4/netfilter/ipt_MASQUERADE.o
CC net/ipv4/netfilter/ipt_REJECT.o
CC net/ipv4/netfilter/arp_tables.o
LD net/ipv4/netfilter/nf_conntrack_ipv4.o
LD net/ipv4/netfilter/nf_nat_ipv4.o
LD net/ipv4/netfilter/built-in.o
LD net/ipv4/built-in.o
/home/gemini/kernel_3.18/Makefile:939: recipe for target 'net' failed
make[1]: *** [net] Error 2
make[1]: Leaving directory '/home/gemini/KERNEL_OUT'
Makefile:145: recipe for target 'sub-make' failed
make: *** [sub-make] Error 2
make: Leaving directory '/home/gemini/kernel_3.18'
gemini@localhost:~$


as I said below to work ( includind modules )

Re-compiled kernel with only modules support in my macbook . Reflashed gemini whit this kernel .

compiled only the modules inside gemini with success ( make modules ).

modprobe my dibcom module ( digital usb tv ) and it worked like a charm.

Video in youtube with my gemini and vlc playing local tv network ( GLOBO TV ).


Here is the link:

https://www.youtube.com/watch?v=6ohN_9FOLRA...eature=youtu.be

rolleyes.gif
tongue.gif


@galodoido what libraries and headers did you add to your Mac to cross compile? I tried to compile on my Mac but got an error about a missing elf.h header? I was following the instructions to cross-compile from the "How to build" article.


Sorry , only saw your message today : there is a lot of messages in this forum :

My macbook air has dual boot : mac and linux. ( debian stretch ), as I mentioned before in this topic.


ok gotcha, I think I'll need to set up a VirtualBox image to move this forward smile.gif
Go to the top of the page
 
+Quote Post

2 Pages V  < 1 2
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 13th October 2019 - 05:14 PM