Skip to contentSkip to conversation

help installing MTD

DISCUSSION Mike G 3 participants 4 messages Jul 15, 2003 Memory technology devices (MTD)

lore
Share & tools
lore

Mike G

author
#0 lore raw

Hi there,

I am a Linux newbies, an idiot basically. My task is to install the MTD to the kernel linux-2.4.4 .. to run for MPC 857 for AM29DL322. Somehow, since i m an idiot, i cannot install it. Anyone has any slightest idea how to do this.
This is the error msg.. of course there is some wrong file association i can see.

make[2]: Entering directory `/usr/src/linux-2.4.4-2001-05-12.patchedkc-850DSL/drivers/mtd2/drivers/mtd' Makefile:11: /Makefile.inc: No such file or directory
make[2]: *** No rule to make target /Makefile.inc'. Stop. make[2]: Leaving directory /usr/src/linux-2.4.4-2001-05-12.patchedkc-850DSL/drivers/mtd2/drivers/mtd' make[1]: *** [_subdir_mtd] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.4-2001-05-12.patchedkc-850DSL/drivers'
make: *** [_dir_drivers] Error 2

Thank a mil.

regards,
mike

#1 lore raw
Quoted 4 lines · Mike G

Hi there,

I am a Linux newbies, an idiot basically. My task is to install the MTD to the kernel linux-2.4.4 .. to run for MPC 857 for AM29DL322.

2.4.4 is very old. You really should consider upgrading to a vaguely recent kernel which isn't full of known holes.

Quoted 2 lines

This is the error msg.. of course there is some wrong file association i can see.

You've copied files in manually rather than using the 'patchin' script from the patches/ directory. Which means you've got the 'Makefile' files instead of the 'Makefile.common' files which you should have copied and renamed to 'Makefile' in each subdirectory.

If you really do stay with 2.4.4 you'll probably need some surgery on linux/mtd/compatmac.h to make it support kernels that ancient again.

Signature · 1 line
dwmw2
#2 lore raw

hi there,

Quoted 8 lines · David Woodhouse
Quoted 4 lines · Mike G

Hi there,

I am a Linux newbies, an idiot basically. My task is to install the MTD to the kernel linux-2.4.4 .. to run for MPC 857 for AM29DL322.

2.4.4 is very old. You really should consider upgrading to a vaguely recent kernel which isn't full of known holes.

I have try to use the new kernel 2.4.20 .. Somehow it doesn't work on the custom board. So i m back to the ancient kernel.

Quoted 8 lines
Quoted 3 lines

This is the error msg.. of course there is some wrong file association i can see.

You've copied files in manually rather than using the 'patchin' script from the patches/ directory. Which means you've got the 'Makefile' files instead of the 'Makefile.common' files which you should have copied and renamed to 'Makefile' in each subdirectory.

I did used the patch now the compling complaint the exactly as you said "kernel too old" *sigh*

Quoted 3 lines

If you really do stay with 2.4.4 you'll probably need some surgery on linux/mtd/compatmac.h to make it support kernels that ancient again.

ok ok if i were to do surgery, wat changes i hav to do.

Quoted 5 lines
Signature · 2 lines
-- 
dwmw2

thanks for prompt help ..

Mike G.

#3 lore raw
Quoted 2 lines · Mike G.

I have try to use the new kernel 2.4.20 .. Somehow it doesn't work on the custom board. So i m back to the ancient kernel.

Find out why. Fix it. Seriously. Using 2.4.4 is likely to cause you more trouble in the long term.

Quoted 6 lines

I did used the patch now the compling complaint the exactly as you said "kernel too old" *sigh*

Quoted 3 lines

If you really do stay with 2.4.4 you'll probably need some surgery on linux/mtd/compatmac.h to make it support kernels that ancient again.

ok ok if i were to do surgery, wat changes i hav to do.

If you really must do this, then start by taking an older copy of compatmac.h from CVS, from before I removed all the support for ancient kernels. Drop that in place of the current one and then fix up the stuff that still breaks.

Signature · 1 line
dwmw2