Page 1 of 1

Does someone know where dma_mapping.h files are located?

Posted: Sat 17 Jun 2017, 16:50
by PappyPuppy
decompress to get at them.

I have a nice installation of gcc-full but I did not install any of the additional src stuff - eg. dma_mapping.h, mm.h (those kinds of files).

I will research this and keep unzipping packages - I guess they could eventually go under the /lib/modules/build or lib/modules/kernel - or something along those lines.

I have a prescription for how to build my tape driver - I just can't find the header files. I have the source files and many of the header files - I just don't have the Linux-specific ones, or perhaps I do, but I could not find them with Pfind. I had troubles with my Pfind so I don't want to use it right now.
Thanks.

I found those files

Posted: Sat 17 Jun 2017, 18:05
by PappyPuppy
So I am making progress finding the headers! I can simply copy over to my lib/modules from my temporary search directories.

Better - just put them anywhere and make sure gcc can find them.

Little bit of a problem with types.h leaving me with undefin

Posted: Sun 18 Jun 2017, 01:10
by PappyPuppy
II also looked to see if they are in the <asm or <asm-generic but I don't see much there either.

This will take some hunting down.

My project is not very large

Posted: Sun 18 Jun 2017, 01:12
by PappyPuppy
And simply compile with gcc. Some of the problems seem common among the programming world - ie. the empty <uapi/linux/types.h>'s. I don't think it has anything to do with the make but I'm not sure yet. Could it have something to do with KBuild? Is there some flag?
Some of it is in posix_types.h

Posted: Sun 18 Jun 2017, 01:22
by Sailor Enceladus
29 results for dma-mapping.h and 6 for mm.h when I looked in kernel_sources-4.4.72-puduan.sfs ?

I am using 4.4.35 right now for some reason

Posted: Sun 18 Jun 2017, 01:32
by PappyPuppy
Anyway, I will check the later ones too.

The problem I have is this is the first time I've needed to worry about a compile on Fatdog. Nearly all the others simply worked easily with gcc or I simply used configure, make, install and they worked.

Whatever it is, it will be found out sooner or later. I have been looking with a fine-toothed comb at each include file and there are little problems here and there. They can be ironed out but I hope I can do it in a couple of days either by myself or with help.

I am using 4.4.35 right now for some reason

Posted: Sun 18 Jun 2017, 01:32
by PappyPuppy
Anyway, I will check the later ones too.

The problem I have is this is the first time I've needed to worry about a compile on Fatdog. Nearly all the others simply worked easily with gcc or I simply used configure, make, install and they worked.

Whatever it is, it will be found out sooner or later. I have been looking with a fine-toothed comb at each include file and there are little problems here and there. They can be ironed out but I hope I can do it in a couple of days either by myself or with help.

For __u32, if I have to, I'll just add my own define as unsigned int or whatever it is.

Posted: Sun 18 Jun 2017, 06:59
by step
You might need to load the kernel source SFS that matches your kernel version before compiling. For Fatdog look for kernel-source-... files here http://distro.ibiblio.org/fatdog/sfs/710/.

I might have done that

Posted: Sun 18 Jun 2017, 10:31
by PappyPuppy
I keep wondering why I chose 4.4.35. :lol:

Re: I might have done that

Posted: Sun 18 Jun 2017, 16:54
by Sailor Enceladus
PappyPuppy wrote:I keep wondering why I chose 4.4.35. :lol:
The 4.4 branch is moving fast. The version number seems to increase +1 around twice a week

I need to take a brief detour and install RedHat

Posted: Tue 20 Jun 2017, 10:40
by PappyPuppy
I need to run a device for which RedHat support is given right away. I can port the code over to Fatdog after that. So I will be a week downloading the 4.0GB of RedHat. I could go with the 400MB, but I'm worried that something will be missing. Perhaps I'll start with the 400MB version - it will proably have everything I need. It's hard to download a 4GB file where I am. So it's final - I'll download a small footprint of RedHat. The problem I have is I don't have time to analyze my projects ahead of time. I just have to dive in and get it done.

After I test the device, I'll get back to building for Fatdog.