Hi Greg, Thanks for your advice. I will download the mentioned distribution and continue from there.
Regards, Avtar On Fri, Oct 3, 2008 at 11:06 AM, Greg Ungerer <[EMAIL PROTECTED]> wrote: > Hi Avtar, > > Avtar Singh wrote: >> >> We have a custom board running Freescale's i.MX21 (ARM926EJ-S) >> processor and Linux 2.6.22 with our board-specific patches. > > 2.6.22 is a little old now. Can you used something newer? > 2.6.26-uc0 is the latest. > > >> 1. I wish to run a patched version of 2.6.22 ucLinux on the board >> without the MMU. Is it possible to patch ucLinux to run on ARM926EJ >> core without MMU? > > I am sure it would be. > > >> 2. I downloaded linux-2.6.22-uc0-big.patch from uclinux.org and >> applied it to plain vanilla kernel 2.6.22. Before applying any changes >> specific to our board, I want to just compile the linux patched with >> the uclinux patch for any ARM board. I tried setting .config using >> existing defconfigs in arch/arm/configs directory but compilation >> gives following error. Is there any ARM "config" that I can use so >> that I am able to compile just out of the box? > > You will find more useful default configs for non-MMU setups > in the uClinux-dist (check http://www.uclinux.org/pub/uClinux/dist/). > Specifically I usually build and test the GDB/ARMulator target. > That may be a good reference. > > Regards > Greg > > > >> (.config that I used is attached) >> >> arch/arm/mm/consistent.c: In function `__dma_alloc': >> arch/arm/mm/consistent.c:223: error: `PTRS_PER_PTE' undeclared (first >> use in this function) >> arch/arm/mm/consistent.c:223: error: (Each undeclared identifier is >> reported only once >> arch/arm/mm/consistent.c:223: error: for each function it appears in.) >> arch/arm/mm/consistent.c:236: warning: implicit declaration of >> function `pte_none' >> arch/arm/mm/consistent.c:242: warning: implicit declaration of >> function `set_pte_ext' >> arch/arm/mm/consistent.c:242: warning: implicit declaration of function >> `mk_pte' >> arch/arm/mm/consistent.c: In function `dma_free_coherent': >> arch/arm/mm/consistent.c:389: error: `PTRS_PER_PTE' undeclared (first >> use in this function) >> arch/arm/mm/consistent.c:393: warning: implicit declaration of >> function `ptep_get_and_clear' >> arch/arm/mm/consistent.c:404: warning: implicit declaration of >> function `pte_present' >> arch/arm/mm/consistent.c:405: warning: implicit declaration of >> function `pte_pfn' >> arch/arm/mm/consistent.c:424: warning: implicit declaration of >> function `flush_tlb_kernel_range' >> arch/arm/mm/consistent.c: In function `consistent_init': >> arch/arm/mm/consistent.c:453: warning: implicit declaration of >> function `pgd_offset' >> arch/arm/mm/consistent.c:453: warning: assignment makes pointer from >> integer without a cast >> arch/arm/mm/consistent.c:460: warning: implicit declaration of >> function `pmd_none' >> arch/arm/mm/consistent.c:462: warning: implicit declaration of >> function `pmd_present' >> arch/arm/mm/consistent.c:462: warning: implicit declaration of >> function `pte_offset_kernel' >> arch/arm/mm/consistent.c:462: warning: pointer/integer type mismatch >> in conditional expression >> >> Thanks, >> AS >> >> >> ------------------------------------------------------------------------ >> >> _______________________________________________ >> uClinux-dev mailing list >> [email protected] >> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev >> This message was resent by [email protected] >> To unsubscribe see: >> http://mailman.uclinux.org/mailman/options/uclinux-dev > > -- > ------------------------------------------------------------------------ > Greg Ungerer -- Chief Software Dude EMAIL: [EMAIL PROTECTED] > Secure Computing Corporation PHONE: +61 7 3435 2888 > 825 Stanley St, FAX: +61 7 3891 3630 > Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com > _______________________________________________ > uClinux-dev mailing list > [email protected] > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by [email protected] > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev > _______________________________________________ uClinux-dev mailing list [email protected] http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by [email protected] To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
