Changes between Version 2 and Version 3 of newport/firmware

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

Added booting kernel/rootfs on the microSD section


  • 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.
     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.
     268Run the following commands in the uboot bootloader command prompt on the Newport SBC bootloader serial console:
     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'
     274#This loads the kernel file (Image) from folder boot (on microSD) into memory
     275ext4load mmc 1:1 ${kernel_addr_r} boot/Image
     277#This boots the board
     278booti ${kernel_addr_r} - ${fdtcontroladdr}
     282 * Use the ext4ls to confirm you can read the microSD and see the kernel in the boot folder
     284GW6304-B> ext4ls mmc 1:1 boot
     285<DIR>       4096 .
     286<DIR>       4096 ..
     287        12066824 Image
    266291= Creating a microSD recovery image =