LinuxPPC-Dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Re: Warm reboot on 826x targets
From: Paul Gortmaker @ 2005-04-22 19:46 UTC (permalink / raw)
  To: Eugene Surovegin; +Cc: linuxppc-embedded

I should have asked what version of U-Boot you were using.  I've had
U-Boot 1.1.1 on this thing from the beginning, but I've heard that some
people are sticking with 1.0 on production stuff.

I've found that I can't use the watchdog timer for a reboot, since it is
"write once" (SYCPR) and I'm guessing U-Boot writes to it at boot.

As a different twist, I tried doing a reset like the m8xx does, as shown
below, but that just caused a hang as well, so I'm wondering if the
problem is more low level (board isn't set up properly, etc.)

Paul.

/*
 *This is a tweaked version of the m8xx_restart.
 */
static void
sbc82xx_restart(char *cmd)
{
        __volatile__ unsigned char dummy;
        unsigned long msr;

        volatile car_cpm2_t *cc = &cpm2_immr->im_clkrst;

        msr = mfmsr();
        mtmsr(msr & ~MSR_EE);
        __asm__ __volatile__("": : :"memory");

        /* Checkstop reset enable -- Sec. 5.3 of MPC8260UM.pdf */
        cc->car_rmr = 0x80000000;

        msr = mfmsr();
        mtmsr(msr & ~MSR_ME);

        dummy = cc->res[0];
        BUG();
}



--- Eugene Surovegin <ebs@ebshome.net> wrote:
> On Tue, Apr 12, 2005 at 11:14:35AM -0700, Paul Gortmaker wrote:
> > I've been trying to get a WRS 8265 to do a warm reboot, and found some
> > things that I am wondering about.
> > 
> > Firstly, is anyone having success on having "reboot" restart the
> machine
> > on a similar platform?
> > 
> > Secondly, the default BOOTROM_RESTART_ADDR is 0x40000104 (sbc82xx.h)
> and I
> > was wondering if this matches any platforms out there.  On this board,
> the
> > place where U-Boot lives is 0xFFF00104 -- and I've verified this by
> typing
> > "g fff00104" at the U-Boot prompt which causes U-Boot to simply
> restart.
> > 
> > I've changed the value in sbc82xx.h and now at the reboot, instead of
> a
> > register dump, it simply hangs.  Looking at m8260_gorom (in
> kernel/head.S)
> > it clears the MSR_EE (ext int. enable) bit in the MSR before jumping
> --
> > but I was wondering if there are other bits in MSR that need to be
> > cleared; e.g. instruction relocation enable and data relocation enable
> > (MSR_IR and MSR_DR). The register bits are on p76 of MPCFPE32B.pdf
> from
> > Freescale.
> > 
> > I guess if somebody even said "it works for me" then I'd have a better
> > feeling thinking that what is done to the MSR currently is sufficient.
> 
> I don't have any problems using reboot() on 8248 based board. 
> Kernel.org-based 2.4.29 tree.
> 
> I have U-Boot at 0xfe00'0000, and I use 0xfe00'0104 as a second 
> parameter for m8260_gorom. Also make sure that first parameter is also 
> correct:
> 
> 	m8260_gorom(__pa(__res), 0xfe000104);
> 
> -- 
> Eugene
> 
> 

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply

* Re: Flat OF Device Tree for ppc32 [was: Platform bus/ppc sys model...]
From: Andrei Konovalov @ 2005-04-22 17:33 UTC (permalink / raw)
  To: Jakob Viketoft
  Cc: Jon Masters, Tom Rini, Sylvain Munaut, Linux PPC Embedded list
In-Reply-To: <425E3DC6.7030007@bitsim.se>

Hi,

I've tested the Jon's patch with the changes by Jakob on ML300 board
couple days ago (just before 2.6.12-rc3) - works OK.
(got few rejects for some lite5200 files)

Thanks,
Andrei

Jakob Viketoft wrote:
> Has any more happened on this off-list, or it is just in testing-mode 
> right now?
> 
> I applied the changes to a 2.6.12-rc2 tree (with some minor rejects to 
> sort out) and it compiles and boots fine on my Memec FF1152 board with 
> the Virtex-II Pro chip (Xilinx ML300 config).
> 
> A couple of small changes to be able to use the simple boot-loader is 
> below.
> 
> Cheers!
> 
>     /Jakob
> 
> diff -ruN org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c 
> nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c
> --- org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c 
> 2005-04-04 18:38:03.000000000 +0200
> +++ nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/embed_config.c 2005-04-14 
> 11:36:49.000000000 +0200
> @@ -23,6 +23,8 @@
>  #endif
>  extern unsigned long timebase_period_ns;
> 
> +#include <syslib/fw_bdt.h>
> +
>  /* For those boards that don't provide one.
>  */
>  #if !defined(CONFIG_MBX)
> @@ -776,8 +778,7 @@
>         bd->bi_intfreq = XPAR_CORE_CLOCK_FREQ_HZ;
>         bd->bi_busfreq = XPAR_PLB_CLOCK_FREQ_HZ;
>         bd->bi_pci_busfreq = XPAR_PCI_0_CLOCK_FREQ_HZ;
> -       timebase_period_ns = 1000000000 / bd->bi_tbfreq;
> -       /* see bi_tbfreq definition in 
> arch/ppc/platforms/4xx/xilinx_ml300.h */
> +       timebase_period_ns = 1000000000 / bd->bi_intfreq;
>  }
>  #endif /* CONFIG_XILINX_ML300 */
> 
> diff -ruN org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c 
> nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c
> --- org-nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c 
> 2005-04-04 18:38:04.000000000 +0200
> +++ nobd-linux-2.6.12-rc2/arch/ppc/boot/simple/misc-embedded.c 
> 2005-04-14 10:22:38.000000000 +0200
> @@ -22,6 +22,7 @@
>  #endif
> 
>  #include "nonstdio.h"
> +#include <syslib/fw_bdt.h>
> 
>  /* The linker tells us where the image is. */
>  extern char __image_begin, __image_end;
> 
> 
> Jon Loeliger wrote:
> 
>> On Thu, 2005-04-07 at 12:49, Tom Rini wrote:
>>
>>
>>> Please post to the list as an RFC.  Thanks.
>>
>>
>>
>> Folks,
>>
>> Apologies to those who have received this notice twice.
>> I first sent it to the list where it was summarily
>> denied for size reasons.
>>
>> I have now posted a tgz file here instead:
>>
>>     http://www.jdl.com/bdt_cleanup.tgz
>>
>> What follows is my original email content.
>>
>>
>> OK, for those keeping score over on the U-Boot list, _this_
>> message is really intended to be sent to the public list. :-)
>>
>> Here (as noted above) are my diffs against a clone of
>>     http://linux.bkbits.net/linux-2.6
>> as last pulled a couple days ago. (*)
>>
>> Please consider this a Request For Comments for now.  Feel free
>> to apply it and test it out as well, of course. :-)  I'll sign-off
>> on it when it has ripened some more and gets a nod or two...
>>
>> These changes relocate almost all of the ppcboot.h definitions
>> into new files, arc/ppc/syslib/fw_bdt.[ch] and front them
>> with a new, shim interface in include/asm-ppc/firmware.h.
>>
>> There is a Kconfig option that allows you to select between
>> a "bd_t" interface and a non-existant "OF Flat dev tree"
>> interface.  Choose wisely (default) for now.  It adds the
>> new fw_bdt.o file.
>>
>> Some potential gotchas or points to note:
>>
>> - As of this patch, no interface to any board should change.
>>   This just isolates the scattered bd_t references to one place.
>>
>> - On Kumar's advice arch/ppc/boot/simple was totally ignored.
>>   For now; this round.  It can be next on the hit parade easily.
>>   It holds the last reference to ppcboot.h still.
>>
>> - Earlier cut-n-paste of some devices led to me changing a few
>>   files over in 68k land to remove some now-obsolete ppcboot.h
>>   related comments justs for completeness.
>>
>> - I've compiled uImage using defconfigs for the following boards:
>>
>>         8560_ads        cpci690         ash             redwood5
>>         8540_ads        ads_8272        TQM8260         est8260
>>         rpx8260         bseip           mbx             mpc834x_sys
>>         ocotea          lite5200        hdpu            lopec
>>         TQM860L         rpxlite         radstone_ppc7d  walnut
>>
>> - The file include/asm-ppc/ppcboot.h used to contain a nested
>>   include of linux/types.h that was tacitly used by many files.
>>   In ripping ppcboot.h out of many platform .h files, I've had
>>   to add direct #include <linux/types.h> in several places.
>>   If your board isn't listed above and it looks really broken,
>>   consider if it needs a <linux/types.h>?
>>
>>
>> Enjoy,
>> jdl
>>
>> -- 
>> (*) -- BK is dead.  Long live BK!
>>
> 
> 

^ permalink raw reply

* Status of linux-2.5-mpc52xx tree
From: Grant Likely @ 2005-04-22 17:18 UTC (permalink / raw)
  To: linuxppc-embedded, Sylvain Munaut

Sylvain, I'm wondering what the status is of the linux-2.5-mpc52xx
tree that you're maintaining.  Specifically, what patches have not yet
been merged into Linus' tree?  Also, with the whole BK debacle, have
you given any thought to what you are going to transition to?

BTW, thank you very much for the mpc52xx work that you've assembled.=20
It's been a huge boost for my work.

Finally, can anybody point me to (or send me) a snapshot (or diff from
mainline) of the linux-2.5-mpc52xx tree?  Due to corporate firewall
issues I cannot use bitkeeper.  As far as I can tell it looks like the
FEC driver has not been merged upstream yet.

Thanks,
g.

^ permalink raw reply

* Pismo (powerbook) kernel .config file
From: Van Laere Benjamin @ 2005-04-22 15:38 UTC (permalink / raw)
  To: linuxppc-dev


[-- Attachment #1.1: Type: text/plain, Size: 905 bytes --]

Hi everyone,

    I don't know if it's the best place to post this request (just tell
me if it's not), but I'm looking for a good working kernel .config file
for my powerbook Pismo. I heared the 2.4.X are the last kernels
supporting the vga port, is that true? If It is, then I'm looking for a
2.4.X and a 2.6.X series .config file. If someone could post me (or tell
where to find) those files, it would be really helpfull for me!

    Thanks.



                                    
________________________________________________________________________
                        Stop software patents! 
                                Gnu Tux
                      Linux registerd user 326571 
                        GnuPG key ID 0x73A37869 
       Thanks to avoid sending me Word or PowerPoint attachments 
________________________________________________________________________

[-- Attachment #1.2: Type: text/html, Size: 1860 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply

* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Mark A. Greer @ 2005-04-22 15:36 UTC (permalink / raw)
  To: Sam Song; +Cc: linuxppc-embedded
In-Reply-To: <20050422023020.98562.qmail@web15803.mail.cnb.yahoo.com>

Sam Song wrote:

>had, is it possible to flush the content of __log_buf
>after reset?
>

Sam,

I thought I finally noticed yesterday that you're using 2.4. If that is
the case, you want to dump "log_buf" not "__log_buf".

Mark

^ permalink raw reply

* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Grant Likely @ 2005-04-22 14:03 UTC (permalink / raw)
  To: Kishore Devireddy; +Cc: linuxppc-embedded
In-Reply-To: <2cf2641f0504201800556805d2@mail.gmail.com>

On 4/20/05, Kishore Devireddy <kishorekrd@gmail.com> wrote:
> Hi
>=20
> I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom powerpc=
 board,
> which is similar to Artis A3000 board. This board has
> mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
> flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
> U-boot for A3000 borad. U-boot worked on my board also. Next I
> compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
> linux hangs after uncompressing
>=20
> U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
>=20
> CPU:   MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB D-Cache
> Board: A3000 Local Bus at 99.999 MHz
> I2C:   ready
> DRAM:  16 MB
> FLASH: Get flash bank 0 @ 0xffc00000
> Manuf. ID @ 0xff800000: 0x00000089
> Device ID @ 0xff800001: 0x00000016
> ## Flash bank 0 at 0xffc00000 sizes: 0x00400000
> protect monitor fff00000 @ 40000
> protect environtment fffc0000 @ 20000
> ## Final Flash bank sizes: 00400000
> 4 MB
>       00  13  100b  0020  0200  ff
> In:    serial
> Out:   serial
> Err:   serial
> Net:   natsemi: EEPROM contents:
> ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
> dp83815#0
> Warning: dp83815#0 MAC addresses don't match:
> Address in SROM is         FF:FF:FF:FF:FF:FF
> Address in environment is  00:40:05:B0:F1:BA
>=20
> A3000> tftpboot 400000 uImage.eldk
> Using dp83815#0 device
> TFTP from server 192.168.1.124; our IP address is 192.168.1.54
> Filename 'uImage.eldk'.
> Load address: 0x400000
> Loading: ################################################################=
#
>        #################################################################
>        ###################
> done
> Bytes transferred =3D 757926 (b90a6 hex)
> A3000> bootm
> ## Booting image at 00400000 ...
>  Image Name:   Linux-2.4.25
>  Image Type:   PowerPC Linux Kernel Image (gzip compressed)
>  Data Size:    757862 Bytes =3D 740.1 kB
>  Load Address: 00000000
>  Entry Point:  00000000
>  Verifying Checksum ... OK
>  Uncompressing Kernel Image ... OK
>=20
> nothing happens after this until I reboot the board. I read u-boot FAQ
> and configured bd_info structure same for both u-boot and Linux. I
> found that CFG_IMMR is not applicable to MPC8245. I also used
> clocks_in_mhz variable also before loading Linux. I am stuck here.
> Could you please let me know what should I do next?

Quick check; Try 'printenv' in u-boot.  Make sure that 'bootargs'
specifies a console.  ie "bootargs=3Dconsole=3DttyS0,115200 root=3D/dev/nfs
..."

g.

^ permalink raw reply

* Support for FEC in 2.6.x Kernel - status?
From: Pawel Studencki @ 2005-04-22 12:45 UTC (permalink / raw)
  To: linuxppc-embedded

Hello,
 
could somebody give me some information about current
status of FEC support
in 2.6.x kernels for 8xx?
 
What I've already found:
-some code in arch/ppc/8xx_io, but it seems that it
isn't up to date. 
- moreover there is a patch from Pantelis Antoniou,
FEC driver was moved to
driver/net/fec_8xx. Currently I'm working with it, but
it fails in function
driver_attach called from fec_8xx_init.
- and there is also a patch to Abstract Ethernet PHY
support (using driver
model) by Andy Fleming

best regards
Pawel

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply

* RE: Preemption patch problem
From: Björn Östby @ 2005-04-22 10:47 UTC (permalink / raw)
  To: roger.larsson; +Cc: linuxppc-embedded


OK! Thanks for the info.=20
I've implemented the gfp_debug and fiddled around a bit. Memory
problems is not my specialty and the only new info attached to the error =
message is:

"This architecture does not implement dump_stack()"

...Which seems fair for a ppc.

I have however carefully studied the memfree value in /proc/meminfo and
by every instance I execute of "cat /proc/meminfo" it decreases by 8K.
Since I had ruthless much time this morning, I actually manually =
depleted the whole 32 MB with this call.. When there's about 500kb left, =
suddenly 200kb
is given back, but if I do multiple "cat":s real fast, memfree goes =
below 500kb and the kernel just starts killing processes.

Anyway, im not that keen on start hacking the kernel to get this patch=20
going. I had put my hope to some strange kernel-config option which I =
might
had missed. If anyone knows of this, please let me know.


Best regards,
Bjorn Ostby





-----Original Message-----
From: Roger Larsson [mailto:roger.larsson@norran.net]=20
Sent: den 21 april 2005 22:30
To: linuxppc-embedded@ozlabs.org
Subject: Re: Preemption patch problem


On Thursday 21 April 2005 12.08, Bj=F6rn =D6stby wrote:
> Greetings.
>
> I have been struggling with the famous preemption patch (from Robert=20
> Love) the past few days. Im using mpc823e and tried with kernels=20
> 2.4.{18,21,22,23}. The patch applies flawless and so on, but when the=20
> kernel is up and running strange memory problems start to appear like:
>
> _alloc_pages: 0-order allocation failed (gfp=3D0x1d2/0)

[
   #define __GFP_DMA       0x01
* #define __GFP_HIGHMEM   0x02
* #define __GFP_WAIT      0x10    /* Can wait and reschedule? */
   #define __GFP_HIGH      0x20    /* Should access emergency pools? */
* #define __GFP_IO        0x40    /* Can start low memory physical IO? =
*/
* #define __GFP_HIGHIO    0x80    /* Can start high mem physical IO? */
* #define __GFP_FS        0x100   /* Can call down to low-level FS? */

- - -
#define GFP_HIGHUSER    (             __GFP_WAIT | __GFP_IO | =
__GFP_HIGHIO |=20
__GFP_FS | __GFP_HIGHMEM)
- - -
]

So page_alloc is called with GFP_HIGHUSER, from where and why?

Try to find out what is causing this, set the 'vm_gfp_debug' see =
'linux/mm/page_alloc.c'

>
> Right, so... It seems like a giant memory leak of some sort, cause=20
> when I run programs the kernel goes ballistic and starts reaping=20
> processes:
>
> "VM: Killing process <name>"

Well the problem is that it actually is not getting any memory. It might =
be code that retries to allocate memory when there really are none (you =
probably do not use swap)

>
> Eventually it comes down to "VM: killing init" and then it's curtains.
>
> I know that these problems is caused by the patch since the kernel=20
> runs smooth without the patch applied. Does anyone have a clue what to =

> do here (beside let go of the patch)?

Analyze memory usage on the working non patched kernel.

/RogerL
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org =
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply

* problem with INI-9100U driver for INIC-940P SCSI controller
From: петр петров @ 2005-04-22  8:16 UTC (permalink / raw)
  To: linuxppc-embedded


                                   Hello all!
 
       My name is Alex. I am porting linux to shr4162 target. This is PPC based target. It has Inic940P SCSI
     
       controller. When attaching a SCSI disk I can monitor from time to time the folloing problem:

       even first request for disk info( vendor Id, Model, etc) fails because no interrupts are caught by cpu
   
       or scsi controller does not issue interrupts after completetion of the request. As I said this situation 

       is floating - during some Linux bootings, this request and some other basic requests( capacity request,
     
       reading partition table and ctr.) work fine. The disk itself is Ok. It works fine on analogous target, based

       on ARM920CPU and having same SCSI contrller( Inic-940P). If anybody experienced similar problems, please

       share your experience. I would appriciate much.

       Kind regards,
       Kirnasov A.

^ permalink raw reply

* RE: search in ppclinux mailing list
From: Li Yang-r58472 @ 2005-04-22  8:44 UTC (permalink / raw)
  To: петр петров,
	linuxppc-embedded

Google probably will do the similar job
using:  site:http://ozlabs.org/pipermail/linuxppc-embedded/ {keyword}

Best Regards,
Leo


> -----Original Message-----
> From: linuxppc-embedded-bounces@ozlabs.org
> [mailto:linuxppc-embedded-bounces@ozlabs.org] On Behalf Of =
=A7=E1=A7=D6=A7=E4=A7=E2
> =A7=E1=A7=D6=A7=E4=A7=E2=A7=E0=A7=D3
> Sent: Friday, April 22, 2005 4:34 PM
> To: linuxppc-embedded@ozlabs.org
> Subject: search in ppclinux mailing list
>=20
>=20
>=20
>                                       Hello all!
>=20
>      Does anybody know ppclinux mailing archives with ability to =
search by
> subject in them. I would appreciate a lot.
>=20
>      Kind regards,
>      Kirnasov A.
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded

^ permalink raw reply

* search in ppclinux mailing list
From: петр петров @ 2005-04-22  8:33 UTC (permalink / raw)
  To: linuxppc-embedded



                                      Hello all!

     Does anybody know ppclinux mailing archives with ability to search by subject in them. I would appreciate a lot.

     Kind regards,
     Kirnasov A.

^ permalink raw reply

* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Sam Song @ 2005-04-22  6:49 UTC (permalink / raw)
  To: Atit_Shah, Kishore Devireddy; +Cc: linuxppc-embedded

Atit_Shah <Atit_Shah@satyam.com> wrote:
> All I know is PSDMR is for 8260 and it pertains to
> burst mode operation. I don’t know MCCR :)

OK, get it. Your experience is about 8260 not for 
824x. 

Thanks,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply

* Re: [26-devel] v2.6 performance slowdown on MPC8xx: Measuring TLB cache misses
From: Pantelis Antoniou @ 2005-04-22  6:18 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: 26-devel, linux-ppc-embedded
In-Reply-To: <20050421185027.GB12442@logos.cnet>

Marcelo Tosatti wrote:
> On Thu, Apr 21, 2005 at 03:32:39PM -0300, Marcelo Tosatti wrote:
> 
>>Capture session of /proc/tlbmiss with 1 second interval:
> 
> 
> Forgot to attach /proc/tlbmiss patch, here it is.
> 
> 
[snip]

> 
>  

Thanks Marcelo.

I'll try to run this on my 870 board & mail the results.

Regards

Pantelis

^ permalink raw reply

* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Atit_Shah @ 2005-04-22  6:20 UTC (permalink / raw)
  To: Sam Song, Kishore Devireddy; +Cc: linuxppc-embedded

All I know is PSDMR is for 8260 and it pertains to burst mode operation. =
I don=A1=AFt know MCCR :)


-----Original Message-----
From: Sam Song [mailto:samlinuxppc@yahoo.com.cn]=20
Sent: Friday, April 22, 2005 11:05 AM
To: Atit_Shah; Kishore Devireddy
Cc: linuxppc-embedded@ozlabs.org
Subject: RE: MPC8245 custom board, Linux 2.4 kernel hangs after =
uncompressing

Atit_Shah <Atit_Shah@satyam.com> wrote=A3=BA
> What we did was verified the value of PSDMR register
> value found in your board specific header file in
> include/configs/<boardname.h>

Ummm, PSDMR register is for 8260 perhaps? I even=20
didn't find it in 8245UM. Do you mean MCCR of 8245?

Thanks,

Sam

_________________________________________________________
Do You Yahoo!?
150=CD=F2=C7=FAMP3=B7=E8=BF=F1=CB=D1=A3=AC=B4=F8=C4=FA=B4=B3=C8=EB=D2=F4=C0=
=D6=B5=EE=CC=C3
http://music.yisou.com/
=C3=C0=C5=AE=C3=F7=D0=C7=D3=A6=D3=D0=BE=A1=D3=D0=A3=AC=CB=D1=B1=E9=C3=C0=CD=
=BC=A1=A2=D1=DE=CD=BC=BA=CD=BF=E1=CD=BC
http://image.yisou.com
1G=BE=CD=CA=C71000=D5=D7=A3=AC=D1=C5=BB=A2=B5=E7=D3=CA=D7=D4=D6=FA=C0=A9=C8=
=DD=A3=A1
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mai=
l_1g/



DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.

^ permalink raw reply

* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Sam Song @ 2005-04-22  5:35 UTC (permalink / raw)
  To: Atit_Shah, Kishore Devireddy; +Cc: linuxppc-embedded
In-Reply-To: <D8595042F3765A4285B848A78A2C2ED1027757@bsdmsg002.corp.satyam.ad>

Atit_Shah <Atit_Shah@satyam.com> wrote:
> What we did was verified the value of PSDMR register
> value found in your board specific header file in
> include/configs/<boardname.h>

Ummm, PSDMR register is for 8260 perhaps? I even 
didn't find it in 8245UM. Do you mean MCCR of 8245?

Thanks,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply

* Re: Marvell 64360, MPSC Serial Console Problem
From: Suresh Chandra Mannava @ 2005-04-22  5:07 UTC (permalink / raw)
  To: Mark A. Greer, linuxppc-embedded
In-Reply-To: <4266B082.10705@mvista.com>


>
>
> Suresh,
>
> I think you fixed a symptom but not the problem.  By default, the rx 
> buffers are indeed 32 bytes long (i.e., a cacheline in size).  When 
> receiving, the mpsc will generate an interrupt when there is an error, 
> when the buffer is full (32 bytes--unlikely if you're typing), or 
> after a timeout.  I suspect your timeout value is bogus so you don't 
> get the interrupt until you fill the buffer with 32 bytes.  Please 
> compare the platform_data that you pass to the mpsc driver to other, 
> working systems that use the mpsc (e.g., katana and cpci690).  In 
> particular, look at your 'max_idle' value.
>
> Mark
>
>

Mr. Mark,

Thank you for your reply. You exactly pointed out the mistake I had done 
with max_idle.
I didn't initialized the mpsc_pdata structure in platform dependent 
file. Now I initialized max_idle =40.
And every thing is working fine.

Still facing some problems with mv64360 giga Ethernet driver. I will 
come back after a little bit of investigation.

Regards,
Suresh Chandra Mannava

^ permalink raw reply

* RE: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Atit_Shah @ 2005-04-22  4:28 UTC (permalink / raw)
  To: Kishore Devireddy; +Cc: linuxppc-embedded

>From the log I gather that there is no exception. That's good news
What we did was verified the value of PSDMR register value found in your
board specific header file in include/configs/<boardname.h>

We changed this value and it worked fine. Its worth a try.

Atit

-----Original Message-----
From: Kishore Devireddy [mailto:kishorekrd@gmail.com]=20
Sent: Friday, April 22, 2005 4:23 AM
To: Atit_Shah
Cc: linuxppc-embedded@ozlabs.org
Subject: Re: MPC8245 custom board, Linux 2.4 kernel hangs after
uncompressing

Hi

As you mentioned I checked my System.map file and found

c0199614  b  log_buf

and checked the location 0x00199614 using BDI2000

BDI>md 0x000199600
00199600 : 00000000 00000000 00000000 00000000  ................
00199610 : 00000000 3c363e4d 656d6f72 79204241  ....<6>Memory BA
00199620 : 54206d61 7070696e 673a2042 4154323d  T mapping: BAT2=3D
00199630 : 31364d62 2c204241 54333d30 4d622c20  16Mb, BAT3=3D0Mb,
00199640 : 72657369 6475616c 3a20304d 620a3c34  residual: 0Mb.<4
00199650 : 3e4c696e 75782076 65727369 6f6e2032  >Linux version 2
00199660 : 2e342e32 35202872 6f6f7440 4d616e64  .4.25 (root@Mand
00199670 : 72616b65 29202867 63632076 65727369  rake) (gcc versi
00199680 : 6f6e2033 2e332e33 20284445 4e582045  on 3.3.3 (DENX E
00199690 : 4c444b20 332e3120 332e332e 332d3829  LDK 3.1 3.3.3-8)
001996a0 : 29202337 20576564 20417072 20323020  ) #7 Wed Apr 20
001996b0 : 30313a33 393a3437 20504454 20323030  01:39:47 PDT 200
001996c0 : 350a3c36 3e4d6f74 6f726f6c 61205350  5.<6>Motorola SP
001996d0 : 53205361 6e64706f 696e7420 54657374  S Sandpoint Test
001996e0 : 20506c61 74666f72 6d0a3c36 3e506f72   Platform.<6>Por
001996f0 : 74206279 204d6f6e 74615669 73746120  t by MontaVista
BDI>md
00199700 : 536f6674 77617265 2c20496e 632e2028  Software, Inc. (
00199710 : 736f7572 6365406d 76697374 612e636f  source@mvista.co
00199720 : 6d290a3c 343e4f6e 206e6f64 65203020  m).<4>On node 0
00199730 : 746f7461 6c706167 65733a20 34303936  totalpages: 4096
00199740 : 0a3c343e 7a6f6e65 2830293a 20343039  .<4>zone(0): 409
00199750 : 36207061 6765732e 0a000000 00000000  6 pages.........
00199760 : 00000000 00000000 00000000 00000000  ................
00199770 : 00000000 00000000 00000000 00000000  ................
00199780 : 00000000 00000000 00000000 00000000  ................
00199790 : 00000000 00000000 00000000 00000000  ................
001997a0 : 70656e50 49432056 65727369 6f6e2031  penPIC Version 1
001997b0 : 2e322028 31204350 55732061 6e642031  .2 (1 CPUs and 1
001997c0 : 31204952 5120736f 75726365 73292061  1 IRQ sources) a
001997d0 : 74206664 66643030 30300a00 00000000  t fdfd0000......
001997e0 : 00000000 00000000 00000000 00000000  ................
001997f0 : 00000000 00000000 00000000 00000000  ................

But it does not say much here. Any help on this???????????

I also enabled CONFIG_SERIAL_TEXT_DEBUG, but I did not see any text
after uncompressing the linux.

As mentioned in your 3rd point "some flag in the U-Boot code for RAM
in burst mode.". What is that flag actually? Coulnd you let me know?

Thanks
Kishore


On 4/20/05, Atit_Shah <Atit_Shah@satyam.com> wrote:
>=20
> Hi Kishore,
>=20
>        There are various things you can try.
>=20
> 1. Check your log buffer...your console may not be initialized yet so
> all your printk are logged at a particular memory location. Checkout
the
> System.map file in the Linux folder for "log_buf". The address that
you
> have there subtract it with the kernel base address. Then in view your
> memory at that location. We used U-Boot so we gave the command
>=20
>        md <log_buff address>
>=20
> 2. We used a tool called Code Warrior which helped us single step
debug
> the code, it didn't help us much though.
>=20
> 3. We had a problem with the RAM in burst mode. WolfGang would suggest
> you check out if your RAM is operational. In our case we had to set
some
> flag in the U-Boot code for RAM in burst mode. We changed this flag
and
> it boots fine. Well almost.
>=20
> Atit
>=20
>=20
> Message: 5
> Date: Wed, 20 Apr 2005 18:00:46 -0700
> From: Kishore Devireddy <kishorekrd@gmail.com>
> Subject: MPC8245 custom board, Linux 2.4 kernel hangs after
>        uncompressing
> To: linuxppc-embedded@ozlabs.org
> Message-ID: <2cf2641f0504201800556805d2@mail.gmail.com>
> Content-Type: text/plain; charset=3DISO-8859-1
>=20
> Hi
>=20
> I am trying to run Embedded linux (ELDK) (2.4 kerenl) on a custom
> powerpc board,
> which is similar to Artis A3000 board. This board has
> mpc8245(XPC8245LZY266B), natsemi 83815 ethernet, 4MB intel e28f320
> flash, 16MB winbond w986432DH-6 SDRAM. So I configured and compiled
> U-boot for A3000 borad. U-boot worked on my board also. Next I
> compiled ELDK 3.0 for Sandpoint 8245 board and copied to flash. But
> linux hangs after uncompressing
>=20
> U-Boot 1.1.2 (Apr 14 2005 - 00:02:29)
>=20
> CPU:   MPC8245 Revision 1.2 at 249.999 MHz: 16 kB I-Cache 16 kB
D-Cache
> Board: A3000 Local Bus at 99.999 MHz
> I2C:   ready
> DRAM:  16 MB
> FLASH: Get flash bank 0 @ 0xffc00000
> Manuf. ID @ 0xff800000: 0x00000089
> Device ID @ 0xff800001: 0x00000016
> ## Flash bank 0 at 0xffc00000 sizes: 0x00400000
> protect monitor fff00000 @ 40000
> protect environtment fffc0000 @ 20000
> ## Final Flash bank sizes: 00400000
> 4 MB
>      00  13  100b  0020  0200  ff
> In:    serial
> Out:   serial
> Err:   serial
> Net:   natsemi: EEPROM contents:
> ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff ffff
> dp83815#0
> Warning: dp83815#0 MAC addresses don't match:
> Address in SROM is         FF:FF:FF:FF:FF:FF
> Address in environment is  00:40:05:B0:F1:BA
>=20
> A3000> tftpboot 400000 uImage.eldk
> Using dp83815#0 device
> TFTP from server 192.168.1.124; our IP address is 192.168.1.54
> Filename 'uImage.eldk'.
> Load address: 0x400000
> Loading:
> #################################################################
>
#################################################################
>       ###################
> done
> Bytes transferred =3D 757926 (b90a6 hex)
> A3000> bootm
> ## Booting image at 00400000 ...
> Image Name:   Linux-2.4.25
> Image Type:   PowerPC Linux Kernel Image (gzip compressed)
> Data Size:    757862 Bytes =3D 740.1 kB
> Load Address: 00000000
> Entry Point:  00000000
> Verifying Checksum ... OK
> Uncompressing Kernel Image ... OK
>=20
> nothing happens after this until I reboot the board. I read u-boot FAQ
> and configured bd_info structure same for both u-boot and Linux. I
> found that CFG_IMMR is not applicable to MPC8245. I also used
> clocks_in_mhz variable also before loading Linux. I am stuck here.
> Could you please let me know what should I do next?
>=20
> Thanks
> Kishore
>=20
> ------------------------------
>=20
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>=20
> End of Linuxppc-embedded Digest, Vol 8, Issue 56
> ************************************************
>=20
> DISCLAIMER:
> This email (including any attachments) is intended for the sole use of
the intended recipient/s and may contain material that is CONFIDENTIAL
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or
copying or distribution or forwarding of any or all of the contents in
this message is STRICTLY PROHIBITED. If you are not the intended
recipient, please contact the sender by email and delete all copies;
your cooperation in this regard is appreciated.
>


DISCLAIMER:
This email (including any attachments) is intended for the sole use of =
the intended recipient/s and may contain material that is CONFIDENTIAL =
AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or =
copying or distribution or forwarding of any or all of the contents in =
this message is STRICTLY PROHIBITED. If you are not the intended =
recipient, please contact the sender by email and delete all copies; =
your cooperation in this regard is appreciated.

^ permalink raw reply

* Creating a Bin file with Kernel and root Filesystem and loading in Flash
From: Vijesh VH @ 2005-04-22  3:39 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 525 bytes --]

Hi,

I am currently working on IBM PowerPC 405 Processor. I cross Compiled the 
Kernel 2.4.29 and also created the filesystem. I was able to boot the kernel 
with filesystem using NFS( via TFTP protocol). I want to know how to burn 
the Kernel and root Filesystem into the flash. The bootloader i Am using is 
OPENBIOS provided by IBM.
Also i would like to know how the compression activities take place for 
creating kernel and filesystem as single file(*.bin).


-- 
Thanks in advance and Regards,
Vijesh V H

[-- Attachment #2: Type: text/html, Size: 579 bytes --]

^ permalink raw reply

* prpmc linux support help
From: Anchor @ 2005-04-22  2:49 UTC (permalink / raw)
  To: inuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 281 bytes --]

Hi all:

   I will spent my a lot time to perpare a bootloader and kernel image 
for motorala's prpmc600 board.
who can give me a exist and completed source code for bootloader and 
kernel image, and kernel
version is 2.6.X is best choose.

thanks very much!!!

anchor

2005-04-22

[-- Attachment #2: hxie.vcf --]
[-- Type: text/x-vcard, Size: 160 bytes --]

begin:vcard
fn:Anchor Xie
n:Xie;Anchor
email;internet:anchor_xie@centecnetworks.com
tel;work:86-512-62885850-826
tel;cell:86-13382170766
version:2.1
end:vcard


^ permalink raw reply

* Re: MPC8245 custom board, Linux 2.4 kernel hangs after uncompressing
From: Sam Song @ 2005-04-22  2:30 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded

Wolfgang Denk <wd@denx.de> wrote:
> > Interesting to me as well. I also have such a
> > similar problem. But I wanna to know how I can 
> > return to u-boot with software workaround after 
> > kernel hanging.
> 
> Press the reset button?
> 

The pity is that hardware reset doesn't work on my
board. Sadly... Well, just to confirm this case. If
had, is it possible to flush the content of __log_buf
after reset?

Thanks a lot,

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply

* Re: 824x Sandpoint with 2.6.x
From: Sam Song @ 2005-04-22  2:21 UTC (permalink / raw)
  To: Mark A. Greer; +Cc: linuxppc-embedded

"Mark A. Greer" <mgreer@mvista.com> wrote:
> > BTW, Could I use KGDB to try it?
> >  
> 
> It may help but it depends on how far you're getting
> and what your problem is.

OK, Mark. Thanks so much for your help. Let me try
how far I could go:)

Sam

_________________________________________________________
Do You Yahoo!?
150万曲MP3疯狂搜,带您闯入音乐殿堂
http://music.yisou.com/
美女明星应有尽有,搜遍美图、艳图和酷图
http://image.yisou.com
1G就是1000兆,雅虎电邮自助扩容!
http://cn.rd.yahoo.com/mail_cn/tag/1g/*http://cn.mail.yahoo.com/event/mail_1g/

^ permalink raw reply

* Re: mtd mount problem
From: Jörn Engel @ 2005-04-22  2:11 UTC (permalink / raw)
  To: Marco Schramel, PPC_LINUX
In-Reply-To: <20050422015552.GD20046@gate.ebshome.net>

On Thu, 21 April 2005 18:55:52 -0700, Eugene Surovegin wrote:
> On Thu, Apr 21, 2005 at 06:53:37PM -0700, Eugene Surovegin wrote:
> > On Fri, Apr 22, 2005 at 03:31:34AM +0200, J?rn Engel wrote:
> > 
> > [snip]
> > 
> > > 1. Erase the flash partition.  Either
> > >    o eraseall /dev/mtdX or
> > >    o cat file_filled_with_0xff > /dev/mtdblockX
> > 
> > Huh? I fail to see how options you listed are equivalent. By 
> > "cat"ing file filled with 0xff you cannot erase flash, period.
> > 
> > Only eraseall (or erase, if partition occupies 1 erase block) flash 
> > can be erased.
> 
> Oops, sorry, I failed to notice /dev/mtdblockX. Stupid me. Ignore this 
> noise.

Btw, I've also written a tool called 'ff' once.  It will simply write
tons of 0xff to stdout.  Rewriting the thing from scratch should be
slightly faster than me trying to look for the source (about 4 lines
of code?).

Jörn

-- 
My second remark is that our intellectual powers are rather geared to
master static relations and that our powers to visualize processes
evolving in time are relatively poorly developed.
-- Edsger W. Dijkstra

^ permalink raw reply

* Re: mtd mount problem
From: Eugene Surovegin @ 2005-04-22  1:55 UTC (permalink / raw)
  To: J?rn Engel, Marco Schramel, PPC_LINUX
In-Reply-To: <20050422015337.GC20046@gate.ebshome.net>

On Thu, Apr 21, 2005 at 06:53:37PM -0700, Eugene Surovegin wrote:
> On Fri, Apr 22, 2005 at 03:31:34AM +0200, J?rn Engel wrote:
> 
> [snip]
> 
> > 1. Erase the flash partition.  Either
> >    o eraseall /dev/mtdX or
> >    o cat file_filled_with_0xff > /dev/mtdblockX
> 
> Huh? I fail to see how options you listed are equivalent. By 
> "cat"ing file filled with 0xff you cannot erase flash, period.
> 
> Only eraseall (or erase, if partition occupies 1 erase block) flash 
> can be erased.

Oops, sorry, I failed to notice /dev/mtdblockX. Stupid me. Ignore this 
noise.

-- 
Eugene

^ permalink raw reply

* Re: mtd mount problem
From: Eugene Surovegin @ 2005-04-22  1:53 UTC (permalink / raw)
  To: J?rn Engel; +Cc: PPC_LINUX
In-Reply-To: <20050422013134.GB27755@wohnheim.fh-wedel.de>

On Fri, Apr 22, 2005 at 03:31:34AM +0200, J?rn Engel wrote:

[snip]

> 1. Erase the flash partition.  Either
>    o eraseall /dev/mtdX or
>    o cat file_filled_with_0xff > /dev/mtdblockX

Huh? I fail to see how options you listed are equivalent. By 
"cat"ing file filled with 0xff you cannot erase flash, period.

Only eraseall (or erase, if partition occupies 1 erase block) flash 
can be erased.

-- 
Eugene

^ permalink raw reply

* Re: mtd mount problem
From: Jörn Engel @ 2005-04-22  1:31 UTC (permalink / raw)
  To: Marco Schramel; +Cc: PPC_LINUX
In-Reply-To: <200504211502.48761.Schramel.Linux@go.bartec.de>

On Thu, 21 April 2005 15:02:48 +0200, Marco Schramel wrote:
> 
> > > /dev # date > /dev/mtd1
> > > MTD_open
> > > MTD_ioctl
> > > MTD_write
> > > MTD do_write_buffer(): software timeout
> > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ERROR ERROR ERROR ERROR ERROR ERROR ERROR
> 
> This only occurs if i write the second time to the flash memory without erasing it before.

That's harmless.  Flash is a write-once medium between erases.

Your setup appears sane in principle, so there must me a subtle
mistake you made (bugs are out of the question of course ;).  Missing
a real howto, let me run through the sequence:

1. Erase the flash partition.  Either
   o eraseall /dev/mtdX or
   o cat file_filled_with_0xff > /dev/mtdblockX

2. Do *not* write anything to it afterwards.  Jffs2 would just error
   out.

3. Mount jffs2.  Either
   o mount mtdX -t jffs2 <mount_point> or
   o mount /dev/mtdblockX -t jffs2 <mount_point>
  

Jörn

-- 
The grand essentials of happiness are: something to do, something to
love, and something to hope for.
-- Allan K. Chalmers

^ permalink raw reply


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox