Re: Image modules?
On Sat, Jul 04, 2009 at 08:45:12PM +0200, David Fokkema wrote: > On Sat, 2009-07-04 at 17:52 +0200, Glenn Moeller-Holst wrote: > > This is what I am not able to read anywhere: > > *I actually do not know if I already having modules installed? How do > > I test it? > > Look in /lib/modules/, or unpack the modules file and > check. You'll find you already have it. [snip] > > *Why is there a separate file called modules? Why not include it in the > > image? > > It _is_ included in the root image, as it lives in the root filesystem > in /lib/modules. The thing is: if you decide to use that kernel but > _not_ use that root filesystem (because you'd like to build your own, > for example, or you just want to upgrade your kernel and _not_ your > filesystem) you'll have to untar the corresponding modules into your own > filesystem. Once you've extraced the modules into /lib/modules/, do remember to run (as root) depmod -a because not all distribution do so during startup. Supposed the rootfs is on an external card reader mounted on /mnt/flash, the depmod command becomes depmod -a -b /mnt/flash For someone working on the kernel, modules are very useful because you can test your changes simply with rmmod ; modprobe instead of rebooting. Some distribution (e.g. Fedora) ship a kernel image with only a few drivers and generate a customized initial ram disk with modules during kernel installation. So the same kernel build works across the supported systems without being bloated by unused drivers. -- Rask Ingemann Lambertsen Danish law requires addresses in e-mail to be logged and stored for a year ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Image modules?
At 18:10 +0100 04/07/09, Al Johnson wrote: >On Saturday 04 July 2009, Glenn Moeller-Holst wrote: >> > Flashing tar.gz archives makes little sense. You might want to >> >untar it to your / though in case you don't have that modules >> >already. >> >> This is what I am not able to read anywhere: >> *I actually do not know if I already having modules installed? How do >> I test it? > >You should if you are using the kernel that matches the rootfs you picked. In >the terminal run: > uname -r >This will tell you the kernel release. You should find a matching directory >under /lib/modules. > >> *What is modules used for? > >Modules in general are for optional things that you don't want compiled into >the kernel. They are often drivers. > >The modules-version.tar.gz contains an archive of the modules for the kernel >of the same version. This is needed by people who want to use a different >kernel to the one originally used for the root image. > >> *Is modules (already) included the image? > >Yes. The image is built for a particular kernel, and includes the modules for >that kernel. > >> *Why is there a separate file called modules? Why not include it in the >> image? >> *Is modules a standard Linux "thing"? > >See answers above. > >> I am asking as a novice. I have not encountered information about modules >> at: http://wiki.openmoko.org/ > >The wiki assumes some basic level of linux knowledge. I guess we should >include links to some basic linux primers in the 'getting started' page. ... To Al and others Thanks for your answers. Previously I ruled out that it was kernel modules, because the compressed size is about 30MByte. /Glenn ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Image modules?
On Saturday 04 July 2009, Glenn Moeller-Holst wrote: > > Flashing tar.gz archives makes little sense. You might want to > >untar it to your / though in case you don't have that modules > >already. > > This is what I am not able to read anywhere: > *I actually do not know if I already having modules installed? How do > I test it? You should if you are using the kernel that matches the rootfs you picked. In the terminal run: uname -r This will tell you the kernel release. You should find a matching directory under /lib/modules. > *What is modules used for? Modules in general are for optional things that you don't want compiled into the kernel. They are often drivers. The modules-version.tar.gz contains an archive of the modules for the kernel of the same version. This is needed by people who want to use a different kernel to the one originally used for the root image. > *Is modules (already) included the image? Yes. The image is built for a particular kernel, and includes the modules for that kernel. > *Why is there a separate file called modules? Why not include it in the > image? > *Is modules a standard Linux "thing"? See answers above. > I am asking as a novice. I have not encountered information about modules > at: http://wiki.openmoko.org/ The wiki assumes some basic level of linux knowledge. I guess we should include links to some basic linux primers in the 'getting started' page. ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Image modules?
"Modules" are think, about what you shouldn't worry. They are only usable, if you're installing rootfs on different kernel. Modules for kernel supported by image are already installed. On 7/4/09, Glenn Moeller-Holst wrote: >> Flashing tar.gz archives makes little sense. You might want to >>untar it to your / though in case you don't have that modules >>already. > > This is what I am not able to read anywhere: > *I actually do not know if I already having modules installed? How do > I test it? > *What is modules used for? > *Is modules (already) included the image? > *Why is there a separate file called modules? Why not include it in the > image? > *Is modules a standard Linux "thing"? > > I am asking as a novice. I have not encountered information about modules > at: > http://wiki.openmoko.org/ > > /Glenn > > ___ > Openmoko community mailing list > community@lists.openmoko.org > http://lists.openmoko.org/mailman/listinfo/community > ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community
Re: Image modules?
Glenn Moeller-Holst writes: > modules-2.6.28-stable+gitr0+f19f259d3c1afde8eae53983fd19f61831927413-r2-om-gta02.tgz > > Is it nessecary or advicable to flash it onto the phone? Flashing tar.gz archives makes little sense. You might want to untar it to your / though in case you don't have that modules already. -- Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software! mailto:fercer...@gmail.com ___ Openmoko community mailing list community@lists.openmoko.org http://lists.openmoko.org/mailman/listinfo/community