From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by yocto-www.yoctoproject.org (Postfix, from userid 118) id DBBAEE0080C; Thu, 29 Jan 2015 03:56:30 -0800 (PST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on yocto-www.yoctoproject.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham version=3.3.1 X-Spam-HAM-Report: * -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% * [score: 0.0000] Received: from correo.horus.es (correo.horus.es [2.139.157.236]) by yocto-www.yoctoproject.org (Postfix) with ESMTP id 36FCDE006EF for ; Thu, 29 Jan 2015 03:56:25 -0800 (PST) Received: from [172.30.250.46] (172.30.250.46) by horus27 (Axigen) with ESMTPA id 00DFBF; Thu, 29 Jan 2015 12:56:19 +0100 Message-ID: <54CA1FDB.5050006@horus.es> Date: Thu, 29 Jan 2015 12:56:11 +0100 From: jose User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: "meta-freescale@yoctoproject.org" References: <54C8B348.2060900@horus.es> <20150128112952.7d679f63@e6520eb.localdomain> In-Reply-To: <20150128112952.7d679f63@e6520eb.localdomain> X-AxigenVirus-Level: 1 X-AxigenSpam-Level: 4 Subject: Re: iMX6Q Linux 3.10.17 Trying to read registers at boot time X-BeenThere: meta-freescale@yoctoproject.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Usage and development list for the meta-fsl-* layers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 29 Jan 2015 11:56:30 -0000 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Thanks Eric El 28/01/2015 a las 11:29, Eric Bénard escribió: > Hi Jose, > > Le Wed, 28 Jan 2015 11:00:40 +0100, > Jose Mª Ferreriro Carnota a écrit : >> I was derived here from : >> https://community.freescale.com/message/473511#473511 >> >> My kernel stops loading when I try to access to registers in >> mach-imx6q.c. I think it has something to do with iMX6 security system. >> Access to that registers at that moment seems to be denied and the >> kernel load crashes. >> > you code is wrong : you can't access the physical memory as there is > MMU. You can check in the code how this is done. > > The following link may me also be of interest : > http://www.makelinux.net/ldd3/chp-9-sect-4 > > meta-fsl-arm is not the right place for this kind of generic > kernel question, you should ask on kernel related mailing lists such as > for ARM : > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel > for beginners : > http://kernelnewbies.org/ML > > Best regards > Eric I used the request_mem_region, ioremap and ioread32 process .. and kernel keeps hanging if I try to use the ioread32 funtion. Then I traced calls to __request_region on kernel/resource.c. IPU driver is calling this in a different way: platform_get_resource(pdev, IORESOURCE_MEM, 0); devm_request_mem_region(&pdev->dev, res->start, resource_size(res), pdev->name); I am going to redirect this to linux-arm-kernel and see if I can use this other method. Best regards, Jose