<br><br><div class="gmail_quote">On Fri, Jun 17, 2011 at 7:45 AM, david <span dir="ltr"><<a href="mailto:gwj35@yahoo.cn">gwj35@yahoo.cn</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div><div style="color:#000;background-color:#fff;font-family:times new roman, new york, times, serif;font-size:12pt"><div>Hi, guys:</div><div><span> I am totally a beginner to Linux kernel and feel sorry to bother you with such an easy question. I encountered a problem which is failed to making the latest kernel 2.6.39.1 downloaded from <a href="http://kernel.org" target="_blank">kernel.org</a> <span>bootable</span> under the environment of <span>Ubuntu</span> 10.10. Although I have tried to solve this problem for almost 3 days, I don't have any clue on the cause of not able to boot the newly-installed kernel. The procedure that I adopted to configure, build and install the kernel is shown bellow</span></div>
<div><span></span><span> 1. I downloaded the tarball "linux-2.6.39.1.tar.bz2" and stored it in the directory "/home/<span>lenovo</span>/<span>linux</span>", then uncompressed it, a new folder </span><span><br>
</span></div><div><span> "linux-2.6.39.1" was created.</span></div><div><span> 2. I created a folder called "linux-2.6.39.1-install" in the same directory to store the compiled files from folder "</span><span>linux-2.6.39.1</span><span>".</span></div>
<div style="text-align:left"><span> 3. I opened the terminal and typed in:</span><span><br></span></div><div style="text-align:center;background-color:rgb(255, 255, 255);color:rgb(255, 0, 0)"><span><span>cd</span> ~/<span>linux</span>/<span></span>linux-2.6.39.1</span></div>
<div style="text-align:center;background-color:rgb(255, 255, 255);color:rgb(255, 0, 0)"><span>make O=../linux-2.6.39.1-install <span>defconfig</span></span></div><div style="text-align:center;background-color:rgb(255, 255, 255);color:rgb(255, 0, 0)">
<span>make -j4 </span><span>O=../linux-2.6.39.1-install</span></div><div style="text-align:left"><span> The result of these operations is:</span></div><div style="text-align:left"><span> <span>GZIP</span> arch/x86/boot/compressed/vmlinux.bin.gz<br>
<span>MKPIGGY</span>
arch/x86/boot/compressed/piggy.S<br> AS arch/x86/boot/compressed/piggy.o<br> <span>LD</span> arch/x86/boot/compressed/<span>vmlinux</span><br> <span>ZOFFSET</span> arch/x86/boot/<span>zoffset</span>.h<br>
<span>OBJCOPY</span> arch/x86/boot/<span>vmlinux</span>.bin<br> AS arch/x86/boot/header.o<br> <span>LD</span> arch/x86/boot/setup.elf<br>
<span>OBJCOPY</span>
arch/x86/boot/setup.bin<br> BUILD arch/x86/boot/<span>bzImage</span><br> Root device is (7, 0)<br> Setup is 13148 bytes (padded to 13312 bytes)<br> System is 4091 <span>kB</span><br>
<span>CRC</span> 887907a3<br> Kernel: arch/x86/boot/<span>bzImage</span> is ready (#1)</span></div><div style="text-align:left"><span> 4. I typed in the command:</span></div>
<div style="text-align:center;color:rgb(255, 0, 0)"><span>make O=../linux-2.6.39.1-install modules_install</span></div><div style="text-align:left"><span> The result is:</span></div><div style="text-align:left"><span> INSTALL arch/x86/kernel/test_<span>nx</span>.<span>ko</span><br>
INSTALL drivers/<span>scsi</span>/<span>scsi</span>_wait_scan.<span>ko</span><br> INSTALL drivers/watchdog/<span>hpwdt</span>.<span>ko</span><br> INSTALL net/<span>netfilter</span>/<span>xt</span>_mark.<span>ko</span><br>
<span>DEPMOD</span> 2.6.39.1</span></div><div style="text-align:left"><span> 5. </span><span style="color:rgb(255, 0, 0)">sudo make O=../linux-2.6.39.1-install install</span></div>
<div style="text-align:left"><span style="color:rgb(255, 0, 0)">
<span style="color:rgb(0, 0, 0)">The result is:</span></span></div><div style="text-align:left"><span style="color:rgb(255, 0, 0)"><span style="color:rgb(0, 0, 0)"> sh /home/lenovo/linux/linux-2.6.39.1/arch/x86/boot/install.sh 2.6.39.1 arch/x86/boot/bzImage \<br>
System.map "/boot"</span></span></div><div style="text-align:left"><span style="color:rgb(255, 0, 0)"> <span style="color:rgb(0, 0, 0)">6.</span> sudo update-initramfs -c -k 2.6.39.1</span></div>
<div style="text-align:left"><span style="color:rgb(255, 0, 0)"> <span style="color:rgb(0, 0, 0)">T</span><span style="color:rgb(0, 0, 0)">he result is:</span><br></span></div> update-initramfs: Generating
/boot/initrd.img-2.6.39.1<br> Warning: No support for locale: en_US.utf8<br> 7. <span style="color:rgb(255, 0, 0)"> sudo update-grub</span><br>
The result is:<br>
Found linux image: /boot/vmlinuz-2.6.39.1<br> Found initrd image: /boot/initrd.img-2.6.39.1<br><div style="text-align:left">Finally, after I rebooted the system and selected "Linux-2.6.39.1" in the grup, <span style="color:rgb(255, 0, 0)">a problem arose</span> along with a message showed up saying:</div>
<div style="text-align:left"> <br></div><div style="text-align:left"> mount: mounting none on /dev failed: No such device.</div><div style="text-align:left"> w: devtmpfs not available, falling back to tmpfs for /dev</div>
<div style="text-align:left"> fuse: device not found, try 'modprobe' fuse first.</div><div style="text-align:left">
......</div><div style="text-align:left"> Could not mount the partition /dev/sda8.</div><div style="text-align:left"> ......</div><div style="text-align:left"> (file system = ntfs, error code = 21)</div><div style="text-align:left">
<br></div></div></div></blockquote><div>Can you dump your grub.conf or menu.list(not sure if ubuntu uses grub.conf) <br></div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="text-align: left;"></div><div style="text-align:left">best regards</div>
<div style="text-align:left">david.G<br></div><div style="text-align:left"><br><span></span></div></div></div><br>_______________________________________________<br>
Kernelnewbies mailing list<br>
<a href="mailto:Kernelnewbies@kernelnewbies.org">Kernelnewbies@kernelnewbies.org</a><br>
<a href="http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies</a><br>
<br></blockquote></div><br>