Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Why attribute of device file changed after exiting faketoot?
I use fakeroot tool to create device nodes under /dev to generate a embedded file system. then use lzma to create an image for my reference board. But when exit fakeroot I change to /dev directory, I can not see character device and block device .
Detail informatioin is below:
[qinguang@rdfwdev2 SDK3200]$ /home/qinguang/SDK3200/tools/bin/fakeroot
[root@rdfwdev2 SDK3200]# cd source/romfs/dev
[root@rdfwdev2 dev]# mknod ttyS0 c 5 1
[root@rdfwdev2 dev]# mknod ttyS1 c 5 2
[root@rdfwdev2 dev]# mknod mtd b 100 1
[root@rdfwdev2 dev]# ls -l ttyS* crw-r--r-- 1 root root 5, 1 Nov 10 14:26 ttyS0 crw-r--r-- 1 root root 5, 2 Nov 10 14:26 ttyS1
[root@rdfwdev2 dev]# exit
exit
[qinguang@rdfwdev2 SDK3200]$ ls -l source/romfs/dev/ttyS* -rw--w--w- 1 qinguang firmware 0 Nov 10 14:26 source/romfs/dev/ttyS0 -rw--w--w- 1 qinguang firmware 0 Nov 10 14:26 source/romfs/dev/ttyS1
Why the attribute of device file changed? I guess this will block kernel bootup on reference board, in fact the kernel indeed does not bootup.
Look forward to your reverting . Thanks in advance
Open Source Security Myths Dispelled Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization subscribe
InformationWeek InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology. subscribe