Modify

Opened 22 months ago

#22227 new defect

MT7688 LinkIt: /sbin/halt reboots instead

Reported by: nop@… Owned by: developers
Priority: normal Milestone:
Component: kernel Version: Trunk
Keywords: Cc:

Description

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();
 }

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Action
as new .
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.