How to port Linux to Nios II :
The development branch of Linux is maintained by Linus Torvalds. We pull the updates from Linus' git repository.
First, add Linus' git url as remote,
cd nios2-linux/linux-2.6
git remote add linus git://git.kernel.org/pub/scm/linux/k.../linux-2.6.git
Then pull updates for each -rc and stable release,
git pull linus master
Each -rc usually takes one or two week. Eg,
...2.6.26,
2.6.27-rc1, 2.6.27-rc2....2.6.27-rc9, 2.6.27,
2.6.28-rc1,...
Most changes come with -rc1. A lot of things might break. And the merge might fail due to conflict. This is the most difficult part. But we can look at the other archs' patches. Eg, m68knommu,arm,sh,blackfin,x86 etc.
gitk arch/m68knommu
Study their patches, and possibly make the same change to nios2. After -rc1, all other updates move easily. Sometimes, we have to search the Linux kernel mailing list to find out how/why to make the changes.
At last, after enough tests, push the patches up to our sopc server.
linux-2.6.20-uc0
Adding linux-2.6.20 kernel to uClinux-dist-20070130,
cd ~/uClinux-dist/vendors/Altera/nios2nommu
cp config.linux-2.6.x config.linux-2.6.20.x
cd ~/uClinux-dist
tar jxf linux-2.6.20.tar.bz2
mv linux-2.6.20 linux-2.6.20.x
cd linux-2.6.20.x
zcat linux-2.6.20-uc0-big.patch.gz | patch -p1
zcat linux-2.6.20-uc0-nios2-02.diff.gz | patch -p1
# optional, additional patches to sync up to linux-2.6.20.3, or use incr patches .1,.2,.3
bzcat patch-2.6.20.3.bz2 | patch -p1
cd ~/uClinux-dist
make menuconfig # and select kernel
(linux-2.6.20.x) Kernel Version
These are the steps, which we used to port a new kernel. Since nios2 patches was merge in the uClinux-dist, we don't use this approach now.
Attached kernel.zip are patches to port Nios II to newer kernels, from 2.6.11 to 2.6.15 .
I had planned the patches when update kernels,
00 the uc0 , get the uc0 patches from uclinux.org
01 the nois2nommu from microtronix's 1.4 pull out, with only uart drivers.02 fix compile error and runtime error for new kernel to boot
03+ add zImage and all other drivers of dev boards, eg, cfi,epcs,net,usb,i2c,pci...
The attached kernel2.zip is 2.6.16.1 . You should be abel to apply the patches to 2.6.16.11 .
You may follow the BuildrootGuide to install the nios2 linux kernel 2.6.11-uc0 source from release 1.4 of Microtronix.
Jdhar's uClinux SVN Repository opened up to public! SVN Repository located here
| File | Size | Date | Attached by | |||
|---|---|---|---|---|---|---|
| kernel.zip No description | 971.31 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
| kernel2.zip No description | 337.57 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
| linux-2.6.17.1-nios2-02.diff.gz No description | 4.6 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
| linux-2.6.18-nios2-02.diff.gz No description | 332.94 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
| linux-2.6.18_to_2.6.19-nios2.diff.gz No description | 3.43 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
| linux-2.6.20-uc0-nios2-02.diff.gz No description | 48.72 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
| linux-2.6.22-uc0-big-nios2-02.diff.gz No description | 10.34 kB | 16:35, 7 Dec 2008 | Admin | Actions | ||
cheap fake watches
cheap replica watches
replica watch
watches replica
IWC watches
Cartier watches
replica Montblanc
Bvlgari watches
replica Rolex Explorer
ebel watches
Hermes replica
replica Jaquet droz
Rolex watch for sale
Rolex Sea-Dweller watch for sale
ebel watch for sale
omega replica
Christian Louboutin
christian laboutin high heels
christian designer shoes
christian laboutin high shoes
christian shoes
cheap Christian Louboutin
discount Christian Louboutin
Christian Louboutin Evening