Difference between revisions of "U-boot PVT Notes"

From Studio Kousagi Wiki
Jump to: navigation, search
(Building)
(Deploying)
Line 7: Line 7:
 
Note: If you edit include/configs/novena.h, you should run "make novena_config" again.
 
Note: If you edit include/configs/novena.h, you should run "make novena_config" again.
  
=Deploying=
+
==Deploying==
To copy u-boot onto the boot media, you need to use a linux machine with dd:
 
sudo dd if=u-boot.imx of=/dev/sdX seek=2
 
  
Replace /dev/sdX with the drive node of your SD card. seek=2 locates u-boot in the expected location for loading.
+
To install the primary U-Boot image, copy u-boot.img to /boot/.  You do not need to do anything further.
 +
 
 +
To install the SPL image, you need to copy the file "SPL" to an offset 1024 bytes from the start of the disk. If you're running on Novena, use "novena-install-spl".  See "man novena-install-spl" for more information.  Otherwise, use dd:
 +
 
 +
sudo dd if="SPL" of="/dev/disk/by-path/platform-2198000.usdhc" bs=1024 seek=1 conv=notrunc

Revision as of 02:52, 2 April 2015

Building

 git clone https://github.com/xobs/u-boot-novena.git
 cd u-boot-novena
 make novena_config   # sets up u-boot for novena configuration
 make -j3

Note: If you edit include/configs/novena.h, you should run "make novena_config" again.

Deploying

To install the primary U-Boot image, copy u-boot.img to /boot/. You do not need to do anything further.

To install the SPL image, you need to copy the file "SPL" to an offset 1024 bytes from the start of the disk. If you're running on Novena, use "novena-install-spl". See "man novena-install-spl" for more information. Otherwise, use dd:

sudo dd if="SPL" of="/dev/disk/by-path/platform-2198000.usdhc" bs=1024 seek=1 conv=notrunc