ltib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Ltib] (ltib/fedora core 10) and (mpc8349itx/udev)


From: aaron
Subject: [Ltib] (ltib/fedora core 10) and (mpc8349itx/udev)
Date: Fri, 20 Feb 2009 16:48:36 -0600 (CST)
User-agent: SquirrelMail/1.4.16

1)

Using Fedora Core 10 as a host development environment I checked out the
ltib from Savannah CVS, and in order to complete

./ltib --configure

I had to edit

dist/lfs-5.1/mtd-utils/mtd-utils-20060302.spec

and comment out the references to the first patch.

#Patch1          : mtd-utils-20060302-cf-byteswap_h-1.patch
...
#%patch1 -p1

I don't know if anyone else has gotten stuck here.

2)

Also, getting udev to work for the mpc8349itx required a few workarounds. 
First I had to add a couple of files to the build so that the udev-fsl and
sysconfig-udev-fsl packages were selected instead of the defaults.

$ cat config/platform/mpc8349itx/pkg_map
source = pkg_map-mpc8349itx

$ cat config/userspace/pkg_map-mpc8349itx
PKG_UDEV = udev-fsl
PKG_SYSCONFIG = sysconfig-udev-fsl

Next I ran into a problem with the mount binary not being able to find
libblkid.so.1.  I had to make sure that "[*] Keep temporary staging
directory" was selected as part of ./ltib --configure so that my staging
directory wasn't deleted.  Then, I had to move my libblkid library and
links from rootfs.tmp/usr/lib to rootfs.tmp/lib, and rerun

Also, I had to edit the udev rules file to get my ttyS0 to show up so I
could log in.

rootfs.tmp.copy/etc/udev/rules.d/10-fsl.rules

#KERNEL=="ttyS[0-9]",    NAME="tts/%n",          SYMLINK+="tts%n"
KERNEL=="ttyS[0-9]",    NAME="tts/%n",          SYMLINK+="ttyS0%n"

One more thing I did which I'm not sure that I really need or not yet was
to add and entry for my mtdblock device in the device table min.  My root
file system is in flash.

$ cat bin/device_table_min.txt

#<name>         <type>  <mode>  <uid>   <gid>   <major> <minor> <start> <inc>   
<count>
/dev            d       755     0       0       -       -       -       -       
-
/dev/null       c       666     0       0       1       3       0       0       
-
/dev/console    c       666     0       0       5       1       -       -       
-
/dev/tty        c       666     0       0       5       0       -       -       
-
# CHANGE: adding this until I can figure out the udev stuff
/dev/mtdblock   b       640     0       0       31      0       0       1       
7

After that I reran the mkfs command and this seemed to work.

$ /opt/ltib/usr/bin/mkfs.jffs2 -n -p -D bin/device_table_min.txt  -U -b -e
128 -d /home/aaron/ltib/rootfs.tmp -o ./rootfs.jffs2

I don't know if anyone else could find this helpful or has gone through
the process of getting udev to work with mpc8349itx, but I'd be curious to
know.

Aaron







reply via email to

[Prev in Thread] Current Thread [Next in Thread]