LinuxQuestions.org
Visit Jeremy's Blog.
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 09-07-2017, 12:54 PM   #1
vivek thullimalli
LQ Newbie
 
Registered: Aug 2017
Posts: 5

Rep: Reputation: Disabled
of_platform_populate() func failed to populate device tree nodes,


HI,

I am trying to port a dts file for arm1176 based custom SoC. But none of the device tree nodes is getting reflected during kernel (4.9.22 Raspberry pi) booting. But I am able to get into the file system. Upon debugging i encountered that the of_node_get() function (in file: drivers/of/dynamic.c) is returning me NULL. I feel because of this my device tree nodes are not getting populated from func. call of_platform_populate(). Upon enabling kobject debug, I have observed a huge dump of warnings ""kobject: 'xxx': is not ""initialized, yet kobject_get() is being " "called.".

What can be the issue? is this the one blocking the population of device tree nodes? Any suggestions will be highly helpful!
Thanks,
 
Old 09-08-2017, 07:41 AM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,894
Blog Entries: 13

Rep: Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945Reputation: 4945
This seems like a programming forum question.

Have you modified code?

When you see something returning NULL and consider that a problem, add debug to that area to determine why it returned NULL.

For instance if you expect to get something from disk, memory, a list, or other resource and you get NULL because the arguments were considered out of bounds?

Or maybe you're getting NULL because the system is out of memory at the time of this call?

You mention the device tree nodes not getting populated. Have you debugged that function to determine why this is not happening?

Please note that what you're working on is something unique and probably very few people are working with this exact software or configuration. Thus detailing a lot of the symptoms may not help anyone here any better than you can help yourself by adding debug within the code you are working with.
 
  


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
device tree node failed to get resource vivek thullimalli Linux - Newbie 0 08-27-2017 09:55 PM
Setting up Kickstart server RHEL 6.5 for compute nodes, GPU nodes and PHI nodes sho1sho1 Red Hat 3 06-23-2015 04:20 PM
i need code for generate tree structure on sensor nodes ? kunal0807 Linux - Wireless Networking 1 05-11-2014 11:01 AM
device nodes linux_newbie79 Linux - Newbie 1 10-19-2009 03:24 AM
difference between function declaration: func() and func(void) koyi Programming 4 11-19-2005 10:19 AM

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

All times are GMT -5. The time now is 08:36 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