From: Baruch Siach Date: Thu, 27 Nov 2014 12:35:03 +0200 Subject: [Buildroot] [PATCH] system/device_table.txt: add /dev/null entry In-Reply-To: <877fyhos9l.fsf@dell.be.48ers.dk> References: <0a2f80f7ceb3272bf534f85fbf5030df36cae191.1417070676.git.baruch@tkos.co.il> <87fvd5oz47.fsf@dell.be.48ers.dk> <20141127081201.GQ2374@sapphire.tkos.co.il> <87bnntow3h.fsf@dell.be.48ers.dk> <20141127101500.GR2374@sapphire.tkos.co.il> <877fyhos9l.fsf@dell.be.48ers.dk> Message-ID: <20141127103503.GS2374@sapphire.tkos.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Peter, On Thu, Nov 27, 2014 at 11:24:38AM +0100, Peter Korsgaard wrote: > >>>>> "Baruch" == Baruch Siach writes: > >> With that said, if just adding /dev/null fixes it for you then we can > >> certainly add it. What about similar things like /dev/console, /dev/tty > >> or your serial port? > > > /dev/console is already in the rootfs.tar image, I'm not sure whare it comes > > from. All other device nodes are later generated by mdev. > > The only thing that comes to mind is that you are creating a cpio: > > fs/cpio/cpio.mk:PACKAGES_PERMISSIONS_TABLE += /dev/console c 622 0 0 5 1 - - -$(sep) You are right that I was creating a cpio, but apparently that's not the cause. Disabling the cpio image followed by 'make clean; make' didn't remove /dev/console. The code at fs/cpio/cpio.mk indicates that the above line always takes effect when !BR2_ROOTFS_DEVICE_CREATION_STATIC regardless of BR2_TARGET_ROOTFS_CPIO. baruch -- http://baruch.siach.name/blog/ ~. .~ Tk Open Systems =}------------------------------------------------ooO--U--Ooo------------{= - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -