All of lore.kernel.org
 help / color / mirror / Atom feed
* whatis the connection with sysctl and "bad magic number for tty struct ..." ?
@ 2007-02-03  9:31 zhuzhenhua
  0 siblings, 0 replies; only message in thread
From: zhuzhenhua @ 2007-02-03  9:31 UTC (permalink / raw)
  To: linux-mips

hi all:
       i am working on a mips borad with linux-2.6.14.
and my board boot up from an initrd and then switch to Nand FLASH as root dev.
it also add a power control entry like the /arch/mips/common/power.c
do. as follow

#define	CTL_ACPI 9999
#define	ACPI_S1_SLP_TYP 19
#define	ACPI_SLEEP 21

static struct ctl_table pm_table[] = {
	{ACPI_S1_SLP_TYP, "suspend", NULL, 0, 0600, NULL, &pm_do_suspend},
	{ACPI_SLEEP, "sleep", NULL, 0, 0600, NULL, &pm_do_sleep},
	{CTL_ACPI, "freq", NULL, 0, 0600, NULL, &pm_do_freq},
	{0}
};

static struct ctl_table pm_dir_table[] = {
	{CTL_ACPI, "pm", NULL, 0, 0555, pm_table},
	{0}
};

/*
 * Initialize power interface
 */
static int __init pm_init(void)
{
	register_sysctl_table(pm_dir_table, 1);
	return 0;
}

__initcall(pm_init);


they had worked well before. but this week, out nand flash driver
change the driver to new code. and when use the same kernel to bootup
,when switch rootfs by /linuxrc. it
get messages "bad magic number for tty struct ..." . but if i manual
insmod my flash driiver, it works.and also if ii remove the
"register_sysctl_table(pm_dir_table, 1)", it works too.

so what will cause this situation? (i have check the flash driver
code, not find special code).

BTW: the initrd is made with busybox instead of nash.


thanks for any hints


Best Regards

zhuzhenhua

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-02-03  9:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-03  9:31 whatis the connection with sysctl and "bad magic number for tty struct ..." ? zhuzhenhua

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.