From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from s48mx.cyon.ch (s48mx.cyon.ch [194.126.200.158]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.server123.net (Postfix) with ESMTPS for ; Mon, 23 May 2016 21:50:12 +0200 (CEST) Received: from adsl-84-226-15-234.adslplus.ch ([84.226.15.234]:52692 helo=[192.168.176.48]) by server48.cyon.ch with esmtpsa (TLSv1:DHE-RSA-AES128-SHA:128) (Exim 4.86_1) (envelope-from ) id 1b4vrf-0033Jl-Pb for dm-crypt@saout.de; Mon, 23 May 2016 21:50:12 +0200 References: <57417C65.1080309@ione.ch> <5742C782.8090505@gmail.com> <57435751.8080200@ione.ch> From: Roman Schlegel Message-ID: <57435EF3.9060004@ione.ch> Date: Mon, 23 May 2016 21:50:11 +0200 MIME-Version: 1.0 In-Reply-To: <57435751.8080200@ione.ch> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [dm-crypt] Initializing dm-crypt on Android results in "device lookup failed" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: dm-crypt@saout.de Hi, On 23.05.2016 21:17, Roman Schlegel wrote: > Hi Milan, > > Thanks a lot for your reply. > > On 23.05.2016 11:04, Milan Broz wrote: >> On 05/22/2016 11:31 AM, Roman Schlegel wrote: >>> Hello, >>> >>> I am currently trying to track down an issue with dm-crypt on an Android >>> device (more specifically, I am building a CM 12.1 ROM), where >>> initializing device encryption fails with an error. >> >> ... >> >>> 01-01 03:20:03.592 I/Cryptfs ( 254): load_crypto_mapping_table: >>> crypt_params = aes-cbc-essiv:sha256 0A66F89B0D3DFC0B05D9BD23B3453A70 0 >>> /dev/block/platform/mtk-msdc.0/by-name/userdata 0 1 allow_discards 0 >> >> I really hope Android does not log volume key such a way to system log... >> > > No, it doesn't :-). That's the testing output I added to vold to check > that it wasn't a problem with the parameters submitted to dm-crypt. > >>> 01-01 03:20:08.619 E/Cryptfs ( 254): Cannot load dm-crypt mapping table. >>> >>> >>> at the same time, the kernel log prints the following messages: >>> >>> <3>[ 138.163773] (5)[327:vold]device-mapper: table: 253:0: crypt: >>> Device lookup failed >> >> This message seems to indicate that problem is with device specification: >> /dev/block/platform/mtk-msdc.0/by-name/userdata >> >> Can you check, that such device node exists before calling this activation? >> >> You can try to use "major:minor" pair instead (of the device above), >> but it can sause problem if it is dynamic (it shouldn't be in this >> environment though). > I just tried passing the major:minor of the device, instead of a device path, but I am still getting the same error, "Device lookup failed". Any further hints on what could be the issue would be very much appreciated... Thanks and best regards, Roman