LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-11-2010, 08:59 AM   #1
dodo76
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Rep: Reputation: 0
Making linux boot on a powerpc board. What is needed?


A BIG question.

I'll try to make it smaller.
I have a board with a powerpc processor and some peripherals (PCIe, Compact Flash, PHY, DDR3 etc.).
I'm using U-boot from which LAWs and TLBs are set. Also I have a DTB from a similar board.
Booting linux from here and it just dies. No printouts what so ever.

The question is: What are the bare minimum areas that are needed to be changed in the kernel for getting a login prompt?

I was actually hoping that I would be able to boot linux with a RAM disk without changing the kernel. I thought the OF interface would take care of most hardware dependent issues. Obviously I'm wrong.

Thanks
Robert
 
Old 11-11-2010, 03:12 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
You can use busybox to get a login prompt if kernel is up.
 
Old 11-12-2010, 05:57 AM   #3
dodo76
LQ Newbie
 
Registered: Oct 2009
Posts: 7

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by nini09 View Post
You can use busybox to get a login prompt if kernel is up.
Thanks for answering but it seems my question was not clear. My kernel is not up. That is the whole point. I meant that I wanted to know what, in general terms, need to be changed in the kernel to make it come up all the way to the login prompt. (Naming the login prompt was just a way to say: "Booting all the way").

BR
Robert
 
Old 11-12-2010, 02:32 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
1)Build your board kernel.
2)Make root file system.
3)Check console output if kernel boot is failure.
 
Old 11-13-2010, 05:53 AM   #5
pavius
LQ Newbie
 
Registered: Nov 2010
Posts: 2

Rep: Reputation: 0
You're not wrong, the DTB should be able to take care of the hardware specifics. Having just booted linux on a 875, I can tell you that all of my issues booting linux were related to what u-boot was passing to linux, specifically the ftd. There was absolutely nothing i needed to change in the linux sources to get the board up.

If you do not have a JTAG device, look at what bootm does. I was missing two directives in my /include/configs/ header:

#define CONFIG_OF_LIBFDT
#define CONFIG_OF_BOARD_SETUP

Without these, u-boot does not pass the ftd blob to linux and what are you describing (after bootm the kernel gets stuck) will happen. You must make sure that you pass the dtb on to u-boot by some means and pass this offset to linux.

If your DTB does not hardcode the frequency values (which is correct), make sure to call ft_cpu_setup() in u-boot to populate these values dynamically prior to passing the blob to linux. Do this by implementing ft_board_setup in your board file.
 
  


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
No rule to make target `powerpc-linux-gnu-gcc', needed by 'xxx.plugin.so' shaiva Linux - Newbie 4 11-22-2009 12:13 AM
LXer: Boot Linux on the Beagle Board LXer Syndicated Linux News 0 08-22-2009 09:30 AM
Video streaming via PowerPC board wrostek Linux - Embedded & Single-board computer 2 03-25-2009 02:31 AM
linux does not boot on external board with compact flash raklo Linux - Hardware 1 09-10-2006 04:17 PM

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

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