OpenCores
no use no use 1/1 no use no use
Linux __ioremap undefined
by miquelizquierddo on Oct 7, 2010
miquelizquierddo
Posts: 1
Joined: Jun 9, 2010
Last seen: Oct 25, 2010
Hi all,

I have been using the or1ksim for some time now and it works great.Now, I'm trying to make a linux driver for a SystemC interface that I added to the OPENRISC.

The problem comes when I try to make the driver I get the following error:
ERROR: "__ioremap" [arch/or32/drivers/NI_NePA_driver.ko] undefined!

To make the file I just have the Makefile with: obj-m := NI_NePA_driver.o

I also get the following warnings during the build, but I don't see any relation:
:187:2: warning: #warning syscall restart_syscall not implemented
:1431:2: warning: #warning syscall sync_file_range not implemented
:1455:2: warning: #warning syscall utimensat not implemented
:1463:2: warning: #warning syscall timerfd_create not implemented
:1471:2: warning: #warning syscall fallocate not implemented
:1475:2: warning: #warning syscall timerfd_settime not implemented
:1479:2: warning: #warning syscall timerfd_gettime not implemented
:1483:2: warning: #warning syscall signalfd4 not implemented
:1487:2: warning: #warning syscall eventfd2 not implemented
:1491:2: warning: #warning syscall epoll_create1 not implemented
:1495:2: warning: #warning syscall dup3 not implemented
:1499:2: warning: #warning syscall pipe2 not implemented
:1503:2: warning: #warning syscall inotify_init1 not implemented
:1507:2: warning: #warning syscall preadv not implemented
:1511:2: warning: #warning syscall pwritev not implemented
:1515:2: warning: #warning syscall rt_tgsigqueueinfo not implemented
:1519:2: warning: #warning syscall perf_event_open not implemented
:1523:2: warning: #warning syscall recvmmsg not implemented
arch/or32/kernel/ptrace.c:95: warning: 'set_singlestep' defined but not used
arch/or32/mm/consistent.c: In function 'consistent_alloc':
arch/or32/mm/consistent.c:73: warning: unused variable 'flags'
arch/or32/board/config.c:168: warning: initialization from incompatible pointer type
mm/dmapool.c: In function 'show_pools':
mm/dmapool.c:100: warning: format '%4Zu' expects type 'size_t', but argument 6 has type 'unsigned int'
mm/dmapool.c:100: warning: format '%4Zu' expects type '���½size_t', but argument 7 has type 'unsigned int'
mm/slab.c: In function 'kfree':
mm/slab.c:3781: warning: passing argument 2 of '__cache_free' discards qualifiers from pointer target type
fs/file.c: In function 'files_defer_init':
fs/file.c:421: warning: comparison of distinct pointer types lacks a cast
fs/libfs.c: In function 'simple_attr_write':
fs/libfs.c:741: warning: comparison of distinct pointer types lacks a cast
fs/buffer.c: In function '__find_get_block_slow':
fs/buffer.c:228: warning: format '%zu' expects type 'size_t', but argument 3 has type 'unsigned int'
fs/debugfs/file.c: In function 'write_file_bool':
fs/debugfs/file.c:414: warning: comparison of distinct pointer types lacks a cast
fs/proc/task_mmu.c: In function 'pagemap_read':
fs/proc/task_mmu.c:770: warning: comparison of distinct pointer types lacks a cast
fs/quota/dquot.c:135: warning: 'quotatypes' defined but not used
fs/sysfs/file.c: In function 'sysfs_read_file':
fs/sysfs/file.c:146: warning: format '%zd' expects type 'signed size_t', but argument 3 has type 'size_t'
drivers/char/random.c: In function 'write_pool':
drivers/char/random.c:1086: warning: comparison of distinct pointer types lacks a cast
drivers/serial/8250.c: In function 'serial8250_shutdown':
drivers/serial/8250.c:2179: warning: suggest parentheses around arithmetic in operand of |
drivers/serial/8250_early.c: In function 'parse_options':
drivers/serial/8250_early.c:176: warning: comparison of distinct pointer types lacks a cast
WARNING: modpost: Found 8 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
ERROR: "__ioremap" [arch/or32/drivers/NI_NePA_driver.ko] undefined!
ERROR: "iounmap" [arch/or32/drivers/NI_NePA_driver.ko] undefined!
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
Thanks
RE: Linux __ioremap undefined
by hwmin75 on Apr 26, 2012
hwmin75
Posts: 20
Joined: Mar 8, 2010
Last seen: Jul 21, 2018
I solved your problem.

refer to attatchment.
ioremap.c (4 kb)
no use no use 1/1 no use no use
© copyright 1999-2026 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.