Attached_mmio with platform_drv

Duss Pirmin pirmin.duss at gapfruit.com
Thu Sep 3 12:25:35 CEST 2020


Hello Stefan

On 02.09.20 17:00, Stefan Kalkowski wrote:
> You encounter a synchronous, external data-abort. I don't know which I2C
> bus you try to access, and what clocks you configured for it in the
> device configuration of the platform driver. However, can you try to
> access the same I2C bus within base-hw bootstrap, before the MMU is
> enabled using physical addresses directly? Maybe, the problem is related to
> the fact that you access the MMIO region from the userland?
> I've encountered a similar problem when accessing the GPC (general
> power controller).

I try to use the I2C bus no 2 (0x30a30000 ... 0x30a30010).

I have added a `{ 0x30a30008, 0x0}` to `iomux_values` in
./base-hw/src/bootstrap/spec/imx8q_evk/platform.cc.

When I boot a kernel with this change, teh following error occurs:

"Error" handler, esr 0xbf000002
elr: 0000000040029001 lr : 0000000040028f65 (reloc)
elr: 0000000040029000 lr : 0000000040028f64
x0 : 00000000400177a0 x1 : 0000000030388000
x2 : 0000000000001000 x3 : 0000000030200000
x4 : 0000000030200004 x5 : 0000000030200018
x6 : 0000000000002328 x7 : 00000000ffffffff
x8 : 0000000030200014 x9 : 0000000030200010
x10: 000000003020000c x11: 0000000000000000
x12: 0000000000000001 x13: 00000000000000a0
x14: 00000000000000ff x15: 0000000000000003
x16: 0000000000000000 x17: 0000000038800000
x18: 00000000000004f8 x19: 0000000040039548
x20: 00000000400398a8 x21: 0000000000000400
x22: 0000000000000000 x23: 00000000ff92bf78
x24: 00000000ff92bf78 x25: 0000000000000400
x26: 00000000fffc3c70 x27: 0000000000000000
x28: 0000000040039868 x29: 0000000040017770

Regards
Pirmin

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.genode.org/pipermail/users/attachments/20200903/1175b8d0/attachment.sig>


More information about the users mailing list