Actions

EmSys

Difference between revisions of "Build U-Boot For BeagleBone"

From EdWiki

m
m
Line 5: Line 5:
 
eewiki.net patch archive: [https://github.com/eewiki/u-boot-patches u-boot-patches]<br />
 
eewiki.net patch archive: [https://github.com/eewiki/u-boot-patches u-boot-patches]<br />
  
=== Download: ===
+
==== Download ====
  
  cd ~/bbb_linux
+
  $ cd ~/bbb_build
  git clone https://github.com/u-boot/u-boot
+
  $ git clone https://github.com/u-boot/u-boot
  cd u-boot/
+
  $ cd u-boot/
  git checkout v2019.04 -b tmp
+
  $ git checkout v2019.04 -b v2019.04
  
=== Patches: ===
+
==== Patches ====
  
  cd ~/bbb_linux/u-boot
+
  $ cd ~/bbb_build/u-boot
  wget -c https://github.com/eewiki/u-boot-patches/raw/master/v2019.04/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
+
  $ wget -c https://github.com/eewiki/u-boot-patches/raw/master/v2019.04/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
  wget -c https://github.com/eewiki/u-boot-patches/raw/master/v2019.04/0002-U-Boot-BeagleBone-Cape-Manager.patch
+
  $ wget -c https://github.com/eewiki/u-boot-patches/raw/master/v2019.04/0002-U-Boot-BeagleBone-Cape-Manager.patch
 
    
 
    
  patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
+
  $ patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
  patch -p1 < 0002-U-Boot-BeagleBone-Cape-Manager.patch
+
  $ patch -p1 < 0002-U-Boot-BeagleBone-Cape-Manager.patch
  
=== Configure and Build: ===
+
==== Configure and Build ====
  
  armmake distclean
+
  $ make ARCH=arm CROSS_COMPILE=${CC} distclean
  armmake am335x_evm_defconfig
+
  $ make ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfig
  armmake
+
  $ make ARCH=arm CROSS_COMPILE=${CC}
  
 
<!--
 
<!--

Revision as of 15:06, 28 November 2020


Build U-Boot For BeagleBone

Das U-Boot – the Universal Boot Loader: U-Boot
eewiki.net patch archive: u-boot-patches

Download

$ cd ~/bbb_build
$ git clone https://github.com/u-boot/u-boot
$ cd u-boot/
$ git checkout v2019.04 -b v2019.04

Patches

$ cd ~/bbb_build/u-boot
$ wget -c https://github.com/eewiki/u-boot-patches/raw/master/v2019.04/0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
$ wget -c https://github.com/eewiki/u-boot-patches/raw/master/v2019.04/0002-U-Boot-BeagleBone-Cape-Manager.patch
 
$ patch -p1 < 0001-am335x_evm-uEnv.txt-bootz-n-fixes.patch
$ patch -p1 < 0002-U-Boot-BeagleBone-Cape-Manager.patch

Configure and Build

$ make ARCH=arm CROSS_COMPILE=${CC} distclean
$ make ARCH=arm CROSS_COMPILE=${CC} am335x_evm_defconfig
$ make ARCH=arm CROSS_COMPILE=${CC}