LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2010, 09:19 AM   #1
VinayBondade
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Rep: Reputation: 1
How does /proc/cpuinfo gets populated...?


Hello,

I need to understand how the Kernel gets the CPU information that is present in the /proc/cpuinfo. Does the bootloader provides it. If so any idea how does the RedBoot would do this.

The question in-front of me is that I need to pass serial number of the hardware (i.MX25 stack 3 board from freescale) from RedBoot to the Kernel and the serial number should reflect in the /proc/cpuinfo.

Any suggestions on how do I accomplish this...?

Regards,
Vinay
 
Old 12-09-2010, 01:18 PM   #2
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
Greetings!
As there isn't (typically) a "Serial Number" value polled by /proc/cpuinfo, you would have to modify the Linux kernel and recompile.
I'm not familiar with the "Stack 3" i.MX25 board, is that ARM-based like the other FreeScale ones?
 
Old 12-10-2010, 03:22 AM   #3
VinayBondade
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 1
Xeleema,

Greetings. Thanks for the reply... I figured out the means to pass the serial number of the hardware from the BootLoader, in my case the RedBoot. Its just theoritically in my mind, have to try to see if it works. Check this link (section 8), it has info about the same.

http://www.simtec.co.uk/products/SWL...g_article.html

Yes, the stack 3 board is the ARM based one.

Last edited by VinayBondade; 12-10-2010 at 03:25 AM.
 
1 members found this post helpful.
Old 12-10-2010, 03:53 AM   #4
VinayBondade
LQ Newbie
 
Registered: Dec 2010
Posts: 5

Original Poster
Rep: Reputation: 1
And yes it did work....
 
Old 12-10-2010, 09:26 AM   #5
xeleema
Member
 
Registered: Aug 2005
Location: D.i.t.h.o, Texas
Distribution: Slackware 13.x, rhel3/5, Solaris 8-10(sparc), HP-UX 11.x (pa-risc)
Posts: 988
Blog Entries: 4

Rep: Reputation: 254Reputation: 254Reputation: 254
That's awesome!
Thank you very much for providing the link, and for marking this thread as [SOLVED]!
 
Old 07-07-2015, 07:00 AM   #6
pirpi
LQ Newbie
 
Registered: Oct 2014
Posts: 1

Rep: Reputation: Disabled
Hi,

I am new to the linux. I want to change the cpu serial parameter using ATAG_SERIAL of arm7 board. could you please tell me the steps to load the new serial number through the bootloader?

Thanks
Pirpi
 
Old 07-07-2015, 03:20 PM   #7
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
I would think the serial number would depend on the hardware... If you are actually USING the serial number (such as the licensing for the video codecs), I would think you would be unable to use the modified serial number.
 
  


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
/proc/cpuinfo flag lm Henry_1 Linux - General 8 05-23-2019 06:15 PM
It is possible to modify the /proc/cpuinfo ? fc3_fan Linux - Newbie 21 01-30-2013 02:43 PM
Proc/CpuInfo sipsipi Linux - Software 4 03-03-2006 11:42 AM
/proc/cpuinfo oops! feta Linux - Hardware 2 11-08-2004 10:16 PM
/proc/cpuinfo embsupafly Linux - General 3 12-29-2003 06:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:53 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
Open Source Consulting | Domain Registration