Changes between Version 18 and Version 19 of newport/firmware


Ignore:
Timestamp:
02/07/2020 11:01:26 PM (5 years ago)
Author:
Cale Collins
Comment:

removed boot section, moved to /boot wiki

Legend:

Unmodified
Added
Removed
Modified
  • newport/firmware

    v18 v19  
    357357Updates 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.
    358358
    359 = Booting to a kernel/rootfs on the microSD
    360 This assumes the bootloader will remain on the eMMC, but then we switch to the microSD for the kernel/rootfs.
    361 
    362 Run the following commands in the uboot bootloader command prompt on the Newport SBC bootloader serial console:
    363 {{{
    364 
    365 #This sets the bootargs, make special note of the root = and adjust partition as necessary
    366 setenv bootargs 'cma=64M coherent_pool=16M net.ifnames=0 root=/dev/mmcblk1p1 rw rootwait console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000'
    367 
    368 #This loads the kernel file (Image) from folder boot (on microSD) into memory
    369 ext4load mmc 1:1 ${kernel_addr_r} boot/Image
    370 
    371 #This boots the board
    372 booti ${kernel_addr_r} - ${fdtcontroladdr}
    373 }}}
    374 
    375 Troubleshooting:
    376  * Use the ext4ls to confirm you can read the microSD and see the kernel in the boot folder
    377 {{{
    378 GW6304-B> ext4ls mmc 1:1 boot
    379 <DIR>       4096 .
    380 <DIR>       4096 ..
    381         12066824 Image
    382 }}}
    383359
    384360[=#recovery]