new kernel for networkspace vs1 volunteers needed for test

new kernel for networkspace vs1 volunteers needed for test

Postby fvdw » Thu Aug 25, 2011 7:46 pm

I re-compiled the 2.6.33.1 kernel for the networkspace vs1.
The reason was that the RTC was not running on the nwsp1 and as result the hwclock command didn't work.
This does not cause a real problem, especially if you have set the clock to adjust automatic via internet. if you set it manual the time will be set but an error message will be displayed as the firmware tries to adjust the hardware clocks as well.
However on the spd8020 the RTC and hwclock is working with the current kernel. The reason is that there must be a small difference between the hardware on the main board of the nwsp1 and spd8020 with respect to the RTC, the nwsp1 uses a different chip then the spd8020. Only the driver for the spd8020 RTC chip is loaded in the current kernel, as result the RTC on the nwsp1 doesn't work.
I adapted the kernel scripts in a way that as well the RTC chip of the spd8020 and nwsp1 is supported. I tested it on the spd8020 and it is working ok, but I need a volunteer to try this kernel on the nwsp1 to see if this new kernel gets the RTC and hwclock command working on the nwsp1.

To install it unpack the sip file and place the kernel in a share on the nwsp1 and use putty to write it to sda6 partition using the dd command, after it reboot the NAS.
If you have put the kernel in the "fvdw" share the command to use in putty is:
Code: Select all
dd if=/share/1000/fvdw/uImage-26331-4 of=/dev/sda6

of course it can be installed form any directory where you have put it.

I am interested in the output that the dmesg command will give after installation. This to see if the driver is loaded properly and a test if the hwclock command is working.
To test if the hwclock command is working give in putty the command
Code: Select all
hwclock -r

If you get a response something like this
Code: Select all
/$ hwclock -r
Thu Aug 25 20:38:12 2011  0.000000 seconds

then RTC is working.

edit 5-sept-2011--test kernel removed, doesn't seem to cure the problem on the nwsp1

Do NOT use this kernel on other devices than the Lacie networkspace version 1.
It will make your device non functional !
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: new kernel for networkspace vs1 volunteers needed for te

Postby fvdw » Wed Aug 31, 2011 7:32 pm

can those that have downloaded this test kernel please report if it is working ok ?
thks ;)
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands

Re: new kernel for networkspace vs1 volunteers needed for te

Postby langerak » Sun Sep 04, 2011 2:08 pm

On my NS1 it fails after writing the new kernel image and reboot:
Code: Select all
bash-3.2# hwclock -r
hwclock: can't open '/dev/misc/rtc': No such file or directory


Any tips?
langerak
Developer
 
Posts: 57
Joined: Sat Jun 25, 2011 12:30 pm
Location: Rotterdam

Re: new kernel for networkspace vs1 volunteers needed for te

Postby fvdw » Mon Sep 05, 2011 6:26 pm

mmm...strange

what is mentioned in in the dmesg output on the lines where i2c device driver is loaded?

below my output

Code: Select all
input: gpio-keys as /class/input/input0
i2c /dev entries driver
rtc-ds1307 0-0068: rtc core: registered ds1338 as rtc0
rtc-ds1307 0-0068: 56 bytes nvram
Registered led device: power:blue
Registered led device: sata0:blue


in your case the rs5c372 driver should be loaded instead of the ds1338 and using 0-0032 address iso 0-0068

in
Code: Select all
/sys/devices/platform/mv64xxx_i2c.0/i2c-0


you should see a folder 0-0032 that contains the entries needed for the rs5c372 driver

in
Code: Select all
/sys/bus/i2c/drivers


you should see also an entry for the rc5c372 driver, what does it contain (screenshot) ?
fvdw
Site Admin - expert
 
Posts: 13471
Joined: Tue Apr 12, 2011 2:30 pm
Location: Netherlands


Return to Development

Who is online

Users browsing this forum: No registered users and 14 guests