<div dir="ltr">I think a number of people are having the same problem stemming from the sd card driver not reading some cards. &nbsp;The mmcblk0p1, p2, etc. device files actually will be autocreated whenever Linux thinks there are partitions there, but the problem is that sometimes when it tries to read the partition table of the card it fails to get any data, so it doesn&#39;t think any partitions exist. &nbsp;Thanks for posting the mknod syntax because I was wondering how you do that manually, but you can also do this to make the p1, p2, p3 device files show up automatically:<div>
<br></div><div>fdisk /dev/mmcblk0</div><div>visually verify that partition table exists</div><div>use w to make fdisk write the (unchanged) partition table back out</div><div><br></div><div>What happens is after the w command, fdisk calls ioctl to resync the partition table, and you magically get the dev files back. &nbsp;(Don&#39;t save with w if fdisk thinks the partition table is empty though!)</div>
<div><br></div><div>In fact, would you try this and tell us if it works? &nbsp;I&#39;d like to verify we&#39;re all having the same problem and not different problems.</div><div><br></div><div>If the first time you call fdisk you get no table, try calling fdisk multiple times. &nbsp;Here&#39;s an actual session capture. &nbsp;fdisk is returning different results every time I call it:</div>
<div><div><br></div><div>root@om-gta02:~# fdisk -l /dev/mmcblk0</div><div>root@om-gta02:~# fdisk -l /dev/mmcblk0</div><div><br></div><div>Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes</div><div>4 heads, 16 sectors/track, 242560 cylinders</div>
<div>Units = cylinders of 64 * 512 = 32768 bytes</div><div><br></div><div>Disk /dev/mmcblk0 doesn&#39;t contain a valid partition table</div><div>root@om-gta02:~# fdisk -l /dev/mmcblk0</div><div><br></div><div>Disk /dev/mmcblk0: 7948 MB, 7948206080 bytes</div>
<div>4 heads, 16 sectors/track, 242560 cylinders</div><div>Units = cylinders of 64 * 512 = 32768 bytes</div><div><br></div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;Device Boot &nbsp; &nbsp; &nbsp;Start &nbsp; &nbsp; &nbsp; &nbsp; End &nbsp; &nbsp; &nbsp;Blocks &nbsp;Id System</div><div>/dev/mmcblk0p1 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 1 &nbsp; &nbsp; &nbsp; &nbsp; 245 &nbsp; &nbsp; &nbsp; &nbsp;7832 &nbsp;83 Linux</div>
<div>/dev/mmcblk0p2 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 246 &nbsp; &nbsp; &nbsp;242560 &nbsp; &nbsp; 7754080 &nbsp;83 Linux</div><div><br></div></div><div><br><div class="gmail_quote">On Fri, Sep 19, 2008 at 8:53 AM, Erland Lewin <span dir="ltr">&lt;<a href="mailto:erland@lewin.nu">erland@lewin.nu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr">I got a new SDHC card, and tried installing FSO and OM2008.8 to boot off it.<div><br></div><div>I had problems, which I believe I tracked down to the fact that there are no /dev/mmcblk0, /dev/mmcblk0p1, etc devices in the file systems distributed.</div>

<div><br></div><div>U-boot starts the kernel OK, but when the kernel tries to mount the root filesystem, it fails because the device node /dev/mmcblk0p1 for example above can&#39;t be found. Creating these manually with:</div>

<div><br></div><div>(in the /dev directory of the card)</div><div>mknod mmcbkl0 b 179 0</div><div>mknod mmcblk0p1 b 179 1</div><div><div>mknod mmcblk0p2 b 179 2</div><div><div>mknod mmcblk0p3 b 179 3</div><div><br></div>
<div>
Seems to have fixed the problem.</div><div><br></div><div>Note that I booted with the kernel on the same partition as the root file system.</div><div><br></div><div>I would recommend that these device nodes be created in the distributed root file systems.</div>

<div><br></div><div>/Erland</div><div><br></div></div></div></div>
<br>_______________________________________________<br>
Openmoko community mailing list<br>
<a href="mailto:community@lists.openmoko.org">community@lists.openmoko.org</a><br>
<a href="http://lists.openmoko.org/mailman/listinfo/community" target="_blank">http://lists.openmoko.org/mailman/listinfo/community</a><br>
<br></blockquote></div><br></div></div>