From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@9fans.net Date: Thu, 14 May 2009 20:29:48 +0200 From: lucio@proxima.alt.za In-Reply-To: <3d5064d73b15cd2cbed06e132f419059@terzarima.net> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] P9P on Lemote Yeeloong Topicbox-Message-UUID: f9f1b2e8-ead4-11e9-9d60-3106f5b1d025 > since the hard part is writing drivers, just do a normal port using v[acl]. > not fussing about with all the other things that will otherwise go wrong > will allow you more time to write those drivers. My take is perhaps flawed, but the way I see it, the BIOS, bootstrap loader and debugger (all rolled into PMON, supplied with source and ready for cross compilation on a Linux/386 platform) insists on ELF, optionally S-record format executables. It seems easier and more beneficial to shoehorn the Plan 9 kernel sources into GCC (Russ has already done a lot of the ground work for that) than to convert the Plan 9 kernel binaries into ELF. I'm not sure about S-record, I have a feeling a lot will be lost in the translation. Now, I really don't mind hearing of different approaches, often these have turned out to be better than the dead end I had picked, so I'll keep that firmly in mind. In this case there is a small additional advantage to go the ELF/GCC route, namely that I will be using a 64-bit compiler for the kernel itself. That said, I'm still fighting with the thread context switch stuff: there was some exciting stuff Lucho directed me to, but so far I seem to be held back by the fact that what I found applies to Gentoo rather than Debian. I need to dig a little deeper. Also, the 32-bit/64-bit question comes up again. I don't know enough about MIPS to do more than ponder over the likelihood of getting a 64-bit compiler running by the time I have the kernel ported. I'm putting that on the backburner. As for drivers, I'm hoping that most of the drivers will be compatible with their 386 versions. There is source for Linux and there is documentation (I have only found it in Chinese, but that's still better than nothing and I have not looked very far). I'm too far from that bridge to focus on it at this point, I can only wish that I will get to it any time soon. But again, I'm willing to listen. ++L