Various tasks are performed with bootloader commands. On the [[bootloader]] console, you can list the available commands with "help", and get more information about each command with "help command".

+

{{Languages|U-Boot commands}}

+

{{Bootloader}}

+

+

Various tasks are performed with U-Boot commands. On the [[U-Boot]] console, you can list the available commands with "help", and get more information about each command with "help command".

== Auto-boot ==

== Auto-boot ==

Line 9:

Line 12:

</pre>

</pre>

−

This basically tells us that it will load the content of the NAND [[partition]] '''kernel''' to memory address 0x32000000 and then try to boot it.

+

This basically tells us that it will load the content of the NAND [[Partitions|partition]] '''kernel''' to memory address 0x32000000 and then try to boot it.

== Environment ==

== Environment ==

−

:''See also [[bootloader environment]].''

+

:''See also [[U-Boot environment]].''

−

u-boot is configured to manage a non-volatile environment that is stored in the NAND flash [[partition]] named "u-boot_env". u-boot itself gets the location from OOB. You have commands to display, alter, and store the environment.

+

u-boot is configured to manage a non-volatile environment that is stored in the NAND flash [[Partitions|partition]] named "u-boot_env". u-boot itself gets the location from OOB. You have commands to display, alter, and store the environment.

This displays all definitions in the current environment:

This displays all definitions in the current environment:

Line 48:

Line 51:

Saving Environment to NAND...

Saving Environment to NAND...

Erasing Nand...Writing to Nand... done

Erasing Nand...Writing to Nand... done

−

GTA01Bv3 #

+

GTA01Bv3 #

</pre>

</pre>

−

Note: When setting multiple commands, e.g. for bootcmd, you need to escape the ';', for instance:

+

You should escape ';', '$' by '\' and replace first occurence of '=' with ' ' on each line.

While in this state, your Neo1973 can be charged with a generic USB charger. You also need to set

+

While in this state, your Neo1973 can be charged with a generic USB charger. You also need to set

setenv boot_menu_timeout 65000

setenv boot_menu_timeout 65000

saveenv

saveenv

Line 224:

Line 235:

{{warning|This is potentially dangerous. Only enable autofast if you ARE SURE that you can draw 500mA from the USB connector. This is the case with a wall outlet charger, or if you are attached to a self-powered hub or a desktop PC root hub. Bus powered hubs and some laptops only provide 100mA on their USB ports and can thus not support fast charging}}

{{warning|This is potentially dangerous. Only enable autofast if you ARE SURE that you can draw 500mA from the USB connector. This is the case with a wall outlet charger, or if you are attached to a self-powered hub or a desktop PC root hub. Bus powered hubs and some laptops only provide 100mA on their USB ports and can thus not support fast charging}}

u-boot is configured to manage a non-volatile environment that is stored in the NAND flash partition named "u-boot_env". u-boot itself gets the location from OOB. You have commands to display, alter, and store the environment.

Please note that this will only work with root file system sizes that are smaller than the amount of memory above 0x32000000, which in the case of 64MB SDRAM is something like 32MB. Warning: you risk bricking your phone if you attempt to read in too large a file as extload appears to write the overflow into dangerous parts of memory address space.

Autofast is a feature of the PCF50606 PMU. It means that the fast_cccv mode will be automatically selected if a charger with suitable voltage is plugged in, and the battery not in over temperature condition.

WARNING: This is potentially dangerous. Only enable autofast if you ARE SURE that you can draw 500mA from the USB connector. This is the case with a wall outlet charger, or if you are attached to a self-powered hub or a desktop PC root hub. Bus powered hubs and some laptops only provide 100mA on their USB ports and can thus not support fast charging

Environment

u-boot is configured to manage a non-volatile environment that is stored in the NAND flash partition named "u-boot_env". u-boot itself gets the location from OOB. You have commands to display, alter, and store the environment.

Please note that this will only work with root file system sizes that are smaller than the amount of memory above 0x32000000, which in the case of 64MB SDRAM is something like 32MB. Warning: you risk bricking your phone if you attempt to read in too large a file as extload appears to write the overflow into dangerous parts of memory address space.

While in this state, your Neo1973 can be charged with a generic USB charger. You also need to set

setenv boot_menu_timeout 65000
saveenv

to keep it from powering down, though.

Enabling / Disabling automatic fast charge

Autofast is a feature of the PCF50606 PMU. It means that the fast_cccv mode will be automatically selected if a charger with suitable voltage is plugged in, and the battery not in over temperature condition.

WARNING: This is potentially dangerous. Only enable autofast if you ARE SURE that you can draw 500mA from the USB connector. This is the case with a wall outlet charger, or if you are attached to a self-powered hub or a desktop PC root hub. Bus powered hubs and some laptops only provide 100mA on their USB ports and can thus not support fast charging

You can enable or disable autofast by

neo1973 charger autofast

and

neo1973 charger !autofast

respectively.

Backlight

You can switch the backlight on and off by using

neo1973 backlight on

and

neo1973 backlight off

respectively.

Vibrator

You can switch the vibrator on and off by using

neo1973 vibrator on

and

neo1973 vibrator off

respectively.

GSM

Starting with OpenMoko patchset SVN revision 2885, u-boot contains support for powering the GSM modem,
and even accessing the modem from the console.

GSM power

You can switch the GSM modem on and off by using

neo1973 gsm on

and

neo1973 gsm off

respectively.

terminal mode

You can access the GSM modem using openmoko's built-in terminal emulator in u-boot.