DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD General

NetBSD General Other questions regarding NetBSD which do not fit in any of the categories below.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 22nd March 2015
Plast0000 Plast0000 is offline
PWND
 
Join Date: Mar 2015
Posts: 6
Question n00b question: how to cross-compile NetBSD

how to cross-compile NetBSD kernel for evbarm
the guides on netbsd website are not really helpful ( at least for me)

https://www.netbsd.org/docs/guide/en...-config-kernel
http://netbsd.gw.com/cgi-bin/man-cgi...BSD-6.0.1+i386


target CPU: Allwinner A10
__________________
Plast0000
Reply With Quote
  #2   (View Single Post)  
Old 22nd March 2015
Oko's Avatar
Oko Oko is offline
Rc.conf Instructor
 
Join Date: May 2008
Location: Kosovo, Serbia
Posts: 1,102
Default

In all fairness person who can't follow NetBSD documentation has no business trying to cross compile NetBSD. cross compilation is used by developers to port NetBSD to new hardware platforms.
Reply With Quote
  #3   (View Single Post)  
Old 22nd March 2015
ibara's Avatar
ibara ibara is offline
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 630
Default

Quote:
Originally Posted by plastic_shadow View Post
target CPU: Allwinner A10
What board do you have? The evbarm directory is organized by board not by CPU. That'll help us figure out which one you need.
Reply With Quote
  #4   (View Single Post)  
Old 23rd March 2015
Plast0000 Plast0000 is offline
PWND
 
Join Date: Mar 2015
Posts: 6
Default

well I'm trying to, but it's somewhat complex for me, I'm a noob
__________________
Plast0000
Reply With Quote
  #5   (View Single Post)  
Old 23rd March 2015
Plast0000 Plast0000 is offline
PWND
 
Join Date: Mar 2015
Posts: 6
Default

Quote:
Originally Posted by ibara View Post
What board do you have? The evbarm directory is organized by board not by CPU. That'll help us figure out which one you need.
it's a CUBIEBOARD
__________________
Plast0000
Reply With Quote
  #6   (View Single Post)  
Old 23rd March 2015
ibara's Avatar
ibara ibara is offline
Future Defcon 201 speaker
 
Join Date: Jan 2014
Posts: 630
Default

Quote:
Originally Posted by Plast0000 View Post
it's a CUBIEBOARD
OK. Judging by the NetBSD docs, something like this should work:*
Check out src tree to /usr/src
Code:
# cd /usr/src && mkdir -p /usr/obj
# ./build.sh -m evbearmv7hf-el tools
# cd /usr/src/sys/arch/evbarm/conf/CUBIEBOARD && cp GENERIC CUBIE
CUBIE can be anything you want to name your kernel.
You can then edit the CUBIE kernel but I don't see a need for that.
Code:
# cd /usr/src
# ./build.sh -u -m evbearmv7hf-el kernel=CUBIE
# ./build.sh -U -u -m evbearmv7hf-el release
# ./build.sh -U -x -u -m evbearmv7hf-el release
You only need the last line (with the -x option) if you also want to have X. Otherwise you can omit it.

* I do not use NetBSD this is just my best guess based on reading the docs.
Reply With Quote
  #7   (View Single Post)  
Old 23rd March 2015
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 825
Default

While I've never used that arch, I've always been able to put the -U (unprivileged User) flag on the tools and kernel builds. The NetBSD Guide was unclear about this.
Reply With Quote
  #8   (View Single Post)  
Old 1st April 2015
Plast0000 Plast0000 is offline
PWND
 
Join Date: Mar 2015
Posts: 6
Default

Quote:
Originally Posted by IdOp View Post
While I've never used that arch, I've always been able to put the -U (unprivileged User) flag on the tools and kernel builds. The NetBSD Guide was unclear about this.
those guides got me puzzled to be honest
__________________
Plast0000
Reply With Quote
  #9   (View Single Post)  
Old 1st April 2015
Plast0000 Plast0000 is offline
PWND
 
Join Date: Mar 2015
Posts: 6
Default

Quote:
Originally Posted by ibara View Post
OK. Judging by the NetBSD docs, something like this should work:*
Check out src tree to /usr/src
Code:
# cd /usr/src && mkdir -p /usr/obj
# ./build.sh -m evbearmv7hf-el tools
# cd /usr/src/sys/arch/evbarm/conf/CUBIEBOARD && cp GENERIC CUBIE
CUBIE can be anything you want to name your kernel.
You can then edit the CUBIE kernel but I don't see a need for that.
Code:
# cd /usr/src
# ./build.sh -u -m evbearmv7hf-el kernel=CUBIE
# ./build.sh -U -u -m evbearmv7hf-el release
# ./build.sh -U -x -u -m evbearmv7hf-el release
You only need the last line (with the -x option) if you also want to have X. Otherwise you can omit it.

* I do not use NetBSD this is just my best guess based on reading the docs.
that actually helped, thanks alot
__________________
Plast0000
Reply With Quote
Reply

Tags
arm, cross-compile, kernel, netbsd 6.1

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to cross-compile the kernel? Skinny OpenBSD General 11 26th November 2012 05:38 PM
Cross compile on ADM5120 martijn NetBSD General 0 21st September 2010 08:08 PM
Delete compilers to cross compile revzalot OpenBSD Installation and Upgrading 9 28th August 2009 08:06 PM
edonkey n00b question disappearedng FreeBSD General 5 17th November 2008 10:09 AM
n00b Eclipse question disappearedng FreeBSD General 3 3rd November 2008 05:29 PM


All times are GMT. The time now is 01:10 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick