linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* UPM driver of MPC8260
@ 2004-06-30 13:37 Alireza Sadri
  2004-06-30 14:26 ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Alireza Sadri @ 2004-06-30 13:37 UTC (permalink / raw)
  To: linuxppc-embedded@lists.linuxppc.org


Hi all,

I am going to use UPM of my MPC8260; I need it for
handling a burstable SRAM.

I am using Wind River SBCPOWERQUICCII board. So I
think I need the configured UPM driver to be run on my
Linux.

Does ELDK have UPM initialization routines for my
purpose? Can I use this machine in a service then?

Can I have this driver for any other Linux, for
example VxWorks BSP? Can I configure my driver and use
it for SRAM?


Thanks a lot,
Regards.
A.R.Sadri Student of IUT.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: UPM driver of MPC8260
@ 2004-06-30 14:15 Ho Jeffrey-r26191
  0 siblings, 0 replies; 6+ messages in thread
From: Ho Jeffrey-r26191 @ 2004-06-30 14:15 UTC (permalink / raw)
  To: linuxppc-embedded


I think that should be done in your bootcode.
If you are using u-boot, this should be part of your u-boot memory init which will init the upm, and memory map.

Not sure if PQ2 u-boot have upm, I think you can use the MPC8xx upm code as a starting point of your PQ2 upm init.

Regards,
Jeffrey Ho

-----Original Message-----
From: owner-linuxppc-embedded@lists.linuxppc.org [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf Of Alireza Sadri
Sent: Wednesday, June 30, 2004 9:38 PM
To: linuxppc-embedded@lists.linuxppc.org
Subject: UPM driver of MPC8260



Hi all,

I am going to use UPM of my MPC8260; I need it for
handling a burstable SRAM.

I am using Wind River SBCPOWERQUICCII board. So I
think I need the configured UPM driver to be run on my
Linux.

Does ELDK have UPM initialization routines for my
purpose? Can I use this machine in a service then?

Can I have this driver for any other Linux, for
example VxWorks BSP? Can I configure my driver and use
it for SRAM?


Thanks a lot,
Regards.
A.R.Sadri Student of IUT.


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UPM driver of MPC8260
  2004-06-30 13:37 UPM driver of MPC8260 Alireza Sadri
@ 2004-06-30 14:26 ` Wolfgang Denk
  2004-07-01 11:12   ` Alireza Sadri
  0 siblings, 1 reply; 6+ messages in thread
From: Wolfgang Denk @ 2004-06-30 14:26 UTC (permalink / raw)
  To: Alireza Sadri; +Cc: linuxppc-embedded@lists.linuxppc.org


Dear Alireza Sadri,

in message <20040630133752.81669.qmail@web12826.mail.yahoo.com> you wrote:
>
> I am going to use UPM of my MPC8260; I need it for
> handling a burstable SRAM.

This is something that your boot loader needs to deal  with.  It  has
nothing to do with Linux as the Linux kernel does not care about such
low-level hardware intializations. Strictly speaking, your message is
off topic here.

> I am using Wind River SBCPOWERQUICCII board. So I

I'm pretty sure that this is not the official name of the  board,  or
is it? Maybe it's SBC8260?

> think I need the configured UPM driver to be run on my
> Linux.

There  are  no  Linux  drivers  that  deal  with  this  stuff;  while
technically being possible, it makes little sende. Usually this stuff
is done in your boot loader.

> Does ELDK have UPM initialization routines for my
> purpose? Can I use this machine in a service then?

Well, the ELDK includes the full source  code  of  U-Boot,  and  yes,
there is a configuration of U-Boot for the SBC8260 available.

> Can I have this driver for any other Linux, for
> example VxWorks BSP? Can I configure my driver and use
> it for SRAM?

First, this is not a driver. It  is  part  of  the  low-level  system
initialization.

Second, VxWorks is a proprietary operating system, and  not  "another
Linux".

Finally, you will have to check which boot loader you are  using  and
which  sort  of  initializations are already being done there for the
SBC8260 board, and eventually add what  might  be  missing  for  your
specific  setup.  But this is off topic here (feel free to ask futher
question on the u-boot-users mailing list - if you use U-Boot).

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Without facts, the decision cannot be made logically. You  must  rely
on your human intuition.
	-- Spock, "Assignment: Earth", stardate unknown

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UPM driver of MPC8260
  2004-06-30 14:26 ` Wolfgang Denk
@ 2004-07-01 11:12   ` Alireza Sadri
  2004-07-01 12:18     ` Wolfgang Denk
  0 siblings, 1 reply; 6+ messages in thread
From: Alireza Sadri @ 2004-07-01 11:12 UTC (permalink / raw)
  To: linuxppc-embedded


Hi , thanks for your attentins.

I am not an expert, but i know the meanings of
programming of the board , ppcboot(bootloader) ,
kernel , linux,  ELDK(I have compiled it for my
board), driver , service , and i am familiar with
MPC8260 as a microprocessor.I was working on hardware
of this board.
we made a copy , a customized copy.

now i am working on software ,
i am going to make my custom SBC8260 standalone , so i
need to replace the ppcboot of the board with a
bootable linux image. I want this linux to mount the
flash, and then i put my own final program on the
flash , and as a service, linux will run the program
on any reset.(now,it would be standalone)

so i cannot hold the ppcboot (u-boot) on the flash, i
need the changes in my linux image , or using a linux
driver.

Can you please guide me through this process?
If I have to replace ppcboot , how can have
bootloader?
(I know board needs bootloader anyway , but i don't
know what it is. is it ppcboot? or ELDK makes a
bootable linux?)

Any other point of view is really wellcome.

Best Regards.



Yahoo! Mail is new and improved - Check it out!
http://promotions.yahoo.com/new_mail

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: UPM driver of MPC8260
  2004-07-01 11:12   ` Alireza Sadri
@ 2004-07-01 12:18     ` Wolfgang Denk
  0 siblings, 0 replies; 6+ messages in thread
From: Wolfgang Denk @ 2004-07-01 12:18 UTC (permalink / raw)
  To: Alireza Sadri; +Cc: linuxppc-embedded


In message <20040701111230.27014.qmail@web12825.mail.yahoo.com> you wrote:
>
> i am going to make my custom SBC8260 standalone , so i
> need to replace the ppcboot of the board with a
> bootable linux image. I want this linux to mount the

No, this makes no sense. leave the PPCBoot as is, and use it to  boot
Linux.

> flash, and then i put my own final program on the
> flash , and as a service, linux will run the program
> on any reset.(now,it would be standalone)

Yes, booted by PPCBoot from flash.

> so i cannot hold the ppcboot (u-boot) on the flash, i
> need the changes in my linux image , or using a linux
> driver.

You will always need a boot loader to initialize the  hardware.  This
is what PPCBoot is doing for you. Only then you can start Linux.

> (I know board needs bootloader anyway , but i don't
> know what it is. is it ppcboot? or ELDK makes a
> bootable linux?)

Yes, PPCBoot is the boot loader. Do NOT replace it, just use it.

> Any other point of view is really wellcome.

Did you read the DULG? See http://www.denx.de/twiki/bin/view/DULG/Manual

Best regards,

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Lack of skill dictates economy of style.                - Joey Ramone

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: UPM driver of MPC8260
@ 2004-07-01 12:37 VanBaren, Gerald (AGRE)
  0 siblings, 0 replies; 6+ messages in thread
From: VanBaren, Gerald (AGRE) @ 2004-07-01 12:37 UTC (permalink / raw)
  To: linuxppc-embedded


> -----Original Message-----
> From: owner-linuxppc-embedded@lists.linuxppc.org
> [mailto:owner-linuxppc-embedded@lists.linuxppc.org]On Behalf
> Of Alireza
> Sadri
> Sent: Thursday, July 01, 2004 7:13 AM
> To: linuxppc-embedded@lists.linuxppc.org
> Subject: Re: UPM driver of MPC8260
>
>
>
> Hi , thanks for your attentins.
>
> I am not an expert, but i know the meanings of
> programming of the board , ppcboot(bootloader) ,
> kernel , linux,  ELDK(I have compiled it for my
> board), driver , service , and i am familiar with
> MPC8260 as a microprocessor.I was working on hardware
> of this board.
> we made a copy , a customized copy.
>
> now i am working on software ,
> i am going to make my custom SBC8260 standalone , so i
> need to replace the ppcboot of the board with a
> bootable linux image. I want this linux to mount the
> flash, and then i put my own final program on the
> flash , and as a service, linux will run the program
> on any reset.(now,it would be standalone)
>
> so i cannot hold the ppcboot (u-boot) on the flash, i
> need the changes in my linux image , or using a linux
> driver.
>
> Can you please guide me through this process?
> If I have to replace ppcboot , how can have
> bootloader?
> (I know board needs bootloader anyway , but i don't
> know what it is. is it ppcboot? or ELDK makes a
> bootable linux?)
>
> Any other point of view is really wellcome.
>
> Best Regards.

U-boot is the bootloader.  You must have it (or equivalent, but u-boot is probably your easiest option).  If you are truly using ppcboot, you should upgrade to u-boot (it is the successor of ppcboot).

U-boot lives in flash and boots the board.  You can build a linux image and put it also in flash.

READ the ELDK documentation for lots of useful help
  http://www.denx.de/twiki/bin/view/DULG/Faq
  http://www.denx.de/twiki/bin/view/DULG/Manual

U-boot image formats
  http://www.denx.de/twiki/bin/view/DULG/UBootImages

Making a linux image suitable for booting via u-boot
  http://www.denx.de/twiki/bin/view/DULG/LinuxConfiguration

  "The make target uImage uses the tool mkimage (from the U-Boot package) to create a Linux kernel image in arch/ppc/boot/images/uImage which is immediately usable for download and booting with U-Boot."

You should set up a TFTP server and booting your kernel off of the server until you are happy with it.
  http://www.denx.de/twiki/bin/view/DULG/LinuxNfsRoot
The following page is aimed at debian, but may be helpful.
  http://www.denx.de/twiki/bin/view/DULG/DebianOnPowerpcInstallationHowto

At that point, copy the uImage to flash somewhere (where it doesn't overwrite anything important, of course) and boot it directly from flash via u-boot's command prompt.  When you are happy with that, you can use u-boot's environment variables to create an "auto-execute" script to boot linux "hands off."
  http://www.denx.de/twiki/bin/view/DULG/LinuxBootIntro
  http://www.denx.de/twiki/bin/view/DULG/LinuxInFlash

gvb


** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2004-07-01 12:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-30 13:37 UPM driver of MPC8260 Alireza Sadri
2004-06-30 14:26 ` Wolfgang Denk
2004-07-01 11:12   ` Alireza Sadri
2004-07-01 12:18     ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-06-30 14:15 Ho Jeffrey-r26191
2004-07-01 12:37 VanBaren, Gerald (AGRE)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).