[uClinux-dev] Which files should I use for arm7tdmi?
Erwin Authried
eauth at softsys.co.at
Fri Oct 5 07:22:13 EDT 2001
David McCullough schrieb:
> Jivin Cliff Tsai lays it down ...
> > Hi :
> >
> > I'm trying to build uClinux for arm7tdmi.
> > I use following files(according to Install Doc on Website)
> > (1) linux-2.0.38.tar.gz
> > (2) patch with ..../uClinux-2.0.x/uClinux-2.0.38.1pre7.diff.gz
> >
> > or just use
> > (1) ..../uClinux/ports/arm7tdmi/uclinux-arm.tar.gz
> > (2) ..../uClinux/ports/arm7tdmi/2.0.38.1pre7-AT91M40800.diff.gz
> >
> > but when "Reverse (or preeviously applied) patch detected!
> > Assume -R? --> Press 'Y'
>
> The ARM specialists out there may want to correct me here, but I believe
> everything you need in in the CVS version of 2.0. I have built and run
> arm7tdmi code from the 2.0 kernel in CVS.
>
> > And what files should I use with 2.4.X ?
>
> Everything for 2.4 should be in CVS, if it isn't we should get that fixed :-)
>
I have made a few minor changes to 2.4, I hope I'll get some time soon for a patch. The
most important one that will save you from going through hell if you are using Atmel CPUs
is added below.If you want to use 2.0, the kernel that I have used is available at
http://cvs.home.at/. It is most propably far behind the actual Lineo source, but I have
added ld scripts for execution of the kernel from flash (include/asm/arch/rom.ld).
Regards,
Erwin
Index: memory.h
===================================================================
RCS file: /var/cvs/uClinux-2.4.x/include/asm-armnommu/arch-atmel/memory.h,v
retrieving revision 1.1
diff -u -r1.1 memory.h
--- memory.h 2001/08/06 00:19:22 1.1
+++ memory.h 2001/10/05 11:04:27
@@ -13,11 +13,8 @@
#define TASK_SIZE (0x01a00000UL)
#define TASK_SIZE_26 TASK_SIZE
-
-extern unsigned long _end_kernel;
-#define PHYS_OFFSET ((unsigned long) &_end_kernel)
-
-#define PAGE_OFFSET DRAM_BASE
+#define PHYS_OFFSET (DRAM_BASE)
+#define PAGE_OFFSET PHYS_OFFSET
#define END_MEM DRAM_BASE + DRAM_SIZE
#endif
This message resent by the uclinux-dev at uclinux.org list server http://www.uClinux.org/
More information about the uClinux-dev
mailing list