CuBox Development Platform

Linux, Android based tiny, energy efficient development machine
It is currently Mon Oct 20, 2014 4:22 am

All times are UTC




Post new topic Reply to topic  [ 9 posts ] 
Author Message
PostPosted: Sun Dec 18, 2011 5:27 pm 
Offline
SolidRun Staff

Joined: Wed Dec 14, 2011 11:20 pm
Posts: 477
OK. Kernel is ready to be public -

https://github.com/rabeeh/linux-2.6.32.9
git@github.com:rabeeh/linux-2.6.32.9.git

We will write a wiki page to explain in details how to build, but it's the standard way -
1. export ARCH=arm
2. export CROSS_COMPILE=<path to your arm cross compiler>
3. make cubox_defconfig
4. make uImage

(notice that u-boot tools should be already installed in your system for the mkimage tool).

_________________
SolidRun Engineering
user rabeeh in #cubox on Freenode IRC
Please visit and update the Wiki


Top
 Profile  
 
PostPosted: Sun Dec 18, 2011 9:24 pm 
Offline

Joined: Tue Dec 13, 2011 8:56 pm
Posts: 387
Thanks.
Is it patched for accept4 and armdma? I suppose I can wait and find out for myself


Top
 Profile  
 
PostPosted: Mon Dec 19, 2011 5:09 pm 
Offline

Joined: Tue Dec 13, 2011 8:56 pm
Posts: 387
I don't know why I'm compiling now without a CuBox (I must be bored?), but I get this
Code:
  CC      arch/arm/mach-dove/gc600_driver_dove/galcore_ko_src/hal/os/linux/kernel/gc_hal_kernel_device.o
In file included from arch/arm/mach-dove/gc600_driver_dove/galcore_ko_src/hal/os/linux/kernel/gc_hal_kernel_device.c:25:0:
include/linux/pagemap.h: In function âfault_in_pages_readableâ:
include/linux/pagemap.h:415:16: error: variable âcâ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors


Top
 Profile  
 
PostPosted: Mon Dec 19, 2011 10:32 pm 
Offline
SolidRun Staff

Joined: Wed Dec 14, 2011 11:20 pm
Posts: 477
which toolchain do you have installed?
it treats warnings as errors, well then we will probably have few of those.
time for more cleanup.

_________________
SolidRun Engineering
user rabeeh in #cubox on Freenode IRC
Please visit and update the Wiki


Top
 Profile  
 
PostPosted: Mon Dec 19, 2011 11:57 pm 
Offline

Joined: Tue Dec 13, 2011 8:56 pm
Posts: 387
Not a tool chain but on arm7hf tegra gcc 4.6.2
Unused functions are warnings not errors, are you suggesting do the same for this? Makes sense but nothing else has this error.


Top
 Profile  
 
PostPosted: Fri Dec 30, 2011 8:24 am 
Offline

Joined: Fri Dec 30, 2011 7:37 am
Posts: 7
In an attempt to make the wait for my CuBox a little shorter, I've tried to cross-compile
the kernel on my Kubuntu 11.10:
Code:
apt-get install gcc-arm-linux-gnueabi
export ARCH=arm
export CROSS_COMPILE=/usr/bin/arm-linux-gnueabi-
make cubox_defconfig
make uImage


Unfortunately, this ends in the following error:

Code:
In file included from arch/arm/mach-dove/gc600_driver_dove/galcore_ko_src/hal/os/linux/kernel/gc_hal_kernel_device.c:25:0:
include/linux/pagemap.h: In function ‘fault_in_pages_readable’:
include/linux/pagemap.h:415:16: error: variable ‘c’ set but not used [-Werror=unused-but-set-variable]
cc1: all warnings being treated as errors

make[3]: *** [arch/arm/mach-dove/gc600_driver_dove/galcore_ko_src/hal/os/linux/kernel/gc_hal_kernel_device.o] Error 1
make[2]: *** [arch/arm/mach-dove/gc600_driver_dove/galcore_ko_src] Error 2
make[1]: *** [arch/arm/mach-dove/gc600_driver_dove] Error 2
make: *** [arch/arm/mach-dove] Error 2


Is this due to an error on my part?


Top
 Profile  
 
PostPosted: Fri Dec 30, 2011 9:50 am 
Offline
SolidRun Staff

Joined: Wed Dec 14, 2011 11:20 pm
Posts: 477
Nop. See above from pepedog - same thing.

which arm-linux-gnueabi-gcc version are you using under Kubuntu?

_________________
SolidRun Engineering
user rabeeh in #cubox on Freenode IRC
Please visit and update the Wiki


Top
 Profile  
 
PostPosted: Fri Dec 30, 2011 10:15 am 
Offline

Joined: Fri Dec 30, 2011 7:37 am
Posts: 7
I'm assuming this is the one you're asking for:
gcc-4.6-arm-linux-gnueabi - 4.6.1-9ubuntu3cross1.55


Top
 Profile  
 
PostPosted: Wed Jan 11, 2012 12:09 am 
Offline

Joined: Tue Dec 13, 2011 8:56 pm
Posts: 387
I added to KBUILD_CFLAGS in Makefile -Wno-unused-but-set-variable and kernel is starting to compile ok, will post if there's any more trouble.
CuBox is in Bergamo Italy.
Is shipped OS hard float? Can you tar hard float blobs/libs/xorg stuff to I don't have to pick my way through shipped OS, pleeeeease. And can we package for archlinuxarm, or is there a licence problem with that?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 9 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  


phpBB SEO