[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] watchdog



Hello All,

Reading the xps_timebase_wdt datasheet closer... It seems this core is in fact rather useless for use as a timebase (unless you want a 1-minute timebase or you don't want to use the watch-dog or only use it in a complicated way). As a watch-dog timer alone I guess it's usable and it would be nice to have support for it in booth u-boot and linux. Triggering in the simple boot loader is not a problem, as it can't be configured to be active from cold boot, but has to be enabled first in software.

Finn

Finn Stadel Nielsen skrev:
Hi Michael and Guillaume,

Might be a good idea to switch from using a xps_timer to using an xps_timebase_wdt (which resembles the one that exists in the PowerPC CPU's) and then add support for that cores's watch-dog, which I think is the one Guillaume is using. I know the xps_timer has been used since the dawn of time, but it could be an alternative config and a nice addition of watch-dog functionality. I don't know if the simple boot loader can finish executing before a watch-dog timeout, if not it could trigger it or else people would just have to live with a watch-dog that is not enabled from cold start .. (daaangerous... ;-) ).

Finn
------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.21/2014 - Release Date: 03/20/09 06:59:00


Michal Simek skrev:

Hi,

Hello,

Sure here is my log :


make[2]: Leaving directory
`/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/common'

UNDEF_SYM=`microblaze-uclinux-objdump -x lib_generic/libgeneric.a
board/petalogix/microblaze-auto/libmicroblaze-auto.a
cpu/microblaze/libmicroblaze.a lib_microblaze/libmicroblaze.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.a fs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
drivers/libdrivers.a drivers/nand/libnand.a
drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a
post/libpost.a post/cpu/libcpu.a common/libcommon.a  |sed  -n -e
's/.*\(__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
        microblaze-uclinux-ld -Bstatic -T
/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/board/petalogix/microblaze-auto/u-boot.lds
-Ttext 0x9ffc0000  $UNDEF_SYM cpu/microblaze/start.o \
                --start-group lib_generic/libgeneric.a
board/petalogix/microblaze-auto/libmicroblaze-auto.a
cpu/microblaze/libmicroblaze.a lib_microblaze/libmicroblaze.a
fs/cramfs/libcramfs.a fs/fat/libfat.a fs/fdos/libfdos.a
fs/jffs2/libjffs2.afs/reiserfs/libreiserfs.a fs/ext2/libext2fs.a
net/libnet.a disk/libdisk.a rtc/librtc.a dtt/libdtt.a
drivers/libdrivers.a drivers/nand/libnand.a
drivers/nand_legacy/libnand_legacy.a drivers/sk98lin/libsk98lin.a
post/libpost.a post/cpu/libcpu.a common/libcommon.a  --end-group -L
/home/utilinux/work/petalinux_test2/trunk/tools/linux-i386/microblaze-uclinux-tools/bin/../lib/gcc/microblaze-uclinux/3.4.1/bs/m
-lgcc \
                -Map u-boot.map -o u-boot
lib_microblaze/libmicroblaze.a(board.o): In function `board_init':
/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/lib_microblaze/board.c(.text+0xbc):
undefined reference to `watchdog_reset'
/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/lib_microblaze/board.c:241:
undefined reference to `watchdog_reset'
/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/lib_microblaze/board.c:254:
undefined reference to `watchdog_reset'
net/libnet.a(net.o): In function `NetLoop':
/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/net/net.c(.text+0x14fc):
undefined reference to `watchdog_reset'
common/libcommon.a(main.o): In function `readline':
/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/common/main.c(.text+0x190):
undefined reference to `watchdog_reset'
common/libcommon.a(cmd_bootm.o)(.text+0x6c4):/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot/common/cmd_bootm.c:
more undefined references to `watchdog_reset' follow
make[1]: *** [u-boot] Error 1
make[1]: Leaving directory
`/home/utilinux/work/petalinux_test2/trunk/software/petalinux-dist/u-boot'
make: *** [u-boot] Error 2


you can see that you miss reference to watchdog_reset function. I haven't play with any watchdog but I am afraid that there is missing watchdog code in u-boot because none haven't needed it and programmed it. You can look if someone from
powerpc guys did any work around but I haven't seen it.

If you want to use it for real project you need to implemented it yourself or
you can look at petalogix.com site.

Thanks,
Michal


Regards

*_ZODIAC DATA SYSTEMS SAS_*
AEROSAFETY & TECHNOLOGY     logo
*Guillaume Gastebois*
Hardware/Firmware Engineer
2 rue de Caen - 14740 Bretteville l'orgueilleuse - France
Tel: +33 2 31 29 4888  - Fax: +33 2 31 80 6549
guillaume.gastebois@xxxxxxxxxxxxxxxxxxx
<mailto:guillaume.gastebois@xxxxxxxxxxxxxxxxxxx>
http://www.zodiacaerospace.com <http://www.zodiacaerospace.com/>







*Michal Simek <michal.simek@xxxxxxxxxxxxx>*
Envoyé par : owner-microblaze-uclinux@xxxxxxxxxxxxxx

20/03/2009 10:31
Veuillez répondre à
microblaze-uclinux@xxxxxxxxxxxxxx


A
    microblaze-uclinux@xxxxxxxxxxxxxx
cc
Objet
    Re: [microblaze-uclinux] watchdog





Hi,


Hello,

I try to use a watchdog on ML505. I run from ref design ll_temac an add a watchdog. The bitstream generation process is ok, but adding watchdog capabilities to kernel gives me WATCHDOG_RESET() unknow function during
u-boot compilation !!

What did I wrong ?
Can you post your log with that fault?

Thanks,
Michal


*_ZODIAC DATA SYSTEMS SAS_*
AEROSAFETY & TECHNOLOGY         logo
*Guillaume Gastebois*
Hardware/Firmware Engineer
2 rue de Caen - 14740 Bretteville l'orgueilleuse - France
Tel: +33 2 31 29 4888  - Fax: +33 2 31 80 6549
guillaume.gastebois@xxxxxxxxxxxxxxxxxxx
<mailto:guillaume.gastebois@xxxxxxxxxxxxxxxxxxx>
http://www.zodiacaerospace.com <http://www.zodiacaerospace.com/>




--
Michal Simek, Ing. (M.Eng)
PetaLogix - Linux Solutions for a Reconfigurable World
w: www.petalogix.com p: +61-7-30090663,+42-0-721842854 f: +61-7-30090663
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive :
http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/



------------------------------------------------------------------------


No virus found in this incoming message.
Checked by AVG - www.avg.com Version: 8.0.238 / Virus Database: 270.11.21/2014 - Release Date: 03/20/09 06:59:00


___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/

------------------------------------------------------------------------
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/