Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

Linux 2.6.16 for Nios II

Hi all,

I just finished updating and importing the Microtronix Nios II linux code into:

git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git

I'm not sure if anyone else has done the same ... if so, perhaps we can share some notes.

Otherwise, if anyone is interested in obtaining the updates, please let me know -- and I'll see if I

can setup a git repository -- or at least post a patch.

The main motivation for this effort was simply to make it easier to stay up to date with current

kernel development -- the stable 2.6.11 tree hasn't seen any significant activity since this time

last year. But it was quite easy for me to pull 2.6.16 commits from yesterday :-)

Also, my webhosting company does not support git/rsync -- only http. So if anyone has any

ideas about how we can setup a _community_ repository with git/rsync support, please share

them.

BTW: So far I've had no need to change uclibc or any of my 2.6.11 applications/file system

images -- that is, I can boot either 2.6.11 or 2.6.16 with the old file system images ... and so

far I haven't observed any problems.

Regards,

--Scott

6 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Scott,

    I am very happy. I had been looking for it.

    I had asked git/svn from Altera, but with no results.

    I don't think the current wiki site will support them, either.

    China had blocked many inet access to Taiwan, so it won't help a lot if I setup in my country.

    It would be nice if you can setup a git repository.

    I am working on initial patches to the latest 2.6.17.1 .

    I had 2.6.17.1 kernel running on my board.

    Some headers need update, including atomic.h, bitops.h futex.h .

    There are still some bugs with initramfs, and I had reported to kernel.org .

    I shall post the patches soon.

    Cheer,

    Hippo
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I will check if I can setup a server for git/svn repository at home.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi All,

    > It would be nice if you can setup a git repository.

    Done: http://www.psyent.com/git/linux_2_6_16 (http://www.psyent.com/git/linux_2_6_16)

    Everyone can see below for instructions.

    > I will check if I can setup a server for git/svn repository at home.

    That would be great -- using http is fine for pulls, but is useless for a push. I'd really like to see the

    community take the initiative for maintaining the kernel. I greatly appreciate the effort by Microtronix,

    but it's really not proper (or fair) to expect them to continue doing all of the work. We should be

    taking much of that burden.

    > I am working on initial patches to the latest 2.6.17.1 .

    Sounds great, I've avoided .17 because I thought it wasn't officially considered "stable" yet -- what

    is your opinion? Is is ok for nommu architectures? BTW: do you want me to send you the .16

    patch? -- it might save you some time (and only includes the bare minimum).

    > I had asked git/svn from Altera, but with no results.

    That's unfortunate ... AD if fully behind Blackfin, and I'm seeing lots of momentum behind

    microblaze. It's really not asking much -- especially when you consider the value of the

    contributions. BTW: For kernel development git, IMHO, is the _only_ way to go. It was

    admittedly a bit awkward for me to learn, but I have been _very_ impressed.

    ================================================================

    For everyone's benefit, here's how to get the Nios II code for linux-2.6.16:

    1. clone the git repository

    $ git clone git://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-2.6.16.y.git linux-2.6.16.git

    2. create and checkout a "nios2" branch

    $ cd linux-2.6.16.git

    $ git branch -f nios2 master

    $ git checkout nios2

    3. pull in the nios2 source tree

    $ git pull http://www.psyent.com/git/linux_2_6_16 (http://www.psyent.com/git/linux_2_6_16) nios2

    4. builld the kernel as you always do

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi Scoot,

    Yes, I will pull from your 2.6.16 git. Thanks.

    About 2.6.17 , there aren't big change in nommu support. All uc patches are merged into the main stream in kernel 2.6 . So the patches in 2.6.17-uc0 are very small. It is different from 2.6.16 mostly in some arch headers. I think it is safe to use 2.6.17 . It has the first open sourced SD card driver, which might be useful to some embeded app.

    Cheer,

    Hippo
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    perhaps the SD driver can be used to get better performance out of the MMC driver, since it's quite slow at this point..