Re: [linux-sunxi] No reboot: experience report with Hans's sunxi-wip
uOn Mon, Aug 24, 2015 at 5:22 PM, Hans de Goede wrote: > Hi, > > > On 24-08-15 11:19, Olliver Schinagl wrote: >> >> 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. > > > Ok, sounds good to me. That patch seems to have fallen through the cracks. I just gave it a kick. See http://lists.infradead.org/pipermail/linux-arm-kernel/2015-August/365911.html ChenYu -- 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.
Re: [linux-sunxi] No reboot: experience report with Hans's sunxi-wip
Hi, On 24-08-15 11:19, Olliver Schinagl wrote: 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. Ok, sounds good to me. 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.
Re: [linux-sunxi] No reboot: experience report with Hans's sunxi-wip
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.
Re: [linux-sunxi] No reboot: experience report with Hans's sunxi-wip
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 ? 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.
Re: [linux-sunxi] No reboot: experience report with Hans's sunxi-wip
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 think this is a known problem, but I can't read my SD cards (I get "Error R1 ready timeout"). This is likely caused by a fix in my sunxi-wip for issues with the cubietruck wifi, this fix is known to cause issues with some sdcards, and we clearly need less of a big hammer approach here. To fix this revert: https://github.com/jwrdegoede/linux-sunxi/commit/b64e1a643f142f7d4ebf48620fc484fbf0d326ec Just adding a 'confirmed' here, This patch needs to be reverted and mmc works as expected again. Olliver Regards, Hans Stefan diff --git a/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts b/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts index 4f65664..9c8b11b 100644 --- a/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts +++ b/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts @@ -95,6 +95,13 @@ status = "okay"; }; +&codec { + routing = + "Headphone Jack", "HP Left", + "Headphone Jack", "HP Right"; + status = "okay"; +}; + &ehci0 { status = "okay"; }; diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index f3918c7..48191d7 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -413,3 +413,7 @@ static int stmmac_pltfr_resume(struct device *dev) SIMPLE_DEV_PM_OPS(stmmac_pltfr_pm_ops, stmmac_pltfr_suspend, stmmac_pltfr_resume); EXPORT_SYMBOL_GPL(stmmac_pltfr_pm_ops); + +MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet platform support"); +MODULE_AUTHOR("Giuseppe Cavallaro "); +MODULE_LICENSE("GPL"); -- 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.
Re: [linux-sunxi] No reboot: experience report with Hans's sunxi-wip
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. - I think this is a known problem, but I can't read my SD cards (I get "Error R1 ready timeout"). This is likely caused by a fix in my sunxi-wip for issues with the cubietruck wifi, this fix is known to cause issues with some sdcards, and we clearly need less of a big hammer approach here. To fix this revert: https://github.com/jwrdegoede/linux-sunxi/commit/b64e1a643f142f7d4ebf48620fc484fbf0d326ec Regards, Hans Stefan diff --git a/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts b/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts index 4f65664..9c8b11b 100644 --- a/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts +++ b/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts @@ -95,6 +95,13 @@ status = "okay"; }; +&codec { + routing = + "Headphone Jack", "HP Left", + "Headphone Jack", "HP Right"; + status = "okay"; +}; + &ehci0 { status = "okay"; }; diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index f3918c7..48191d7 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -413,3 +413,7 @@ static int stmmac_pltfr_resume(struct device *dev) SIMPLE_DEV_PM_OPS(stmmac_pltfr_pm_ops, stmmac_pltfr_suspend, stmmac_pltfr_resume); EXPORT_SYMBOL_GPL(stmmac_pltfr_pm_ops); + +MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet platform support"); +MODULE_AUTHOR("Giuseppe Cavallaro "); +MODULE_LICENSE("GPL"); -- 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.
[linux-sunxi] No reboot: experience report with Hans's sunxi-wip
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". 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 think this is a known problem, but I can't read my SD cards (I get "Error R1 ready timeout"). Stefan diff --git a/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts b/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts index 4f65664..9c8b11b 100644 --- a/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts +++ b/arch/arm/boot/dts/sun7i-a20-orangepi-mini.dts @@ -95,6 +95,13 @@ status = "okay"; }; +&codec { + routing = + "Headphone Jack", "HP Left", + "Headphone Jack", "HP Right"; + status = "okay"; +}; + &ehci0 { status = "okay"; }; diff --git a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c index f3918c7..48191d7 100644 --- a/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c +++ b/drivers/net/ethernet/stmicro/stmmac/stmmac_platform.c @@ -413,3 +413,7 @@ static int stmmac_pltfr_resume(struct device *dev) SIMPLE_DEV_PM_OPS(stmmac_pltfr_pm_ops, stmmac_pltfr_suspend, stmmac_pltfr_resume); EXPORT_SYMBOL_GPL(stmmac_pltfr_pm_ops); + +MODULE_DESCRIPTION("STMMAC 10/100/1000 Ethernet platform support"); +MODULE_AUTHOR("Giuseppe Cavallaro "); +MODULE_LICENSE("GPL"); -- 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.