Kurobox NAS-Central Forums

Welcome to the Kuro Community
It is currently Fri Apr 20, 2018 10:40 am

All times are UTC-06:00




Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 211 posts ]  Go to page Previous 19 10 11 12 1315 Next
Author Message
 Post subject:
PostPosted: Mon Mar 20, 2006 2:00 pm 
Offline

Joined: Fri Dec 17, 2004 3:46 pm
Posts: 209
Heffer: This is a very crude way to deal with things. I'm well aware of the inacurate clock, but the clockadj scripts you find on the forums work fine with the standard kernel and even with earlier 2.6 kernel patches. But with the most recent patches the clock is about 30 % (!!!!) off, so not even tickadj can take care of that.


Top
   
 
 Post subject:
PostPosted: Mon Mar 20, 2006 3:02 pm 
Offline

Joined: Sun Jun 12, 2005 1:31 am
Posts: 220
Which clock is off ?

The RTC or the Kernel ?

They are adjusted in different ways.


Top
   
 
 Post subject:
PostPosted: Mon Mar 20, 2006 6:11 pm 
Offline

Joined: Fri Dec 17, 2004 3:46 pm
Posts: 209
"hwclock" shows the right time, while "date" is off.


Top
   
 
 Post subject:
PostPosted: Tue Mar 21, 2006 3:32 pm 
Offline

Joined: Thu Jun 23, 2005 12:24 pm
Posts: 287
Date is spot on while hwclock loses time for me.


Top
   
 
 Post subject:
PostPosted: Tue Mar 21, 2006 10:01 pm 
Offline

Joined: Sun Jun 12, 2005 1:31 am
Posts: 220
Please preface each bug report with the type of box you are running. There are liable to be kurobox issues that I missed because I do not have a kurobox only a kuroboxhg.
I sync the date on startup to an ntp source and hwclock on shutdown with the date. This makes it very difficult when working on the kernel patch to notice any time drifts because the box is rebooted so much.

But given all that I did a quick diff between kernels and came up with the following which might help.


In arch/ppc/platform/linkstation.c see if changing the freq in calibrate_decr fixes the problem for the date. My current patch does not set the correct value for a kurobox so this might be the issue

void linkstation_calibrate_decr(void)
{
ulong freq;

#if defined(CONFIG_KUROBOXHG)
// alt value 32522240;
freq=32768000;
#elif defined(CONFIG_KUROBOX)
// alt value 24391680;
freq=24576000;
#else
#error "not defined"
#endif


Top
   
 
 Post subject:
PostPosted: Wed Mar 22, 2006 12:27 am 
Offline

Joined: Sun Jun 12, 2005 1:31 am
Posts: 220
Couple of updates.

I have made a few changes to the kernel patch hopefully this fixes all of the reported issues so that a kurobox and kuroboxhg can be patched with a runnable kernel.

Please report anything I have missed and I will try to keep the patch uptodate.

We currently have too many version of the kernel patch I would like to consolidate in one place.
I have no problems if the consolidated version is on the kurobox site.

If anyone is trying to patch a new 2.6.16 kernel be aware that there is currently a conversion of the ppc ARCH setting to powerpc. The embedded platforms have not yet moved.

In order to compile a kernel I had to override the arch setting by forcing the value on the command line. You have to do this with any form of make.

make ARCH=ppc oldconfig
make ARCH=ppc menuconfig
make ARCH=ppc vmlinux

etc


Top
   
 
 Post subject:
PostPosted: Wed Mar 22, 2006 2:39 am 
Offline

Joined: Mon Jun 27, 2005 10:16 am
Posts: 4
Location: Germany / Paderborn
I will try compiling 2.6.16 for a (non HG) Kurobox / kuroized Linkstation this weekend.

I assume that http://webpages.charter.net/trevorpowdrell/kurobox-patch-2-6-15.tar.bz2 is the most up to date version of your patch ?

Quote:
We currently have too many version of the kernel patch I would like to consolidate in one place.

Can you post the actual md5 of the up to date version of your patch so that we can verify whether we download the correct version ?


Top
   
 
 Post subject:
PostPosted: Wed Mar 22, 2006 7:12 am 
Offline

Joined: Thu Jun 23, 2005 12:24 pm
Posts: 287
Javascout,

Please email the patch to dtaylor @ kurobox . com and I will make sure it works with my Kuro and place it in the downloads section of kurobox.com.

Dave

Javascout wrote:
Couple of updates.

I have made a few changes to the kernel patch hopefully this fixes all of the reported issues so that a kurobox and kuroboxhg can be patched with a runnable kernel.

Please report anything I have missed and I will try to keep the patch uptodate.

We currently have too many version of the kernel patch I would like to consolidate in one place.
I have no problems if the consolidated version is on the kurobox site.

If anyone is trying to patch a new 2.6.16 kernel be aware that there is currently a conversion of the ppc ARCH setting to powerpc. The embedded platforms have not yet moved.

In order to compile a kernel I had to override the arch setting by forcing the value on the command line. You have to do this with any form of make.

make ARCH=ppc oldconfig
make ARCH=ppc menuconfig
make ARCH=ppc vmlinux

etc


Top
   
 
 Post subject:
PostPosted: Wed Mar 22, 2006 8:30 am 
Offline

Joined: Thu Jun 23, 2005 12:24 pm
Posts: 287
Never mind Js. I noticed you updated the Using a new kernel how-to. I copied the patch into http://www.kurobox.com/downloads/kernel ... 15.tar.bz2 and updated the how-to. I also moved loader.o into http://www.kurobox.com/downloads/kernel/loader.o in an attempt to keep the downloads section somewhat organized. Please keep me informed as to new kernel patches and I will make sure the patch on kurobox.com is the most current.

Dave


Top
   
 
 Post subject: 2.6.16 Works!!
PostPosted: Wed Mar 22, 2006 8:42 am 
Offline

Joined: Wed Jan 11, 2006 9:34 pm
Posts: 45
Location: JAPAN
Hi,all
I try to patch kernel2.6.16. It works on kuro and kuroHG !!

Modify form javascout's original patch.
rs5c372-rtc.c 4lines comment out.

And, add few patch for convinience.
1)mtd minor-number set to Buffalo's new format.
2)kernel command line restored.
3)/dev/fl3 (BOOTflg) checks only "NGNG". because Buffalo's new BOOTflg is 00 00 82 41
4)Fan speed-up at 1Gbps linked. (Restored)
5)Set correct clock rate. (fixed)

And,,,Kuro-box clock rate infomation.
The clocks of KURO-BOX are not 100Mhz primarily. Since it is creating by 3 times of 32.768Mhz, it is 98.304Mhz. Furthermore, a problem is in a clock oscillation circuit and it has become about 97.5538 Mhz in practice.
Similarly KURO-HG are not 133Mhz. 32.768Mhz -- there is a 4-time. circuit problem as well as KURO-BOX, and they are 130.041Mhz in practice. Under the influence, problems, like "behind time", a clock "will make an error, if an extensive rise is carried out by the serial console" occur.

http://genbako.vodapone.com/


Top
   
 
 Post subject:
PostPosted: Wed Mar 22, 2006 11:00 am 
Offline

Joined: Sun Jun 12, 2005 1:31 am
Posts: 220
Couple of questions baulab

Why set the fan speed to high when connected at 1gb ?

Do you want to take over maintaining the patch I do not have time to work on adding support for EM mode or the other changes required to finalize the patch ?


Top
   
 
 Post subject:
PostPosted: Wed Mar 22, 2006 6:12 pm 
Offline

Joined: Thu Jun 23, 2005 12:24 pm
Posts: 287
I just finished compiling and loading 2.6.16 on my kuro with baulab's patch. It worked like a charm. As an added bonus the Tulip error described earlier in this thread is gone. I'll let it run overnight and let you know if the hwclock/date problem is gone too.

Thanks baulab and Javascout for all of your work.


Top
   
 
 Post subject:
PostPosted: Thu Mar 23, 2006 8:22 am 
Offline

Joined: Wed Jan 11, 2006 9:34 pm
Posts: 45
Location: JAPAN
Hi,JS

>Why set the fan speed to high when connected at 1gb ?

realtek and buffalo has said. RTL8110 A chip generates high heat at the time of 1GB operation.
A report that a packet loss occurs with high heat at the time of 1GB operation also has PC's NIC which carried RTL8110.


Mr. JS's work is perfect and I already consider it that the renewal of the patch beyond this is unnecessary.Because, EM-MODE and FLASH are working normally.


Top
   
 
 Post subject:
PostPosted: Thu Mar 23, 2006 8:27 am 
Offline

Joined: Thu Jun 23, 2005 12:24 pm
Posts: 287
15 hours running with the 2.6.16 kernel and hwclock is off by 2 seconds and date is off by 4 seconds. I would consider that accurate enough.


Top
   
 
PostPosted: Thu Mar 23, 2006 9:33 am 
Offline

Joined: Sat Jul 16, 2005 8:15 pm
Posts: 61
Great Job! It looks like it is working well!

Code:
kurobox ~ # uname -a
Linux kurobox 2.6.16-kuroboxHG #1 Wed Mar 22 21:48:25 CST 2006 ppc 82xx MPC8241 GNU/Linux
kurobox ~ # uptime
 09:29:15 up 11:07,  1 user,  load average: 0.01, 0.01, 0.00
kurobox ~ # date
Thu Mar 23 09:29:16 CST 2006
kurobox ~ # hwclock
Thu Mar 23 09:29:16 2006  -0.479381 seconds


I do have a quick question. How do I set this up to be a DHCP server. Do I just need to enable network packet filtering?

Thanks again!


Top
   
 
Display posts from previous:  Sort by  
Forum locked  This topic is locked, you cannot edit posts or make further replies.  [ 211 posts ]  Go to page Previous 19 10 11 12 1315 Next

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Limited