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 |
| 237 | tftpboot $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 | |
| 240 | Note 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 |
| 243 | tar xvf linux-newport.tar.xz ./boot/Image --strip-components=2 |
| 244 | mv Image vmlinux |
| 245 | gzip -f vmlinux |
| 246 | ./newport/mkits.sh -o kernel.its -k vmlinux.gz -C gzip -v "Ubuntu" |
| 247 | mkimage -f kernel.its kernel.itb |
| 248 | }}} |
| 249 | |
| 250 | The 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. |