From: jose <jose.ferreiro@horus.es>
To: "meta-freescale@yoctoproject.org" <meta-freescale@yoctoproject.org>
Subject: Re: iMX6Q Linux 3.10.17 Trying to read registers at boot time
Date: Thu, 29 Jan 2015 12:56:11 +0100 [thread overview]
Message-ID: <54CA1FDB.5050006@horus.es> (raw)
In-Reply-To: <20150128112952.7d679f63@e6520eb.localdomain>
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<jose.ferreiro@horus.es> 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
prev parent reply other threads:[~2015-01-29 11:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-28 10:00 iMX6Q Linux 3.10.17 Trying to read registers at boot time Jose Mª Ferreriro Carnota
2015-01-28 10:29 ` Eric Bénard
2015-01-29 11:56 ` jose [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54CA1FDB.5050006@horus.es \
--to=jose.ferreiro@horus.es \
--cc=meta-freescale@yoctoproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.