For posterity, Anoop helped me solve my problem (see below). Specifically, I 
cloned the Poulsbo driver, recompiled it, and viola (almost).  So, to repeat 
the details, I was able to recompile and install/boot the Moblin kernel for the 
Compal JAX10 by:


1.  Following the instructions here 
http://v1.moblin.org/projects/projects_kernel.php

a.  I did find that the dpkg-buildpackage fails because in debian/rules the 
line that assigns the number of make jobs uses /proc/cpuinfo, and when I am 
chroot'ed into the MIC project, /proc is empty.  I simply hardcoded jobs to the 
number of cores in my development system.

b.  And, I found that the config that comes with the Compal kernel is closer to 
"right" than the config in debian/configs, but both worked for me in the end

2.  Git clone http://moblin/org/repos/projects/psb-kmd.git

a.  To compile this, I did something ugly. I replaced 
<kernelsource>/drivers/char/drm with the above repository, cd 
<kernelsource>/drivers/char/drm/; mv Makefile.kernel Makefile

b.  And then in the .config enabled the DRM and Pouslbo options under display 
drivers

c.  The project above has a Makefile that allows one to build without my ugly 
hack, but for some silly reasons it was given me trouble and so I beat it into 
submission.

3.  Copied the libraries Anoop pointed out from Midlinux to my target 
filesystem, with one exception - I found libexpat.so.* in /usr/lib and that is 
where I put them as well.

Cheers,

Erik

P.s., finally, I was not successful in using the vga driver instead of the psb 
driver for X.  While that got me past some problems, X eventually still 
crashed.  So, save yourself the time and compile psb.ko (and drm.ko).


From: Anoop Menon [mailto:[email protected]]
Sent: Tuesday, January 06, 2009 8:53 AM
To: Johnson, Erik J
Subject: Re: [Moblin Dev] Installing custom moblin kernel on Compal JAX10

The symptom does seem indicative of a bad X configuration. To debug it, you 
could try booting into single user mode and having a look at the log file. In 
my case, currently I'm using a USB RW image, so I'd use the following boot 
command at the boot prompt:

vmlinuz initrd=initrd0.img boot=usb single

Most likely you're missing some Poulsbo drivers. Things I needed to copy from 
Midlinux to get it functional were:

psb_dri.so to /usr/lib/dri
Xpsb.so to /usr/lib/xorg/modules/drivers
libexpat.so.0 to /lib

In addition, the kernel needs the psb.ko driver. Run 'modprobe psb' from the 
command line to check if you have this module.

Good luck.

-Anoop.
On Mon, Jan 5, 2009 at 4:16 PM, Johnson, Erik J 
<[email protected]<mailto:[email protected]>> wrote:
I have a need to experiment with a modified Moblin kernel on my Compal JAX10 
device. As a first step, I am trying to recompile the moblin kernel 
_unmodified_. I've been following the instructions here: 
http://v1.moblin.org/projects/projects_kernel.php for recompiling the Moblin V1 
kernel, but I suspect I'm not installing it correctly. The behavior I get is a 
system that boots, but (I suspect that when it tries to start X) the screen 
goes blank for a second, then comes back to the console for a second, then goes 
blank again, and so on forever.

Notes about what I've done:

1. After following the instructions on the above link, I tried two ways to 
install the kernel:
       a. chroot <mic-project>/targets/<mytarget>/fs; dpkg -i 
linux-menlow-developer-blah-blah.deb
       -or-
       b. cp -R <kernel source>/debian/linux-menlow-developer/boot/ 
<mic-project>/targets/<mytarget>/fs/boot
        cp -R <kernel source>/debian/linux-menlow-developer/lib/ 
<mic-project>/targets/<mytarget>/fs/lib
2. Have MIC create a new live image and write it to my USB boot device.

Both attempts result in the ability to boot to either my new kernel or the 
existing (working) kernel from MIC and both have the same screen blanking/no X 
issue.

Note about issues with me:

*** I'm new to ubuntu/debian kernel recompilation. If I need a remedial course 
in ubuntu, please feel free to point me in that direction.

*** I'm new to moblin, and I'm fairly certain I'm not always in the proper 
'sandbox' (chroot) as I do these things. To recompile the kernel, I'm chroot'd 
into the mic-project directory, but to install, I work under the target 
filesystem.

I suspect I've not properly configured X or the display driver, but I'm not 
sure where to go from here.

Cheers,

erik

_______________________________________________
Moblin dev Mailing List
[email protected]<mailto:[email protected]>

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

_______________________________________________
Moblin dev Mailing List
[email protected]

To manage or unsubscribe from this mailing list visit:
https://lists.moblin.org/mailman/listinfo/dev or your user account on 
http://moblin.org once logged in.

For more information on the Moblin Developer Mailing lists visit:
http://moblin.org/community/mailing-lists

Reply via email to