[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: ld at sdmmc
-----BEGIN PGP SIGNED MESSAGE-----
On Mon, 15 Sep 2008, Jared D. McNeill wrote:
> On Mon, 15 Sep 2008, Jared D. McNeill wrote:
> > On Mon, 15 Sep 2008, Quentin Garnier wrote:
> > > The callout is not yet initialised.
> > >
> > > Invert the folling lines in ld_sdmmc_attach:
> > >
> > > + ldattach(ld);
> > > +
> > > + callout_init(&sc->sc_task.task_callout, CALLOUT_MPSAFE);
> > >
> > > I have no clue how that could work for other people.
> > That did the trick, thanks.
> Well, almost. My laptop locks up if the SD card is inserted at boot.
Same here. With DEBUG and DIAGNOSTIC is panics with an assertion failure for
"ci->ci_level == IPL_NONE" in x86/x86/cpu.c line 1069
It also panics on shutdown with a card inserted.
If i use dd to dump the card (the one i'm using is an old 32Mb MMC card) it
walks off the end of the card and panics, i fixed that by adding:
// is everything done in terms of blocks?
if (bp->b_rawblkno >= sc->sc_sf->csd.capacity)
// trying to read or write past end of device
bp->b_error = EIO; /* XXX */
bp->b_resid = bp->b_bcount;
in ld_sdmmc.c in ld_sdmmc_dobio() before the s = splbio(); line.
(I don't know what the bp->b_resid = bp->b_bcount; line does but that
function does it in the error path).
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (NetBSD)
-----END PGP SIGNATURE-----
Main Index |
Thread Index |