summaryrefslogtreecommitdiffstats
path: root/src/kadmin/testing/scripts/ChangeLog
blob: bfc97a89ea13686e5e0a1dd5d832c749fe61b172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
Tue Dec  3 15:28:53 1996  Barry Jaspan  <bjaspan@mit.edu>

	* init_db: be verbose when $SRVTCL doesn't exist, instead of just
 	failing [krb5-admin/245]

Thu Dec  5 19:34:09 1996  Tom Yu  <tlyu@mit.edu>

	* save_files.sh (files): Also save /etc/krb5.keytab. [PR 278]

Thu Nov 14 15:28:16 1996  Barry Jaspan  <bjaspan@mit.edu>

	* env-setup.shin, init_db, save_files.sh, start_servers,
 	start_servers_local, stop_servers, stop_servers_local: move
 	VERBOSE_TEST -> VERBOSE logic to env-setup.sh, make everything
 	else inherit from it, and fix the sense of the test (Tom got it
 	backwards); also fix init_db so that kdb5_util create is not
 	always verbose

Wed Nov 13 17:12:51 1996  Tom Yu  <tlyu@mit.edu>

	* env-setup.shin: Explicitly set KRB5CCNAME so the user's ccache
	doesn't get blown away.

Tue Nov 12 14:59:31 1996  Tom Yu  <tlyu@mit.edu>

	* init_db, save_files.sh, start_servers, start_servers_local,
 	stop_servers, stop_servers_local: Fix test of $VERBOSE_TEST so
 	that $VERBOSE only gets set if $VERBOSE_TEST is not empty.

Mon Nov 11 14:25:15 1996  Tom Yu  <tlyu@mit.edu>

	* init_db, save_files.sh, start_servers_local, stop_servers,
 	stop_servers_local: Use temp files rather than a here document to
 	provide input to eval'ed commands; Ultrix sh is broken wrt here
	documents redirected to eval commands.

	* start_servers, start_servers_local, init_db: Use ${FOO+bar} and
	${FOO=baz} rather than ${FOO:+bar} and ${FOO:=baz} because of
	Ultrix /bin/sh lossage.

Thu Nov  7 13:56:25 1996  Theodore Ts'o  <tytso@rsts-11.mit.edu>

	* env-setup.shin (foo): Use single quotes around @KRB5_RUN_ENV@ so
		that bash doesn't try to expand $(TOPLIBD) in the echo line.

Tue Nov  5 08:07:06 1996  Ezra Peisach  <epeisach@mit.edu>

	* start_servers_local: kadmin/tcl/util.t is in source tree.

Tue Oct 29 12:19:45 1996  Barry Jaspan  <bjaspan@mit.edu>

	* init_db: put KRB5_RUN_ENV_CSH in setup.csh

	* env-setup.shin: create KRB5_RUN_ENV_CSH for init_db
	
Fri Oct 18 16:15:45 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* Makefile.in (env-setup.stamp): Add dependency upon Makefile.

Thu Oct 17 18:28:36 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* qualname.plin: Downcase the FQDN for keytab use. [krb5-libs/116]

Tue Oct 15 18:39:58 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* env-setup.shin: Support for build tree shared library
		environment setup. [krb5-admin/80]

	* configure.in (RBUILD): Pass in proper top of build tree (not
		.. path) as this is build tree independent.

Tue Oct 15 16:22:52 1996  Barry Jaspan  <bjaspan@mit.edu>

	* env-setup.shin: set $QUALNAME to the right path

	* start_servers, init_db: use qualname of local host, not
 	localhost, in krb5.conf

Tue Oct 15 06:39:58 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* Makefile.in: Added standard rules for .plin -> .pl 

	* *.plin: Renamed from *.pl.in

Thu Oct 10 17:32:22 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* env-setup.shin (EXPECT): Subsititute path for expect from
		autoconf. 

	* configure.in: Check for expect.

Thu Oct  3 13:16:19 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* env-setup.shin: Renamed env-setup.sh for autoconf use.

	* init_db, start_servers, start_servers_local, stop_servers:
		Invoke scripts from source directory or build tree as needed.

	* configure.in, Makefile.in: generate env-setup.sh with proper
		paths already.


Wed Oct  2 13:41:04 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* configure.in, Makefile.in: Let autoconf determine path to perl.

Fri Sep 27 14:12:59 1996  Barry Jaspan  <bjaspan@mit.edu>

	* start_servers, start_servers_local, stop_servers, init_db,
 	env-setup.sh: first pass at making TEST_SERVER remote server
 	testing work

	* env-setup.sh: set K5ROOT to $TESTDIR/krb5-test-root by default,
 	but use an absolute path

Thu Sep 26 17:48:32 1996  Barry Jaspan  <bjaspan@mit.edu>

	* env-setup.sh, init_db, start_servers_local: use K5ROOT instead
 	of /krb5

Thu Sep 26 11:45:56 1996  Ezra Peisach  <epeisach@kangaroo.mit.edu>

	* qualname.pl.in: Renamed old qualname to here as perl path needs
		updating. 

	* Makefile.in (GEN_SCRIPTS): Add qualname.pl

	* start_servers_local, env-setup.sh (QUALNAME): Replace with
		qualname.pl. 

Tue Sep 24 13:28:54 1996  Barry Jaspan  <bjaspan@mit.edu>

	* create Makefile.in and configure.in

Mon Sep 23 15:38:58 1996  Barry Jaspan  <bjaspan@mit.edu>

	* stop_servers_local: delete krb5kdc_rcache after stopping kdc

	* Makefile.ov: create restore_files.sh as symlink to save_files.sh

Wed Sep 11 17:01:06 1996  Barry Jaspan  <bjaspan@mit.edu>

	* make-host-keytab.pl.in: use kadmin instead of kadm5_keytab

Mon Aug 12 11:36:57 1996  Barry Jaspan  <bjaspan@mit.edu>

	* init_db: use kdb5_util instead of kdb5_create

Fri Jul 12 14:48:20 1996  Marc Horowitz  <marc@mit.edu>

	* stop_servers_local (true, false): use the path to find these,
 	instead of looking in /bin explicitly.

	* start_servers_local (/usr/tmp): /usr/tmp doesn't exist on some
 	systems.  Check for that and /var/tmp, and use the one which
 	exists.  (true, false): use the path to find these, instead of
 	looking in /bin explicitly.

	* make-host-keytab.pl.in: perl5 requires that @ in strings be
 	backwhacked.  (EDIT_KEYTAB): ovsec_adm_keytab is now kadm5_keytab.
	
  	* init_db: kadmin_create should be kdb5_create

350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827
/*
 * (C) Copyright 2005
 * Stefan Strobl, GERSYS GmbH, stefan.strobl@gersys.de
 *
 * (C) Copyright 2005
 * Martin Krause, TQ-Systems GmbH, martin.krause@tqs.de.
 *
 * See file CREDITS for list of people who contributed to this
 * project.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License as
 * published by the Free Software Foundation; either version 2 of
 * the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
 * MA 02111-1307 USA
 */

#include <common.h>
#include <command.h>

/*
 * BC3450 specific commands
 */
#if defined(CONFIG_CMD_BSP)

#undef DEBUG
#ifdef DEBUG
# define dprintf(fmt,args...)	printf(fmt, ##args)
#else
# define dprintf(fmt,args...)
#endif

/*
 * Definitions for DS1620 chip
 */
#define THERM_START_CONVERT	0xee
#define THERM_RESET		0xaf
#define THERM_READ_CONFIG	0xac
#define THERM_READ_TEMP		0xaa
#define THERM_READ_TL		0xa2
#define THERM_READ_TH		0xa1
#define THERM_WRITE_CONFIG	0x0c
#define THERM_WRITE_TL		0x02
#define THERM_WRITE_TH		0x01

#define CONFIG_SYS_CPU			2
#define CONFIG_SYS_1SHOT		1
#define CONFIG_SYS_STANDALONE		0

struct therm {
	int hi;
	int lo;
};

/*
 * SM501 Register
 */
#define SM501_GPIO_CTRL_LOW		0x00000008UL	/* gpio pins 0..31  */
#define SM501_GPIO_CTRL_HIGH		0x0000000CUL	/* gpio pins 32..63 */
#define SM501_POWER_MODE0_GATE		0x00000040UL
#define SM501_POWER_MODE1_GATE		0x00000048UL
#define POWER_MODE_GATE_GPIO_PWM_I2C	0x00000040UL
#define SM501_GPIO_DATA_LOW		0x00010000UL
#define SM501_GPIO_DATA_HIGH		0x00010004UL
#define SM501_GPIO_DATA_DIR_LOW		0x00010008UL
#define SM501_GPIO_DATA_DIR_HIGH	0x0001000CUL
#define SM501_PANEL_DISPLAY_CONTROL	0x00080000UL
#define SM501_CRT_DISPLAY_CONTROL	0x00080200UL

/* SM501 CRT Display Control Bits */
#define SM501_CDC_SEL			(1 << 9)
#define SM501_CDC_TE			(1 << 8)
#define SM501_CDC_E			(1 << 2)

/* SM501 Panel Display Control Bits */
#define SM501_PDC_FPEN			(1 << 27)
#define SM501_PDC_BIAS			(1 << 26)
#define SM501_PDC_DATA			(1 << 25)
#define SM501_PDC_VDDEN			(1 << 24)

/* SM501 GPIO Data LOW Bits */
#define SM501_GPIO24			0x01000000
#define SM501_GPIO25			0x02000000
#define SM501_GPIO26			0x04000000
#define SM501_GPIO27			0x08000000
#define SM501_GPIO28			0x10000000
#define SM501_GPIO29			0x20000000
#define SM501_GPIO30			0x40000000
#define SM501_GPIO31			0x80000000

/* SM501 GPIO Data HIGH Bits */
#define SM501_GPIO46			0x00004000
#define SM501_GPIO47			0x00008000
#define SM501_GPIO48			0x00010000
#define SM501_GPIO49			0x00020000
#define SM501_GPIO50			0x00040000
#define SM501_GPIO51			0x00080000

/* BC3450 GPIOs @ SM501 Data LOW */
#define DIP				(SM501_GPIO24 | SM501_GPIO25 | SM501_GPIO26 | SM501_GPIO27)
#define DS1620_DQ			SM501_GPIO29	/* I/O             */
#define DS1620_CLK			SM501_GPIO30	/* High active O/P */
#define DS1620_RES			SM501_GPIO31	/* Low active O/P  */
/* BC3450 GPIOs @ SM501 Data HIGH */
#define BUZZER				SM501_GPIO47	/* Low active O/P  */
#define DS1620_TLOW			SM501_GPIO48	/* High active I/P */
#define PWR_OFF				SM501_GPIO49	/* Low active O/P  */
#define FP_DATA_TRI			SM501_GPIO50	/* High active O/P */


/*
 * Initialise GPIO on SM501
 *
 * This function may be called from several other functions.
 * Yet, the initialisation sequence is executed only the first
 * time the function is called.
 */
int sm501_gpio_init (void)
{
	static int init_done = 0;

	if (init_done) {
/*	dprintf("sm501_gpio_init: nothing to be done.\n"); */
		return 1;
	}

	/* enable SM501 GPIO control (in both power modes) */
	*(vu_long *) (SM501_MMIO_BASE + SM501_POWER_MODE0_GATE) |=
		POWER_MODE_GATE_GPIO_PWM_I2C;
	*(vu_long *) (SM501_MMIO_BASE + SM501_POWER_MODE1_GATE) |=
		POWER_MODE_GATE_GPIO_PWM_I2C;

	/* set up default O/Ps */
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_LOW) &=
		~(DS1620_RES | DS1620_CLK);
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_LOW) |= DS1620_DQ;
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_HIGH) &=
		~(FP_DATA_TRI);
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_HIGH) |=
		(BUZZER | PWR_OFF);

	/* configure directions for SM501 GPIO pins */
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_CTRL_LOW) &= ~(0xFF << 24);
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_CTRL_HIGH) &=
		~(0x3F << 14);
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_DIR_LOW) &=
		~(DIP | DS1620_DQ);
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_DIR_LOW) |=
		(DS1620_RES | DS1620_CLK);
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_DIR_HIGH) &=
		~DS1620_TLOW;
	*(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_DIR_HIGH) |=
		(PWR_OFF | BUZZER | FP_DATA_TRI);

	init_done = 1;
/*  dprintf("sm501_gpio_init: done.\n"); */
	return 0;
}


/*
 * dip - read Config Inputs
 *
 * read and prints the dip switch
 * and/or external config inputs (4bits) 0...0x0F
 */
int cmd_dip (cmd_tbl_t * cmdtp, int flag, int argc, char *argv[])
{
	vu_long rc = 0;

	sm501_gpio_init ();

	/* read dip switch */
	rc = *(vu_long *) (SM501_MMIO_BASE + SM501_GPIO_DATA_LOW);
	rc = ~rc;
	rc &= DIP;
	rc = (int) (rc >> 24);

	/* plausibility check */
	if (rc > 0x0F)
		return -1;

	printf ("0x%lx\n", rc);
	return 0;
}

U_BOOT_CMD (dip, 1, 1, cmd_dip,
	    "read dip switch and config inputs",
	    "\n"