Difference between revisions of "EBC Installing U-Boot Source"

From eLinux.org
Jump to: navigation, search
(Initial Page)
 
m
Line 5: Line 5:
 
Is needs to be updated...
 
Is needs to be updated...
  
These instructions came from [http://www.eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader Robert C Nelson's eewiki.net].
+
These instructions came from [http://www.eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Bootloader Robert C Nelson's eewiki.net] and the [http://elinux.org/Beagleboard:U-boot_partitioning_layout_2.0#Boot_Partition_.28omap4.2B_.28am335x.29.29 U-boot partitioning layout] page.
  
=== download ===
+
=== Download ===
 
While we're at it, let's get the boot loader we'll be using.  It takes some 40 seconds.
 
While we're at it, let's get the boot loader we'll be using.  It takes some 40 seconds.
  
Line 13: Line 13:
 
  host$ '''git clone git://git.denx.de/u-boot.git'''
 
  host$ '''git clone git://git.denx.de/u-boot.git'''
 
  host$ '''cd u-boot/'''
 
  host$ '''cd u-boot/'''
  host$ '''git checkout v2013.07 -b tmp'''
+
  host$ '''git checkout v2014.07 -b tmp'''
  
 
=== U-Boot Patches ===
 
=== U-Boot Patches ===
  host$ '''wget https://raw.github.com/eewiki/u-boot-patches/master/v2013.07/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch'''
+
  host$ '''wget -c https://raw.githubusercontent.com/eewiki/u-boot-patches/master/v2014.07/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch'''
 
  host$ '''patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch'''
 
  host$ '''patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch'''
 +
patching file include/configs/am335x_evm.h
  
=== compile ===
+
=== Compile ===
 
Now configure and build.  The first time takes some 1.5 minutes.  After that it's only 5 seconds or so.
 
Now configure and build.  The first time takes some 1.5 minutes.  After that it's only 5 seconds or so.
 
  host$ '''source ~/crossCompileEnv.sh'''  
 
  host$ '''source ~/crossCompileEnv.sh'''  
Line 26: Line 27:
 
  host$ '''make'''
 
  host$ '''make'''
  
=== install ===
+
=== Install ===
  
 
  host$ '''scp u-boot.img root@beagle:.'''
 
  host$ '''scp u-boot.img root@beagle:.'''

Revision as of 08:34, 17 October 2014

thumb‎ Embedded Linux Class by Mark A. Yoder

Openlogo-50.png


DAS U-boot

Is needs to be updated...

These instructions came from Robert C Nelson's eewiki.net and the U-boot partitioning layout page.

Download

While we're at it, let's get the boot loader we'll be using. It takes some 40 seconds.

host$ cd ~/BeagleBoard
host$ git clone git://git.denx.de/u-boot.git
host$ cd u-boot/
host$ git checkout v2014.07 -b tmp

U-Boot Patches

host$ wget -c https://raw.githubusercontent.com/eewiki/u-boot-patches/master/v2014.07/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
host$ patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
patching file include/configs/am335x_evm.h

Compile

Now configure and build. The first time takes some 1.5 minutes. After that it's only 5 seconds or so.

host$ source ~/crossCompileEnv.sh 
host$ make distclean
host$ make am335x_evm_config
host$ make

Install

host$ scp u-boot.img root@beagle:.
beagle$ mkdir /media/BONE
beagle$ mount /dev/mmcblk0p1 /media/BONE
beagle$ cd /media/BONE
beagle$ mv u-boot.img u-boot.img.orig  # Save the working u-boot
beagle$ cp ~/u-boot.img u-boot.img.new
beagle$ cp u-boot.img.new u-boot.img

Once installed you are ready for u-boot work.




thumb‎ Embedded Linux Class by Mark A. Yoder