<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=CM-T3530%3A_Linux%3A_Getting_started</id>
	<title>CM-T3530: Linux: Getting started - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.compulab.com/w/index.php?action=history&amp;feed=atom&amp;title=CM-T3530%3A_Linux%3A_Getting_started"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=CM-T3530:_Linux:_Getting_started&amp;action=history"/>
	<updated>2026-09-02T08:47:46Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://mediawiki.compulab.com/w/index.php?title=CM-T3530:_Linux:_Getting_started&amp;diff=1614&amp;oldid=prev</id>
		<title>Grinberg: /* Install Images on the MMC/SD Card using Linux Host workstation */</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=CM-T3530:_Linux:_Getting_started&amp;diff=1614&amp;oldid=prev"/>
		<updated>2013-10-28T13:33:18Z</updated>

		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Install Images on the MMC/SD Card using Linux Host workstation&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;a href=&quot;https://mediawiki.compulab.com/w/index.php?title=CM-T3530:_Linux:_Getting_started&amp;amp;diff=1614&amp;amp;oldid=685&quot;&gt;Show changes&lt;/a&gt;</summary>
		<author><name>Grinberg</name></author>
		
	</entry>
	<entry>
		<id>https://mediawiki.compulab.com/w/index.php?title=CM-T3530:_Linux:_Getting_started&amp;diff=685&amp;oldid=prev</id>
		<title>Mike at 14:19, 23 December 2009</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.compulab.com/w/index.php?title=CM-T3530:_Linux:_Getting_started&amp;diff=685&amp;oldid=prev"/>
		<updated>2009-12-23T14:19:10Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Preparation steps ==&lt;br /&gt;
* Obtain a PC workstation with a serial communication port.&lt;br /&gt;
* For networked installation you need to install a TFTP server on the host PC. For Windows machines we recommend [http://tftpd32.jounin.net/ TFTPD32] included in the [http://www.compulab.co.il/t3530/download/t3530-linux.zip Linux package for CM-T3530].&lt;br /&gt;
* Download the [http://www.compulab.co.il/t3530/download/t3530-linux.zip Linux package for CM-T3530] from CompuLab's website . Unzip the package to a directory on your host workstation.&lt;br /&gt;
* All image files mentioned below can be found in {{filename|images}} subdirectory&lt;br /&gt;
&lt;br /&gt;
== Image installation ==&lt;br /&gt;
* Connect the host PC to the SB-T35 base-board (connector P8) via the serial cable supplied with the evaluation kit.&lt;br /&gt;
* Start terminal emulation software on your PC. Set baud rate to 115200 bps, 8 bit per frame, 1 stop bit, no parity, no flow control.&lt;br /&gt;
* Turn on the CM-T3530 evaluation system. The U-Boot boot-loader will start and you will get a command prompt. &lt;br /&gt;
*: {{Note|If the boot settings of your CM-T3530 are different than default, you may need to press and hold ^C while turning the CM-T3530 on, in order to get command prompt.}}&lt;br /&gt;
&lt;br /&gt;
=== Installation using MMC/SD card ===&lt;br /&gt;
* Copy {{filename|Angstrom-image.ubi}}, {{filename|uImage-cm-t35.bin}}, {{filename|kernel.img}}, {{filename|ramdisk.img}} and {{filename|bootscr.img}} from [http://www.compulab.co.il/t3530/download/t3530-linux.zip Linux package for CM-T3530] to the root directory of the MMC/SD card. &lt;br /&gt;
* Insert the MMC/SD card into the SD socket (P13) on SB-T35.&lt;br /&gt;
* Use the following U-boot commands to boot Linux on CM-T3530:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; mmc init&lt;br /&gt;
&amp;gt; fatload mmc 0:1 80400000 bootscr.img&lt;br /&gt;
&amp;gt; source 80400000&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
{{Note|U-Boot with default settings will load and run {{filename|bootscr.img}} script automatically}}&lt;br /&gt;
* After the ramdisk image is loaded, you will get Linux login prompt. Login as {{parameter|root}} into the system.&lt;br /&gt;
* The MMC/CD card will be mounted automatically under {{filename|/media/mmcblk0p1}}&lt;br /&gt;
* Format the NAND flash kernel partition and write the kernel image onto it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ flash_eraseall /dev/mtd3&lt;br /&gt;
$ nandwrite -p /dev/mtd3 /media/mmcblk0p1/uImage-cm-t35.bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Format the NAND flash root filesystem partition and write Angstrom filesystem image onto it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ubiformat -O 2048 /dev/mtd4 -f /media/mmcblk0p1/Angstrom-image.ubi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Continue to [[#After Installation | After Installation]] section&lt;br /&gt;
&lt;br /&gt;
=== Installation using NFS ===&lt;br /&gt;
* Connect the CM-T3530 Ethernet port (connector P18 on SB-T35) to your local network&lt;br /&gt;
* Copy {{filename|Angstrom-image.ubi}} and {{filename|uImage-cm-t35.bin}} from [http://www.compulab.co.il/t3530/download/t3530-linux.zip Linux package for CM-T3530] to a directory exported through NFS.&lt;br /&gt;
* Make sure that Linux kernel binary image {{filename|kernel.img}}, ramdisk image {{filename|ramdisk.img}} and bootloader script image {{filename|bootscr.img}} are accessible by the TFTP server. &lt;br /&gt;
*: - On Windows machine: copy {{filename|kernel.img}}, {{filename|ramdisk.img}} and {{filename|bootscr.img}} to the same folder and point the TFTP server to that folder&lt;br /&gt;
*: - On Linux machine: copy {{filename|kernel.img}}, {{filename|ramdisk.img}} and {{filename|bootscr.img}} to TFTP server root directory, usually {{filename|/tftpboot}} or {{filename|/tftproot}}.&lt;br /&gt;
* You can use U-boot {{cmd|dhcp}} command to obtain IP address or manually set {{parameter|ipaddr}} environment variable:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; setenv ipaddr &amp;lt;CM-T3530 ip address&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Set {{parameter|serverip}} environment variable and save the new environment to NAND flash:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; setenv serverip &amp;lt;host ip address&amp;gt;&lt;br /&gt;
&amp;gt; saveenv&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Use the following U-boot command to boot Linux on CM-T3530:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; tftp 80400000 bootscr.img &amp;amp;&amp;amp; source 80400000&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* After the ramdisk image is loaded you will get Linux login prompt. Login as {{parameter|root}} into the system.&lt;br /&gt;
* During boot the CM-T3530 will attempt to obtain an IP address using DHCP. If you do not have DHCP server you can set a static IP address using {{cmd|ifconfig}}:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ifconfig eth0 &amp;lt;ip address&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* Mount the NFS share containing {{filename|cm-t3530-kernel.jffs2}} and {{filename|Angstrom-image.ubi}} image:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ mount -n &amp;lt;host ip&amp;gt;:/path/to/nfs/share /mnt/net&lt;br /&gt;
&amp;lt;/pre&amp;gt; &lt;br /&gt;
* Format the NAND flash kernel partition and write the kernel image onto it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ flash_eraseall /dev/mtd3&lt;br /&gt;
$ nandwrite -p /dev/mtd3 /mnt/net/uImage-cm-t35.bin&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Format the NAND flash root filesystem partition and write Angstrom filesystem image onto it:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ ubiformat /dev/mtd4 -f /mnt/net/Angstrom-image.ubi&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
* Continue to [[#After Installation | After Installation]] section&lt;br /&gt;
&lt;br /&gt;
== After Installation ==&lt;br /&gt;
* Make sure there is no MMC/SD card in the SD socket (P13) on SB-T35.&lt;br /&gt;
* Reset the system.&lt;br /&gt;
*: {{Note|If the boot settings of your CM-T3530 are different than default, you may need to press and hold ^C while turning the CM-T3530 on, in order to get command prompt.}}&lt;br /&gt;
* To boot Linux, type: &lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;gt; nboot 82000000 nand0 2a0000; bootm&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Caution|The Linux kernel for CM-T3530 is shipped with built-in command line parameters that define primary console, default display settings, root device and root filesystem type. Setting U-Boot {{parameter|bootargs}} environment variable overrides default kernel command line!}} &lt;br /&gt;
* For Linux automatic boot, type: &lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;gt; setenv bootdelay 3&lt;br /&gt;
&amp;gt; setenv bootcmd &amp;quot;nboot 82000000 nand0 2a0000; bootm&amp;quot;&lt;br /&gt;
&amp;gt; saveenv&lt;br /&gt;
&amp;gt; boot&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
{{Note|If you want to get back to U-Boot prompt, hold '''Ctrl-C''' during reset.}}&lt;br /&gt;
CM-T3530 will boot Angstrom Linux from the internal NAND flash. Note, that the first boot takes a long time because Angstrom Linux performs a lot of one-time initialization tasks.&lt;br /&gt;
{{Important|When the Angstrom Linux is run for the first time it presents several configuration screens. Make sure to choose &amp;quot;Angstrom&amp;quot; profile in the profile selection.}}&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
&lt;br /&gt;
* [[CM-T3530: Linux: Angstrom]]&lt;br /&gt;
* [[CM-T3530: Linux: Kernel]]&lt;br /&gt;
* [[Linux Development for ARM modules]]&lt;br /&gt;
* [[U-Boot for CM-T3530]]&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux|Getting started]]&lt;br /&gt;
[[Category:CM-T3530|Linux: Getting started]]&lt;/div&gt;</summary>
		<author><name>Mike</name></author>
		
	</entry>
</feed>