[uClinux-dev] Using to RAM-area's
Hi all, my system has two seperated memory-area's. The first one lies in the area 0x1000 to 0x1040 (4 MB) and the other one lies in 0x2000 to 0x2040 (also 4 MB). Is there a way to make it possible to use both RAM-area's? I tried to tell it by the ATAG's, but the kernel didn't react to the second RAM-area. I'm using an ARM Cortex M4 with the 2.6.33 Kernel on uClinux-dist (20100315). Because of the paging-strategy, it should work in my opinion. Best Regards, Frank ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
RE: [uClinux-dev] [PATCH] arch/m68k/ide.h fix for nommu
Resubmission: The arch/m68k/include/asm/ide.h produces errors when the IDE driver is compiled for my 523x uClinux system under kernel. The header makes some redefines of operators not defined in the arch/m68k/include/asm/io_no.h header. There are no separate mmio and iospace defines. Signed-off-by: Jate Sujjavanich diff --git a/arch/m68k/include/asm/ide.h b/arch/m68k/include/asm/ide.h index 3958726..492fee8 100644 --- a/arch/m68k/include/asm/ide.h +++ b/arch/m68k/include/asm/ide.h @@ -1,6 +1,4 @@ /* - * linux/include/asm-m68k/ide.h - * * Copyright (C) 1994-1996 Linus Torvalds & authors */ @@ -34,6 +32,8 @@ #include #include +#ifdef CONFIG_MMU + /* * Get rid of defs from io.h - ide has its private and conflicting versions * Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we @@ -53,5 +53,14 @@ #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n) #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n) +#else + +#define __ide_mm_insw(port, addr, n) io_insw((unsigned int)port, addr, n) +#define __ide_mm_insl(port, addr, n) io_insl((unsigned int)port, addr, n) +#define __ide_mm_outsw(port, addr, n) io_outsw((unsigned int)port, addr, n) +#define __ide_mm_outsl(port, addr, n) io_outsl((unsigned int)port, addr, n) + +#endif /* CONFIG_MMU */ + #endif /* __KERNEL__ */ #endif /* _M68K_IDE_H */ -Original Message- From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Sam Ravnborg Sent: Friday, June 11, 2010 12:10 PM To: uClinux development list Subject: Re: [uClinux-dev] [PATCH] arch/m68k/ide.h fix for nommu On Fri, Jun 11, 2010 at 10:05:27AM -0400, Jate Sujjavanich wrote: > > > -Original Message- > From: uclinux-dev-boun...@uclinux.org > [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Sam Ravnborg > Sent: Monday, June 07, 2010 12:09 PM > To: uClinux development list > Subject: Re: [uClinux-dev] [PATCH] arch/m68k/ide.h fix for nommu > >>> - * linux/include/asm-m68k/ide.h >>> + * arch/m68k/include/ide.h >> Would be nice if you could remove this redundant filename. > Sure. Should the copyright comments remain? Yes - please keep these (if they are relevant for the code in question). If you are in daught keep them. Sam ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] httpd error
On Sun, Jun 20, 2010 at 10:11:28PM +0200, angelo wrote: > Dear all, > > i am running kernel 2.6.X uClinux on a MCF5307 / dm9000 custom board. > > dm9000 driver was written for little endian cpu, i adapted it to big > endian cpu with some byte swapping here and there. > So the network is mostly working, ping commands and ping replies are > executing correctly. > > > Anyway, when i refresh from the browser the board httpd default page, > after some refresh i get this error: > > [ cut here ] > WARNING: at net/core/dst.c:270 () > Stack from 00c87d90: > 00c87e84 8342 003b59f0 003b59f0 4820 0001 00145520 > 00020be0 00021854 000d55c4 540c 00166950 00385660 00385660 > 00c87dd4 ffae 0081 0100 0004 0001 000228c4 > 00c87000 89c8 00022ad0 0014abc4 0016ccc0 0014abb0 0016cc84 0016b6ec > c944 c9b8 2714 0004 00164820 003b59f0 > 00c768d0 00c76870 c9d4 ca08 001d cb92 0d78 003b59f0 > Call Trace with CONFIG_FRAME_POINTER disabled: > > [8342] [4820] [00020be0] [00021854] [000d55c4] > [540c] [ffae] [000228c4] [89c8] [00022ad0] > [c944] [c9b8] [2714] [c9d4] [ca08] > [cb92] [0d78] [38a2] [00032d2e] [000e0184] > [00141304] [000d4c92] [000d5e9c] [000d55d0] [000fd270] > [001166d4] [000d0c60] [000d13ee] [000353a6] [001282fe] > [00035674] [00032d62] [9b7c] [b330] [9ba0] > [ab14] [b330] [b342] [374c] > ---[ end trace d2c968cda5769f30 ]--- > > I afraid that the dm9000 driver i modified have some issue, or still > need some change. Any help is appreciated. I think you are going to have to build your kernel with some minimal debug info. Those values have no meaning to anyone unfortunately. If the kernel was build with the symbols, you would get function names printed instead which is much more helpful. It does make the kernel slightly bigger, but not that much. This is not the same as full debuging symbols though. Those would make the kernel much larger. CONFIG_FRAME_POINTER is really nice to have on. Now it appears to be a warning. Also kernel 2.6.x is not much more precise than just saying 'linux'. 2.6.x has been around for 7 or 8 years now. Now the only warning in net/core/dst.c on current 2.6 code is: void dst_release(struct dst_entry *dst) { if (dst) { int newrefcnt; smp_mb__before_atomic_dec(); newrefcnt = atomic_dec_return(&dst->__refcnt); WARN_ON(newrefcnt < 0); } } So that would mean something failed to keep track of the refcnt properly. It may be that a buffer was freed and then reused after freeing. -- Len Sorensen ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] Using to RAM-area's
Hi Frank, Am Montag, 21. Juni 2010 11:00:06 schrieb Frank Mölendörp: > my system has two seperated memory-area's. The first one lies in the > area 0x1000 to > 0x1040 (4 MB) and the other one lies in 0x2000 to 0x2040 > (also 4 MB). > Is there a way to make it possible to use both RAM-area's? This is from the file linux/arch/arm/mach-nds/arch.c. This is a machine with an optional RAM extension: regards Wolfgang static void __init fixup_nds(struct machine_desc *desc, struct tag *tags, char **cmdline, struct meminfo *mi) { mi->bank[0].start = CONFIG_DRAM_BASE; mi->bank[0].size = CONFIG_DRAM_SIZE; mi->bank[0].node = 0; mi->nr_banks = 1; #ifdef CONFIG_NDS_ROM8BIT if (gba_activate_ram()) { mi->bank[1].start = gba_start; mi->bank[1].size = gba_length; mi->bank[1].node = 0; mi->nr_banks = 2; } #endif } MACHINE_START(NDS, "Nintendo DS") /* Maintainer: Malcolm Parsons */ .phys_ram = CONFIG_DRAM_BASE, .phys_io= 0x0400, .init_irq = nds_init_irq, .timer = &nds_timer, .init_machine = nds_machine_init, .fixup = fixup_nds, MACHINE_END -- Wahre Worte sind nicht schön - Schöne Worte sind nicht wahr. (Laotse) ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
Re: [uClinux-dev] [PATCH] arch/m68k/ide.h fix for nommu
Hi Jate, Jate Sujjavanich wrote: Resubmission: Applied to "for-linus" branch of m68knommu git tree. Thanks Greg The arch/m68k/include/asm/ide.h produces errors when the IDE driver is compiled for my 523x uClinux system under kernel. The header makes some redefines of operators not defined in the arch/m68k/include/asm/io_no.h header. There are no separate mmio and iospace defines. Signed-off-by: Jate Sujjavanich diff --git a/arch/m68k/include/asm/ide.h b/arch/m68k/include/asm/ide.h index 3958726..492fee8 100644 --- a/arch/m68k/include/asm/ide.h +++ b/arch/m68k/include/asm/ide.h @@ -1,6 +1,4 @@ /* - * linux/include/asm-m68k/ide.h - * * Copyright (C) 1994-1996 Linus Torvalds & authors */ @@ -34,6 +32,8 @@ #include #include +#ifdef CONFIG_MMU + /* * Get rid of defs from io.h - ide has its private and conflicting versions * Since so far no single m68k platform uses ISA/PCI I/O space for IDE, we @@ -53,5 +53,14 @@ #define __ide_mm_outsw(port, addr, n) raw_outsw((u16 *)port, addr, n) #define __ide_mm_outsl(port, addr, n) raw_outsl((u32 *)port, addr, n) +#else + +#define __ide_mm_insw(port, addr, n) io_insw((unsigned int)port, addr, n) +#define __ide_mm_insl(port, addr, n) io_insl((unsigned int)port, addr, n) +#define __ide_mm_outsw(port, addr, n) io_outsw((unsigned int)port, addr, n) +#define __ide_mm_outsl(port, addr, n) io_outsl((unsigned int)port, addr, n) + +#endif /* CONFIG_MMU */ + #endif /* __KERNEL__ */ #endif /* _M68K_IDE_H */ -Original Message- From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Sam Ravnborg Sent: Friday, June 11, 2010 12:10 PM To: uClinux development list Subject: Re: [uClinux-dev] [PATCH] arch/m68k/ide.h fix for nommu On Fri, Jun 11, 2010 at 10:05:27AM -0400, Jate Sujjavanich wrote: -Original Message- From: uclinux-dev-boun...@uclinux.org [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of Sam Ravnborg Sent: Monday, June 07, 2010 12:09 PM To: uClinux development list Subject: Re: [uClinux-dev] [PATCH] arch/m68k/ide.h fix for nommu - * linux/include/asm-m68k/ide.h + * arch/m68k/include/ide.h Would be nice if you could remove this redundant filename. Sure. Should the copyright comments remain? Yes - please keep these (if they are relevant for the code in question). If you are in daught keep them. Sam ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev This footnote confirms that this email message has been scanned by PineApp Mail-SeCure for the presence of malicious code, vandals & computer viruses. ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev -- Greg Ungerer -- Principal EngineerEMAIL: g...@snapgear.com SnapGear Group, McAfee PHONE: +61 7 3435 2888 8 Gardner Close FAX: +61 7 3217 5323 Milton, QLD, 4064, AustraliaWEB: http://www.SnapGear.com ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev
[uClinux-dev] [PATCH] flthdr: improve default print due to no args
The current code misses checking a few args in order to determine the default "print" mode (ktrace/l1stack/...). Rather than update a list that people easily forget, rework the code to generically detect that no arguments have been specified. Signed-off-by: Mike Frysinger --- flthdr.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/flthdr.c b/flthdr.c index 0485107..dfc9107 100644 --- a/flthdr.c +++ b/flthdr.c @@ -326,11 +326,12 @@ usage(char *s) int main(int argc, char *argv[]) { - int c; + int c, noargs; char *ofile = NULL, *ifile; elf2flt_progname = argv[0]; + noargs = 1; while ((c = getopt(argc, argv, "pPdzZrRuUkKs:o:")) != EOF) { switch (c) { case 'p': print = 1;break; @@ -353,6 +354,7 @@ main(int argc, char *argv[]) usage("invalid option"); break; } + noargs = 0; } if (optind >= argc) @@ -361,9 +363,9 @@ main(int argc, char *argv[]) if (ofile && argc - optind > 1) usage("-o can only be used with a single file"); - if (!print && !docompress && !ramload && !stacksize) /* no args == print */ + if (!print && noargs) /* no args == print */ print = argc - optind; /* greater than 1 is short format */ - + for (c = optind; c < argc; c++) { ifile = argv[c]; if (!ofile) -- 1.7.1 ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev