Changes between Version 2 and Version 3 of newport/firmware


Ignore:
Timestamp:
07/31/2018 09:11:46 PM (6 years ago)
Author:
Cale Collins
Comment:

Added booting kernel/rootfs on the microSD section

Legend:

Unmodified
Added
Removed
Modified
  • newport/firmware

    v2 v3  
    263263Updates on the root filesystem are very use specific. You can use a package manager, or use multiple rootfs partitions on the FLASH selected by U-Boot when setting up the bootargs passed to the kernel. A common way to to this would be to use U-Boot variables as flags and counters that are altered within Linux via the fw_setenv/fw_printenv tools from the U-Boot {{{u-boot-tools}}} package. You can see example usages in the Newport BSP newport/Makefile.
    264264
     265== Booting to a kernel/rootfs on the microSD
     266This assumes the bootloader will remain on the eMMC, but then we switch to the microSD for the kernel/rootfs.
     267
     268Run the following commands in the uboot bootloader command prompt on the Newport SBC bootloader serial console:
     269{{{
     270
     271#This sets the bootargs, make special note of the root = and adjust partition as necessary
     272setenv bootargs 'cma=64M coherent_pool=16M net.ifnames=0 root=/dev/mmcblk1p1 rw rootwait console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000'
     273
     274#This loads the kernel file (Image) from folder boot (on microSD) into memory
     275ext4load mmc 1:1 ${kernel_addr_r} boot/Image
     276
     277#This boots the board
     278booti ${kernel_addr_r} - ${fdtcontroladdr}
     279}}}
     280
     281Troubleshooting:
     282 * Use the ext4ls to confirm you can read the microSD and see the kernel in the boot folder
     283{{{
     284GW6304-B> ext4ls mmc 1:1 boot
     285<DIR>       4096 .
     286<DIR>       4096 ..
     287        12066824 Image
     288}}}
     289
    265290[=#recovery]
    266291= Creating a microSD recovery image =