[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openbsd-arm
Subject:    Re: Can't install current on bbb internal storage
From:       Jonathan Gray <jsg () jsg ! id ! au>
Date:       2016-06-19 14:18:44
Message-ID: 20160619141844.GA5876 () carla ! jsg ! id ! au
[Download RAW message or body]

So it turns out the write error only occurs on the emmc in 4-bit mode.
Reading and writing to an sd card is fine in 4-bit mode however.

For now I have disabled 4-bit mode entirely.  These changes are
in the snapshot from the 19th that just went up.

I suspect additional pin mux settings have to be configured to
use the extra data lines for 4 and 8 bit modes.

On Wed, Jun 08, 2016 at 10:30:23PM +0200, Farid Joubbi wrote:
> Still no go.
> I just tried the latest snapshot from June 7th.
> 
> 
> On Fri, Jun 3, 2016 at 9:02 AM, Jonathan Gray <jsg@jsg.id.au> wrote:
> 
> > On Thu, Jun 02, 2016 at 03:45:18PM +1000, Jonathan Gray wrote:
> > > On Wed, Jun 01, 2016 at 11:26:33PM +0200, Farid Joubbi wrote:
> > > > I was able to boot with the latest snapshot, and it finds both disks.
> > > > Unfortunately I still get the "newfs: wtfs: write error on block 160:
> > > > Input/output error".
> > > >
> > > > Using miniroot-am335x-60.fs 31-May-2016 SHA256:
> > > > e72bd2b7289c845644e77c7a5f7e83e1463b766325a97ace898d0a74cc0dd5e0
> > >
> > > New snapshot uploaded today tries to reset the bus width down to 1
> > > on soft reset.
> > >
> > > OpenBSD 6.0-beta (RAMDISK) #70: Thu Jun  2 12:52:21 AEST 2016
> > >
> > > SHA256 (miniroot-am335x-60.fs) =
> > 3f2242557676bf53dd7d86b04de3189689374e131c79db8898c4e5c9277e386c
> > > SHA256 (miniroot-panda-60.fs) =
> > fcfe8612d6a7b04cfcc29ef4f8e8b6bedce2bb3289e7220932ced539d03a5a56
> >
> > Current snap doesn't have it, will be back in the next one.
> >
> > >
> > > Index: ommmc.c
> > > ===================================================================
> > > RCS file: /cvs/src/sys/arch/armv7/omap/ommmc.c,v
> > > retrieving revision 1.21
> > > diff -u -p -r1.21 ommmc.c
> > > --- ommmc.c   20 May 2016 23:07:05 -0000      1.21
> > > +++ ommmc.c   2 Jun 2016 05:42:10 -0000
> > > @@ -508,6 +508,10 @@ ommmc_host_reset(sdmmc_chipset_handle_t
> > >       HWRITE4(sc, MMCHS_IE, imask);
> > >       HWRITE4(sc, MMCHS_ISE, imask);
> > >
> > > +     /* Switch back to 1-bit bus. */
> > > +     HCLR4(sc, MMCHS_CON, MMCHS_CON_DW8);
> > > +     HCLR4(sc, MMCHS_HCTL, MMCHS_HCTL_DTW);
> > > +
> > >       splx(s);
> > >       return (0);
> > >  }
> > >
> >

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic