Thanks Max - that's useful to know. Regards Andy
-----Original Message----- From: Domeika, Max J [mailto:[email protected]] Sent: 06 July 2009 21:01 To: Andy Southwell Cc: [email protected] Subject: RE: [Moblin Dev] Using an alternative kernel in a liveusb image Andy, I was able to get my custom kernel to boot. It's not ideal, but it worked. For details, please see: http://software.intel.com/en-us/articles/compiler-moblin2-kernel-sources-with-intel-compiler/ My notes are specific to the 2.6.29.4-6.1 moblin2 kernel and I haven't tried with the recent update to it, but it should hopefully be textual changes for the newer kernel. Max -----Original Message----- From: Andy Southwell [mailto:[email protected]] Sent: Friday, July 03, 2009 5:15 AM To: Domeika, Max J Cc: [email protected] Subject: RE: [Moblin Dev] Using an alternative kernel in a liveusb image Hi Max Please could you confirm whether you eventually managed to get your netbook to boot successfully with your custom kernel? I have followed your steps but, like you, find that it doesn't boot up all the way - it gets stuck after "[sdb] Attached SCSI removable disk" - and the version number of the kernel does exactly match the original, in my case. So in summary, I'd like to rule out this method of running a custom kernel, rather than some kind of configuration difference being the cause (not that I've touched the config files at all) Best Regards Andy -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Domeika, Max J Sent: 08 June 2009 21:17 To: [email protected] Subject: Re: [Moblin Dev] Using an alternative kernel in a liveusb image Hi, I have a workaround. Saw a post from jf.ding on the subject when he stated mic2 does not support user specified initrd. I believe moblin-image-creator was erroring out on me because my kernel rpm did not have an initrd in it. Here's a couple of pointers on moblin-image-creator that I found: 1. Use rpm -qpil <name of kernel>.rpm on your kernel rpm to see what it includes. You'll notice that the ones from the moblin repository include an initrd. My kernel did not. You'll also notice the name stored in the rpm. For my kernel, the name is 'kernel'. I needed to use this name in my .ks file. I was unsuccessfully trying various spins on the filename of my rpm. 2. The file moblin-image/creator-2/mic/imgcreate/live.py is where the error message 'Unable to copy valid kernels or initrds, please check the repo' is coming from. You can see from the code above the error text that the tool tries to find both a vmlinuz and inird. The fix: 1. Build your .usbimg file as you would using a preexisting configuration. In my case: moblin-image-creator -c netbook-core-developer.ks -f liveusb --cache=/tmp/mycache 2. Using the finished image, say its moblin-netbook-core-developer.usbimg, use kpartx as follows: kpartx -l moblin-netbook-core-developer.usbimg (this will get you the partition you need to use, in my case loop0p1 kpartx -a moblin-netbook-core-developer.usbimg mount /dev/mapper/loop0p1 /mnt/ -o loop,rw cd /mnt/syslinux cp </boot/my vmlinuz> vmlinuz0 cp </boot/my initrd> initrd0.img umount /mnt (cd back to where your image file is located) kpartx -d moblin-netbook-core-developer.usbimg 3. I then use image-writer to write the image to my usb, plug into my netbook, and then my custom kernel is available to boot. That said, my netbook kernel does not boot up all of the way. The last error seen is complaining about a missing /root/dev. Next step is to use the precise kernel used for moblin2, rebuild and test. (My kernel version is 2.6.29.2 while moblin2 seems to use 2.6.29.4-6.1. Need to eliminate all of the differences.) Max I see Exactly the same Oddly other packages that I have built and are in my local repo install fine Just not the kernel -- Clive On 5 Jun 2009, at 16:32, Domeika, Max J wrote: > > Yes, I've add: > repo --name=foo --baseurl=file:///root/temp4 > > I then received an error regarding a missing LICENSE.html. I > created a blank file for that and the error went away and moblin- > image-creator proceeded running through the list of the 755 packages > in the image. > > It then fails afterward trying to locate the kernel. I've also > replaced the reference to kernel-netbook with the name of my > kernel. I've tried several variants on the name (kernel.2.6.29*, > kernel-2.6.29.2netbook-18.i386.rpm, kernel-2.6.29.2netbook-18.i386) > because I'm not sure in the original kernel-netbook is mapped to the > actual rpm. > > What I'd like to know: > 1. What are the steps used to create the moblin repository? > Createrepo and repoview seem to be part of the steps. > 2. What are the explicit command lines for these tools? I know > createrepo needs to be done with the -d option. Anything else? > 3. How is the LICENSE.html file being generated in the repository > to make moblin-image-creator's call into kickstart happy? > 4. Any other tools used in the creation of the moblin repository? > > Max > > > -----Original Message----- > From: Wang, Jing J > Sent: Thursday, June 04, 2009 5:57 PM > To: Domeika, Max J; [email protected] > Subject: RE: Using an alternative kernel in a liveusb image > > Have u tried add a repo line in ks file referring to your repo, > which include your customized kernel package? Please make sure the > version is bigger than the one in Moblin repo. > > -----Original Message----- > From: [email protected] [mailto:[email protected]] On > Behalf Of Domeika, Max J > Sent: 2009年6月5日 7:58 > To: [email protected] > Subject: [Moblin Dev] Using an alternative kernel in a liveusb image > > Hi, > > I can use moblin-image-creator (ver. 2) to create an image just > fine. The image boots up fine on my netbook. I can also download > netbook kernel sources and build it just fine. > > How would one create a liveusb image that includes and uses my > custom built kernel? > > I notice in moblin-image-creator there are options, --kernel-rpm- > path, that may provide the functionality I want. However, these > seem to be under the category of nand options, not liveusb. What is > a nand image anyways? > > I've tried to do a createrepo/repoview around my kernel rpm and then > pointing to it in my kickstart file (.ks) fed into moblin-image- > creator. I can't seem to figure out quite what is needed to get > that to work. > > I'm considering copying the entire moblin repo locally and > substituting my kernel, but copying megabytes of files seem like > overkill. > > Any ideas? > > Thanks, > > Max > > > > _______________________________________________ > 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 > _______________________________________________ > 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 _______________________________________________ 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 _______________________________________________ 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 - This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm Imagination Technologies Ltd is a limited company registered in England No: 1306335 Registered Office: Imagination House, Home Park Estate, Kings Langley, Hertfordshire, WD4 8LZ. Email to and from the company may be monitored for compliance and other administrative purposes. - - This message is subject to Imagination Technologies' e-mail terms: http://www.imgtec.com/e-mail.htm Imagination Technologies Ltd is a limited company registered in England No: 1306335 Registered Office: Imagination House, Home Park Estate, Kings Langley, Hertfordshire, WD4 8LZ. Email to and from the company may be monitored for compliance and other administrative purposes. - _______________________________________________ Moblin dev Mailing List [email protected] To manage or unsubscribe from this mailing list visit: http://lists.moblin.org/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
