|
|
| Re: Linux Kernelp 3.2.2 and kexec problems [message #453 is a reply to message #375] |
Mon, 30 January 2012 19:45   |
glevand
Messages: 955 Registered: July 2011 Location: SONY
|
Gitbrew God |
|
|
System Manager service Ring Buzzer is really helpful with debugging kernel problems.
It can be used very early during Linux kernel boot, e.g. when gelic udbg is not available.
It worked even in arch/powerpc/kernel/setup_64.c:early_setup or
arch/powerpc/kernel/misc_64.S:kexec_sequence.
#include <asm/ps3.h>
#include <asm/lv1call.h>
void sysmgr_beep(void)
{
unsigned char data[] = {
/* header */
0x01, /* version */
0x10, /* header length */
0x00, 0x00,
0x00, 0x00, 0x00, 0x08, /* payload length */
0x00, 0x15, /* sid */
0x00, 0x00,
0x00, 0x00, 0x00, 0x00, /* tag */
/* payload */
0x01, /* version */
0x29, /* arg1 */
0x0a, /* arg2 */
0x00,
0x00, 0x00, 0x01, 0xb6 /* arg3 */
};
u64 written;
int i;
//lv1_write_virtual_uart(2, ps3_mm_phys_to_lpar(__pa(data)), sizeof(data), &written);
lv1_write_virtual_uart(2, __pa(data), sizeof(data), &written);
for (i = 0; i < 10000; i++)
__asm__ __volatile__ ("nop");
}
[Updated on: Mon, 30 January 2012 19:54] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Linux Kernelp 3.2.2 and kexec problems [message #467 is a reply to message #466] |
Tue, 31 January 2012 18:55   |
glevand
Messages: 955 Registered: July 2011 Location: SONY
|
Gitbrew God |
|
|
=== IMPORTANT ============================
Use 'passwd' to set your login password
this will disable telnet and enable SSH
------------------------------------------
BusyBox v1.19.3 (2012-01-31 17:28:21 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.
_____ _____ _____
| _ || ___||___ |
| __||___ ||___ |
|__| |_____||_____|
L I N U X
root@ps3-linux:/# uname -a
Linux ps3-linux 3.2.2 #1 SMP Tue Jan 31 17:35:06 CET 2012 ppc64 GNU/Linux
root@ps3-linux:/# iwconfig wlan0
wlan0 IEEE 802.11bg Mode:Managed Channel:0
Access Point: Not-Associated
Encryption key:off
root@ps3-linux:/#
[Updated on: Tue, 31 January 2012 18:55] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
| Re: Linux Kernelp 3.2.2 and kexec problems [message #540 is a reply to message #514] |
Fri, 03 February 2012 21:10   |
glevand
Messages: 955 Registered: July 2011 Location: SONY
|
Gitbrew God |
|
|
And again i'm hunting kexec bugs.
When i attach my USB keyboard then kexec hanged in
kernel/kexec.c:kexec_load
kernel_restart_prepare
device_shutdown
When i kexec a new kernel from telnet without attaching my USB keyboard but with an attached USB drive then it works fine. Very odd.
[Updated on: Fri, 03 February 2012 21:11] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|