Hey hans,

On 24-08-15 11:14, Hans de Goede wrote:
Hi,

On 24-08-15 11:01, Olliver Schinagl wrote:
Hey all,

On 17-08-15 09:31, Hans de Goede wrote:
Hi,

On 15-08-15 07:07, Stefan Monnier wrote:
I just got an OrangePi-mini and tried to install Hans's sunxi-wip (from
2-3 days ago) in order to get audio output support.  And I'm happy to
report success.

The good: after applying the patch below (I found the stmmac patch by
web-searching, it'll presumably find its way to 4.2 before the release),
the system works.

Minor problems:
- I got the audio out (mostly tested via MusicPD) working,
   but I had to add

    amixer set 'DAC Output' 'Mixed'

to /etc/rc.local since before I do that, the audio output hangs (the "DAC Output" control apparently defaults to "Muted" and I guess this doesn't just throw away the samples but it stalls the samples instead?)

- The name of the mixer control to change the volume output
is "PA". I haven't seen much standardization in those names, but it's the first time I see "PA". In some earlier version of Emilio's codec
   code, on my Mele A2000 it was called "Master".

These are both known problems (more or less) the audio code needs some
more work before it is really ready for general use.

I haven't experimented with the OTG support yet, so I have nothing to
report on this part.

Two more annoying problems:
- The machine does not reboot.  When I issue a reboot, Debian does all
   it needs to do then ends with

    [  OK  ] Stopped Remount Root and Kernel File Systems.
    [  OK  ] Reached target Shutdown.
    [  377.515591] reboot: System halted

   and sits there.  I have sunxi_wdt compiled in the kernel (not as
   module), FWIW.  Any idea what that might be or what I should do to
   track down this problem?

I've no clue I'm afraid.
There is a regression with the wdt driver, and I do not know where it is currently, you need this patch to fix the wdt for sun[457]i.

--- a/drivers/watchdog/sunxi_wdt.c
+++ b/drivers/watchdog/sunxi_wdt.c
@@ -184,7 +184,7 @@ static int sunxi_wdt_start(struct watchdog_device *wdt_dev)
         /* Set system reset function */
         reg = readl(wdt_base + regs->wdt_cfg);
         reg &= ~(regs->wdt_reset_mask);
-       reg |= ~(regs->wdt_reset_val);
+       reg |= regs->wdt_reset_val;
         writel(reg, wdt_base + regs->wdt_cfg);

         /* Enable watchdog */


Though to be fair, I do not know if the kernel reboots via the watchdog driver, or calls the watchdog directly like I think the 3.4 kernel did.

I'm not sure, I think it is, but maybe not this code path. Eitherway this should be
fixed, can you please submit an official patch to fix this ?
From what I understood, Chen-Yu said someone submitted it and it should be on its way.

Olliver

Regards,

Hans

--
You received this message because you are subscribed to the Google Groups 
"linux-sunxi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to linux-sunxi+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to