Re: [uClinux-dev] any hardcode Altera Nios II geeks on this list?

2007-10-24 Thread Thomas Chou
, and ask Greg to merge into next uClinux-dist release. Thomas Chou (Hippo on Nios2 forum) Robert P. J. Day wrote: On Wed, 24 Oct 2007, Michael Schnell wrote: Robert P. J. Day wrote: given that there are other forums to discuss the nios2 soft-core processor

Re: [uClinux-dev] nios2: asm/scatterlist.h definitely needs some updating

2007-10-24 Thread Thomas Chou
Yes, it should be updated as the latest kernel changes. I will run some disk IO to verify it. I did BORROW them mostly from SH or MIPS. Thomas Robert P. J. Day wrote: i'm about to go off and drink beer, but here's the most recent (albeit minor) obstacle -- the asm/scatterlist.h file for

Re: [uClinux-dev] [slightly OT] the proper git repo to support a processor port

2007-10-29 Thread Thomas Chou
The kernel is a non-stop moving target. :) There are always some changes that stop the build or crash during boot. I used to migrate the kernel core step by step. Change a little, then check if it works. If there are too many changes at once, it is difficult to identify the source of problem.

Re: *SPAM* [uClinux-dev] uClinux port to Lattice's Mico32

2007-10-30 Thread Thomas Chou
I think the preferred way to distribute kernel projects is through a git repository. I am setting up a git server for Nios2 projects, which should be online within one or two days. You are welcome to publish the Micro32 port as a branch on this server, since we call the server 'sopc' rather

Re: [uClinux-dev] [slightly OT] the proper git repo to support a processor port

2007-10-30 Thread Thomas Chou
I've run through some exercises of git. I've tried branch-edit-commit-push. It works. So you can work on a clone from Linus' git. Then branch, add your patches, and commit. Later on, when our git server is online, you can push your branch onto the server. About the naming?

Re: [uClinux-dev] [slightly OT] the proper git repo to support a processor port

2007-10-31 Thread Thomas Chou
The git server is online now. Please read the wiki page, http://nioswiki.jot.com/WikiHome/GitServer . It is almost empty at the moment, waiting for input to grow. Cheer, Thomas ___ uClinux-dev mailing list uClinux-dev@uclinux.org

Re: [uClinux-dev] [slightly OT] the proper git repo to support a processor port

2007-11-01 Thread Thomas Chou
Sorry, the server went down last night. It is up now. Please check again. Thomas Ben Twijnstra wrote: Hi Thomas, The git server is online now. Please read the wiki page, http://nioswiki.jot.com/WikiHome/GitServer . It is almost empty at the moment, waiting for input to grow.

[uClinux-dev] [PATCH] nios2: update vendor configs

2007-11-20 Thread Thomas Chou
Update vendor config files to v2.6.23 for nios2nommu. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/vendors/Altera/nios2nommu/config.linux-2.6.x b/vendors/Altera/nios2nommu/config.linux-2.6.x index 363e7f9..5161b1c 100644 --- a/vendors/Altera/nios2nommu/config.linux-2.6.x +++ b

[uClinux-dev] [PATCH] isp1362: merge updates in blackfin linux

2007-11-20 Thread Thomas Chou
relocate linux/usb_isp1362.h to linux/usb/isp1362.h remove bandwidth related code from isp1362 driver for upstream API change Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c b/linux-2.6.x/drivers/usb/host/isp1362-hcd.c index e672a99..676dab1

[uClinux-dev] [PATCH] isp1362: skip clock ready check

2007-11-20 Thread Thomas Chou
The clock check does not work on DE2. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c b/linux-2.6.x/drivers/usb/host/isp1362-hcd.c index 676dab1..f08955e 100644 --- a/linux-2.6.x/drivers/usb/host/isp1362-hcd.c +++ b/linux-2.6.x/drivers/usb

[uClinux-dev] [PATCH] nios2: relocate linux/usb_isp1362.h to linux/usb/isp1362.h

2007-11-20 Thread Thomas Chou
Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/arch/nios2nommu/kernel/usb.c b/linux-2.6.x/arch/nios2nommu/kernel/usb.c index 65655b6..c9d8f25 100644 --- a/linux-2.6.x/arch/nios2nommu/kernel/usb.c +++ b/linux-2.6.x/arch/nios2nommu/kernel/usb.c @@ -271,7 +271,7

[uClinux-dev] [PATCH] lib: add symlink for static libs

2007-11-20 Thread Thomas Chou
Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/lib/Makefile b/lib/Makefile index 2c99955..1f43181 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -166,6 +166,7 @@ LINKLIBS=\ $(ROOTDIR)/lib/libatm/src/lib/.libs/*.a \ $(ROOTDIR)/lib/libdes/*.a \ $(ROOTDIR)/lib

[uClinux-dev] [PATCH] nios2: save the make romfs step

2007-11-20 Thread Thomas Chou
As suggested by David McCullough, make vendor_hwselect create the romfs dir. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/vendors/Altera/nios2nommu/Makefile b/vendors/Altera/nios2nommu/Makefile index 40064ce..cce4d76 100644 --- a/vendors/Altera/nios2nommu/Makefile +++ b/vendors

[uClinux-dev] [PATCH] netflash: need SUSv3 legacy macros

2007-11-20 Thread Thomas Chou
FIXME: tftp uses legacy bcopy,bzero Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/netflash/tftpmain.c b/user/netflash/tftpmain.c index 14e6a92..ee13029 100644 --- a/user/netflash/tftpmain.c +++ b/user/netflash/tftpmain.c @@ -41,6 +41,7 @@ static char sccsid[] = @(#)main.c5.8

[uClinux-dev] [PATCH] nios2: new fb.h for framebuffer device

2007-11-20 Thread Thomas Chou
Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/include/asm-nios2nommu/fb.h b/linux-2.6.x/include/asm-nios2nommu/fb.h new file mode 100644 index 000..c7df380 --- /dev/null +++ b/linux-2.6.x/include/asm-nios2nommu/fb.h @@ -0,0 +1,12 @@ +#ifndef _ASM_FB_H_ +#define

[uClinux-dev] Re: [PATCH] isp1362: skip clock ready check

2007-11-20 Thread Thomas Chou
Hi Greg, Yes, it is. But please apply the depending patch first, [PATCH] isp1362: merge updates in blackfin linux Sorry, I will add number option to git format-patch to avoid such confusion in the future. Best regards, Thomas Greg Ungerer 提到: Hi Thomas, Thomas Chou wrote: The clock check

Re: [uClinux-dev] small build bugs in uClinux-dist-20071107

2007-11-21 Thread Thomas Chou
Greg Ungerer wrote: Try manually enabling the libz config in the applications/library config options. Maybe the mtd-tools options need to select libz in the Kconfig. The obj of libz is compiled, but the symlink in lib/ to libz is missing. Apply the submitted patch should fix this issue,

Re: [uClinux-dev] small build bugs in uClinux-dist-20071107

2007-11-21 Thread Thomas Chou
Wolfgang Wegner wrote: several missing commands (files). Generating an initramfs image from the romfs still fails, but I can live with that. We have been using initramfs generated from romfs dir on nios2 boards. We use a file to name the dev nodes. We think it is easier than romfs alone.

[uClinux-dev] [PATCH 01/15] dm9ks: merge Davicom v2.09

2007-12-02 Thread Thomas Chou
flow control function (option) Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/drivers/net/Space.c b/linux-2.6.x/drivers/net/Space.c index ac9b789..e0a921b 100644 --- a/linux-2.6.x/drivers/net/Space.c +++ b/linux-2.6.x/drivers/net/Space.c @@ -71,7 +71,7 @@ extern struct

[uClinux-dev] [PATCH 03/15] nios2: clean up compressed targets

2007-12-02 Thread Thomas Chou
Update clean rules, because files in arch/nios2nommu/boot/compressed were not cleaned. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile index ca139b6..632f049 100644 --- a/linux-2.6.x/arch/nios2nommu/Makefile

[uClinux-dev] [PATCH 5/15] nios2: set exec mode for romfs/bin dir

2007-12-02 Thread Thomas Chou
The files created in romfs/bin do not have execute mode set for others. They should set for non-root users to execute. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/vendors/Altera/nios2nommu/Makefile b/vendors/Altera/nios2nommu/Makefile index 798ddd5..a2ac239 100644 --- a/vendors

[uClinux-dev] [PATCH 13/15] init: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/init/simpleinit.c b/user/init/simpleinit.c index 6b31bba..b044339 100644 --- a/user/init/simpleinit.c +++ b/user/init/simpleinit.c

[uClinux-dev] [PATCH 12/15] inetd: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/inetd/inetd.c b/user/inetd/inetd.c index 0baf77a..e7c18cc 100644 --- a/user/inetd/inetd.c +++ b/user/inetd/inetd.c @@ -580,7 +580,7

[uClinux-dev] [PATCH 10/15] ftp: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/ftp/ftp/cmds.c b/user/ftp/ftp/cmds.c index a98dfa3..cdf101d 100644 --- a/user/ftp/ftp/cmds.c +++ b/user/ftp/ftp/cmds.c @@ -243,9 +243,9

[uClinux-dev] [PATCH 6/15] nios2: add user space debug stub

2007-12-02 Thread Thomas Chou
This is a gdbserver helper for nios2 user space application debug. It traps to kernel to flag current process for debugging. It is imported from Microtronix Nios II Linux v1.4 release. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/Kconfig b/user/Kconfig index 2e1c81e..213ea23

[uClinux-dev] [PATCH 11/15] ftpd: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/ftpd/config.h b/user/ftpd/config.h index b3c9fb9..4265d50 100644 --- a/user/ftpd/config.h +++ b/user/ftpd/config.h @@ -44,13 +44,13

[uClinux-dev] [PATCH 14/15] sash: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/sash/sash.c b/user/sash/sash.c index 24fbddb..b14c7f5 100644 --- a/user/sash/sash.c +++ b/user/sash/sash.c @@ -502,7 +502,7 @@ command

[uClinux-dev] [PATCH 8/15] boa: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/boa/src/auth.c b/user/boa/src/auth.c index e8f000e..12c16f3 100644 --- a/user/boa/src/auth.c +++ b/user/boa/src/auth.c @@ -21,7 +21,7

[uClinux-dev] [PATCH 9/15] dhcpcd: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-02 Thread Thomas Chou
bcopy/bzero/bcmp/index/rindex are marked LEGACY in SuSv3. They are replaced as proposed by SuSv3. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/user/dhcpcd/arp.c b/user/dhcpcd/arp.c index efbe458..524db35 100644 --- a/user/dhcpcd/arp.c +++ b/user/dhcpcd/arp.c @@ -53,7 +53,7

Re: [uClinux-dev] [PATCH 8/15] boa: replace legacy bcopy/bzero/bcmp/index/rindex

2007-12-03 Thread Thomas Chou
Greg Ungerer wrote: Why not just enable legacy support for these in uClibc? Easier than modify all those legacy packages. Regards Greg Please find the message below, that Atle wrote me, - Thomas Atle Nissestad wrote: I proposed a fix (added selection in menuconfig) for this, but the

Re: [uClinux-dev] [PATCH 02/15] net: add missing open-eth and mtip1000 proto

2007-12-03 Thread Thomas Chou
Greg Ungerer wrote: Hi Thomas, Thomas Chou wrote: Igor Opencore Ethernet driver needs this. Are these really neccessary. With appropriate module_init() calls in the drivers you shouldn't need these. Regards Greg We will need these to compile in kernel, rather than using modules. Best

Re: [uClinux-dev] [PATCH 02/15] net: add missing open-eth and mtip1000 proto

2007-12-03 Thread Thomas Chou
Greg Ungerer wrote: Thomas Chou wrote: Greg Ungerer wrote: Hi Thomas, Thomas Chou wrote: Igor Opencore Ethernet driver needs this. Are these really neccessary. With appropriate module_init() calls in the drivers you shouldn't need these. Regards Greg We will need these to compile

Re: [uClinux-dev] [PATCH 02/15] net: add missing open-eth and mtip1000 proto

2007-12-03 Thread Thomas Chou
Greg Ungerer wrote: Thomas Chou wrote: Greg Ungerer wrote: Hi Thomas, Thomas Chou wrote: Igor Opencore Ethernet driver needs this. Are these really neccessary. With appropriate module_init() calls in the drivers you shouldn't need these. Regards Greg We will need these to compile

Re: [uClinux-dev] NIOS / SPI flash / MTD / JFFS2

2007-12-06 Thread Thomas Chou
, Thomas Chou ___ 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] nios2: add config HZ to support up to 1000Hz clock tick

2007-12-06 Thread Thomas Chou
Source Kconfig.hz so that we have higher clock tick rate. You will need to update uClibc to get correct sysconf() and clock(). Also update Kconfig following those of m68knommu and i386. The default configs are updated, too. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch

Re: [uClinux-dev] NIOS / SPI flash / MTD / JFFS2

2007-12-09 Thread Thomas Chou
Michael Schnell wrote: You can use EPCS MTD chip driver, which accesses SPI flash through FPGA configuration port. That is what I hoped. I'm not sure whether the data chip should be attached to the same SPI bus as well, or if a second SPI interface should be provided for same. Before you

Re: [uClinux-dev] NIOS / SPI flash / MTD / JFFS2

2007-12-10 Thread Thomas Chou
Michael Schnell wrote: I read about this in the Altera appnotes, Of course we will use the FPGA configuration remote upgrade feature. I understand that you should have a fixed workable FPGA configuration on address 0 and in that there is a pointer to some other address where the FPGA bitstream

Re: [uClinux-dev] NIOS / SPI flash / MTD / JFFS2

2007-12-10 Thread Thomas Chou
Michael Schnell wrote: You can find all the details in nios wiki. Hmm , I suppose it's there, but how to find _anything_ there ? Michael ___ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev

[uClinux-dev] [PATCH] nios2: fix init_task alignment

2007-12-10 Thread Thomas Chou
Make sure the init_task is aligned to the kernel thread size so we can locate the kernel stack properly and quickly. Signed-off-by: Thomas Chou [EMAIL PROTECTED] diff --git a/linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S b/linux-2.6.x/arch/nios2nommu/kernel/vmlinux.lds.S index 491901c

Re: [uClinux-dev] NIOS / SPI flash / MTD / JFFS2

2007-12-11 Thread Thomas Chou
Michael Schnell wrote: However, (1) contains FPGA cofniguration + recovery software, which will help you write to recovery. What do you mean by recovery software ? Upgrades are done via Ethernet-TCP/IP and/or via serial interface. I suppose when an upgrade fails, it should be possible to do

Re: [uClinux-dev] [PATCH] nios2: fix init_task alignment

2007-12-11 Thread Thomas Chou
Robert P. J. Day wrote: is the macro THREAD_SIZE not defined so that it can be used instead of hardcoding the value 8192? rday You are right. We should have used a macro. Most arch define THREAD_SIZE in thread_info.h . But currently nios2nommu and x86_64 define it in page.h . We shall

Re: [uClinux-dev] Mico32 linux kernel git repository

2007-12-16 Thread Thomas Chou
-2.6.git test-lm32 cd test-lm32 git remote add sopc git://sopc.et.ntust.edu.tw/git/linux-2.6.git git fetch sopc git checkout -b test-lm32 sopc/test-lm32 Thank you very much for your cooperation and helps. Cheer, Thomas Chou ___ uClinux-dev mailing list

[uClinux-dev] [PATCH 1/4] nios2: add sbin/, usr/bin/, and usr/sbin/ to romfs

2007-12-31 Thread Thomas Chou
User space udev is installed to romfs/sbin/. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- vendors/Altera/nios2nommu/Makefile |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/vendors/Altera/nios2nommu/Makefile b/vendors/Altera/nios2nommu/Makefile index a2ac239

[uClinux-dev] [PATCH 3/4] nios2: redirect exception vector outside sdram

2007-12-31 Thread Thomas Chou
are redirected to inthandler at sdram. FIXME: It won't work if the exception slave is not writable. An error should be generated then. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c |4 +++ linux-2.6.x/arch/nios2nommu/kernel/head.S

[uClinux-dev] [PATCH 4/4] nios2: fix memory module size detection

2007-12-31 Thread Thomas Chou
The previous code does not work for bus width larger than 128 bits. This patch replace the limited test cases, and should work without bus width limitation. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- .../nios2nommu/scripts/PTF/SystemPTF/Module.pm | 17 ++--- 1 files

[uClinux-dev] [PATCH] nios2: fix software exception check

2008-01-19 Thread Thomas Chou
The check of software_exception is incorrect. If any disabled irq line is active, software_exception won't work. And the system will hang. We must check ienable before handling hardware interrupts. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/entry.S

[uClinux-dev] [PATCH 01/07] nios2: Remove all arch-specific code dependent on

2008-01-22 Thread Thomas Chou
From: Atle Nissestad [EMAIL PROTECTED] All of this was just copied from m68knommu at some point, and the code was not even converted for nios2 arch. Signed-off-by: Atle Nissestad [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/nios2_ksyms.c |1 -

[uClinux-dev] [PATCH 02/07] nios2: Fixed ptrace register handling

2008-01-22 Thread Thomas Chou
From: Atle Nissestad [EMAIL PROTECTED] The ptrace syscall (at least when it comes to register/memory read/write) should now for the 1st time in history actually work for nios2. Signed-off-by: Atle Nissestad [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/ptrace.c | 86

[uClinux-dev] [PATCH 03/07] nios2: Added breakpoint exception handler

2008-01-22 Thread Thomas Chou
From: Atle Nissestad [EMAIL PROTECTED] This is an initial attempt of enabling gdb/gdbserver application debug support on the nios2 platform. To distinguish a gdb breakpoint from a system call, we put an immediate value of 1 into the trap instruction. In the instruction set the immediate value

[uClinux-dev] [PATCH 06/07] nios2: add breakpoint pc offset

2008-01-22 Thread Thomas Chou
The breakpoint entry code has moved the PC on by 4 bytes, so we must move it back. This could be done on the host but we do it here because monitor.S of JATG gdbserver does it. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/traps.c |8 +++- 1 files

[uClinux-dev] [PATCH 07/07] nios2: ptrace registers number reverted to Altera

2008-01-22 Thread Thomas Chou
The user registers number are reverted to those of Altera gdb, so that they are compatible and eased future updates. The single step handler in ptrace is removed, because nios2 does not have single step instruction and we use software single step simulation from gdb host. Signed-off-by: Thomas

[uClinux-dev] [PATCH 05/07] nios2: flush cache in ptrace poke text

2008-01-22 Thread Thomas Chou
, and then to instruction master. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/ptrace.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/kernel/ptrace.c b/linux-2.6.x/arch/nios2nommu/kernel/ptrace.c index

Re: [uClinux-dev] [PATCH 01/07] nios2: Remove all arch-specific code dependent on

2008-01-23 Thread Thomas Chou
Greg Ungerer wrote: Seeing as the patch is coming through you, you would normally put your signed-off-by as well. (so the submission path can be tracked). Thanks a lot. I will add my sign-off next time. Best regards, Thomas ___ uClinux-dev mailing

[uClinux-dev] [PATCH] nios2: fix software exception check

2008-01-24 Thread Thomas Chou
The check of software_exception is incorrect. If any disabled irq line is active, software_exception won't work. And the system will hang. We must check ienable before handling hardware interrupts. Signed-off-by: Thomas Chou [EMAIL PROTECTED] Greg Ungerer wrote: I missed this one earlier, can

[uClinux-dev] [PATCH] nios2: build systems without cfi flash

2008-01-24 Thread Thomas Chou
As cfi flash and romfs are not required when we run initramfs,the dependency of cfi flash is cleaned. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/asm-offsets.c |2 -- linux-2.6.x/arch/nios2nommu/kernel/setup.c | 10 ++ .../arch

[uClinux-dev] [PATCH] nios2: fix arch prepare

2008-02-02 Thread Thomas Chou
The prepare in arch Makefile should be spelled as archprepare. This fixes the compilation error caused by asm-offsets.h dependency. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git

[uClinux-dev] [PATCH5/9] nios2: enable 'make CFLAGS=...' to add additional

2008-02-12 Thread Thomas Chou
with KBUILD_CFLAGS all over the tree and enabling one to use: make CFLAGS=... to specify additional gcc commandline options. One usecase is when trying to find gcc bugs but other use cases has been requested too. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Makefile | 22

[uClinux-dev] [PATCH 7/9] nios2: change table chaining layout

2008-02-12 Thread Thomas Chou
bits masked off. - Bit 1 set: this is the final entry in the sg entry. sg_next() will return NULL when passed such an entry. It's thus important that sg table users use the proper accessors to get and set the page member. Originated-by: Jens Axboe [EMAIL PROTECTED] Signed-off-by: Thomas Chou

[uClinux-dev] [PATCH 2/9] nios2: set MAC regs in platform_device

2008-02-12 Thread Thomas Chou
Some dev boards does not have eerom to read eth MAC address. We can set the MAC regs and pass it to drivers. The previous eth MAC hooks in net drivers are removed. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/setup.c | 13 - 1 files changed

[uClinux-dev] [PATCH 6/9] nios2: enable 'make AFLAGS=...' to add additional

2008-02-12 Thread Thomas Chou
with KBUILD_AFLAGS all over the tree. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile index 114ef77..fe0afb7 100644

[uClinux-dev] [PATCH 4/9] nios2: add SHM support

2008-02-12 Thread Thomas Chou
Add SHMAT, SHMDT, SHMGET and SHMCTL support in sys_ipc(). (copied from m68k) Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/sys_nios2.c | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu

[uClinux-dev] [PATCH 1/9] nios2: linux/blk.h is obsolete

2008-02-12 Thread Thomas Chou
Replaced with linux/blkdev.h. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/setup.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/kernel/setup.c b/linux-2.6.x/arch/nios2nommu/kernel/setup.c index

[uClinux-dev] [PATCH] nios2: remove unused NO_MM flag

2008-02-12 Thread Thomas Chou
The NO_MM flag is not used in 2.6 kernels. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Makefile |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/Makefile b/linux-2.6.x/arch/nios2nommu/Makefile index fe0afb7

[uClinux-dev] [PATCH 3/9] nios2: remove include/asm-*/ipc.h

2008-02-12 Thread Thomas Chou
Follow the patch from Adrian Bunk [EMAIL PROTECTED], All asm/ipc.h files do only #include asm-generic/ipc.h. This patch therefore removes all include/asm-*/ipc.h files and moves the contents of include/asm-generic/ipc.h to include/linux/ipc.h. Signed-off-by: Thomas Chou [EMAIL PROTECTED

[uClinux-dev] [PATCH] nios2: system timer input clock frequency

2008-02-22 Thread Thomas Chou
for the real clock input to the system timer. na_cpu_clock_freq is added to display correct /proc/cpuinfo. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/setup.c |4 ++-- .../arch/nios2nommu/scripts/PTF/SystemPTF.pm | 16 +--- .../arch

Re: [uClinux-dev] FAQ: ucLinux on NIOS or NIOS II

2008-03-10 Thread Thomas Chou
A M wrote: Can someone point me to a FAQ for embedded sw development on an NIOS cpu running Linux ? Please follow Nios Wiki at http://nioswiki.jot.com/%C2%B5Clinux - Thomas ___ uClinux-dev mailing list uClinux-dev@uclinux.org

[uClinux-dev] [PATCH] nios2: memcpy with stream-lined memory access

2008-03-27 Thread Thomas Chou
for buffer. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/lib/memcpy.c | 237 +++--- 1 files changed, 182 insertions(+), 55 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/lib/memcpy.c b/linux-2.6.x/arch/nios2nommu/lib/memcpy.c index

[uClinux-dev] [PATCH] nios2: add elf2flt to configure options for apps

2008-04-07 Thread Thomas Chou
Some apps such as e2fsprogs need elf2flt in ldopts to create flt objects. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- vendors/Altera/nios2nommu/config.arch |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/vendors/Altera/nios2nommu/config.arch b/vendors/Altera

Re: [uClinux-dev] [PATCH] nios2: add elf2flt to configure options for apps

2008-04-07 Thread Thomas Chou
David McCullough wrote: Jivin Thomas Chou lays it down ... Some apps such as e2fsprogs need elf2flt in ldopts to create flt objects. Perhaps we should consider having ucfront deal with this. That way all !MMU can easily turn on -elf2flt ? The config.arch could set with something like

[uClinux-dev] [PATCH] nios2: add ucfront

2008-04-09 Thread Thomas Chou
The ucfront wrapper was missing. Some apps need this to configure. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- vendors/Altera/nios2nommu/config.arch | 61 +++- 1 files changed, 14 insertions(+), 47 deletions(-) diff --git a/vendors/Altera/nios2nommu

Re: [uClinux-dev] [PATCH] nios2: add ucfront

2008-04-09 Thread Thomas Chou
David McCullough wrote: Jivin Thomas Chou lays it down ... The ucfront wrapper was missing. Some apps need this to configure. Sorry to do this to you, but you should create a: vendors/config/niosnommu/config.arch that can be used by all nios targets, but overriden where needed

[uClinux-dev] [PATCH] nios2: fix ioremap nocache

2008-04-09 Thread Thomas Chou
The current NiosII f-core supports write-back data cache. This patch adds uncached mapping with address bit 31 setting to bypass data cache. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/mm/ioremap.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions

[uClinux-dev] [PATCH] nios2: flush data cache with address matching

2008-04-09 Thread Thomas Chou
range for cache_invalidate_lines() is limited to the cache size, so that the time spent can be reduced. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/mm/memory.c | 33 --- 1 files changed, 17 insertions(+), 16 deletions(-) diff --git

[uClinux-dev] [PATCH] nios2: fix data cache flush address range

2008-04-24 Thread Thomas Chou
This fixed the bug when I changed the flushd instruction to flushda. The address range to flush should be changed accordingly. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/mm/memory.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git

[uClinux-dev] [PATCH] busybox v1.10.1

2008-04-24 Thread Thomas Chou
Hi Greg, Please find the busybox v1.10.1 patches based on your 20070130-20071107 patches. http://sopc.et.ntust.edu.tw/pub/testing/busybox/ 0001-busybox-mode-x-for-scripts.patch 0002-busybox-define-BB_NOMMU-if-__uClinux__.patch 0003-Revert-busybox-define-BB_NOMMU-if-__uClinux__.patch

[uClinux-dev] [PATCH] libgmp: add nios2 machine type (amended)

2008-04-28 Thread Thomas Chou
Need this patch to run configure for nios2. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- lib/libgmp/configfsf.sub |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/lib/libgmp/configfsf.sub b/lib/libgmp/configfsf.sub index faffa7a..432a44a 100644 --- a/lib/libgmp

[uClinux-dev] [PATCH 2/5] open_eth: remove useless set_module_owner

2008-04-28 Thread Thomas Chou
Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/net/open_eth.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-2.6.x/drivers/net/open_eth.c b/linux-2.6.x/drivers/net/open_eth.c index 0bde24f..f9672c0 100644 --- a/linux-2.6.x/drivers/net

[uClinux-dev] [PATCH 1/5] open_eth: use basic mii regs and uncached buffer

2008-04-28 Thread Thomas Chou
can search mii address during initialization. The mii interrupt can be handled. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/net/open_eth.c | 248 +-- 1 files changed, 149 insertions(+), 99 deletions(-) diff --git a/linux-2.6.x/drivers/net

[uClinux-dev] [PATCH 3/5] open_eth: add mii-tool support

2008-04-28 Thread Thomas Chou
definition) Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/net/open_eth.c | 73 --- 1 files changed, 58 insertions(+), 15 deletions(-) diff --git a/linux-2.6.x/drivers/net/open_eth.c b/linux-2.6.x/drivers/net/open_eth.c index f9672c0..dce6c52 100644

[uClinux-dev] [PATCH 4/5] mii-tool: use kernel header mii.h

2008-04-28 Thread Thomas Chou
/getroute.c Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- user/net-tools/hostname.c |4 +- user/net-tools/include/mii.h |9 - user/net-tools/lib/af.c |6 +-- user/net-tools/lib/getroute.c |2 +- user/net-tools/mii-tool.c | 77

[uClinux-dev] [PATCH 5/5] open_eth: revert to use cached buffer

2008-04-28 Thread Thomas Chou
update from Jake, it handles unaligned buffers and can work without XXBUFF_PREALLOC. FIXME: This driver is not SMP-safe. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/net/open_eth.c | 59 1 files changed, 26 insertions(+), 33 deletions

[uClinux-dev] [PATCH 2/5] open_eth: remove useless set_module_owner (amended)

2008-04-28 Thread Thomas Chou
Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/net/open_eth.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/linux-2.6.x/drivers/net/open_eth.c b/linux-2.6.x/drivers/net/open_eth.c index 0bde24f..f2d9834 100644 --- a/linux-2.6.x/drivers/net

[uClinux-dev] [PATCH 2/5 ] open_eth: remove usele ss set_module_owner

2008-04-30 Thread Thomas Chou
Title: [uClinux-dev] [PATCH 2/5] open_eth: remove useless set_module_owner Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/net/open_eth.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-2.6.x/drivers/net/open_eth.c b/linux-2.6.x/drivers

[uClinux-dev] [PATCH 4/5 ] mii-tool: use kernel h eader mii.h

2008-04-30 Thread Thomas Chou
* user/net-tools/netstat.c * user/net-tools/lib/af.c * user/net-tools/lib/getroute.c Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- user/net-tools/hostname.c | 4 +- user/net-tools/include/mii.h | 9 - user/net-tools/lib/af.c | 6 +-- user/net-tools/lib/getroute.c | 2 +- user/net-tools

[uClinux-dev] [PATCH 1/24] nios2: disable DMA API support

2008-05-05 Thread Thomas Chou
Cannot support DMA API. FIXME: The DMA driver needs update. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Kconfig |4 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/Kconfig b/linux-2.6.x/arch/nios2nommu/Kconfig

[uClinux-dev] [PATCH 2/24] nios2: remove dma-noncoherent interface

2008-05-05 Thread Thomas Chou
The __get_free_pages and ioremap can replace this interface. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/mm/Makefile |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/mm/Makefile b/linux-2.6.x/arch/nios2nommu

[uClinux-dev] [PATCH 4/24] nios2: add mmc device nodes

2008-05-05 Thread Thomas Chou
From: Jai Dhar [EMAIL PROTECTED] Amended romfs_list to make device nodes for mmcblk devices. Thes are required for using nios_mmc. Signed-off-by: Jai Dhar [EMAIL PROTECTED] Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- vendors/Altera/nios2nommu/romfs_list |5 + 1 files changed, 5

[uClinux-dev] [PATCH 5/24] nios2: Added udhcpc default.script file

2008-05-05 Thread Thomas Chou
From: Jai Dhar [EMAIL PROTECTED] Added udhcpc script and edited Altera vendor-specific Makefile to include default.script into filesystem tree. Signed-off-by: Jai Dhar [EMAIL PROTECTED] Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- vendors/Altera/nios2nommu/Makefile |5

[uClinux-dev] [PATCH 9/24] nios2: fix pgtable_t build breakage

2008-05-05 Thread Thomas Chou
Commit 2f569afd9ced9ebec9a6eb3dbf6f83429be0a7b4 (CONFIG_HIGHPTE vs. sub-page page tables) caused some build breakage due to pgtable_t. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/include/asm-nios2nommu/page.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

[uClinux-dev] [PATCH 11/24] nios2: Introduce flags for reserve_bootmem()

2008-05-05 Thread Thomas Chou
Follow commit 72a7fe3967dbf86cb34e24fbf1d957fe24d2f246, The patchset adds a flags variable to reserve_bootmem() and uses the BOOTMEM_EXCLUSIVE flag in crashkernel reservation code to detect collisions between crashkernel area and already used memory. Signed-off-by: Thomas Chou [EMAIL PROTECTED

[uClinux-dev] [PATCH 6/24] nios_mmc: add WP status

2008-05-05 Thread Thomas Chou
From: Jai Dhar [EMAIL PROTECTED] Modified driver to read WP status bit from nios_mmc core and report back in get_ro driver function Signed-off-by: Jai Dhar [EMAIL PROTECTED] Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/drivers/mmc/host/nios_mmc.c |4 linux-2.6.x

[uClinux-dev] [PATCH 10/24] nios2: mark arches that support A.OUT format

2008-05-05 Thread Thomas Chou
Follow commit b0b933c08bd5fd053bbba8ba6387f543be03d49f, Mark arches that support A.OUT format by including the following in their master Kconfig files: config ARCH_SUPPORTS_AOUT def_bool y Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Kconfig |3

[uClinux-dev] [PATCH 8/24] nios2: add fifoed avalon uart support

2008-05-05 Thread Thomas Chou
This patch is needed to generate nios2_system.h correctly when using FIFOed Avalon Uart. Contributed by Heing. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- .../scripts/nios2_system.h/fifoed_avalon_uart.pm | 44 1 files changed, 44 insertions(+), 0 deletions

[uClinux-dev] [PATCH 12/24] nios2: Introducing socket mark socket option.

2008-05-05 Thread Thomas Chou
Follow commit 4a19ec5800fc3bb64e2d87c4d9fdd9e636086fe0, A userspace program may wish to set the mark for each packets its send without using the netfilter MARK target. Changing the mark can be used for mark based routing without netfilter or for packet filtering. Signed-off-by: Thomas Chou

[uClinux-dev] [PATCH 15/24] nios2: fix section mismatch

2008-05-05 Thread Thomas Chou
Since start_kernel() comes with __init, so the caller _start() must be with __init. The start.c is not in use and is removed from Makefile. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/Makefile |2 +- linux-2.6.x/arch/nios2nommu/kernel/head.S | 14

[uClinux-dev] [PATCH 18/24] nios2: fix link script section defs

2008-05-05 Thread Thomas Chou
The init_task section is renamed to .init_task.data , in order to match the link script. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/init_task.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu/kernel

[uClinux-dev] [PATCH 17/24] nios2: dont put _start in init section

2008-05-05 Thread Thomas Chou
Revert the commit nios2: fix section mismatch. We want _start() located at the beginning. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/head.S | 11 +++ 1 files changed, 3 insertions(+), 8 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu

[uClinux-dev] [PATCH 23/24] nios2: add empty kvm.h header

2008-05-05 Thread Thomas Chou
nios2nommu does not support KVM. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/include/asm-nios2nommu/kvm.h |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) create mode 100644 linux-2.6.x/include/asm-nios2nommu/kvm.h diff --git a/linux-2.6.x/include/asm-nios2nommu

[uClinux-dev] [PATCH 19/24] nios2: fix timer irq lock

2008-05-05 Thread Thomas Chou
The update_process_times() should go outside xtime_lock. Otherwise it will run into deadlock. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/kernel/time.c |8 +--- 1 files changed, 5 insertions(+), 3 deletions(-) diff --git a/linux-2.6.x/arch/nios2nommu

[uClinux-dev] [PATCH 13/24] nios2: remove local gettimeofday code

2008-05-05 Thread Thomas Chou
Remove unused local gettimeofday functions, now that we are using GENERIC_TIME. Signed-off-by: Thomas Chou [EMAIL PROTECTED] --- linux-2.6.x/arch/nios2nommu/Kconfig |4 ++ linux-2.6.x/arch/nios2nommu/kernel/time.c | 66 - 2 files changed, 4 insertions

  1   2   >