Comments (3)
Hi @1n3o1,
Can your provide the error message?
Also I would recommend reading https://github.com/enjoy-digital/litex/wiki/Feedback-Contribution-Support#feedback--contribution--support before creating an issue: If you don't share the useful information you have (here error message, specific config, etc...), we'll have to spend time trying to guess what you are doing differently.
from litepcie.
Hi
there is a missing declaration in lite uart :
{
make -C /lib/modules/5.0.0-23-generic/build ARCH=x86_64 CROSS_COMPILE= M=/dir/kernel modules
make[1]: Entering directory '/usr/src/linux-headers-5.0.0-23-generic'
CC [M] /dir/kernel/main.o
/dir/kernel/main.c: In function ‘litepcie_pci_probe’:
/dir/kernel/main.c:978:19: warning: unused variable ‘tty_res’ [-Wunused-variable]
struct resource *tty_res = NULL;
^~~~~~~
LD [M] /dir/kernel/litepcie.o
CC [M] /dir/kernel/liteuart.o
/dir/kernel/liteuart.c: In function ‘liteuart_probe’:
/dir/kernel/liteuart.c:269:18: error: storage size of ‘limit’ isn’t known
struct xa_limit limit;
^~~~~
/dir/kernel/liteuart.c:276:11: error: implicit declaration of function ‘XA_LIMIT’; did you mean ‘INT_LIMIT’? [-Werror=implicit-function-declaration]
limit = XA_LIMIT(0, CONFIG_SERIAL_LITEUART_MAX_PORTS);
^~~~~~~~
INT_LIMIT
/dir/kernel/liteuart.c:284:43: warning: passing argument 3 of ‘xa_alloc’ makes integer from pointer without a cast [-Wint-conversion]
ret = xa_alloc(&liteuart_array, &dev_id, uart, limit, GFP_KERNEL);
^~~~
In file included from ./include/linux/radix-tree.h:31:0,
from ./include/linux/idr.h:15,
from ./include/linux/kernfs.h:14,
from ./include/linux/sysfs.h:16,
from ./include/linux/kobject.h:20,
from ./include/linux/module.h:17,
from /dir/kernel/liteuart.c:10:
./include/linux/xarray.h:757:19: note: expected ‘u32 {aka unsigned int}’ but argument is of type ‘struct liteuart_port *’
static inline int xa_alloc(struct xarray *xa, u32 *id, u32 max, void *entry,
^~~~~~~~
/dir/kernel/liteuart.c:269:18: warning: unused variable ‘limit’ [-Wunused-variable]
struct xa_limit limit;
^~~~~
cc1: some warnings being treated as errors
scripts/Makefile.build:291: recipe for target '/dir/kernel/liteuart.o' failed
make[2]: *** [/dir/kernel/liteuart.o] Error 1
Makefile:1606: recipe for target 'module/dir/kernel' failed
make[1]: *** [module/dir/kernel] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-5.0.0-23-generic'
Makefile:14: recipe for target 'litepcie.ko' failed
}
in short :
error: storage size of ‘limit’ isn’t known
error: implicit declaration of function ‘XA_LIMIT’;
if you try build the new kernel the uart module wont build.
from litepcie.
Sorry, I took time to write https://github.com/enjoy-digital/litex/wiki/Feedback-Contribution-Support, so please read it and think about your tone before submitting another issue.
from litepcie.
Related Issues (20)
- there is no packet separation capability for dma HOT 3
- flawed DMA driver HOT 1
- Is it ASIC proven? HOT 1
- CrossClockDomain FIFO depth too shallow causes inefficiencies HOT 1
- Compute Express Link (CXL) support HOT 2
- Support of Non-Transparent Bridge (NTB) for inter-domain communication through PCIe interfaces. HOT 3
- No Rx TLP with s7pciephy
- Problems with inter clock timing
- [NiteFury] Device not enumerating with x1 x2 HOT 4
- dma_test with external loopback HOT 1
- Implementing a versatile PCIe switch using LitePCIe HOT 1
- MSI stalls on Ultrascale+ HOT 2
- DMA prog mode status register race condition / early-update HOT 2
- [Feature request] Implementation of a Root Complex HOT 1
- DMAReader not working after update to 2023.12 HOT 8
- PCIe on UltraScalePlus with 256 bit width is broken HOT 4
- Expanding spiflash functionality in c++ driver with I2C bitbang and SPIMaster functions HOT 6
- The tlast signal doesn't seem to be working
- SIGKILL when doing a dma_test with zero-copy?
- how to generate the rtl code of crossbar and dma related .py
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from litepcie.