Forum Discussion
Altera_Forum
Honored Contributor
20 years agolinux 2.6.12 instability
hippo, I'm starting a new thread to keep track of this...
I think 2.6.12 looks better than .16 - it hasn't failed on me yet. the patches you gave me were a bit messy though, I think maybe some things were missing. I also get these warnings on every single file compiled: In file included from /share/nios2/tmp/linux-2.6.12/include/linux/sched.h:17, from /share/nios2/tmp/linux-2.6.12/include/linux/module.h:10, from /share/nios2/tmp/linux-2.6.12/init/version.c:10: /share/nios2/tmp/linux-2.6.12/include/linux/nodemask.h: In function `__first_unset_node': /share/nios2/tmp/linux-2.6.12/include/linux/nodemask.h:250: warning: passing arg 1 of `find_next_zero_bit' discards qualifiers from pointer target type Page allocation failures is one thing, but I'm more worried about the kernel hanging completely like .16 was doing. I also have a feeling it's the busybox version. I noticed that in 1.1.1, the file utilities were a bit messed up. For example, here is the output from a normal 'df -h': # busybox_old df -h Filesystem Size Used Available Use% Mounted on /dev/ram0 235.0k 14.0k 221.0k 6% /var /dev/ram1 235.0k 13.0k 222.0k 6% /tmp /dev/hda1 14.5M 12.3M 1.5M 89% /mnt/cf# Here is the output of 1.1.1 df -h: # df -h Filesystem Size Used Available Use% Mounted on /dev/ram0 235.0k 14.0k 221.0k 6% (null) /dev/ram1 235.0k 13.0k 222.0k 6% (null) /dev/hda1 14.5M 12.3M 1.5M 89% (null)# All the filesystem utilities, like mke2fs, du, e2fsck, are weird like this. I will keep playing around with 2.6.12 and see what happens.26 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jdhar@Apr 13 2006, 10:01 AM hippo, i'm starting a new thread to keep track of this...i think 2.6.12 looks better than .16 - it hasn't failed on me yet. the patches you gave me were a bit messy though, i think maybe some things were missing. i also get these warnings on every single file compiled:
in file included from /share/nios2/tmp/linux-2.6.12/include/linux/sched.h:17,
from /share/nios2/tmp/linux-2.6.12/include/linux/module.h:10,
from /share/nios2/tmp/linux-2.6.12/init/version.c:10:
/share/nios2/tmp/linux-2.6.12/include/linux/nodemask.h: in function `__first_unset_node':
/share/nios2/tmp/linux-2.6.12/include/linux/nodemask.h:250: warning: passing arg 1 of `find_next_zero_bit' discards qualifiers from pointer target type
page allocation failures is one thing, but i'm more worried about the kernel hanging completely like .16 was doing. i also have a feeling it's the busybox version. i noticed that in 1.1.1, the file utilities were a bit messed up. for example, here is the output from a normal 'df -h':
# busybox_old df -h
filesystem size used available use% mounted on
/dev/ram0 235.0k 14.0k 221.0k 6% /var
/dev/ram1 235.0k 13.0k 222.0k 6% /tmp
/dev/hda1 14.5m 12.3m 1.5m 89% /mnt/cf#
here is the output of 1.1.1 df -h:
# df -h
filesystem size used available use% mounted on
/dev/ram0 235.0k 14.0k 221.0k 6% (null)
/dev/ram1 235.0k 13.0k 222.0k 6% (null)
/dev/hda1 14.5m 12.3m 1.5m 89% (null)#
all the filesystem utilities, like mke2fs, du, e2fsck, are weird like this. i will keep playing around with 2.6.12 and see what happens.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14295)
--- quote end ---
--- Quote End --- Nice to get a new track. The busybox of 20060320 is very close to the official release 1.1.1 . I didn't find problem like yours. I wonder if you are editing on Windows, so that CRLF may cause problems to patch. Try "patch -l" to ignore white space. I will check the 2.6.12 patch files again.
- Altera_Forum
Honored Contributor
hippo,
I do mostly everything in linux now, butp atching especially; I don't patch in windows at all - especially after our very first conversation http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif Either way, i have the kernel patched up and it's running. So far, CF, JTAG and OpenEth is up, and Im' getting my MMC in there. Once I have that much, I will be able to tell if it's more stable. This kernel isn't much different than .11, so I'm not sure if this is much progress http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jdhar@Apr 13 2006, 11:23 AM hippo,i do mostly everything in linux now, butp atching especially; i don't patch in windows at all - especially after our very first conversation http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/smile.gif either way, i have the kernel patched up and it's running. so far, cf, jtag and openeth is up, and im' getting my mmc in there. once i have that much, i will be able to tell if it's more stable.
this kernel isn't much different than .11, so i'm not sure if this is much progress http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14302)
--- quote end ---
--- Quote End --- The 2.6.12 is the first move toward newer kernels. There is no big different really. But some internal data structures and api were changed during each kernel revision. It is very likely that something failed or become obsolete. Some codes ported by Microtronix were not updated and broke eventually. I am going to read more books on kernel internal. I have to learn more. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/smile.gif
- Altera_Forum
Honored Contributor
argh, between designing new hardware and writing these drivers, I wish I had more time to help out on the core side http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
Anyway, I have put the first 'semi-stable' version up: http://via.dynalias.org/snapshots/ (http://via.dynalias.org/snapshots/) I still need to move the MTD driver over, and do some more testing. But if all goes well, I will leave 2.6.11 behind. These two kernels are similar enough that any drivers can be easily ported between the two. - Altera_Forum
Honored Contributor
hippo, can you put a patch up for zImage? It's integrated in your other patch, so i can't apply it.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jdhar@Apr 13 2006, 11:59 AM hippo, can you put a patch up for zimage? it's integrated in your other patch, so i can't apply it.<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14306)
--- quote end ---
--- Quote End --- here is it, http://forum.niosforum.com/forum/index.php...ype=post&id=139 (http://forum.niosforum.com/forum/index.php?act=attach&type=post&id=139)
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo+apr 13 2006, 01:16 pm--><div class='quotetop'>quote (hippo @ apr 13 2006, 01:16 pm)</div>--- quote start ---
<!--quotebegin-jdhar@Apr 13 2006, 11:59 AM hippo, can you put a patch up for zimage? it's integrated in your other patch, so i can't apply it.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14306)
--- quote end ---
--- Quote End --- here is it, http://forum.niosforum.com/forum/index.php...ype=post&id=139 (http://forum.niosforum.com/forum/index.php?act=attach&type=post&id=139) <div align='right'><{post_snapback}> (index.php?act=findpost&pid=14308)</div> [/b] --- Quote End --- Maybe we should make a diff for each driver?
- Altera_Forum
Honored Contributor
I was doing that originally, but it gets hard to keep track of driver patches and kernel patches. I think driver patches help when moving from kernel to kernel, but they probably won't help the people on this forum much. I think most people here would be interested in just downloading one tarball of the kernel.
I have all of the drivers that I can test integrated - I Can't test any of the other Ethernet drivers (91C111, Davicom etc...) I wonder if it's a good idea to keep going up (.13, .14..) until it breaks... - Altera_Forum
Honored Contributor
wow, they are up to 2.6.16.5 already
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jdhar@Apr 13 2006, 01:28 PM i was doing that originally, but it gets hard to keep track of driver patches and kernel patches. i think driver patches help when moving from kernel to kernel, but they probably won't help the people on this forum much. i think most people here would be interested in just downloading one tarball of the kernel.i have all of the drivers that i can test integrated - i can't test any of the other ethernet drivers (91c111, davicom etc...)
i wonder if it's a good idea to keep going up (.13, .14..) until it breaks...
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=14310)
--- quote end ---
--- Quote End --- Sure, most people need a complete and stable kernel as a whole. Patches are for kernel developers. I had planned the patches when update kernels, 00 the uc0 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... I have all the ways up from 2.6.11,2.6.12 ...to 2.6.16.2 . If you want, I can check out and get diff for you. I have pci and my apps running. I didn't find problem, until you pointed out the dd issue.