Difference between revisions of "U-Boot for CM-X300"

From Compulab Mediawiki
Jump to: navigation, search
 
(15 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Overview ==
+
{{summary|
 
The CompuLab CM-X300 module is using U-Boot boot-loader for low-level initializations and operating system loading.
 
The CompuLab CM-X300 module is using U-Boot boot-loader for low-level initializations and operating system loading.
 
U-Boot is an open source firmware for wide range of embedded systems (e.g. PowerPC, ARM, MIPS, x86, ColdFire, AVR32, NIOS, etc.).
 
U-Boot is an open source firmware for wide range of embedded systems (e.g. PowerPC, ARM, MIPS, x86, ColdFire, AVR32, NIOS, etc.).
 
On this page we will discuss only features and use cases related to CompuLab CM-X300 module.
 
On this page we will discuss only features and use cases related to CompuLab CM-X300 module.
For more information on U-Boot, please refer to http://www.denx.de/wiki/U-Boot/WebHome. <br>
+
For more information on U-Boot, please refer to [http://www.denx.de/wiki/U-Boot/WebHome Official U-Boot Homepage]. <br>
The most recent CompuLab U-Boot version for CM-X300 is checked out from '''v2009.03''' of [http://git.denx.de/?p=u-boot.git;a=summary Das U-Boot repository] and can be obtained from [http://www.compulab.co.il/x300/html/x300-developer.py CompuLab website] in binary form.
+
The most recent CompuLab U-Boot version for CM-X300 is checked out from '''v2009.03''' of [http://git.denx.de/?p&#61;u-boot.git Das U-Boot repository].<br>
CompuLab U-Boot source will be provided on request.
 
  
== CM-X300 Firmware Update process ==
+
Links to information about U-Boot package for CM-X300 modules:
 +
* [[CM-X300: U-Boot: Firmware Update|Firmware Update]]
 +
* [[CM-X300: U-Boot: Firmware Development|Firmware Development]]
 +
* [[CM-X300: U-Boot: Disabled Module Recovery|Disabled Module Recovery]]
 +
* [[CM-X300: U-Boot: Custom Features|Custom Features]]
 +
* [[U-Boot quick reference]]
 +
* [[U-Boot images]]
 +
* [http://www.denx.de/wiki/U-Boot/Documentation U-Boot documentation]
 +
|X300-cm-top-m.jpg|thumb}}
  
=== Preliminary ===
+
__NOTOC__
Some basic steps are needed to be taken in order to update the CM-X300 firmware successfully:
 
* Make sure to power off the CM-X300 board
 
* Connect one end of the supplied serial cable to your module's base board and the other one to your host system
 
* Start terminal console application on your host system and configure the following:
 
** Set the serial port to one with the attached cable
 
** Set baud rate to 38400 bps
 
** 8 bit per frame
 
** 1 stop bit
 
** no parity
 
** no flow control
 
* Turn the CM-X300 board on
 
* Now you should get the U-Boot command prompt in your terminal application
 
{{Note| If you have an operating system installed or U-Boot environment configured for auto boot, you will have to stop the auto boot sequence by pressing any key in your terminal application during the start of the boot process!}}
 
U-Boot firmware could be updated either from [[U-Boot_for_CM-X300#USB_flash_drive|USB flash drive]] (with FAT filesystem), or from [[U-Boot_for_CM-X300#Network_tftp_download|Network tftp download]].
 
Either method is done from U-Boot command line.
 
  
=== USB flash drive ===
+
{{ChangelogRss| content=
{{Note| Please, connect your flash drive directly to the base board of the module! Do not use any USB hubs or other separating equipment!}}
+
===== 04-Apr-2013 =====
To update the U-Boot firmware via USB flash drive, follow the instructions precisely!
+
: U-Boot 2009.03-cm-x300-6.2 release
* Start the U-Boot USB subsystem and check that your storage device is ready and contains the firmware
+
: - Added progress bar for various commands
** Type: ''usb start''
+
: - Fixed baudrate issue not being applied on boot
** Type: ''fatls usb 0'' to ensure you have the firmware in place
+
: - Fixed LCD shift issue
<pre>
+
: - Fixed PCB revision detection for revision 1.41 boards
U-Boot> usb start
+
: Documentation
(Re)start USB...
+
: - Updated multiple articles to comply with the new U-Boot package
USB:   scanning bus for devices... 2 USB Device(s) found
 
      scanning bus for storage devices... 1 Storage Device(s) found
 
U-Boot> fatls usb 0
 
  524288  cm-x300-firmware
 
  
1 file(s), 0 dir(s)
+
===== 21-Oct-2010 =====
</pre>
+
: U-Boot 2009.03-cm-x300-6.1 release
 +
: - Fixed USB OTG Host port
  
* Load the firmware to memory
+
===== 10-Oct-2010 =====
** Type: ''fatload usb 0 80a00000 <firmware filename>''
+
: [[CM-X300: U-Boot: Firmware Update]] article updated:
 +
: - Added update from MMC/SD Card
  
<pre>
+
===== 05-Oct-2010 =====
U-Boot> fatload usb 0 80a00000 cm-x300-firmware
+
: [[CM-X300: U-Boot: LCD and Splash screen]] article renamed to [[CM-X300: U-Boot: Custom Features]] and extended with:
reading cm-x300-firmware
+
: - CPU frequency change
 +
: - "silent" option
 +
: - boot delay
 +
: - custom GPIO setting
 +
: - U-Boot advanced power mode
 +
: - Alternate Boot Button
  
524288 bytes read
+
===== 20-Sep-2010 =====
</pre>
+
: U-Boot 2009.03-cm-x300-6 release
* Proceed to [[U-Boot_for_CM-X300#Update_process|Update process]] section
+
: - Added MMC/SD card support
 +
: - Added Alternative Boot Button handling
 +
: - Added custom GPIO setting
 +
: - Improved PM and PI2C handling
 +
: - Fixed Ethernet detection
  
=== Network tftp download ===
+
===== 14-Apr-2010 =====
In order to use this update method, you need:
+
: U-Boot 2009.03-cm-x300-5 release
* TFTP service/server installed on your host system
+
: - Added CPU frequency change support
* Firmware file should reside in the root directory of TFTP service
+
: - Added "silent" option support
To update the U-Boot firmware via tftp download, follow the instructions precisely!
+
: - Improved Ethernet performance
* Download the firmware to module's memory
 
** Type: ''tftp 80a00000 <firmware filename>''
 
<pre>
 
U-Boot> tftp 80a00000 cm-x300-firmware
 
dm9000 i/o: 0x8000010, id: 0x90000a46
 
DM9000: running in 16 bit mode
 
MAC: 00:01:c0:05:20:be
 
operating at 100M full duplex mode
 
TFTP from server 10.1.1.13; our IP address is 10.1.1.144
 
Filename 'cm-x300-firmware'.
 
Load address: 0x80a00000
 
Loading: ####################################
 
done
 
Bytes transferred = 524288 (80000 hex)
 
</pre>
 
* Proceed to [[U-Boot_for_CM-X300#Update_process|Update process]] section
 
{{Note| If you get the "''could not establish link''" message, check that your ethernet plugs are in place and try again.}}
 
  
=== Update process ===
+
===== 28-Mar-2010 =====
{{Warning| DO NOT RESET OR POWER OFF THE MODULE DURING THE UPDATE PROCESS! DOING SO MAY RESULT IN DISABLED MODULE!}}
+
: Added [[CM-X300: U-Boot: Disabled Module Recovery]] article
  
* Flash the firmware to onboard NAND storage
+
===== 04-Mar-2010 =====
** Type: ''nand erase 0 80000''
+
: Added [[CM-X300: U-Boot: LCD and Splash screen]] article
** Type: ''nand write 80a00000 0 80000''
 
<pre>
 
U-Boot> nand erase 0 80000
 
  
NAND erase: device 0 offset 0x0, size 0x80000
+
===== 09-Feb-2010 =====
Erasing at 0x60000 -- 100% complete.
+
: U-Boot 2009.03-cm-x300-4 release
OK
+
: - Added DRAM size detection
U-Boot> nand write 80a00000 0 80000
+
: - Added LCD and Splash screen support
 +
: - Added support for resume from S3/D4/C4 low power mode
 +
: - Added I2C and PCA953X GPIO chip driver
 +
: - Added support for USB port3 on modules without "W" option
 +
: - Disabled debug output to FFUART
 +
: - Fixed MFPR setup for PXA310
 +
: - Fixed VCC Core voltage configuration
  
NAND write: device 0 offset 0x0, size 0x80000
+
===== 10-Dec-2009 =====
524288 bytes written: OK
+
: Added [[CM-X300: U-Boot: Firmware Development]] article
</pre>
 
* Now you may reset the board
 
  
{{Important|In case you use Windows CE and you update U-Boot, you will need to load the ImageUdater after the U-Boot update. There is no need to install the image again. This will update the NAND flash metadata that is crucial for Windows CE.}}
+
===== 2-Sep-2009 =====
 +
: U-Boot 2009.03-cm-x300-3 release
 +
: - Added PXA310 USB support
 +
: - Green LED (for CM-X300 revision 1.3 and higher)
  
== See also ==
+
===== 27-May-2009 =====
 +
: Initial release of [[U-Boot for CM-X300]] documentation
 +
: U-Boot 2009.03-cm-x300-2 release supports:
 +
: - DA9030 power management chip
 +
: - DM9000A Ethernet chip
 +
: - PXA300 USB
 +
: - Onboard NAND chip
 +
: - Green LED (up to CM-X300 revision 1.2)
 +
: - System revision and serial number in ATAGS
 +
}}
  
* [[U-Boot quick reference]]
+
 
* [[Getting started with Linux on CM-X300]]
+
[[Category:U-Boot]]
* [http://www.denx.de/wiki/U-Boot/Documentation U-Boot documentation]
+
[[Category:CM-X300]]

Latest revision as of 10:33, 4 April 2013

The CompuLab CM-X300 module is using U-Boot boot-loader for low-level initializations and operating system loading. U-Boot is an open source firmware for wide range of embedded systems (e.g. PowerPC, ARM, MIPS, x86, ColdFire, AVR32, NIOS, etc.). On this page we will discuss only features and use cases related to CompuLab CM-X300 module. For more information on U-Boot, please refer to Official U-Boot Homepage.
The most recent CompuLab U-Boot version for CM-X300 is checked out from v2009.03 of Das U-Boot repository.

Links to information about U-Boot package for CM-X300 modules:

X300-cm-top-m.jpg


News

04-Apr-2013
U-Boot 2009.03-cm-x300-6.2 release
- Added progress bar for various commands
- Fixed baudrate issue not being applied on boot
- Fixed LCD shift issue
- Fixed PCB revision detection for revision 1.41 boards
Documentation
- Updated multiple articles to comply with the new U-Boot package
21-Oct-2010
U-Boot 2009.03-cm-x300-6.1 release
- Fixed USB OTG Host port
10-Oct-2010
CM-X300: U-Boot: Firmware Update article updated:
- Added update from MMC/SD Card
05-Oct-2010
CM-X300: U-Boot: LCD and Splash screen article renamed to CM-X300: U-Boot: Custom Features and extended with:
- CPU frequency change
- "silent" option
- boot delay
- custom GPIO setting
- U-Boot advanced power mode
- Alternate Boot Button
20-Sep-2010
U-Boot 2009.03-cm-x300-6 release
- Added MMC/SD card support
- Added Alternative Boot Button handling
- Added custom GPIO setting
- Improved PM and PI2C handling
- Fixed Ethernet detection
14-Apr-2010
U-Boot 2009.03-cm-x300-5 release
- Added CPU frequency change support
- Added "silent" option support
- Improved Ethernet performance
28-Mar-2010
Added CM-X300: U-Boot: Disabled Module Recovery article
04-Mar-2010
Added CM-X300: U-Boot: LCD and Splash screen article
09-Feb-2010
U-Boot 2009.03-cm-x300-4 release
- Added DRAM size detection
- Added LCD and Splash screen support
- Added support for resume from S3/D4/C4 low power mode
- Added I2C and PCA953X GPIO chip driver
- Added support for USB port3 on modules without "W" option
- Disabled debug output to FFUART
- Fixed MFPR setup for PXA310
- Fixed VCC Core voltage configuration
10-Dec-2009
Added CM-X300: U-Boot: Firmware Development article
2-Sep-2009
U-Boot 2009.03-cm-x300-3 release
- Added PXA310 USB support
- Green LED (for CM-X300 revision 1.3 and higher)
27-May-2009
Initial release of U-Boot for CM-X300 documentation
U-Boot 2009.03-cm-x300-2 release supports:
- DA9030 power management chip
- DM9000A Ethernet chip
- PXA300 USB
- Onboard NAND chip
- Green LED (up to CM-X300 revision 1.2)
- System revision and serial number in ATAGS