Archiv > Raspberry PI
MLD 4.0 und PCTV 460e DVB-S2 Stick
maz:
Danke - hab ein Ticket angelegt.
Gruß maz
Christian:
Wir müssen im kernel den FLAG setzen: CONFIG_DMA_SHARED_BUFFER
Dann tut auch deine Karte ;D
--- Code: ---#ifdef CONFIG_DMA_SHARED_BUFFER
struct dma_buf_attachment *dma_buf_attach(struct dma_buf *dmabuf,
struct device *dev);
void dma_buf_detach(struct dma_buf *dmabuf,
struct dma_buf_attachment *dmabuf_attach);
struct dma_buf *dma_buf_export(void *priv, const struct dma_buf_ops *ops,
size_t size, int flags);
int dma_buf_fd(struct dma_buf *dmabuf, int flags);
struct dma_buf *dma_buf_get(int fd);
void dma_buf_put(struct dma_buf *dmabuf);
struct sg_table *dma_buf_map_attachment(struct dma_buf_attachment *,
enum dma_data_direction);
void dma_buf_unmap_attachment(struct dma_buf_attachment *, struct sg_table *,
enum dma_data_direction);
int dma_buf_begin_cpu_access(struct dma_buf *dma_buf, size_t start, size_t len,
enum dma_data_direction dir);
void dma_buf_end_cpu_access(struct dma_buf *dma_buf, size_t start, size_t len,
enum dma_data_direction dir);
void *dma_buf_kmap_atomic(struct dma_buf *, unsigned long);
void dma_buf_kunmap_atomic(struct dma_buf *, unsigned long, void *);
void *dma_buf_kmap(struct dma_buf *, unsigned long);
void dma_buf_kunmap(struct dma_buf *, unsigned long, void *);
int dma_buf_mmap(struct dma_buf *, struct vm_area_struct *,
unsigned long);
void *dma_buf_vmap(struct dma_buf *);
void dma_buf_vunmap(struct dma_buf *, void *vaddr);
#else
--- End code ---
clausmuus:
Wo hast Du denn das nun wieder gefunden,...
EDIT:
Das ist aber schon im DVB-Treiber gesetzt...
Claus
Christian:
die dma_buf datei aus dem Kernel benötigt auch den FLAG
kernel ..... drivers/base/dma-buf.c / .h
http://www.minidvblinux.de/git/?a=viewblob&p=kernel&h=25f4c6f51736a912a41a8950ec94305282799c97&hb=44f7521f6830bfc0c9900c6b72532c59613118aa&f=src/linux_arm.config
--- Code: ---# Generic Driver Options
#
CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
CONFIG_DEVTMPFS=y
# CONFIG_DEVTMPFS_MOUNT is not set
CONFIG_STANDALONE=y
CONFIG_PREVENT_FIRMWARE_BUILD=y
CONFIG_FW_LOADER=y
CONFIG_FIRMWARE_IN_KERNEL=y
CONFIG_EXTRA_FIRMWARE=""
CONFIG_FW_LOADER_USER_HELPER=y
# CONFIG_DEBUG_DRIVER is not set
# CONFIG_DEBUG_DEVRES is not set
# CONFIG_SYS_HYPERVISOR is not set
# CONFIG_GENERIC_CPU_DEVICES is not set
# CONFIG_DMA_SHARED_BUFFER is not set
--- End code ---
btw: im nicht rpi zweig ist der flag gesetzt
clausmuus:
Bevor wir hier völlig an einander vorbei reden: Der Treiber wird gebaut, lässt sich aber lediglich nicht laden.
Claus
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version