Omap4 DSS clocks

Sascha Hauer s.hauer at pengutronix.de
Thu Mar 14 09:33:41 EDT 2013


On Thu, Mar 14, 2013 at 02:23:56PM +0100, Christoph Fritz wrote:
> On Thu, 2013-03-14 at 17:11 +0400, Alexander Shiyan wrote:
> > > > On Thu, 2013-03-14 at 16:48 +0400, Alexander Shiyan wrote:
> > > > > >  Barebox crashes while reading a DSS register:
> > > > > > 
> > > > > >   $ md 0x48040000
> > > > > >   unable to handle paging request at address 0x48040000
> > > > > > 
> > > > > > I suppose this is due to a turned off clock.
> > > > > > 
> > > > > > Any hints?
> > > > > 
> > > > > Probably this is a bug. I reproduced it.
> > > > > 
> > > > > Try to specify start & end address, like:
> > > > > md -l 0x48040000-0x48040010
> > > > 
> > > > I get the same effect: it crashes.
> > > 
> > > OK. It seems rw_buf not initialized.
> > > 
> > > So change line:
> > > static char *rw_buf; 
> > > to
> > > static char *rw_buf[RW_BUF_SIZE]; 
> > Without asterisk, like:
> >  static char rw_buf[RW_BUF_SIZE]; 
> 
> malloc expects a pointer:
> commands/mem.c:634: error: incompatible types when assigning to type
> ‘char[4096]’ from type ‘void *’
> 
> As you can see below, for a quick test I commented the lines, but
> barebox still crashes.
> 
> Why don't you suppose that this is due to the non functional DSS?

I wouldn't expect a bug in the code. This would have been discovered
already.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the barebox mailing list