Changes between Version 68 and Version 69 of newport


Ignore:
Timestamp:
07/23/2018 04:39:29 PM (6 years ago)
Author:
Ryan Erbstoesser
Comment:

update microsd instructions

Legend:

Unmodified
Added
Removed
Modified
  • newport

    v68 v69  
    344344
    345345Run the following commands in the uboot bootloader command prompt on the Newport SBC serial console:
    346 
    347 #This tells the board to always get the bootloader from emmc, which is ok.
    348346{{{
    349 setenv dev 0
    350 }}}
    351 
    352 #now we are going to create a NEW script called boot_sd for booting from the microSD:
    353 #note the ext4load command grabs from 1:2, which means dev 1, which will be the microSD as long as you set
    354 #dev to 0 above (meaning dev 0 will be emmc, which will hold the bootloader, and then 1 would be the microSD)
    355 {{{
    356 setenv boot_sd  "ext4load mmc 1:2 ${kernel_addr} boot/${kernel} && setenv root '/dev/mmcblk0p2 rw rootwait' && run setargs && booti ${kernel_addr} - ${fdtcontroladdr}"
    357 }}}
    358 
    359 #now save everything
    360 {{{
    361 saveenv
    362 }}}
    363 
    364 #now boot to microSD
    365 {{{
    366 run boot_sd
    367 }}}
    368 
    369 If you want to then start doing this automatically everytime, you would look at the variable called boot_cmd. It currently uses the built in script we have to boot from mmc (which means emmc)
    370 {{{
    371 GW6304-B> print bootcmd
    372 bootcmd=run boot_mmc
    373 }}}
    374 
    375 #if you want to modify this to boot from your new script:
    376 {{{
    377 setenv bootcmd 'run boot_sd'
    378 saveenv
    379 reset
    380 }}}
    381 
     347
     348#This sets the bootargs, make special note of the root = and adjust partition as necessary
     349setenv bootargs 'cma=64M coherent_pool=16M net.ifnames=0 root=/dev/mmcblk1p1 rw rootwait console=ttyAMA0,115200n8 earlycon=pl011,0x87e028000000'
     350
     351#This loads the kernel file (Image) from folder boot (on microSD) into memory
     352ext4load mmc 1:1 ${kernel_addr_r} boot/Image
     353
     354#This boots the board
     355booti ${kernel_addr_r} - ${fdtcontroladdr}"
     356}}}
    382357
    383358[=#bsp]