2011-08-29

[DM368][IPNC] Upgrade udev on IPNC-DM368

[Prolog]

the reason I would like to upgrade udev on IPNC-DM368 is that the latest Appro package (Ver_2.00.26, kernel 2.6.18) doesn't contain 'udevadmin', which is used to control the runtime behavior of udev, request kernel events, manage queue, and debug udev.

Appro's package includes some of udev helper functions such as udevtrigger and udevinfo. However, udevadmin is what I want to follow Embedded Linux Primer, 2nd edition, ch19.

[Main]

1. Get the udev package from kernel tree. The latest version which supports kernel 2.6.18 is udev-127.

2. Unpack the tarball

3. Configure the make envionment
CC=/opt/mv_pro_5.0.0/montavista/pro/devkit/arm/v5t_le/bin/arm_v5t_le-gcc ./configure --host=armv5tl-montavista-linux-gnueabi --prefix=/home/usr/work/udev-127/filesys


4. make & make install

5. udevd and udevadm were generated under directory ./udev


[Epilog]

Easy work! as long as the CC is set correctly, there will be no problem to finish the job.

[Extend readings]

CH19, Embedded Linux Primer, 2nd Edition






No comments:

Post a Comment