public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] MPC860 Porting (ROM/Flash)
@ 2003-12-11 11:32 Viswanath Bandi
  2003-12-11 11:38 ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Viswanath Bandi @ 2003-12-11 11:32 UTC (permalink / raw)
  To: ecos-discuss

Hello All,

I have been trying to port eCos to a custom board based on MPC860. I 
copied the
target mbx in powerpc directory and made the necessary changes. In mbx, 
there is
an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
32bit flash.
Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
idea how
I need to reflect in the CDL file?

Also can somebody tell what is the difference between booting from ROM and
booting from FLASH.

Thanks in advance.
Viswanath Bandi



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
  2003-12-11 11:32 [ECOS] MPC860 Porting (ROM/Flash) Viswanath Bandi
@ 2003-12-11 11:38 ` Gary Thomas
  2003-12-11 13:00   ` Viswanath Bandi
  0 siblings, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2003-12-11 11:38 UTC (permalink / raw)
  To: Viswanath Bandi; +Cc: ecos-discuss

On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
> Hello All,
> 
> I have been trying to port eCos to a custom board based on MPC860. I 
> copied the
> target mbx in powerpc directory and made the necessary changes. In mbx, 
> there is
> an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
> 32bit flash.
> Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
> idea how
> I need to reflect in the CDL file?

Look at how other target platforms have used this device.  You'll end up
with a new package in the devs/flash/powerpc directory which has CDL and
support files that describe your situation.

> 
> Also can somebody tell what is the difference between booting from ROM and
> booting from FLASH.

Nothing (as long as it's NOR FLASH) - just terminology.

-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
  2003-12-11 11:38 ` Gary Thomas
@ 2003-12-11 13:00   ` Viswanath Bandi
  2003-12-11 13:33     ` Viswanath Bandi
  2003-12-11 13:57     ` Gary Thomas
  0 siblings, 2 replies; 8+ messages in thread
From: Viswanath Bandi @ 2003-12-11 13:00 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Sorry for not mentioning this in my earlier mail. We have P&E Micro flash
programmer with us. Can I use it to program the flash? If yes, do I still
need to mention the flash details in the CDL? Basically I am just trying
to build it with one serial port so that I can see the RedBoot prompt.

Gary Thomas wrote:

>On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
>  
>
>>Hello All,
>>
>>I have been trying to port eCos to a custom board based on MPC860. I 
>>copied the
>>target mbx in powerpc directory and made the necessary changes. In mbx, 
>>there is
>>an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
>>32bit flash.
>>Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
>>idea how
>>I need to reflect in the CDL file?
>>    
>>
>
>Look at how other target platforms have used this device.  You'll end up
>with a new package in the devs/flash/powerpc directory which has CDL and
>support files that describe your situation.
>
>  
>
>>Also can somebody tell what is the difference between booting from ROM and
>>booting from FLASH.
>>    
>>
>
>Nothing (as long as it's NOR FLASH) - just terminology.
>
>  
>



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
  2003-12-11 13:00   ` Viswanath Bandi
@ 2003-12-11 13:33     ` Viswanath Bandi
  2003-12-11 13:57     ` Gary Thomas
  1 sibling, 0 replies; 8+ messages in thread
From: Viswanath Bandi @ 2003-12-11 13:33 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Sorry for not mentioning this in my earlier mail. We have P&E Micro flash
programmer with us. Can I use it to program the flash? If yes, do I still
need to mention the flash details in the CDL? Basically I am just trying
to build it with one serial port so that I can see the RedBoot prompt.

Gary Thomas wrote:

>On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
>  
>
>>Hello All,
>>
>>I have been trying to port eCos to a custom board based on MPC860. I 
>>copied the
>>target mbx in powerpc directory and made the necessary changes. In mbx, 
>>there is
>>an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
>>32bit flash.
>>Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
>>idea how
>>I need to reflect in the CDL file?
>>    
>>
>
>Look at how other target platforms have used this device.  You'll end up
>with a new package in the devs/flash/powerpc directory which has CDL and
>support files that describe your situation.
>
>  
>
>>Also can somebody tell what is the difference between booting from ROM and
>>booting from FLASH.
>>    
>>
>
>Nothing (as long as it's NOR FLASH) - just terminology.
>
>  
>



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
  2003-12-11 13:00   ` Viswanath Bandi
  2003-12-11 13:33     ` Viswanath Bandi
@ 2003-12-11 13:57     ` Gary Thomas
  2003-12-11 17:49       ` Viswanath Bandi
  1 sibling, 1 reply; 8+ messages in thread
From: Gary Thomas @ 2003-12-11 13:57 UTC (permalink / raw)
  To: Viswanath Bandi; +Cc: ecos-discuss

Note: there may be something wrong with your email tool - I received
this message 4 times!

On Thu, 2003-12-11 at 06:06, Viswanath Bandi wrote:
> Sorry for not mentioning this in my earlier mail. We have P&E Micro flash
> programmer with us. Can I use it to program the flash? If yes, do I still
> need to mention the flash details in the CDL? Basically I am just trying
> to build it with one serial port so that I can see the RedBoot prompt.
> 

You can indeed use the tool to program the FLASH, but by putting the
details into RedBoot, you'll be able to use the FLASH directly.  That
way, you can update RedBoot, save configuration information and other
data in FLASH, etc.

In other words, why have a nice big FLASH device (4MB) if you're not
going to use it :-)

> Gary Thomas wrote:
> 
> >On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
> >  
> >
> >>Hello All,
> >>
> >>I have been trying to port eCos to a custom board based on MPC860. I 
> >>copied the
> >>target mbx in powerpc directory and made the necessary changes. In mbx, 
> >>there is
> >>an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
> >>32bit flash.
> >>Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
> >>idea how
> >>I need to reflect in the CDL file?
> >>    
> >>
> >
> >Look at how other target platforms have used this device.  You'll end up
> >with a new package in the devs/flash/powerpc directory which has CDL and
> >support files that describe your situation.
> >
> >  
> >
> >>Also can somebody tell what is the difference between booting from ROM and
> >>booting from FLASH.
> >>    
> >>
> >
> >Nothing (as long as it's NOR FLASH) - just terminology.
> >
> >  
> >
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
  2003-12-11 13:57     ` Gary Thomas
@ 2003-12-11 17:49       ` Viswanath Bandi
  2003-12-11 20:59         ` Gary Thomas
  0 siblings, 1 reply; 8+ messages in thread
From: Viswanath Bandi @ 2003-12-11 17:49 UTC (permalink / raw)
  To: ecos-discuss

Right now, I am just trying to get RedBoot running on the board. After
making the changes as mentioned in the porting guide, I am able to
compile and make redboot.srec. But when I program the flash and power on,
nothing happens. Guess i need to look more closely at .S file. Can you
suggest me on how the platform initialization part is typically modified?
I tried to look at it but it's very confusing and didn't know where to 
start.

One quick question, can I use gdb & redboot.elf file to see what is
going on? Because, when I run it using gdb, it dies saying privileged
instruction.


Thanks for your time,
Viswanath Bandi

Gary Thomas wrote:

>Note: there may be something wrong with your email tool - I received
>this message 4 times!
>
>On Thu, 2003-12-11 at 06:06, Viswanath Bandi wrote:
>  
>
>>Sorry for not mentioning this in my earlier mail. We have P&E Micro flash
>>programmer with us. Can I use it to program the flash? If yes, do I still
>>need to mention the flash details in the CDL? Basically I am just trying
>>to build it with one serial port so that I can see the RedBoot prompt.
>>
>>    
>>
>
>You can indeed use the tool to program the FLASH, but by putting the
>details into RedBoot, you'll be able to use the FLASH directly.  That
>way, you can update RedBoot, save configuration information and other
>data in FLASH, etc.
>
>In other words, why have a nice big FLASH device (4MB) if you're not
>going to use it :-)
>
>  
>
>>Gary Thomas wrote:
>>
>>    
>>
>>>On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
>>> 
>>>
>>>      
>>>
>>>>Hello All,
>>>>
>>>>I have been trying to port eCos to a custom board based on MPC860. I 
>>>>copied the
>>>>target mbx in powerpc directory and made the necessary changes. In mbx, 
>>>>there is
>>>>an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
>>>>32bit flash.
>>>>Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
>>>>idea how
>>>>I need to reflect in the CDL file?
>>>>   
>>>>
>>>>        
>>>>
>>>Look at how other target platforms have used this device.  You'll end up
>>>with a new package in the devs/flash/powerpc directory which has CDL and
>>>support files that describe your situation.
>>>
>>> 
>>>
>>>      
>>>
>>>>Also can somebody tell what is the difference between booting from ROM and
>>>>booting from FLASH.
>>>>   
>>>>
>>>>        
>>>>
>>>Nothing (as long as it's NOR FLASH) - just terminology.
>>>
>>> 
>>>
>>>      
>>>



-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
  2003-12-11 17:49       ` Viswanath Bandi
@ 2003-12-11 20:59         ` Gary Thomas
  0 siblings, 0 replies; 8+ messages in thread
From: Gary Thomas @ 2003-12-11 20:59 UTC (permalink / raw)
  To: Viswanath Bandi; +Cc: ecos-discuss

On Thu, 2003-12-11 at 10:28, Viswanath Bandi wrote:
> Right now, I am just trying to get RedBoot running on the board. After
> making the changes as mentioned in the porting guide, I am able to
> compile and make redboot.srec. But when I program the flash and power on,
> nothing happens. Guess i need to look more closely at .S file. Can you
> suggest me on how the platform initialization part is typically modified?
> I tried to look at it but it's very confusing and didn't know where to 
> start.

Try looking at some of the other platforms which use the 860, e.g. viper

> 
> One quick question, can I use gdb & redboot.elf file to see what is
> going on? Because, when I run it using gdb, it dies saying privileged
> instruction.

Using GDB to debug ROM/FLASH code is pretty tough.  If you have some 
sort of debug unit (BDM) then you could possibly load code into RAM
and test that.  It's often much easier to get stuff going that way than
blowing ROM/FLASH images all the time.

> 
> 
> Thanks for your time,
> Viswanath Bandi
> 
> Gary Thomas wrote:
> 
> >Note: there may be something wrong with your email tool - I received
> >this message 4 times!
> >
> >On Thu, 2003-12-11 at 06:06, Viswanath Bandi wrote:
> >  
> >
> >>Sorry for not mentioning this in my earlier mail. We have P&E Micro flash
> >>programmer with us. Can I use it to program the flash? If yes, do I still
> >>need to mention the flash details in the CDL? Basically I am just trying
> >>to build it with one serial port so that I can see the RedBoot prompt.
> >>
> >>    
> >>
> >
> >You can indeed use the tool to program the FLASH, but by putting the
> >details into RedBoot, you'll be able to use the FLASH directly.  That
> >way, you can update RedBoot, save configuration information and other
> >data in FLASH, etc.
> >
> >In other words, why have a nice big FLASH device (4MB) if you're not
> >going to use it :-)
> >
> >  
> >
> >>Gary Thomas wrote:
> >>
> >>    
> >>
> >>>On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
> >>> 
> >>>
> >>>      
> >>>
> >>>>Hello All,
> >>>>
> >>>>I have been trying to port eCos to a custom board based on MPC860. I 
> >>>>copied the
> >>>>target mbx in powerpc directory and made the necessary changes. In mbx, 
> >>>>there is
> >>>>an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to boot from 
> >>>>32bit flash.
> >>>>Our board uses Intel 28F320J5 chip arranged as 2M x 16bit memory. Any 
> >>>>idea how
> >>>>I need to reflect in the CDL file?
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>Look at how other target platforms have used this device.  You'll end up
> >>>with a new package in the devs/flash/powerpc directory which has CDL and
> >>>support files that describe your situation.
> >>>
> >>> 
> >>>
> >>>      
> >>>
> >>>>Also can somebody tell what is the difference between booting from ROM and
> >>>>booting from FLASH.
> >>>>   
> >>>>
> >>>>        
> >>>>
> >>>Nothing (as long as it's NOR FLASH) - just terminology.
> >>>
> >>> 
> >>>
> >>>      
> >>>
-- 
Gary Thomas <gary@mlbassoc.com>
MLB Associates


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

* Re: [ECOS] MPC860 Porting (ROM/Flash)
@ 2003-12-11 21:35 nprasad3
  0 siblings, 0 replies; 8+ messages in thread
From: nprasad3 @ 2003-12-11 21:35 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Viswanath Bandi, ecos-discuss

----- Original Message -----
From: Gary Thomas <gary@mlbassoc.com>
Date: Thursday, December 11, 2003 3:07 pm
Subject: Re: [ECOS] MPC860 Porting (ROM/Flash)

> On Thu, 2003-12-11 at 10:28, Viswanath Bandi wrote:
> > Right now, I am just trying to get RedBoot running on the board. 
> After> making the changes as mentioned in the porting guide, I am 
> able to
> > compile and make redboot.srec. But when I program the flash and 
> power on,
> > nothing happens. Guess i need to look more closely at .S file. 
> Can you
> > suggest me on how the platform initialization part is typically 
> modified?> I tried to look at it but it's very confusing and 
> didn't know where to 
> > start.

You should be having a file mbx860.S or something like that. Thats your basic hardware initialization that control will come to after reset.Make sure chip selects for Rom,Ram are setup correctly with their timing parameters etc. without which there will be no way to create stack space required.

> 
> Try looking at some of the other platforms which use the 860, e.g. 
> viper
> > 
> > One quick question, can I use gdb & redboot.elf file to see what is
> > going on? Because, when I run it using gdb, it dies saying 
> privileged> instruction.
> 
> Using GDB to debug ROM/FLASH code is pretty tough.  If you have 
> some 
> sort of debug unit (BDM) then you could possibly load code into RAM
> and test that.  It's often much easier to get stuff going that way 
> thanblowing ROM/FLASH images all the time.
> 
Get a BDM (Wiggler) worked for me. Eprom emulator is very handy if you can afford one!

Good Luck!
Nirmal

> > 
> > 
> > Thanks for your time,
> > Viswanath Bandi
> > 
> > Gary Thomas wrote:
> > 
> > >Note: there may be something wrong with your email tool - I 
> received> >this message 4 times!
> > >
> > >On Thu, 2003-12-11 at 06:06, Viswanath Bandi wrote:
> > >  
> > >
> > >>Sorry for not mentioning this in my earlier mail. We have P&E 
> Micro flash
> > >>programmer with us. Can I use it to program the flash? If yes, 
> do I still
> > >>need to mention the flash details in the CDL? Basically I am 
> just trying
> > >>to build it with one serial port so that I can see the RedBoot 
> prompt.> >>
> > >>    
> > >>
> > >
> > >You can indeed use the tool to program the FLASH, but by 
> putting the
> > >details into RedBoot, you'll be able to use the FLASH directly. 
> That
> > >way, you can update RedBoot, save configuration information and 
> other> >data in FLASH, etc.
> > >
> > >In other words, why have a nice big FLASH device (4MB) if 
> you're not
> > >going to use it :-)
> > >
> > >  
> > >
> > >>Gary Thomas wrote:
> > >>
> > >>    
> > >>
> > >>>On Thu, 2003-12-11 at 04:37, Viswanath Bandi wrote:
> > >>> 
> > >>>
> > >>>      
> > >>>
> > >>>>Hello All,
> > >>>>
> > >>>>I have been trying to port eCos to a custom board based on 
> MPC860. I 
> > >>>>copied the
> > >>>>target mbx in powerpc directory and made the necessary 
> changes. In mbx, 
> > >>>>there is
> > >>>>an option called CYGHWR_HAL_POWERPC_MBX_BOOT_32BIT_FLASH to 
> boot from 
> > >>>>32bit flash.
> > >>>>Our board uses Intel 28F320J5 chip arranged as 2M x 16bit 
> memory. Any 
> > >>>>idea how
> > >>>>I need to reflect in the CDL file?
> > >>>>   
> > >>>>
> > >>>>        
> > >>>>
> > >>>Look at how other target platforms have used this device.  
> You'll end up
> > >>>with a new package in the devs/flash/powerpc directory which 
> has CDL and
> > >>>support files that describe your situation.
> > >>>
> > >>> 
> > >>>
> > >>>      
> > >>>
> > >>>>Also can somebody tell what is the difference between 
> booting from ROM and
> > >>>>booting from FLASH.
> > >>>>   
> > >>>>
> > >>>>        
> > >>>>
> > >>>Nothing (as long as it's NOR FLASH) - just terminology.
> > >>>
> > >>> 
> > >>>
> > >>>      
> > >>>
> -- 
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
> 
> 
> -- 
> Before posting, please read the FAQ: 
> http://sources.redhat.com/fom/ecosand search the list archive: 
> http://sources.redhat.com/ml/ecos-discuss
> 
> 
> 


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

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

end of thread, other threads:[~2003-12-11 21:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-11 11:32 [ECOS] MPC860 Porting (ROM/Flash) Viswanath Bandi
2003-12-11 11:38 ` Gary Thomas
2003-12-11 13:00   ` Viswanath Bandi
2003-12-11 13:33     ` Viswanath Bandi
2003-12-11 13:57     ` Gary Thomas
2003-12-11 17:49       ` Viswanath Bandi
2003-12-11 20:59         ` Gary Thomas
2003-12-11 21:35 nprasad3

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 read-only IMAP folder(s) and NNTP newsgroup(s).