Difference between revisions of "First Steps with Buildroot"

From InCircuit
Jump to: navigation, search
 
Line 1: Line 1:
 +
== Getting the files ==
 
Get buildroot files as described in [[Getting Buildroot]].
 
Get buildroot files as described in [[Getting Buildroot]].
  
 +
== Set up buildroot==
 
Copy desired board configuration from the directory configs as described in [[Configuring Buildroot]].
 
Copy desired board configuration from the directory configs as described in [[Configuring Buildroot]].
  
 +
== Build the project ==
 
Invoke
 
Invoke
 
  make
 
  make
Line 8: Line 11:
 
The [[CrossToolchain]] and software for the module selected are generated.
 
The [[CrossToolchain]] and software for the module selected are generated.
  
 +
== Configure the project ==
 
After the first build additional parameters can be edited as described in [[Configuring Buildroot]].
 
After the first build additional parameters can be edited as described in [[Configuring Buildroot]].
 +
 +
== View the results ==
 +
Your generated files are stored in the output directory as described under [[Buildroot directories]].
 +
 +
== Put the system on the module ==
 +
To get this Kernel on your system put the generated uImage, a ramdisk made as described in [[Booting From SDCard]], and a rootfs tar.gz on a SD-Card.<br>
 +
Insert the SD-Card in your module an power it on. The moudle boots your newly created Kernel and loads the ramImage as root filesystem.
 +
 +
You can now write the Kernel and filesystem to internal flash as described under the [[:Category:Filesystems|Filesystems Category]].<br>
 +
i.E After making sure you will use the correct partitions flash Kernel as described in [[Kernelimage]] and the rootfs following [[Flashfilesystem UBIFS]].
  
 
[[Category:Buildroot]] [[Category:HowTo]]
 
[[Category:Buildroot]] [[Category:HowTo]]

Latest revision as of 10:20, 31 March 2014

Contents

[edit] Getting the files

Get buildroot files as described in Getting Buildroot.

[edit] Set up buildroot

Copy desired board configuration from the directory configs as described in Configuring Buildroot.

[edit] Build the project

Invoke

make

The CrossToolchain and software for the module selected are generated.

[edit] Configure the project

After the first build additional parameters can be edited as described in Configuring Buildroot.

[edit] View the results

Your generated files are stored in the output directory as described under Buildroot directories.

[edit] Put the system on the module

To get this Kernel on your system put the generated uImage, a ramdisk made as described in Booting From SDCard, and a rootfs tar.gz on a SD-Card.
Insert the SD-Card in your module an power it on. The moudle boots your newly created Kernel and loads the ramImage as root filesystem.

You can now write the Kernel and filesystem to internal flash as described under the Filesystems Category.
i.E After making sure you will use the correct partitions flash Kernel as described in Kernelimage and the rootfs following Flashfilesystem UBIFS.

Personal tools