Home Forums Getting Started Documentation error for Ubuntu bootmmc environment variable

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #597
    CaptainData
    Participant

    The “Boot from removable storage- Ubuntu” documentation contains a reference to the environment variable bootmmc. It appears that the two strings mentioned are identical. What are the bootmmc variable for the various boot scenarios?

    Next we setup the boot command by changing the bootmmc variable. We will use this variable to boot the microSD card:

    Marvell>> setenv bootmmc ‘mmc dev 0; ext4load mmc 0:1 $kernel_addr $image_name;ext4load mmc 0:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/mmcblk0p1 rw rootwait; booti $kernel_addr – $fdt_addr’

    Be careful to set the root path above to point to where you have extracted the Ubuntu file system (in our case we copied it to the first partition).

    After this we can save the variables we have set so far:
    Marvell>> save

    or setup the bootcmd variable for the ESPRESSObin to automatically boot with the desired variables:
    Marvell>> setenv bootcmd ‘mmc dev 0; ext4load mmc 0:1 $kernel_addr $image_name;ext4load mmc 0:1 $fdt_addr $fdt_name;setenv bootargs $console root=/dev/mmcblk0p1 rw rootwait; booti $kernel_addr – $fdt_addr’

    #609
    akrog
    Keymaster

    Hello CaptainData,

    yes, the strings for bootmmc and bootcmd are identical, here it’s just a matter of preference. The only difference is that ESPRESSObin automatically reads variables set in bootcmd on every reboot. In above example, users can simply set and save the bootcmd variable so that ESPRESSObin boots every time from microSD card instead of having to type run bootmmc in U-Boot on every reboot.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Documentation error for Ubuntu bootmmc environment variable’ is closed to new replies.
Signup to our newsletter

Technical specification tables can not be displayed on mobile. Please view on desktop