Unable to mount root fs on unknown-block(1,0)

2007-04-15 Thread gshan
Hi Folks, I got problem to boot linux 2.6.25 using u-boot-1.1.4, any ideas? - U-Boot 1.1.4 (Apr 14 2007 - 00:57:01) CPU: XPC850xxZTB at 50 MHz: 2 kB I-Cache 1 kB D-Cache Board: ### No HW ID - assuming TQM8xxL DRAM: 8 MB FLASH: 4 MB In:serial Out: serial Err:

Re: Unable to mount root fs on unknown-block(1,0)

2007-04-15 Thread gshan
Sorry, the version of linux should be 2.6.15 for MPC8xx, which is included in ELDK. gshan wrote: Hi Folks, I got problem to boot linux 2.6.25 using u-boot-1.1.4, any ideas? - U-Boot 1.1.4 (Apr 14 2007 - 00:57:01) CPU: XPC850xxZTB at 50 MHz: 2 kB I-Cache 1 kB D

Re: PROBLEM: kernel 2.6.20.6 build failed for ppc board chestnut(ibm ppc 750GX/FX)

2007-04-15 Thread gshan
I'm using eldk4, there are no problems. Wang, Baojun wrote: PROBLEM: linux kernel 2.6.20.6 build failed for ppc board chestnut(ibm ppc 750GX/FX) STEPS I followed: 1) make ARCH=ppc CROSS_COMPILE=ppc_4xx- chestnut_defconfig # toolchain from eldk 4.1 2) make ARCH=ppc CROSS_COMPILE=ppc_4xx-

help me on 2.6.15 kernel on MPC850

2007-04-12 Thread gshan
Hey Guys, The CPU was spinning when executing in head_8xx.S::initial_mmu. I have located the instruction that cause the spinning through on-board leds. Do you have any ideas? #ifdef CONFIG_8xx_COPYBACK mtspr SPRN_DC_CST, r8 The spinning was

do_coredump and O_NOFOLLOW

2007-08-14 Thread gshan
Hi All, I found that O_NOFOLLOW is used for opened core file in Linux 2.6.10. This means the core file couldn't be a symbolic link. However, I want to use symbolic link for core file, So I plan to remove O_NOFOLLOW as follows, but I'm not sure there are any impacts introduced by the change?

Re: do_coredump and O_NOFOLLOW

2007-08-15 Thread gshan
Bernd Eckenfels wrote: In article [EMAIL PROTECTED] you wrote: I found that O_NOFOLLOW is used for opened core file in Linux 2.6.10. I think that is for security reasons, otherwise one has to (atomically) check who is the owner of the symlink and where it points to. If you dont have

NFS client show nothing for ls command.

2007-08-16 Thread gshan
Hi All, Recently, I got a funny problem that my NFS client can't show some of mounted directories. These directories that can't be showed by ls command have great deals of files. For example. I have a directory on NFS server log and there are 69 files. I can't show it's child files through

kernel crashes inside MV643xx driver

2007-08-20 Thread gshan
Hi All, After I started the NFS server, it crashed: 3Badness in local_bh_enable at /home/cli4/sandbox/main/TelicaRoot/components/mvlinux/cge/devkit/lsp/7xx/linux/kernel/softirq.c:195 Badness in local_bh_enable at

Questions on printk and console_drivers

2007-04-26 Thread gshan
Hi Folks, I got a questions on printk and console_drivers. I have 2 serial ports and want to see output from all of them. So I registered 2 console driver using register_console. I can see the output from serial port 1 after it was registered, but can't see any output from it after serial

about XMON of 2.6 Linux kernel

2007-07-09 Thread gshan
Hi All, I have 2 questions on XMON of 2.6 kernel. Any answers are appreciated! 1) Any engineer is still developing for XMON and who is the maintainer? 2) When I issued command ls, XMON told me there are no sysmap or sysmap_size. Do you know how to include the sysmap? mon ls NULL: No sysmap

Questions on one PowerPC assembly instruction from hash_page

2007-06-18 Thread gshan
Hey Guys, I can't understand the following instructions from arch/ppc/mm/hashtable.S::hash_page. If I got the right design, the following instruction is to get the PMD (Page Middle Descritor) because Linux for 32-bits PowerPC cut page table into 3 domains: root, PMD, PTE. The top bits (22 to

Re: Questions on one PowerPC assembly instruction from hash_page

2007-06-18 Thread gshan
Mikael Pettersson wrote: On Mon, 18 Jun 2007 16:33:22 +0800, gshan [EMAIL PROTECTED] wrote: I can't understand the following instructions from arch/ppc/mm/hashtable.S::hash_page. If I got the right design, the following instruction is to get the PMD (Page Middle Descritor) because Linux

Is kdb package available for 2.6 Linux on PowerPC?

2007-06-18 Thread gshan
Hey Guys, Recently, I need work on my TTY (console) driver so that it could support kdb. I didn't have much experiences on linux kdb. So my questions are: 1) 2.6 Linux for PowerPC could support kdb? where can I find the source code? 2) If 2.6 Linux for PowerPC doesn't support kdb, where

How to access kdb explicitly

2007-06-01 Thread gshan
All, I want to access kdb explicitly. For example, I could recognize the special characters inside console driver. If the the special characters are detected , then drop to kdb immediately. However, I don't know what should I to do after the special characters received. Thanks, Gavin - To

Re: How to access kdb explicitly

2007-06-01 Thread gshan
Jiri Kosina wrote: On Fri, 1 Jun 2007, gshan wrote: I want to access kdb explicitly. For example, I could recognize the special characters inside console driver. If the the special characters are detected , then drop to kdb immediately. However, I don't know what should I to do after

Problems with mounting flash partition with jffs2

2007-06-25 Thread gshan
Hey Guys, Today, I got a strange problems. When I tried to mount a the last 2 flash partitions, following errors happened. Any ideas are appreciated. # cat /proc/mtd dev:size erasesize name mtd0: 0010 0001 boot mtd1: 0020 0001 ro mtd2: 0010 0001 diag-var-log

bugs in __schedule()

2007-06-26 Thread gshan
Anybody has suggestions on this crash? [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60] mv_sw_read_reg+0x178/0x17c [c02296fc] mvSwIntrTasklet+0x128/0x744 [c0020afc] tasklet_action+0x7c/0xec [c00204f4] ___do_softirq+0x80/0x11c

Re: bugs in __schedule()

2007-06-26 Thread gshan
The code is written by myself. 2 questions: 1) tasklet couldn't sleep? 2) It is because the tasklet take a semaphore? Thanks, Gavin Alexey Dobriyan wrote: On 6/26/07, gshan [EMAIL PROTECTED] wrote: Anybody has suggestions on this crash? talk to whoever supplied the following into your

Re: bugs in __schedule()

2007-06-26 Thread gshan
] mv_sw_read_smi_reg+0x84/0x1ac [c0226adc] mv_sw_read_reg+0xf4/0x17c Satyam Sharma wrote: Hi Gavin, On 6/26/07, gshan [EMAIL PROTECTED] wrote: Anybody has suggestions on this crash? [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: Hi Gavin, On 6/26/07, gshan [EMAIL PROTECTED] wrote: Here is the all output I have: # ifconfig mgt0 10.0.51.27 BUG: scheduling while atomic: exe/0x0101/752 Yup, you can't sleep in taskets, they're atomic. caller is schedule+0x4c/0xe4 Call trace: [c02dc4dc

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: On 6/26/07, gshan [EMAIL PROTECTED] wrote: Thanks, Satyam. So I can replace the tasklet with kernel thread? That depends on what you want to do ... [ BTW: I should correct a typo in my original reply -- I should've said scheduling while atomic, and not scheduling while

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: On 6/26/07, gshan [EMAIL PROTECTED] wrote: I mean kernel thread could sleep, but tasklet can't. If so, it meet my requirements. That's not really a justification to convert a tasklet to a kernel thread. I suspect the simplest solution to your problem would be to simply

Re: 2.6 Linux for PowerPC supports kdb?

2007-06-27 Thread gshan
Randy Dunlap wrote: On Tue, 26 Jun 2007 23:03:55 -0400 Shan, Guo Wen (Gavin) wrote: Does anybody knew if 2.6 linux for PowerPC supports kdb? PowerPC isn't listed AFAICT: ftp://oss.sgi.com/www/projects/kdb/download/v4.4/README I.e., all that I see are i386, x86_64, and ia64. ---

Big sized packets have been dropped strangly

2007-07-04 Thread gshan
Hey Guys, I got a strange problem recently but no ideas, so to post the question here. We have a FPGA what finish ATM AAL5 to ethernet frame, and CPU receives IP packets from it. The interface based on the FPGA (called sar0) has been bound with several IP addresses. When the MTU of the

How to produce a core

2007-05-23 Thread gshan
This morning, I tried command kill -7 [pid] but didn't see the core file. Anybody has ideas? bash-2.05b# ps PID USER COMMAND 1 0init 2 0[ksoftirqd/0] 3 0[watchdog/0] 4 0[events/0] 5 0[khelper] 6 0[kthread] 36 0

Re: How to produce a core

2007-05-23 Thread gshan
Willy Tarreau wrote: On Thu, May 24, 2007 at 11:28:15AM +0800, gshan wrote: This morning, I tried command kill -7 [pid] but didn't see the core file. Anybody has ideas? do the following before starting your program : # ulimit -c unlimited You can check before and after that the core

kernel crash in timer interrupt handler

2007-05-24 Thread gshan
The kernel crashed inside timer handler. Anyone has ideas? The Linux I'm using is 2.6.19. Thanks in advance! BUG: soft lockup detected on CPU#0! Call Trace: [C0395EA0] [C000C308] show_stack+0x58/0x180 (unreliable) [C0395ED0] [C0043A18] softlockup_tick+0xac/0xc8 [C0395EF0] [C00223C4]

Change IP TOS inside ethernet driver

2007-05-30 Thread gshan
I want to change the IP TOS inside ioctl callback of ethernet driver, but don't know how to do this. Anybody has ideas? Thanks in advance, Gavin. - To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to [EMAIL PROTECTED] More majordomo info at

How to include sysmap in 2.6 kernel image

2007-07-18 Thread gshan
Hey Guys, Recently, I'm working on xmon. The xmon needs sysmap for symbol lookup, however I don't know how to include sysmap to uImage. I looked the kernel source code for a while and found the kernel image need contain struct bi_record *rec. Everybody knows how to include this?

It's a bug of printk?

2007-05-02 Thread gshan
Hi, I need 2 consoles for 2 individual serial ports that is registered by register_console(). The console for the 1st serial port is registered at first. I can see the output from the serial port #1 before the console for the 2nd serial port is registered. However, I saw duplicated output

Questions on one PowerPC assembly instruction from hash_page

2007-06-18 Thread gshan
Hey Guys, I can't understand the following instructions from arch/ppc/mm/hashtable.S::hash_page. If I got the right design, the following instruction is to get the PMD (Page Middle Descritor) because Linux for 32-bits PowerPC cut page table into 3 domains: root, PMD, PTE. The top bits (22 to

Re: Questions on one PowerPC assembly instruction from hash_page

2007-06-18 Thread gshan
Mikael Pettersson wrote: On Mon, 18 Jun 2007 16:33:22 +0800, gshan <[EMAIL PROTECTED]> wrote: I can't understand the following instructions from arch/ppc/mm/hashtable.S::hash_page. If I got the right design, the following instruction is to get the PMD (Page Middle Descritor) because

Is kdb package available for 2.6 Linux on PowerPC?

2007-06-18 Thread gshan
Hey Guys, Recently, I need work on my TTY (console) driver so that it could support kdb. I didn't have much experiences on linux kdb. So my questions are: 1) 2.6 Linux for PowerPC could support kdb? where can I find the source code? 2) If 2.6 Linux for PowerPC doesn't support kdb, where

Questions on printk and console_drivers

2007-04-26 Thread gshan
Hi Folks, I got a questions on printk and console_drivers. I have 2 serial ports and want to see output from all of them. So I registered 2 console driver using register_console. I can see the output from serial port 1 after it was registered, but can't see any output from it after serial

help me on 2.6.15 kernel on MPC850

2007-04-12 Thread gshan
Hey Guys, The CPU was spinning when executing in head_8xx.S::initial_mmu. I have located the instruction that cause the spinning through on-board leds. Do you have any ideas? #ifdef CONFIG_8xx_COPYBACK mtspr SPRN_DC_CST, r8 <<< The spinning was

Unable to mount root fs on unknown-block(1,0)

2007-04-15 Thread gshan
Hi Folks, I got problem to boot linux 2.6.25 using u-boot-1.1.4, any ideas? - U-Boot 1.1.4 (Apr 14 2007 - 00:57:01) CPU: XPC850xxZTB at 50 MHz: 2 kB I-Cache 1 kB D-Cache Board: ### No HW ID - assuming TQM8xxL DRAM: 8 MB FLASH: 4 MB In:serial Out: serial Err:

Re: Unable to mount root fs on unknown-block(1,0)

2007-04-15 Thread gshan
Sorry, the version of linux should be 2.6.15 for MPC8xx, which is included in ELDK. gshan wrote: Hi Folks, I got problem to boot linux 2.6.25 using u-boot-1.1.4, any ideas? - U-Boot 1.1.4 (Apr 14 2007 - 00:57:01) CPU: XPC850xxZTB at 50 MHz: 2 kB I-Cache 1 kB D

Re: PROBLEM: kernel 2.6.20.6 build failed for ppc board chestnut(ibm ppc 750GX/FX)

2007-04-15 Thread gshan
I'm using eldk4, there are no problems. Wang, Baojun wrote: PROBLEM: linux kernel 2.6.20.6 build failed for ppc board chestnut(ibm ppc 750GX/FX) STEPS I followed: 1) make ARCH=ppc CROSS_COMPILE=ppc_4xx- chestnut_defconfig # toolchain from eldk 4.1 2) make ARCH=ppc CROSS_COMPILE=ppc_4xx-

How to produce a core

2007-05-23 Thread gshan
This morning, I tried command "kill -7 [pid]" but didn't see the core file. Anybody has ideas? bash-2.05b# ps PID USER COMMAND 1 0init 2 0[ksoftirqd/0] 3 0[watchdog/0] 4 0[events/0] 5 0[khelper] 6 0[kthread] 36 0

Re: How to produce a core

2007-05-23 Thread gshan
Willy Tarreau wrote: On Thu, May 24, 2007 at 11:28:15AM +0800, gshan wrote: This morning, I tried command "kill -7 [pid]" but didn't see the core file. Anybody has ideas? do the following before starting your program : # ulimit -c unlimited You can check before

kernel crash in timer interrupt handler

2007-05-24 Thread gshan
The kernel crashed inside timer handler. Anyone has ideas? The Linux I'm using is 2.6.19. Thanks in advance! BUG: soft lockup detected on CPU#0! Call Trace: [C0395EA0] [C000C308] show_stack+0x58/0x180 (unreliable) [C0395ED0] [C0043A18] softlockup_tick+0xac/0xc8 [C0395EF0] [C00223C4]

Change IP TOS inside ethernet driver

2007-05-30 Thread gshan
I want to change the IP TOS inside ioctl callback of ethernet driver, but don't know how to do this. Anybody has ideas? Thanks in advance, Gavin. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at

How to access kdb explicitly

2007-06-01 Thread gshan
All, I want to access kdb explicitly. For example, I could recognize the special characters inside console driver. If the the special characters are detected , then drop to kdb immediately. However, I don't know what should I to do after the special characters received. Thanks, Gavin - To

Re: How to access kdb explicitly

2007-06-01 Thread gshan
Jiri Kosina wrote: On Fri, 1 Jun 2007, gshan wrote: I want to access kdb explicitly. For example, I could recognize the special characters inside console driver. If the the special characters are detected , then drop to kdb immediately. However, I don't know what should I to do after

It's a bug of printk?

2007-05-02 Thread gshan
Hi, I need 2 consoles for 2 individual serial ports that is registered by register_console(). The console for the 1st serial port is registered at first. I can see the output from the serial port #1 before the console for the 2nd serial port is registered. However, I saw duplicated output

Problems with mounting flash partition with jffs2

2007-06-25 Thread gshan
Hey Guys, Today, I got a strange problems. When I tried to mount a the last 2 flash partitions, following errors happened. Any ideas are appreciated. # cat /proc/mtd dev:size erasesize name mtd0: 0010 0001 "boot" mtd1: 0020 0001 "ro" mtd2: 0010 0001

bugs in __schedule()

2007-06-26 Thread gshan
Anybody has suggestions on this crash? [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0226b60] mv_sw_read_reg+0x178/0x17c [c02296fc] mvSwIntrTasklet+0x128/0x744 [c0020afc] tasklet_action+0x7c/0xec [c00204f4] ___do_softirq+0x80/0x11c

Re: bugs in __schedule()

2007-06-26 Thread gshan
The code is written by myself. 2 questions: 1) tasklet couldn't sleep? 2) It is because the tasklet take a semaphore? Thanks, Gavin Alexey Dobriyan wrote: On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Anybody has suggestions on this crash? talk to whoever supplied the following int

Re: bugs in __schedule()

2007-06-26 Thread gshan
] mv_sw_read_smi_reg+0x84/0x1ac [c0226adc] mv_sw_read_reg+0xf4/0x17c Satyam Sharma wrote: Hi Gavin, On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Anybody has suggestions on this crash? [c02dc4dc] __schedule+0x654/0x788 [c02dc6f4] schedule+0x4c/0xe4 [c02dbe24] __compat_down+0xc8/0x12c [c0

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: Hi Gavin, On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Here is the all output I have: # ifconfig mgt0 10.0.51.27 BUG: scheduling while atomic: exe/0x0101/752 Yup, you can't sleep in taskets, they're atomic. caller is schedule+0x4c/0xe4 Call trace: [c0

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: Thanks, Satyam. So I can replace the tasklet with kernel thread? That depends on what you want to do ... [ BTW: I should correct a typo in my original reply -- I should've said "scheduling while atomic", and

Re: bugs in __schedule()

2007-06-26 Thread gshan
Satyam Sharma wrote: On 6/26/07, gshan <[EMAIL PROTECTED]> wrote: I mean kernel thread could sleep, but tasklet can't. If so, it meet my requirements. That's not really a justification to convert a tasklet to a kernel thread. I suspect the simplest solution to your problem

Re: 2.6 Linux for PowerPC supports kdb?

2007-06-27 Thread gshan
Randy Dunlap wrote: On Tue, 26 Jun 2007 23:03:55 -0400 Shan, Guo Wen (Gavin) wrote: Does anybody knew if 2.6 linux for PowerPC supports kdb? PowerPC isn't listed AFAICT: ftp://oss.sgi.com/www/projects/kdb/download/v4.4/README I.e., all that I see are i386, x86_64, and ia64. ---

How to include sysmap in 2.6 kernel image

2007-07-18 Thread gshan
Hey Guys, Recently, I'm working on xmon. The xmon needs sysmap for symbol lookup, however I don't know how to include sysmap to uImage. I looked the kernel source code for a while and found the kernel image need contain struct bi_record *rec. Everybody knows how to include this?

NFS client show nothing for "ls" command.

2007-08-16 Thread gshan
Hi All, Recently, I got a funny problem that my NFS client can't show some of mounted directories. These directories that can't be showed by "ls" command have great deals of files. For example. I have a directory on NFS server log and there are 69 files. I can't show it's child files

kernel crashes inside MV643xx driver

2007-08-20 Thread gshan
Hi All, After I started the NFS server, it crashed: <3>Badness in local_bh_enable at /home/cli4/sandbox/main/TelicaRoot/components/mvlinux/cge/devkit/lsp/7xx/linux/kernel/softirq.c:195 Badness in local_bh_enable at

Big sized packets have been dropped strangly

2007-07-04 Thread gshan
Hey Guys, I got a strange problem recently but no ideas, so to post the question here. We have a FPGA what finish ATM AAL5 to ethernet frame, and CPU receives IP packets from it. The interface based on the FPGA (called sar0) has been bound with several IP addresses. When the MTU of the

about XMON of 2.6 Linux kernel

2007-07-09 Thread gshan
Hi All, I have 2 questions on XMON of 2.6 kernel. Any answers are appreciated! 1) Any engineer is still developing for XMON and who is the maintainer? 2) When I issued command "ls", XMON told me there are no sysmap or sysmap_size. Do you know how to include the sysmap? mon> ls : No sysmap

do_coredump and O_NOFOLLOW

2007-08-14 Thread gshan
Hi All, I found that O_NOFOLLOW is used for opened core file in Linux 2.6.10. This means the core file couldn't be a symbolic link. However, I want to use symbolic link for core file, So I plan to remove O_NOFOLLOW as follows, but I'm not sure there are any impacts introduced by the change?

Re: do_coredump and O_NOFOLLOW

2007-08-15 Thread gshan
Bernd Eckenfels wrote: In article <[EMAIL PROTECTED]> you wrote: I found that O_NOFOLLOW is used for opened core file in Linux 2.6.10. I think that is for security reasons, otherwise one has to (atomically) check who is the owner of the symlink and where it points to. If you dont have