Changes between Version 8 and Version 9 of newport/bootloader


Ignore:
Timestamp:
09/26/2018 04:29:47 PM (6 years ago)
Author:
Tim Harvey
Comment:

updated example adding 'rootfswait' which should be done for all block storage devices and 'rw' to show how to mount read-write

Legend:

Unmodified
Added
Removed
Modified
  • newport/bootloader

    v8 v9  
    233233mkimage -f kernel.its /tftpboot/kernel.itb
    234234}}}
    235  * boot the default configuration from U-Boot:
    236 {{{#!bash
    237 tftpboot $loadaddr kernel.itb && setenv bootargs 'console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000 coherent_poll=64M root=/dev/mmcblk0p2 rootfstype=ext4' && bootm $loadaddr - $fdtcontroladdr
    238 }}}
    239 
     235 * boot the default configuration from U-Boot. For example if your using an ext4 fs on the first MMC device, 2nd partition use:
     236{{{#!bash
     237tftpboot $loadaddr kernel.itb && setenv bootargs 'console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000 coherent_poll=64M root=/dev/mmcblk0p2 rootfstype=ext4 rootwait rw' && bootm $loadaddr - $fdtcontroladdr
     238}}}
     239
     240Note that the Newport BSP does these steps in its 'ubuntu-image' make target uses the [https://github.com/Gateworks/bsp-newport/blob/master/mkits.sh newport/mkits.sh] script to create an its file then uses this to kernel a kernel.itb. You can follow along with the [https://github.com/Gateworks/bsp-newport/blob/master/Makefile] and do these by hand in your Newport BSP directory:
     241{{{#!bash
     242# create kernel.itb with compressed kernel image
     243tar xvf linux-newport.tar.xz ./boot/Image --strip-components=2
     244mv Image vmlinux
     245gzip -f vmlinux
     246./newport/mkits.sh -o kernel.its -k vmlinux.gz -C gzip -v "Ubuntu"
     247mkimage -f kernel.its kernel.itb
     248}}}
     249
     250The Newport BSP also uses the [https://github.com/Gateworks/bsp-newport/blob/master/newport.env newport/newport.env] bootscript to create its kernel parameters which may be useful to understand.
    240251
    241252References: