by catmaker » Mon Feb 04, 2013 4:16 pm
I've performed the
$this->bbcode_second_pass_quote('', '
')pacman -Syu
sync
sync
sync
reboot
and I've got this
$this->bbcode_second_pass_code('', '
root@hagar:~# uname -a
Linux hagar 3.6.11-4-ARCH+ #1 PREEMPT Wed Jan 16 19:06:54 UTC 2013 armv6l GNU/Linux
root@hagar:~# strings /boot/kernel.img | grep -i pcf
pcf8523_set_datetime
pcf8523_get_datetime
pcf8523
rpcf8523_/
rpcf8523_
dpcf8523_
rtc-pcf8523
rtc_pcf8523
')
So I know you've got the PCF8523 RTC driver as a built-in.
Thanks!I test with
$this->bbcode_second_pass_code('', '
root@hagar:~# date
Thu Jan 1 07:30:37 SGT 1970
root@hagar:~# ls /dev/r*
/dev/ram0 /dev/ram11 /dev/ram14 /dev/ram3 /dev/ram6 /dev/ram9
/dev/ram1 /dev/ram12 /dev/ram15 /dev/ram4 /dev/ram7 /dev/random
/dev/ram10 /dev/ram13 /dev/ram2 /dev/ram5 /dev/ram8 /dev/rfkill
/dev/raw:
rawctl
root@hagar:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- 68 -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@hagar:~# modprobe i2c-dev
root@hagar:~# echo pcf8523 0x68 > /sys/class/i2c-adapter/i2c-0/new_device
root@hagar:~# i2cdetect -y 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- UU -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
root@hagar:~# ls /dev/r*
/dev/ram0 /dev/ram12 /dev/ram2 /dev/ram6 /dev/random
/dev/ram1 /dev/ram13 /dev/ram3 /dev/ram7 /dev/rfkill
/dev/ram10 /dev/ram14 /dev/ram4 /dev/ram8 /dev/rtc0
/dev/ram11 /dev/ram15 /dev/ram5 /dev/ram9
/dev/raw:
rawctl
root@hagar:~# hwclock
Sat 05 Jan 2013 12:02:06 AM SGT -0.029942 seconds
root@hagar:~# date
Thu Jan 1 07:32:15 SGT 1970
root@hagar:~# hwclock -s
root@hagar:~# date
Sat Jan 5 00:02:42 SGT 2013
root@hagar:~#
')
And it
works! Thanks, again.
For more10's hctosys.c to work: i2c-dev, i2c-bcm2708 and a means to device-register a HW device as part of board initialization has to be configured as kernel built-in's. This last part is the patch at
http://code.google.com/p/raspy-juice/so ... r-dt.patchCan help, please?