kernel hangs after jffs mounting

2007-03-15 Thread Nethra
hi, I m using Montavista linux kernel 2.6.10, boot-loader is u-boot-1.1.2 and flash is MBM29LV160T(Fujitsu MBM29LV160T). After nfs mounting, jffs2 mounting is done with empty partition. But after jffs2 mounting kernel hangs... [EMAIL PROTECTED]:~# mount -t jffs2 /dev/mtdblock0 /mnt [EMAIL

Re: UartLite for MontaVista - virtex4

2007-03-15 Thread Andrei Konovalov
Hello, Martin, Tim wrote: Could you tell me where exactly to get the "xuartlite_serial.c" ? I could not find "xuartlite_serial.c" in the drivers folder generated by EDK . (\ppc405_0\libsrc\linux_mvl31_v1_01_b\linux\drivers\char\xilinx_uartlite ) Here's the relevant snippet for xu

Re: Howto read I2C on MPC5200 Lite

2007-03-15 Thread Domen Puncer
On 11/03/07 01:55 +0100, Matthias Fechner wrote: > Hi, > > * Matthias Fechner <[EMAIL PROTECTED]> [10-03-07 00:42]: > > It seems now that everything works fine. I will check it for the next > > days. And will give some feedback. > > ok, I checked now the driver some time at it failed. So it seems

[PATCH 0/5 v2] MPC5200 and Lite5200b low power modes

2007-03-15 Thread Domen Puncer
Hi! Some fixes, improvements from last time: - saving/restoring of some registers inside sleep code (so bestcomm and pic patches can be dropped, yay) - improvements in FEC code for deep-sleep - set up wakeup GPIO so Efika can wake too - patch against latest u-boot (doh) Patches are based on la

[PATCH 1/5] mpc52xx suspend: UART

2007-03-15 Thread Domen Puncer
MPC52xx uart power management. Not sure how exactly this should be written, but this seems to work, and works around a few seconds delay in resume. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> Index: grant.git/drivers/serial/mpc52xx_uart.c =

[PATCH 2/5] mpc52xx suspend: FEC (ethernet)

2007-03-15 Thread Domen Puncer
Suspend and resume for FEC on MPC52xx. Note that resume is a bit different for lite5200b low-power mode. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- drivers/net/fec_mpc52xx/fec.c | 60 -- drivers/net/fec_mpc52xx/fec_phy.c | 17 ++ dri

[PATCH 3/5] mpc52xx suspend: USB

2007-03-15 Thread Domen Puncer
Trivial suspend and resume OF OHCI. On MPC52xx turn off and on power to ports. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> Index: grant.git/drivers/usb/host/ohci-ppc-of.c === --- grant.git.orig/drivers/usb/host/ohci-ppc-of.c +++

[PATCH 4/5] mpc52xx suspend: deep-sleep

2007-03-15 Thread Domen Puncer
Implement deep-sleep on MPC52xx. SDRAM is put into self-refresh with help of SRAM code (alternatives would be code in FLASH, I-cache). Interrupt code must also not be in SDRAM, so put it in I-cache. MPC52xx core is static, so contents will remain intact even with clocks turned off. Signed-off-by:

[PATCH] icecube/lite5200b: wakeup from low-power support

2007-03-15 Thread Domen Puncer
U-Boot part of Lite5200b low power mode support. Puts SDRAM out of self-refresh and transfers control to address saved at physical 0x0. --- board/icecube/icecube.c | 50 1 file changed, 50 insertions(+) Index: u-boot.git/board/icecube/icecube.c

[PATCH 5/5] lite5200b suspend: low-power mode

2007-03-15 Thread Domen Puncer
Low-power mode implementation for Lite5200b. Some I/O registers are also saved here. A patch to U-Boot that wakes up SDRAM, and transfers control to address saved at physical 0x0 is needed. Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> --- arch/powerpc/platforms/52xx/Makefile |3

Re: [PATCH 3/5] mpc52xx suspend: USB

2007-03-15 Thread Grant Likely
On 3/15/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > Trivial suspend and resume OF OHCI. > On MPC52xx turn off and on power to ports. > > > Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> Nak; see below > > Index: grant.git/drivers/usb/host/ohci-ppc-of.c > ===

Re: [PATCH 2/5] mpc52xx suspend: FEC (ethernet)

2007-03-15 Thread Grant Likely
On 3/15/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > Suspend and resume for FEC on MPC52xx. > > Note that resume is a bit different for lite5200b low-power mode. > > > Signed-off-by: Domen Puncer <[EMAIL PROTECTED]> This of course cannot be applied until a mpc5200 ethernet driver is actually in m

Wrong board info for ML403.

2007-03-15 Thread Leonid
Hi: I'm trying to bring up Linux on Xilinx ML403 reference board. I took 2.6.19.2 kernel from DENX. EDK project for ML403 I took from official Xilinx site. I could bring up u-boot on the board, everything is working fine (see ml403.h file attached). Then I compiled uImage for kernel and tried to

Re: [PATCH 5/5] lite5200b suspend: low-power mode

2007-03-15 Thread Grant Likely
On 3/15/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > Low-power mode implementation for Lite5200b. > Some I/O registers are also saved here. > > A patch to U-Boot that wakes up SDRAM, and transfers control > to address saved at physical 0x0 is needed. I don't see any structural problems with this

Exception in kernel mode

2007-03-15 Thread Charles Krinke
I have a PPC8241 which does an Oops: Exception in kernel mode, sig: 4 [#1] PREEMPT NIP: 0900 LR: C00E579C CTR: 3A55 When doing a 'tar -xvzf'. The NIP is pointing at the decrementer interrupt, I believe. As I understand the decrementer, this is basically the timer tick in the ppc and goe

Re: Exception in kernel mode

2007-03-15 Thread Sergei Shtylyov
Hello. Charles Krinke wrote: > I have a PPC8241 which does an > Oops: Exception in kernel mode, sig: 4 [#1] > PREEMPT > NIP: 0900 LR: C00E579C CTR: 3A55 > When doing a 'tar -xvzf'. The NIP is pointing at the decrementer > interrupt, I believe. > As I understand the decrementer, this i

Re: [PATCH 5/5] lite5200b suspend: low-power mode

2007-03-15 Thread Domen Puncer
On 15/03/07 08:09 -0600, Grant Likely wrote: > On 3/15/07, Domen Puncer <[EMAIL PROTECTED]> wrote: > >Low-power mode implementation for Lite5200b. > >Some I/O registers are also saved here. > > > >A patch to U-Boot that wakes up SDRAM, and transfers control > >to address saved at physical 0x0 is ne

Re: U-boot with flat device tree

2007-03-15 Thread Jon Loeliger
On Wed, 2007-03-14 at 16:42, Benedict, Michael wrote: > dtc- development snapshot "dtc-20060419.tar.gz" and recent git > sources > U-boot - 1.2.0, git sources from denx.de, and git sources from freescale > Kernel - 2.6.20.1, 2.6.20.2, and freescale git sources Do yourself a favor and get an u

RE: Exception in kernel mode

2007-03-15 Thread Charles Krinke
Obviously, you've got an exception in the decrementer exception handler itself -- and this was something like program check exception, judging on the signal you've got (SIGILL). > So, with that said: > "What might be the causes of such an exception from the decrementer in a > 2.6.17.11 ppc

Re: Exception in kernel mode

2007-03-15 Thread Sergei Shtylyov
Hello. Charles Krinke wrote: > Obviously, you've got an exception in the decrementer exception > handler > itself -- and this was something like program check exception, judging > on the > signal you've got (SIGILL). >>So, with that said: >>"What might be the causes of such an exception f

RE: Exception in kernel mode

2007-03-15 Thread Charles Krinke
> mtspr SPRN_SPRG0, r10 > mtspr SPRN_SPRG1, r11 > Which is, I believe, moving r10 to SPRG0 and r11 to SPRG1. > So, how do we know that r10 and r11 are always valid in an interrupt > context? Are we setting aside r10 and r11 somewhere else in That doesn't matter to kernel at all -- they are

Re: Exception in kernel mode

2007-03-15 Thread Kumar Gala
On Mar 15, 2007, at 1:55 PM, Charles Krinke wrote: > >> mtspr SPRN_SPRG0, r10 >> mtspr SPRN_SPRG1, r11 > >> Which is, I believe, moving r10 to SPRG0 and r11 to SPRG1. > >> So, how do we know that r10 and r11 are always valid in an interrupt >> context? Are we setting aside r10 and r11 somewhere e

RE: Exception in kernel mode

2007-03-15 Thread Charles Krinke
Can you post the oops that you are seeing, what you need to find out is what instruction image that is causing the illegal instruction exception. Once you have that it will be easier to figure out what's going on. - k Dear Kumar: Here is the Oops, and thank you for looking at this. Thi

RE: Exception in kernel mode

2007-03-15 Thread Charles Krinke
I ran a couple of more tests and the system did not Oops in the timer_interupt except for the first test this morning. The last two times, the NIP was Oops: Exception in kernel mode, sig: 4 [#1] PREEMPT NIP: C002CE68 LR: C002CEC8 CTR: 3B25 REGS: c3119a00 TRAP: 0700 Not tainted (2.6.17.11)

generation of system tick on 8xx

2007-03-15 Thread DI BACCO ANTONIO - technolabs
Anyone knows which device is used to generate the system tick on 8xx processor? Bye, Antonio. ___ Linuxppc-embedded mailing list Linuxppc-embedded@ozlabs.org https://ozlabs.org/mailman/listinfo/linuxppc-embedded

Re: generation of system tick on 8xx

2007-03-15 Thread Wolfgang Denk
In message <[EMAIL PROTECTED]> you wrote: > > Anyone knows which device is used to generate the system tick on 8xx > processor? DEC Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, HRB 165235 Munich, CEO: Wolfgang Denk Office: Kirchenstr. 5, D-82194 Groebenzell,

u-boot+linux for ML403 board.

2007-03-15 Thread Leonid
Hi: Does anybody use u-boot+linux on ML403 board? If yes, can somebody give me kernel or kernel patch to any open source kernel tree (DENX or kernel.org). I couldn't prepare uImage which is working with u-boot on ML403 board - it hangs forever: TFTP from server 192.168.0.141; our IP address is 1

Re: Exception in kernel mode

2007-03-15 Thread Kumar Gala
On Mar 15, 2007, at 4:17 PM, Charles Krinke wrote: > I ran a couple of more tests and the system did not Oops in the > timer_interupt except for the first test this morning. The last two > times, the NIP was > > Oops: Exception in kernel mode, sig: 4 [#1] > PREEMPT > NIP: C002CE68 LR: C002CEC8 CT

Re: Howto read I2C on MPC5200 Lite

2007-03-15 Thread Matthias Fechner
Hello Domen, * Domen Puncer <[EMAIL PROTECTED]> [15-03-07 10:57]: > Can you please try following patch. ok, I patched the kernel now and was able to read the ic2 chip 100 times successfully. I will run the programm the next 20 hours and give then a shot feedback. But the first impression is good.

How to input/output sound/audio using MontaVista Linux on ML403

2007-03-15 Thread huangxu
hi all, I am a fresh guy here, this is my first time sending mails, thanks to all in advance. I got MontaVista Linux run on Xilinx ML403(Powerpc 405, Virtex-4). after that, I am going to input/output sound upon MontaVista Linux, but I found that default kernel seems no support for audio. can