8 Bootargs Auto-set


8.1 Introduction

HiBurn can set the bootargs for the board after burning.
This feature is only provided in Partition Burning and EMMC Burning page. The user must config the bootargs manually before burning.

8.2 How to use

If the user want to set bootargs to the board automaticlly, please check the button on Partition Burning or EMMC Burning page.
The preference page for bootargs configurating will be shown, as Figure 8-1 shows. Users can also open this preference page through "Window" -> "Preferences" -> "HiBurn" Page -> "Bootargs" Page.

Figure 8-1 The preference page for bootargs configurating

¡°Setenv Type¡± list defines the types that "setenv" command uses. Each item in the list will have a command text created and bind to it.

As the situationFigure 8-1 shows, 2 types(¡°bootargs¡± and "bootcmd") are defined. After burning£¬HiBurn will create 2 commands (¡°setenv bootargs ...¡± and ¡°setenv bootcmd ...¡±) and send them to the board.

Click to add a new type. Double click on the cell under the "Name" columm to edit the type name.
Click to delete a type. Users cannot delete the first type.

If partition table needed to be added for a type, please check the button under "P.Table" column to the specified item.



If partition table needed to be added for a type, then DO NOT add "mtdparts" parameter for this type. HiBurn will generate this parameter automaticlly.


"Parameters" list defines the parameters will be set to the specified Setenv type. One Setenv type contains 1 or more parameters.
Change the selection in the ¡°Setenv Type¡± list, the parameters list will be refreshed.

Click button to add a parameter.
Double click on the cell under the "Item" column to edit the parameter text.
Click button to delete a parameter.

As the situation Figure 8-1 shows£¬the final command text HiBurn generate will be ¡±setenv bootargs 'mem=96M root=/dev/mtdblock2 console=ttyAMA0,115200 rootfstype=jffs2 mtdparts=...'¡°

Users can check the command texts via the preview window.£¨'[Command]' will not be sent to the board, it is only used to indicate users that there is a new command. '(partition_table)' is a signer for partition data, and it will be replaced by the real partition data when sending commands.£©¡£

Click to import a bootargs configuration file.
Click to export the bootargs configuration to a file.



As the limitation of the 'setenv' command format, when export the bootargs to a file, all parameters will be combined into one parameter,
(When import the saved file, there will be only one parameter displayed), even though the user input more than one parameter before exporting.