make zImage error

yahua
Hello,
I make zImage in Ubuntu(mini6410),but it appear error
drivers/char/s3c_mem.c:36: fatal error: mach/map.h: No such file or
directory
compilation terminated.
make[2]: *** [drivers/char/s3c_mem.o] Error 1
make[1]: *** [drivers/char] Error 2
make: *** [drivers] Error 2

Would you help me? Thanks.

open-nandra
Which kernel? Mainline or from DVD?

yahua
linux-2.6.28.6-ubuntu-20100917
linux-2.6.28.6-ubuntu-20100802
Both mainline and DVD,I tried.

open-nandra
I don't have DVD and mainline I check but not sure which defconfig you use?
Mainline 2.6.37-rc3 you use?

yahua
How can I know that which defconfig I use ?

open-nandra
Well when you compile kernel you start with defconfig or you choose all
options manually?

yahua
I start with defconfig.
1. My PC installed Fedora 9(2.6.25-14.fc9.i686)
2. I build toolchain (arm-gcc-4.4.1-20100409)
3. I decompressed linux-2.6.28.6-ubuntu-20100917 by
 tar vzxf linux-2.6.28.6-ubuntu-20100917
 cd linux-2.6.28.6-ubuntu
 make menuconfig(But I do not modify anything.)
 make zImage
 then it appeared error.

open-nandra
well possibly this is bad. You need to make make something_defconfig
ARCH=arm; make ARCH=arm CROSS_COMPILE=<arm-linux-> or whatever is prefix
for your compiler.

davef
It appears that you are even setting up your compile environment (see the
Linux_tutorial referred to below).

Also, at the menuconfig stage load in alternative file
<config_mini2440_xxx>, in your case <config_mini6410_xxx.

xxx is the LCD configuration of your board, IE mine was n35 for the old
3.5" NEC LCD. 

Without changing anything while in menuconfig save as an alternative file
by the name <.config>

Compile using the Linux_tutorial on the Wiki.  I recently up-dated it to
reflect my current understanding of kernel compilation.

I am assuming that the mini6410 is similar to the mini2440.

Good luck

davef
Correction:

It appears that you are NOT even . . .

yahua
At menuconfig stage,how can I to load config_mini6410_a70?
Thanks!

davef
Scroll to the bottom of the main menu in menuconfig and you'll see that you
can load an alternative file.  And right below it, at the very bottom on
this page, you will see where you can save the file.

parsh
just before 'make menuconfig' command do 'cp config_mini6410_a70 .config'
and then do menuconfig if u still have to make more configuration changes

yahua
Thanks! It can success to make zImage.