uboot-tegra: add U-Boot for tegra boards
Add U-Boot for NVIDIA Tegra based boards, with the first being CompuLab TrimSlice. This is part of initial support for this board. Signed-off-by: Tomasz Maciej Nowak <tomek_n@o2.pl>
This commit is contained in:
committed by
Hauke Mehrtens
parent
b874437644
commit
1b3dda179a
@@ -87,6 +87,8 @@ platform_do_upgrade() {
|
||||
return 0
|
||||
fi
|
||||
|
||||
#write uboot image
|
||||
get_image "$@" | dd of="$diskdev" bs=512 skip=1 seek=1 count=4097 conv=fsync,notrunc
|
||||
#iterate over each partition from the image and write it to the boot disk
|
||||
while read part start size; do
|
||||
if export_partdevice partdev $part; then
|
||||
|
||||
@@ -32,9 +32,11 @@ define Build/tegra-sdcard
|
||||
$(CONFIG_TARGET_KERNEL_PARTSIZE) $@.boot \
|
||||
$(CONFIG_TARGET_ROOTFS_PARTSIZE) $(IMAGE_ROOTFS) \
|
||||
2048
|
||||
|
||||
$(if $(UBOOT),dd if=$(STAGING_DIR_IMAGE)/$(UBOOT).img of=$@ bs=512 skip=1 seek=1 conv=notrunc)
|
||||
endef
|
||||
|
||||
DEVICE_VARS += BOOT_SCRIPT
|
||||
DEVICE_VARS += BOOT_SCRIPT UBOOT
|
||||
define Device/Default
|
||||
BOOT_SCRIPT := generic-bootscript
|
||||
IMAGES := sdcard.img.gz
|
||||
|
||||
Reference in New Issue
Block a user