LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices

Reply
 
Search this Thread
Old 08-11-2012, 03:56 PM   #1
madjac005
LQ Newbie
 
Registered: Aug 2012
Location: Lansing, MI
Posts: 4

Rep: Reputation: Disabled
Beagleboard xm rev C doesn't shutdown, reboot properly.


Hello, I have a Beagleboard xm Rev C. running linux 3.4.6 with busybox for the user space. everything was generated with buildroot.

whenever I use the fallowing commands: halt, poweroff, reboot, restart.

I get the fallowing output:
------------------------------------
Code:
Unable to handle kernel NULL pointer dereference at virtual address 00000000          
[  227.809326] pgd = deff8000                                                                        
[  227.812255] [00000000] *pgd=9efd1831, *pte=00000000, *ppte=00000000                               
[  227.818908] Internal error: Oops: 80000007 [#1] SMP ARM                                           
[  227.824371] Modules linked in:                                                                    
[  227.827575] CPU: 0    Not tainted  (3.4.6 #1)                                                     
[  227.832153] PC is at 0x0                                                                          
[  227.834838] LR is at smp_send_stop+0x4c/0xe8                                                      
[  227.839324] pc : [<00000000>]    lr : [<c0018d70>]    psr: 60000013                               
[  227.839324] sp : de40de70  ip : 00000000  fp : 00000000                                           
[  227.851379] r10: 00000000  r9 : de40c000  r8 : c0013848                                           
[  227.856903] r7 : 00000000  r6 : c0649290  r5 : 000f4240  r4 : de40de74                            
[  227.863739] r3 : 00000000  r2 : 00000000  r1 : 00000006  r0 : de40de74                            
[  227.870605] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment user                     
[  227.878112] Control: 10c5387d  Table: 9eff8019  DAC: 00000015                                     
[  227.884124] Process init (pid: 579, stack limit = 0xde40c2f8)                                     
[  227.890167] Stack: (0xde40de70 to 0xde40e000)                                                     
[  227.894744] de60:                                     00000000 00000000 4321fedc 4321fedc         
[  227.903350] de80: de40c000 c0014b4c 00000000 c0050c7c 00000000 00000000 00000000 00000000         
[  227.911956] dea0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000         
[  227.920562] dec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000         
[  227.929138] dee0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000         
[  227.937744] df00: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000         
[  227.946350] df20: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000         
[  227.954956] df40: 00000000 de40c000 c0067f00 ded7c0c0 00000001 00000000 00000000 de40c000         
[  227.963531] df60: c00137a0 ded7c0c0 00000001 60000010 00000000 ef000000 00000000 c0089250         
[  227.972137] df80: 00000000 00000000 00000000 00000058 00000000 00000000 00000000 00000058         
[  227.980743] dfa0: c0013848 c0013680 00000000 00000000 fee1dead 28121969 4321fedc 00000000         
[  227.989318] dfc0: 00000000 00000000 00000000 00000058 000a1d04 00000000 b6f34f74 00000000         
[  227.997924] dfe0: 000a19a4 bee1e950 0006bc98 b6ee594c 60000010 fee1dead 00000000 00000000         
[  228.006530] [<c0018d70>] (smp_send_stop+0x4c/0xe8) from [<c0014b4c>] (machine_halt+0x8/0xc)       
[  228.015319] [<c0014b4c>] (machine_halt+0x8/0xc) from [<c0050c7c>] (sys_reboot+0x160/0x208)        
[  228.024017] [<c0050c7c>] (sys_reboot+0x160/0x208) from [<c0013680>] (ret_fast_syscall+0x0/0x3c)   
[  228.033172] Code: bad PC value                                                                    
[  228.036468] ---[ end trace 5ad4205007b21a70 ]---
------------------------------------------------------

I tried googling around, but didn't come up with anything use full.
 
Old 08-11-2012, 09:18 PM   #2
madjac005
LQ Newbie
 
Registered: Aug 2012
Location: Lansing, MI
Posts: 4

Original Poster
Rep: Reputation: Disabled
ok, I figured it out.

I googled the below instead:

"Internal error: Oops: 80000007 [#1] SMP ARM"

I found this thread with the solution:

http://lists.arm.linux.org.uk/lurker...ac9a32.en.html

modified the file in the buildroot/output/build/linux-3.4.6/arch/arm/kernel/smp.c at line 595 to look like this

if (!cpumask_empty(&mask))
smp_cross_call(&mask, IPI_CPU_STOP);

I then had buildroot re-build the kernel image.

Now when I type reboot or halt it actually does what it's suppose to.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FYI] "last -f <old wtmp> -x reboot shutdown" incorrect for last reboot and shutdown catkin Linux - General 1 03-26-2010 12:52 AM
Ubuntu doesn't shutdown properly. Ewan the moomintroll Ubuntu 18 06-20-2009 04:49 AM
debian hangs during bootup and doesn't shutdown properly Unregistered Debian 1 04-06-2008 03:00 AM
Mandrake 9.1 doesn't reboot properly on Toshiba satellite Basurero Mandriva 1 02-28-2004 04:46 PM
Cannot Shutdown/Reboot properly skiu4ia Linux - Newbie 3 05-21-2002 07:03 AM


All times are GMT -5. The time now is 08:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration