|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
How to cross-compile the kernel?
(I know cross-compilation is discouraged by FAQ 5.11.12)
I have a machine that's not officially supported by OpenBSD. However, there's a simple patch on the internet. So I think cross-compilation is still better than running Linux or selling the device. Any suggestions how to do that? |
|
|||
Doesn't sound like an easy task...
Next time I probably should take the official documentation more serious and not rely on hacks from the internet. Thank you, jggimi. EDIT: You probably meant this: http://openbsd.org/papers/mips32-openbsd.pdf Last edited by Skinny; 19th November 2012 at 08:58 AM. |
|
|||
The project developers have grounded reasons for their discouragement. Cross-compilation has very subtle issues involved which are hard to catch in practice. One needs to know what they are doing when breaking new ground.
Given that you have not given any details as to hardware, it is difficult to provide assistance other than to talk in gross generalities. My suggestion to you, if you want to continue this quest, is to scour the NetBSD project's Website & mailing lists, since they advocate cross-compilation as a general practice (out of necessity at times...). |
|
|||
What machine? What patch?
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. |
|
|||
Quote:
1) cross-compile 2) use Linux 3) sell it I wanted to try #1. Quote:
Quote:
(near the end of the article) |
|
|||
Quote:
What choice is there other than to cross compile if you want to try to fix it yourself? I suppose the right thing to do, from the perspective of helping the project, would be to write down and submit the dmesg up to where it fails and hope a developer takes interest, but I would like to try to take this on myself (eventually). Besides, they all have lots of other things to do other than trying to get my laptop working. |
|
|||
Finally solved it without recompilation:
- install OpenBSD as described in INSTALL.zaurus - boot bsd.rd again and start a shell - mount wd0a to /mnt - mount wd0f to /usr - 'config -e -o /mnt/bsd.new /mnt/bsd' - 'disable com' - 'cd /mnt; mv bsd bsd.old; cp bsd.new bsd' Unfortunately the screen stays bright even when the device is suspended. So I'll probably sell it nevertheless... (Reboot is really slow because you first need to boot Linux then 'insmod zbsdmod.o' then boot OBSD) |
|
|||
Quote:
__________________
Many thanks to the forum regulars who put time and effort into helping others solve their problems. |
|
|||
Quote:
|
|
||||
There was a thread about booting the C1000 on the arm@ mailing list seven years ago. Just in case you haven't seen it, here's a link to the first post in that thread:
http://marc.info/?l=openbsd-arm&m=112913313305656&w=2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Cross compile on ADM5120 | martijn | NetBSD General | 0 | 21st September 2010 08:08 PM |
Kernel and cross compiling on OpenBSD | Mr-Biscuit | Programming | 3 | 7th September 2010 04:35 AM |
Delete compilers to cross compile | revzalot | OpenBSD Installation and Upgrading | 9 | 28th August 2009 08:06 PM |
building cross compiler, having issues | moonlightcheese | FreeBSD General | 2 | 13th September 2008 02:22 PM |
compile kernel error | mfaridi | FreeBSD Installation and Upgrading | 9 | 14th July 2008 02:26 AM |