<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7233.28">
<TITLE>Rebuilding FS MDS 8349 BSP &amp; JFFS2 integration</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi,</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I am a newbie to Linux but not to embedded PPC. I was hoping someone could point me to the direction here. I apologize in advance if this is kindergarten stuff.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">I downloaded the MDS-8349 Linux BSP from FreeScale. I was able to burn the default prebuilt images &quot;uboot&quot; and &quot;jffs2.img&quot; to my MDS-8349 (PB) board and have uboot tftp the prebuilt &quot;uImage&quot; to my PB. I used &quot;tftpboot 200000 uImage&quot; to download and &quot;bootm&quot; to boot.&nbsp; As per included instructions, I had &quot;setenv bootargs root=/dev/mtdblock1 rootfstype=jffs2 rw console=ttyS0,115200&quot; in uboot, followed by a &quot;saveenv&quot;. The prebuilt Linux (uImage) came up, no problem.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">As I need to include USB Host support to the PPC kernel, I used the ltib tool to reconfigure and rebuild Linux, as well as a matching jffs2 (I would think). Ltib produced vmlinux.gz.uboot and rootfs.jffs2 for me.&nbsp; For some reason, rootfs.jffs2 was significantly smaller than the prebuilt &quot;jffs2.img&quot; (2483184 bytes vs. 4325376 bytes). I'm not sure why. I then did the following:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">bootargs is still set to &quot;root=/dev/mtdblock1 rootfstype=jffs2 rw console=ttyS0,115200&quot;&nbsp; in uboot:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Using the same (prebuilt) uboot as before:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">- tftpboot 400000 rootfs.jffs2 (rebuilt jffs2)</FONT>

<BR><FONT SIZE=2 FACE="Arial">- erase fe020000 fe5fffff</FONT>

<BR><FONT SIZE=2 FACE="Arial">- cp.b 400000 fe020000 25e3f0</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">- tftpboot 200000 vmlinux.gz.uboot (rebuilt Linux containing USB Host stuff)</FONT>

<BR><FONT SIZE=2 FACE="Arial">- bootm</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Linux could not boot!&nbsp; I got the following root FS error:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">[stuff deleted&#8230;]</FONT>

<BR><FONT SIZE=2 FACE="Arial">io scheduler deadline registered</FONT>

<BR><FONT SIZE=2 FACE="Arial">io scheduler cfq registered</FONT>

<BR><FONT SIZE=2 FACE="Arial">RAMDISK driver initialized: 16 RAM disks of 32768K size 1024 blocksize</FONT>

<BR><FONT SIZE=2 FACE="Arial">loop: loaded (max 8 devices)</FONT>

<BR><FONT SIZE=2 FACE="Arial">eth0: Gianfar Ethernet Controller Version 1.1, 00:04:9f:00:2d:b7</FONT>

<BR><FONT SIZE=2 FACE="Arial">eth0: Running with NAPI disabled</FONT>

<BR><FONT SIZE=2 FACE="Arial">eth0: 64/64 RX/TX BD ring size</FONT>

<BR><FONT SIZE=2 FACE="Arial">eth1: Gianfar Ethernet Controller Version 1.1, 00:04:9f:00:2d:b8</FONT>

<BR><FONT SIZE=2 FACE="Arial">eth1: Running with NAPI disabled</FONT>

<BR><FONT SIZE=2 FACE="Arial">eth1: 64/64 RX/TX BD ring size</FONT>

<BR><FONT SIZE=2 FACE="Arial">i2c /dev entries driver</FONT>

<BR><FONT SIZE=2 FACE="Arial">NET: Registered protocol family 2</FONT>

<BR><FONT SIZE=2 FACE="Arial">IP: routing cache hash table of 2048 buckets, 16Kbytes</FONT>

<BR><FONT SIZE=2 FACE="Arial">TCP established hash table entries: 16384 (order: 5, 131072 bytes)</FONT>

<BR><FONT SIZE=2 FACE="Arial">TCP bind hash table entries: 16384 (order: 4, 65536 bytes)</FONT>

<BR><FONT SIZE=2 FACE="Arial">TCP: Hash tables configured (established 16384 bind 16384)</FONT>

<BR><FONT SIZE=2 FACE="Arial">NET: Registered protocol family 1</FONT>

<BR><FONT SIZE=2 FACE="Arial">NET: Registered protocol family 17</FONT>

<BR><B><I><FONT SIZE=2 FACE="Arial">Root-NFS: No NFS server available, giving up.</FONT></I></B>

<BR><B><I><FONT SIZE=2 FACE="Arial">VFS: Unable to mount root fs via NFS, trying floppy.</FONT></I></B>

<BR><B><I><FONT SIZE=2 FACE="Arial">VFS: Cannot open root device &quot;mtdblock1&quot; or unknown-block(2,0)</FONT></I></B>

<BR><B><I><FONT SIZE=2 FACE="Arial">Please append a correct &quot;root=&quot; boot option</FONT></I></B>

<BR><B><I><FONT SIZE=2 FACE="Arial">Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(2,0)</FONT></I></B>

<BR><B><I><FONT SIZE=2 FACE="Arial">&nbsp;&lt;0&gt;Rebooting in 180 seconds..</FONT></I></B>
</P>

<P><FONT SIZE=2 FACE="Arial">Would anybody happen to know what is going wrong?&nbsp; How am I supposed to know the correct &quot;root=&quot; boot option for a rebuilt jffs2 using LTIB, if that is my problem?</FONT></P>
<BR>
<BR>

<P><FONT SIZE=2 FACE="Arial">Thanks in advance for any hints,</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Victor.</FONT>
</P>
<BR>
<BR>
<BR>

</BODY>
<!--[object_id=#gdcanada.com#]--><FONT face=Tahoma><FONT color=#0000ff><SPAN style="FONT-WEIGHT: bold; FONT-SIZE: 10pt; FONT-FAMILY: Arial"><FONT color=#000000>
<P align=left><FONT face=Tahoma size=2><FONT color=#0000ff><FONT face=Arial color=#000000 size=1>The information contained in this e-mail message is PRIVATE. It may contain confidential information and may be legally privileged. It is intended for the exclusive use of the addressee(s). If you are not the intended recipient, you are hereby notified that any dissemination, distribution or reproduction of this communication is strictly prohibited. If the intended recipient(s) cannot be reached or if a transmission problem has occurred, please notify the sender immediately by return e-mail and destroy all copies of this message. <BR>Thank you.</FONT> </FONT></FONT></P></FONT></SPAN><FONT size=2></FONT></FONT></FONT></HTML>