#22227: MT7688 LinkIt: /sbin/halt reboots instead
--------------------+------------------------
Reporter: nop@… | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: kernel | Version: Trunk
Keywords: |
--------------------+------------------------
I'd like to halt or poweroff my MT7688 LinkIt so that the filesystem is
properly unmounted. Unfortunately, /sbin/halt reboots the machine instead.
This means I need to yank the power out before the kernel mounts the
filesystems again.
{{{
# halt
root@mylinkit2:/# [ 718.566813] wlan0: deauthenticating from
xx:xx:xx:xx:xx:xx by local choice (Reason: 3=DEAUTH_LEAVING)
[ 721.591711] reboot: System halted
[04060C0E][04060C0C]
DDR Calibration DQS reg = 0000898A
U-Boot 1.1.3 (Sep 10 2015 - 05:56:31)
Board: Ralink APSoC DRAM: 128 MB
relocate_code Pointer at: 87f68000
******************************
Software System Reset Occurred
******************************
flash manufacture id: c2, device id 20 19
find flash: MX25L25635E
*** Warning - bad CRC, using default environment
============================================
Ralink UBoot Version: 4.3.0.0
}}}
I changed linux/arch/mips/ralink/reset.c:ralink_halt to spin, which is an
improvement, but it doesn't look like interrupts are really off as I keep
getting printks.
{{{
static void ralink_halt(void)
{
local_irq_disable();
+ while (1)
+ cpu_wait();
unreachable();
}
}}}
--
Ticket URL: <https://dev.openwrt.org/ticket/22227>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
_______________________________________________
openwrt-tickets mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-tickets