Changes between Version 7 and Version 8 of newport/firmware


Ignore:
Timestamp:
11/09/2018 05:24:39 PM (12 months ago)
Author:
Tim Harvey
Comment:

added u-boot build and update details

Legend:

Unmodified
Added
Removed
Modified
  • newport/firmware

    v7 v8  
    255255The U-Boot bootloader is wrapped in a ATF FIP package placed at '0x0f00000 - 0x0ff00000' (960KiB at 15MiB offset) and is loaded/verified/executed by the ATF. You can update this taking the 'fip.img' created by the Newport BSP Makefile uboot target and using Linux {{{dd}}} or U-Boot {{{mmc-write}}}.
    256256
    257 For example:
     257Examples:
     258 * build u-boot and update the fip.img within the u-boot directory:
     259{{{#!bash
     260cd /usr/src/newport/bsp
     261. ./setup_environment
     262cd u-boot
     263make -j8 distclean thunderx_81xx_defconfig u-boot-nodtb.bin && \
     264 cp ../atf/build/t81/release/fip.bin fip.img && \
     265 fiptool update --nt-fw u-boot-nodtb.bin fip.img
     266}}}
    258267 * write fip.img in Linux:
    259268{{{#!bash
    260 dd if=fip.bin of=/dev/mmcblk0 bs=1M seek=15 # program at 15MiB offset
    261 }}}
     269dd if=fip.img of=/dev/mmcblk0 bs=1M seek=15 # program at 15MiB offset
     270}}}
     271 * write fip.img in U-Boot:
     272{{{#!bash
     273tftpboot $loadaddr newport/fip.img && mmc write $loadaddr 0x7800 0x780 # update 960kb at 15mb offset
     274}}}
     275
    262276
    263277