LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-02-2016, 04:31 PM   #1
vidman81
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Rep: Reputation: Disabled
Angstrom SMP build only brings 1 core online


I'm running an Arria 10 development board from Rocket Boards - it has two ARM cores. Running Angstrom V2014.12 kernel. Here's the Uname output:
Code:
root@arria10:~# uname -a
Linux arria10 4.6.2 #14 SMP Thu Jul 7 17:21:51 EDT 2016 armv7l GNU/Linux
The build recognizes two cores but core 1 is always offline.
Code:
root@arria10:~# cd /sys/devices/system/cpu
root@arria10:/sys/devices/system/cpu# ls -l
total 0
drwxr-xr-x    5 root     root             0 Jan  1  1970 cpu0
drwxr-xr-x    4 root     root             0 Jan  1  1970 cpu1
drwxr-xr-x    2 root     root             0 Jul 11 20:58 hotplug
-r--r--r--    1 root     root          4096 Jul 11 20:58 isolated
-r--r--r--    1 root     root          4096 Jul 11 20:58 kernel_max
-r--r--r--    1 root     root          4096 Jul 11 20:58 offline
-r--r--r--    1 root     root          4096 Jul 11 20:58 online
-r--r--r--    1 root     root          4096 Jul 11 20:58 possible
drwxr-xr-x    2 root     root             0 Jul 11 20:58 power
-r--r--r--    1 root     root          4096 Jul 11 20:58 present
-rw-r--r--    1 root     root          4096 Jul 11 20:36 uevent
Code:
root@arria10:/sys/devices/system/cpu# cat /sys/devices/system/cpu/online
0
root@arria10:/sys/devices/system/cpu# cat /sys/devices/system/cpu/offline
1
And it won't let me put it online.. even though I'm root.
Code:
root@arria10:/sys/devices/system/cpu# echo 1 > /sys/devices/system/cpu/cpu1/online
-sh: /sys/devices/system/cpu/cpu1/online: Permission denied

root@arria10:/sys/devices/system/cpu# whoami
root
Any ideas would be really helpful. Even if it's just a thread to pull on.
 
Old 08-09-2016, 08:09 AM   #2
vidman81
LQ Newbie
 
Registered: Oct 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
The DTS needs an enable-method

OK, so it is working now. It looks like an enable method is needed in the DTB to use kernel 4.5.7.

The DTS needed the following:
Code:
enable-method = "altr,socfpga-a10-smp";    /* appended from boardinfo */
Then the DTS hadto be recompiled into a dtb. Since I'm using the Altera tools I could use the Altera embedded command shell:

Code:
dtc -I dts -O dtb -o socfpga_arria10_socdk.dtb socfpga_arria10_socdk.dt
Once compiled, and the new DTB was copied, CPU1 was automatically brought online.
 
  


Reply



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
Unable to get a core-dump of a child process on Linux 2.6.5-7.316-smp #1 SMP system ravisan Linux - General 2 07-28-2023 11:09 AM
LXer: VirtualBox 3.0 Beta Brings SMP, OpenGL 2.0 LXer Syndicated Linux News 0 06-17-2009 03:50 PM
LXer: NetBSD 5.0 Released, Brings Major SMP Improvements LXer Syndicated Linux News 0 05-01-2009 05:00 AM
T2400 smp kernel build KNx2 Linux - Kernel 6 12-17-2006 04:34 PM
apt-build for smp machines? SteveSch Debian 2 01-26-2006 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 03:23 PM.

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
Open Source Consulting | Domain Registration