> Ray, Xu wrote:
>I noticed that udev have extras disabled and durning compile the
>kernel (3.0.3). Kernel build failed because cdrom_id in
>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.
Hi,
I have solved this problem other way around by enabling UDEV extras
compilation.
This way you get firmware loader helper app and so on which are now missing.
Anyway, I think UDEV extras are disabled because of toolchain dietlibc
compilation step.
Dietlibc doesn't have all the bells-and-whistles required to compile udev
extras.
However, I'm compiling for x86 architecture and doesn't need T2 initrd version
of udev so I simply forced udev to use bigger glibc and enabled extras.
This is how I did it to get "full featured" udev in T2 with Kernel 3.0.3
- Disabled UDEV dietlibc and set it to compile with glibc.
Modify packages/*/udev/preconfig.in file and set SDECFGSET_DIETLIBC_udev=0
- Created pkg_udev.conf file in target/myTargetNameGoesHere/pkg_udev.conf
(had to use pci.ids path option because otherwise toolchain steps
tries to find it from host system)
[ -e $confdir/$pkg.conf ] && . $confdir/$pkg.conf
var_append confopt ' ' '--enable-extras --disable-introspection
--with-pci-ids-path=$root$datadir/pci.ids'
- Updated various build priority ordering numbers and set couple new
packages into stage 1 because "extras" compiled udev has now more
dependencies
(modified packages/*/pkgname/pkgname.desc files).
UDev build priority is by default 102.030 and following packages are
now dependencies and must be before udev.
zlib priority 102.020
libusb priority 102.024 and added to stage 1
libusb-compat priority 102.025 and added to stage 1
glib priority 102.025 and added to stage 1
usbutils priority 102.026 and added to stage 1
pciutils priority 102.026
gperf priority 102.029
After this I managed to compile "full featured" 167 and 173 versions of UDEV
with all extras except introspection support (dont need it) with Kernel 3.0.3
version.
Note! modification of default udev/preconfig.in file is probably necessary
because
I think SDECFGSET_DIETLIBC_udev variable could be overriden in custom
pkg_udev.conf file also.
Please note that newer Kernels and UDEV requires small modification to T2's
default /etc/udev/rules.d/10-vc.rules file. VC/%%n device nodes need to be
now symlinks and not real devices (otherwise you get tons of warnings during
boot).
I modified 10-vc.rules file as follows and removed 50-udev.rules file.
KERNEL=="tty[0-9]*", SYMLINK+="vc/%n", GROUP="tty"
I'm sure there is some trick to force 3.x kernels to compile without all these
"extras" generated files, but I went the other way around because I needed
couple
of the new udev extras tools.
Best regards,
Mika N
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[email protected] with a subject of: unsubscribe t2