On 9/20/2011 12:49 AM, xu ray wrote:
Greetings.
I noticed that udev have extras disabled and durning compile the
kernel (3.0.3). Kernel build failed because cdrom_id in
/lib/udev/cdrom_id is missing. Any idea on why this is disabled recently and
how to fix this problem.
I think kernel 3.0 should be able to compile without udev-extras. But
I do not know how to disable it and what would be the side effect for
this.
--
Thanks& Best Regards!
Ray, Xu
I ran into the same problim a while back when building T2 for MIPS64 on Suse & Ubuntu
Build hosts.
I tried enabling the extras, but that yielded further build errors. ( I't was a while ago
and I don't remember the details)
Since I was building for an embedded system, which will never need a cdrom, and did not
use the T2 initrd, I just got rid of the line that caused the failure.
If you are stuck, and need to finish your build, you can do what I did, and then check the
final result for any side effects of running without a cdrom_id file.
I was hoping there would be a proper fix for this by now, (ideas anyone?) below is my
crude work-around to allow the build to finish:
Jan
Index: package/base/mkinitrd/mkinitrd.sh
===================================================================
--- package/base/mkinitrd/mkinitrd.sh (revision 39542)
+++ package/base/mkinitrd/mkinitrd.sh (working copy)
@@ -116,8 +116,10 @@
[ -e ${root}/etc/mdadm.conf ] && cp -ar ${root}/etc/mdadm.conf $tmpdir/etc/
cp -ar ${root}/etc/modprobe.* $tmpdir/etc/ 2>/dev/null || true
# in theory all, but fat and currently only cdrom_id is needed ...
-cp -ar ${root}/lib/udev/cdrom_id $tmpdir/lib/udev/
+# JLR: Kluge, get rid of this, it fails!
+#cp -ar ${root}/lib/udev/cdrom_id $tmpdir/lib/udev/
+
# copy dynamic libraries, if any.
#
copy_dyn_libs () {
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2