SOURCES: dev-list - added /dev/rtc0

Arkadiusz Miskiewicz arekm at maven.pl
Sat Mar 21 20:37:00 CET 2009


On Saturday 21 of March 2009, gotar wrote:
> Author: gotar                        Date: Sat Mar 21 19:23:52 2009 GMT
> Module: SOURCES                       Tag: HEAD
> ---- Log message:
> - added /dev/rtc0
>
> ---- Files affected:
> SOURCES:
>    dev-list (1.46 -> 1.47)
>
> ---- Diffs:
>
> ================================================================
> Index: SOURCES/dev-list
> diff -u SOURCES/dev-list:1.46 SOURCES/dev-list:1.47
> --- SOURCES/dev-list:1.46	Sun Mar  1 17:25:20 2009
> +++ SOURCES/dev-list	Sat Mar 21 20:23:46 2009
> @@ -7254,6 +7254,7 @@
>  %dev(c,12,6) %attr(660,root,disk) /dev/rmt8
>  %dev(c,36,0) %attr(644,root,root) /dev/route
>  %dev(c,10,135) %attr(664,root,root) /dev/rtc
> +%dev(c,254,0) %attr(664,root,root) /dev/rtc0

This is _very_ wong. 254 is dynamicly alocated major number. There can be 
different devices using 254 depending on kernel modules load order.

The correct solution for such non-udev systems would be probably init.d/dev 
script that would parse /proc/devices and setup /dev/ files properly. Not sure 
if MAKEDEV.spec is able to do the parsing on it's own but if it is then 
init.d/dev script calling MAKEDEV for some devices like rtc0 should be enough.

-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/



More information about the pld-devel-en mailing list