ARM plate transplant udev-126

Download udev-126.tar.xz

The download address is: https://mirrors.edge.kernel.org/pub/linux/utils/kernel/hotplug/

Decompress files and compile them

#tar -xvf udev-126.tar.xz
# cd udev-126
# mkdir build
# vim config.sub 
case $basic_machine in
# Recognize the basic CPU types without company name.
# Some are omitted here because they have special meanings below.
1750a | 580 \
| a29k \
| alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
| alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
| am33_2.0 \
| arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 | aarch64 \   ###Add "aarch64”Error preventing configure
| bfin \
| c4x | clipper \
#./configure --prefix=/tmp/udev/udev-126/build --target=aarch64-linux-gnu --host=aarch64-linux-gnu --build=x86_64-linux-gnu CC=aarch64-linux-gnu-gcc AR=aarch64-linux-gnu-ar
# make & make install

 

makeCompile times wrong:

 

Resolvent:

# vim udevd.c
 248                 logging_init("udevd-event");
 249                 setpriority(EINPROGRESS, 0, UDEV_PRIORITY);
.................
 1110         /* set scheduling priority for the daemon */
 1111         setpriority(EINPROGRESS, 0, UDEVD_PRIORITY);

Setpriority (PRIO_PROCESS).0, UDEVD_PRIORITY) 
Change to setpriority (EINPROGRESS, 0, UDEVD_PRIORITY);Recompiling

 

After compiling, transplant all files from / TMP / udev / udev – 126 / build / directory to ARM board and start the udev process

# /usr/sbin/udevd
# ps -elf |grep udev 399 root 0:02 /usr/sbin/udevd 986 root 0:00 grep udev

 

Check that the process has started and write some udev rules to verify it.

# udevd --debug        
[1090] init_udevd_socket: bind failed: Address already in use
another udev daemon already running
[1090] main: another udev daemon already running
# udevadm test /sys/class/net/eth0
This program is for debugging only, it does not run any program,
specified by a RUN key. It may show incorrect results, because
some values may be different, or not available at a simulation run.

parse_file: reading '/etc/udev/rules.d/11-add-usb.rules' as rules file
udevtest: run: '/bin/bash /mnt/system/udev/usb.sh'

 

Leave a Reply

Your email address will not be published. Required fields are marked *