<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
arne anka wrote:
<blockquote
 cite="midop.ughm7vdy41evsb@slm-wxp-770.sprachwiss.uni-hamburg.de"
 type="cite">
  <blockquote type="cite">
    <pre wrap="">" Warning : unable to  open an initial console    "
"  Kernel panic - not syncing : no init found .try passing init= option
to kernel"
    </pre>
  </blockquote>
  <pre wrap=""><!---->
what file systesm did you use on these partitions and how did you proceed  
exactly when installing?

_______________________________________________
support mailing list
<a class="moz-txt-link-abbreviated" href="mailto:support@lists.openmoko.org">support@lists.openmoko.org</a>
<a class="moz-txt-link-freetext" href="https://lists.openmoko.org/mailman/listinfo/support">https://lists.openmoko.org/mailman/listinfo/support</a>
  </pre>
</blockquote>
Hi,<br>
&nbsp;<br>
&nbsp;&nbsp;&nbsp;&nbsp; I have used vfat for first partition and ext3 for the second
partition. <br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; This is the procedure i have followed for installing qtopia on
sdcard.<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; My&nbsp; Host PC has&nbsp; FC 9.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; 1) connected to Neo freerunner by SSH<br>
<br>
<span class="mw-headline">&nbsp;&nbsp;&nbsp;&nbsp; 2) Partitioned SD card&nbsp; :<br>
&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; </span>fdisk /dev/mmcblk0<span class="mw-headline">&nbsp;&nbsp;&nbsp;&nbsp; <br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; </span> created a 8 mb partition for&nbsp; kernel and another one for
the rootfs which took up <br>
&nbsp;&nbsp;&nbsp;&nbsp; all the remaining space<span class="mw-headline"> <br>
&nbsp; </span><br>
<pre>  Command (m for help): d
  Selected partition 1
  Command (m for help): n
  Command action
     e   extended
     p   primary partition (1-4)
  p
  Partition number (1-4): 1
  First cylinder (1-983, default 1):
  Using default value 1
  Last cylinder or +size or +sizeM or +sizeK (1-983, default 983): +8M
  Command (m for help): n
  Command action
     e   extended
     p   primary partition (1-4)
  p
  Partition number (1-4): 2
  First cylinder (18-983, default 18):
  Using default value 18
  Last cylinder or +size or +sizeM or +sizeK (18-983, default 983):
  Using default value 983
  Command (m for help): w
  The partition table has been altered!
  Calling ioctl() to re-read partition table.

  fdisk: WARNING: rereading partition table failed, kernel still uses old table:   Device or resource busy </pre>
<span class="mw-headline">3) &nbsp;&nbsp; Got an&nbsp; fdisk warning so&nbsp; umounted&nbsp; :<br>
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; umount /dev/mmcblk0p1<span class="mw-headline">&nbsp;<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; redone the step2 again.No error second time.<br>
<br>
4)Formatted the SDcard :<br>
</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp; for first partition.<br>
<br>
&nbsp;&nbsp;&nbsp; a) mkfs.vfat /dev/mmcblk0p1<br>
<span class="mw-headline"><br>
&nbsp;&nbsp;&nbsp;&nbsp; for second partition.<br>
&nbsp; <br>
&nbsp;&nbsp;&nbsp; b)</span>mkfs.ext3 /dev/mmcblk0p2<br>
<span class="mw-headline"><br>
5)Mounted the sdcard:<br>
<br>
&nbsp; </span>mount /dev/mmcblk0p1 /media/card<br>
&nbsp; mkdir /media/card/boot<br>
<br>
&nbsp; mkdir /media/mmcblk0p2<br>
&nbsp; mount /dev/mmcblk0p2 /media/mmcblk0p2<br>
<br>
<span class="mw-headline">6)unpacked qtopia:<br>
<br>
&nbsp;&nbsp; got this two files :<br>
</span>
<ol>
  <li>uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin
  </li>
  <li>qtopia-4.3.2-gta02-rootfs-07172049.jffs2 </li>
</ol>
&nbsp;7)Mounted the rootfs on loopback device:<br>
<br>
&nbsp;&nbsp; export loop=$(losetup -f)<br>
&nbsp;&nbsp; losetup $loop &lt;rootfs.jffs2&gt;<br>
&nbsp;&nbsp; modprobe block2mtd block2mtd=$loop,131072<br>
&nbsp;&nbsp; modprobe jffs2<br>
&nbsp;&nbsp; modprobe mtdblock<br>
&nbsp;&nbsp; mkdir&nbsp;&nbsp; mntpnt&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp; mount -t jffs2 -o ro /dev/mtdblock0&nbsp;&nbsp; mntpnt<span class="mw-headline">
&nbsp; <br>
<br>
<br>
8)created compressed tarball.<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp; </span>tar czf qtopia-4.3.2-gta02-rootfs-07172049.tar.gz -c mntpnt<br>
<br>
9)Transfer this compressed tarball to the second partition of the
MicroSD that is mounted <br>
&nbsp;&nbsp;&nbsp; on the FreeRunner:<br>
<br>
&nbsp;&nbsp; scp qtopia-4.3.2-gta02-rootfs-07172049.tar.gz
<a class="moz-txt-link-abbreviated" href="mailto:root@192.168.0.202:/media/mmcblk0p2/">root@192.168.0.202:/media/mmcblk0p2/</a><br>
<br>
10)Unpack the rootfilesystem:<br>
<br>
&nbsp; &nbsp; &nbsp; cd /media/mmcblk0p2<br>
&nbsp; &nbsp; &nbsp; tar xzf qtopia-4.3.2-gta02-rootfs-07172049.tar.gz rm&nbsp;&nbsp;&nbsp;&nbsp; <br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; qtopia-4.3.2-gta02-rootfs-07172049.tar.gz<br>
&nbsp; &nbsp; &nbsp; rm -f /media/mmcblk0p2/boot/*<br>
<br>
11) Installed kernel.<br>
<br>
mv
uImage-2.6.24+git18+9c058ff0d2641df3c36fc3300acb72078d2c41d4-r0-om-gta02.bin
&nbsp; &nbsp;&nbsp; uImage.bin<br>
scp uImage.bin <a class="moz-txt-link-abbreviated" href="mailto:root@192.168.0.202:/media/card/boot/">root@192.168.0.202:/media/card/boot/</a><br>
<br>
&nbsp;scp uImage.bin <a class="moz-txt-link-abbreviated" href="mailto:root@192.168.0.202:/media/card/">root@192.168.0.202:/media/card/</a><br>
<br>
12)shutdown and boot in qtopia.<br>
<br>
&nbsp;&nbsp;&nbsp; Booted from Sdcard<br>
<br>
Now when kernel is booting .It's giving&nbsp; kernel panic.<br>
<br>
Regards<br>
Syed Yaqoob Ali<br>
<br>
&nbsp; <br>
<br>
<span class="mw-headline"></span>
</body>
</html>