@@ -64,8 +64,8 @@ The following example explains better the implemented tags:
6464 volume = "splash";
6565 },
6666 {
67- filename = "uboot -env";
68- type = "uboot ";
67+ filename = "bootloader -env";
68+ type = "bootloader ";
6969 },
7070 {
7171 filename = "uImage.bin";
@@ -97,7 +97,7 @@ The following example explains better the implemented tags:
9797 }
9898 );
9999
100- uboot : (
100+ bootenv : (
101101 {
102102 name = "vram";
103103 value = "4M";
@@ -353,22 +353,25 @@ postinstall are shell scripts and called via system command.
353353SWUpdate scans for all scripts and calls them after installing the images.
354354
355355
356- uboot
357- -----
356+ bootloader
357+ ----------
358358
359- There are two ways to update the bootloader (U-Boot) environment.
359+ There are two ways to update the bootloader (currently U-Boot, GRUB ) environment.
360360First way is to add a file with the list of variables to be changed
361- and setting "uboot" as type of the image. This inform SWUpdate to
362- call the U-Boot handler to manage the file.
361+ and setting "bootloader" as type of the image. This informs SWUpdate to
362+ call the bootloader handler to manage the file (requires enabling bootloader
363+ handler in configuration). There is one bootloader handler for all supported
364+ bootloaders. Appropriate bootloader must be chosen from bootloader selection
365+ menu in menuconfig.
363366
364367::
365368
366369 {
367- filename = "uboot -env";
368- type = "uboot ";
370+ filename = "bootloader -env";
371+ type = "bootloader ";
369372 },
370373
371- The format of the file is described in u -boot documentation. Each line
374+ The format of the file is described in U -boot documentation. Each line
372375is in the format
373376
374377::
@@ -377,21 +380,26 @@ is in the format
377380
378381if value is missing, the variable is unset.
379382
383+ In current implementation we have inherited above file format for GRUB
384+ environment modification as well.
385+
380386The second way is to define in a group setting the variables
381387that must be changed:
382388
383389::
384390
385- uboot : (
391+ bootenv : (
386392 {
387393 name = <Variable name>;
388394 value = <Variable value>;
389395 },
390396 )
391397
392398SWUpdate will internally generate a script that will be passed to the
393- U-Boot handler for adjusting the environment.
399+ bootloader handler for adjusting the environment.
394400
401+ For backward compatibility with previously built .swu images, "uboot "group name
402+ is still relevant (as an alias).
395403
396404Board specific settings
397405-----------------------
@@ -412,23 +420,23 @@ and the following description::
412420 version = "0.1.0";
413421
414422 my-board = {
415- uboot : (
423+ bootenv : (
416424 {
417425 name = "bootpart";
418426 value = "0:2";
419427 }
420428 );
421429 };
422430
423- uboot : (
431+ bootenv : (
424432 {
425433 name = "bootpart";
426434 value = "0:1";
427435 }
428436 );
429437 }
430438
431- SWUpdate will set `bootpart ` to `0:2 ` in U-Boot 's environment for this
439+ SWUpdate will set `bootpart ` to `0:2 ` in bootloader 's environment for this
432440board. For all other boards, `bootpart ` will be set to `0:1 `. Board
433441specific settings take precedence over default scoped settings.
434442
@@ -444,7 +452,7 @@ stable and unstable images within a single update file.
444452
445453The mechanism uses a custom user-defined tags placed within `software `
446454scope. The tag names must not be any of: `version `,
447- `hardware-compatibility `, `uboot `, `files `, `scripts `, `partitions `,
455+ `hardware-compatibility `, `uboot `, `bootenv `, ` files `, `scripts `, `partitions `,
448456`images `
449457
450458An example description file:
@@ -469,7 +477,7 @@ An example description file:
469477 }
470478 );
471479
472- uboot : (
480+ bootenv : (
473481 {
474482 name = "bootpart";
475483 value = "0:2";
@@ -485,7 +493,7 @@ An example description file:
485493 }
486494 );
487495
488- uboot : (
496+ bootenv : (
489497 {
490498 name = "bootpart";
491499 value = "0:1";
@@ -552,7 +560,8 @@ There are 4 main sections inside sw-description:
552560 single files.
553561- scripts: all entries are treated as executables, and they will
554562 be run twice (as pre- and post- install scripts).
555- - uboot: entries are pair with U-Boot variable name and its value.
563+ - bootenv: entries are pair with bootloader environment variable name and its
564+ value.
556565
557566.. table ::
558567
@@ -609,10 +618,11 @@ There are 4 main sections inside sw-description:
609618 | | | | temporary copy. Not all handlers |
610619 | | | | support streaming. |
611620 +-------------+----------+------------+---------------------------------------+
612- | name | string | uboot | name of the U-Boot variable to be set.|
621+ | name | string | bootenv | name of the bootloader variable to be |
622+ | | | | set. |
613623 +-------------+----------+------------+---------------------------------------+
614- | value | string | uboot | value to be assigned to the U-Boot |
615- | | | | variable |
624+ | value | string | bootenv | value to be assigned to the |
625+ | | | | bootloader variable |
616626 +-------------+----------+------------+---------------------------------------+
617627 | name | string | images | name that identifies the sw-component |
618628 | | | files | it can be any string and it is |
0 commit comments