Skip to contentSkip to conversation

two minor c3k bugs

parisc-linux Grant Grundler 2 participants 2 messages Dec 1, 2001 – Dec 2, 2001 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 2 lines · Helge Deller

Forwarded to the list, since it may be of interest for others too:

sure.

Quoted 1 line · Grant Grundler

...

Quoted 2 lines

Hmm, I still have 2.4.16-pa4 here and it definately shows "2.4.16-pa4" for me. Maybe a SMP problem ?

No. I only build UP kernels for the C3k.

Quoted 2 lines

You could try to double the size of the udelay() parameter in lcd_print to see if it cures your problem.

After a reboot it worked fine. Could be a timing problem. Since I can't reproduce it reliably and it's minor, I'm not going to chase this. Someday when I get bored and ate too much chocolate (dark, organic, Belgian from Trader Joe's), I might try to run IRC on the LCD... ;^)

...

Quoted 2 lines

Currently I use "kill_proc(1, SIGINT, 0);" to kill the init-process - which is normally a reboot-command and gives the above messages.

Ok. that makes sense.

Quoted 2 lines

That's AFAICS not the right solution, but nfortunately I don't know how to do it correct right now.

./kernel/sys.c: printk(KERN_EMERG "Power down.\n");

That chunk of code seems to do the right thing:

        case LINUX_REBOOT_CMD_POWER_OFF:
                notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF, NULL);
                printk(KERN_EMERG "Power down.\n");
                machine_power_off();
                do_exit(0);
                break; 

I know that msg since I regularly "powerdown" my c3k. Perhaps replicate that code?

cheers,
grant

#2 lore raw

Hi Grant,

Quoted 13 lines · Grant Grundler
Quoted 2 lines

Currently I use "kill_proc(1, SIGINT, 0);" to kill the init-process - which is normally a reboot-command and gives the above messages.

Ok. that makes sense.

Quoted 2 lines

That's AFAICS not the right solution, but nfortunately I don't know how to do it correct right now.

./kernel/sys.c: printk(KERN_EMERG "Power down.\n");

That chunk of code seems to do the right thing:
case LINUX_REBOOT_CMD_POWER_OFF:
notifier_call_chain(&reboot_notifier_list, SYS_POWER_OFF,

Quoted 7 lines
NULL); printk(KERN_EMERG "Power down.\n");
                machine_power_off();
                do_exit(0);
                break;

I know that msg since I regularly "powerdown" my c3k. Perhaps replicate that code?

Yes, that's the right code-path, but sadly calling this function would immediately power off the computer without doing a nice system shutdown.
I'll need to investigate how to first find the PID of the init process and then how to tell it to shut down the system cleanly.

Helge

Quoted 2 lines

cheers,
grant