Difference between revisions of "CL-SOM-AM57x: Linux: Manual Installation"

From Compulab Mediawiki
Jump to: navigation, search
(Using installation environment from TFTP server)
(Using installation environment on MMC/SD card)
Line 1: Line 1:
 
== Introduction ==
 
== Introduction ==
This article provides an introduction on how to install the example root filesystem image on the CompuLab CL-SOM-AM57x System-on-Module / Computer-on-Module eMMC internal storage device.
+
This article provides an introduction on how to install the following on the CompuLab CL-SOM-AM57x System-on-Module / Computer-on-Module eMMC internal storage device:
 +
* Example user space (root filesystem) image.
 +
* Linux kernel images.
  
 
== Preparation steps ==
 
== Preparation steps ==
Line 9: Line 11:
 
* Connect the host PC to the SB-SOM-AM57x base-board (connector P8) via the serial cable supplied with the evaluation kit.
 
* Connect the host PC to the SB-SOM-AM57x base-board (connector P8) via the serial cable supplied with the evaluation kit.
 
** SB-SOM-AM57x base-board features Serial-to-USB adapter available through connector P7. It can be used as an alternative debug port to connect the Host PC via the micro-USB cable supplied with the evaluation kit.
 
** SB-SOM-AM57x base-board features Serial-to-USB adapter available through connector P7. It can be used as an alternative debug port to connect the Host PC via the micro-USB cable supplied with the evaluation kit.
* 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.
+
* Start terminal emulation software on your PC with the following serial port settings:
 +
<blockquote>
 +
{{:SB-SOM: serial port parameters table}}
 +
</blockquote>
 
* Turn on the CL-SOM-AM57x evaluation system. The U-Boot boot-loader will start and you will get a command prompt.
 
* Turn on the CL-SOM-AM57x evaluation system. The U-Boot boot-loader will start and you will get a command prompt.
 
*: {{Note|If the boot settings of your CL-SOM-AM57x are different than default, you may need to press and hold '''Ctrl-C''' while turning the CL-SOM-AM57x on, in order to get command prompt.}}
 
*: {{Note|If the boot settings of your CL-SOM-AM57x are different than default, you may need to press and hold '''Ctrl-C''' while turning the CL-SOM-AM57x on, in order to get command prompt.}}
Line 21: Line 26:
  
 
=== Using installation environment on MMC/SD card ===
 
=== Using installation environment on MMC/SD card ===
* Copy {{filename|kernel.img}}, {{filename|am57xx-sbc-am57x.dtb}} and {{filename|ramdisk.img}} from {{filename|images}} sub-directory of [http://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres Linux package for CL-SOM-AM57x] to the root directory on the first partition of the MMC/SD card.
+
* Copy the following files from [http://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres Linux package for CL-SOM-AM57x] to the root directory on the first partition of the MMC/SD card:
 +
** {{filename|kernel.img}}, {{filename|ramdisk.dtb}}, {{filename|ramdisk.img}} and {{filename|rootfs.tar.bz2}} from the package directory {{filename|images}}
 +
** For Kernel 4.4:
 +
*** {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/kernel-v4.4}}
 +
*** {{filename|rootfs-update}} from the package directory {{filename|extra/kernel-v4.4}}
 +
** For TI SDK kernel 4.1:
 +
*** {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/ti-sdk-4.1}}
 +
*** {{filename|rootfs-update}} from the package directory {{filename|extra/ti-sdk-4.1}}
 +
 
 +
{{Note|Format without a partition table is not supported by U-Boot.
 +
The partition has to be formatted with either ext2/3/4 or FAT16/32 file system.}}
 
* Insert the MMC/SD card into the MMC/SD socket (P9) on the SB-SOM-AM57x baseboard and reset the module.
 
* Insert the MMC/SD card into the MMC/SD socket (P9) on the SB-SOM-AM57x baseboard and reset the module.
* The installation environment boot will start automatically.
 
 
* To start installation environment boot manually, use the following U-Boot commands:
 
* To start installation environment boot manually, use the following U-Boot commands:
 
<pre>
 
<pre>
 
CL-SOM-AM57x # mmc dev 0
 
CL-SOM-AM57x # mmc dev 0
 
CL-SOM-AM57x # mmc rescan
 
CL-SOM-AM57x # mmc rescan
CL-SOM-AM57x # load mmc 0 0x88000000 am57xx-sbc-am57x.dtb && load mmc 0 0x82000000 kernel.img && load mmc 0 0x88080000 ramdisk.img
+
CL-SOM-AM57x # load mmc 0 0x88000000 ramdisk.dtb && load mmc 0 0x82000000 kernel.img && load mmc 0 0x88080000 ramdisk.img
 
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M"
 
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M"
 
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000
 
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000
 
</pre>
 
</pre>
* Continue to the [[#Install Kernel and Root File System Images | Install Kernel and Root File System Images ]] section.
+
* Continue to the [[#Install Kernel and Root File System Images|Install Kernel and Root File System Images]] section.
  
 
=== Using installation environment from USB storage device ===
 
=== Using installation environment from USB storage device ===
* Copy {{filename|kernel.img}}, {{filename|am57xx-sbc-am57x.dtb}} and {{filename|ramdisk.img}} from {{filename|images}} sub-directory of [http://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres Linux package for CL-SOM-AM57x] to the root directory on the first partition of the USB storage device.
+
* Copy the following files from [http://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres Linux package for CL-SOM-AM57x] to the root directory on the first partition on the USB storage device:
 
+
** {{filename|kernel.img}}, {{filename|ramdisk.dtb}}, {{filename|ramdisk.img}} and {{filename|rootfs.tar.bz2}} from the package directory {{filename|images}}
* Insert USB storage device into SB-SOM-AM57x USB port P6.
+
** For Kernel 4.4:
 +
*** {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/kernel-v4.4}}
 +
*** {{filename|rootfs-update}} from the package directory {{filename|extra/kernel-v4.4}}
 +
** For TI SDK kernel 4.1:
 +
*** {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/ti-sdk-4.1}}
 +
*** {{filename|rootfs-update}} from the package directory {{filename|extra/ti-sdk-4.1}}
 +
* Plug the USB storage device into the SB-SOM-AM57x USB port P6.
 
* Remove MMC/SD card from the MMC/SD socket (P9) on the SB-SOM-AM57x baseboard.
 
* Remove MMC/SD card from the MMC/SD socket (P9) on the SB-SOM-AM57x baseboard.
* The installation environment boot will start automatically.
+
* Use the following U-boot commands to boot the installation environment on the CL-SOM-AM57x:
* To start installation environment boot manually, use the following U-Boot commands:
 
 
<pre>
 
<pre>
 
CL-SOM-AM57x # usb start
 
CL-SOM-AM57x # usb start
CL-SOM-AM57x # load usb 0 0x88000000 am57xx-sbc-am57x.dtb && load usb 0 0x82000000 kernel.img && load usb 0 0x88080000 ramdisk.img
+
CL-SOM-AM57x # load usb 0 0x88000000 ramdisk.dtb && load usb 0 0x82000000 kernel.img && load usb 0 0x88080000 ramdisk.img
 
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M"
 
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M"
 
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000
 
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000
 
</pre>
 
</pre>
 
+
* Continue to the [[#Install Kernel and Root File System Images|Install Kernel and Root File System Images]] section.
* Continue to the [[#Install Kernel and Root File System Images | Install Kernel and Root File System Images ]] section.
 
  
 
=== Using installation environment from TFTP server ===
 
=== Using installation environment from TFTP server ===
* Connect the SB-SOM-AM57x Ethernet port to your local network.
+
* Connect the SB-SOM-AM57x Ethernet port (connector P21 on the SB-SOM) to your local network.
* Put {{filename|kernel.img}}, {{filename|am57xx-sbc-am57x.dtb}}, and {{filename|ramdisk.img}} from {{filename|images}} sub-directory of [http://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres Linux package for CL-SOM-AM57x] to a location accessible by the TFTP server:
+
* Put {{filename|kernel.img}}, {{filename|ramdisk.dtb}}, and {{filename|ramdisk.img}} from {{filename|images}} sub-directory of [http://www.compulab.co.il/products/computer-on-modules/cl-som-am57x-ti-am5728-am5718-system-on-module/#devres Linux package for CL-SOM-AM57x] to a location accessible by the TFTP server:
*: - On Windows machine: copy {{filename|kernel.img}}, {{filename|am57xx-sbc-am57x.dtb}}, and {{filename|ramdisk.img}} to the same folder and point the TFTP server to that folder
+
*: - On Windows machine: copy {{filename|kernel.img}}, {{filename|ramdisk.dtb}}, and {{filename|ramdisk.img}} to the same folder and point the TFTP server to that folder
*: - On Linux machine: copy {{filename|kernel.img}}, {{filename|am57xx-sbc-am57x.dtb}}, and {{filename|ramdisk.img}} to TFTP server root directory, usually {{filename|/tftpboot}} or {{filename|/tftproot}}.
+
*: - On Linux machine: copy {{filename|kernel.img}}, {{filename|ramdisk.dtb}}, and {{filename|ramdisk.img}} to TFTP server root directory, usually {{filename|/tftpboot}} or {{filename|/tftproot}}.
  
 
Use U-Boot {{cmd|dhcp}} command to obtain IP address
 
Use U-Boot {{cmd|dhcp}} command to obtain IP address
Line 67: Line 85:
 
<pre>
 
<pre>
 
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M ip=dhcp"
 
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M ip=dhcp"
CL-SOM-AM57x # tftpboot 0x88000000 am57xx-sbc-am57x.dtb
+
CL-SOM-AM57x # tftpboot 0x88000000 ramdisk.dtb
 
CL-SOM-AM57x # tftpboot 0x82000000 kernel.img
 
CL-SOM-AM57x # tftpboot 0x82000000 kernel.img
 
CL-SOM-AM57x # tftpboot 0x88080000 ramdisk.img
 
CL-SOM-AM57x # tftpboot 0x88080000 ramdisk.img
 
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000
 
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000
 
</pre>
 
</pre>
 +
* Continue to the [[#Install Kernel and Root File System Images|Install Kernel and Root File System Images]] section.
  
* Continue to the [[#Install Kernel and Root File System Images  | Install Kernel and Root File System Images ]] section.
+
== Install Kernel and Root File System Images ==
 
 
=== Install Kernel and Root File System Images ===
 
 
After the ramdisk image is loaded the Linux login prompt will appear. Login as {{parameter|root}} into the system.
 
After the ramdisk image is loaded the Linux login prompt will appear. Login as {{parameter|root}} into the system.
 
<pre>
 
<pre>
Line 81: Line 98:
 
</pre>
 
</pre>
  
==== Mount the installation source media ====
+
=== Mount the installation source media ===
 
 
 
The next step is installing the kernel and Root File System images. The following media can be used as a source for installation:
 
The next step is installing the kernel and Root File System images. The following media can be used as a source for installation:
 
* [[#Mount an MMC/SD Card|MMC/SD Card]]
 
* [[#Mount an MMC/SD Card|MMC/SD Card]]
Line 88: Line 104:
 
* [[#Mount an NFS drive|NFS drive]]
 
* [[#Mount an NFS drive|NFS drive]]
  
===== Mount an MMC/SD Card =====
+
==== Mount an MMC/SD Card ====
* Copy the installation files to the root directory of any partition on the MMC/SD card. The partition can be formatted either ext2/3/4 or FAT file system:
 
** The file {{filename|debian-armhf-image.tar.bz2}} from the package directory {{filename|images}}
 
** For Kernel 4.4:
 
*** The content of the package directory {{filename|images/kernel-v4.4}}
 
*** Package file {{filename|extra/kernel-v4.4/rootfs-update}}
 
** For TI SDK kernel 4.1:
 
*** The files {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/ti-sdk-4.1}}
 
*** Package file {{filename|extra/ti-sdk-4.1/rootfs-update}}
 
 
* Insert the MMC/SD card into the SD socket (P9) on the SB-SOM-AM57x.
 
* Insert the MMC/SD card into the SD socket (P9) on the SB-SOM-AM57x.
 
* The MMC/SD card is mounted automatically under /media/mmcblk0pX. Where X is the partition number.
 
* The MMC/SD card is mounted automatically under /media/mmcblk0pX. Where X is the partition number.
Line 103: Line 111:
 
root@compulab:~# mkdir -p /media/mmcblk0pX && mount /dev/mmcblk0pX /media/mmcblk0pX
 
root@compulab:~# mkdir -p /media/mmcblk0pX && mount /dev/mmcblk0pX /media/mmcblk0pX
 
</pre>
 
</pre>
* Continue to the [[#Install Linux kernel and filesystem images | Install Linux kernel and filesystem images]] section.
+
* Continue to the [[#Install Images|Install Images]] section.
  
===== Mount a USB Storage Device =====
+
==== Mount a USB Storage Device ====
* Copy the installation files to the root directory of any partition on the USB storage device. The partition can be formatted either ext2/3/4 or FAT file system:
 
** The file {{filename|debian-armhf-image.tar.bz2}} from the package directory {{filename|images}}
 
** For Kernel 4.4:
 
*** The content of the package directory {{filename|images/kernel-v4.4}}
 
*** Package file {{filename|extra/kernel-v4.4/rootfs-update}}
 
** For TI SDK kernel 4.1:
 
*** The files {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/ti-sdk-4.1}}
 
*** Package file {{filename|extra/ti-sdk-4.1/rootfs-update}}
 
 
* Plug the USB storage device to any USB host port (P6) on the SB-SOM-AM57x.
 
* Plug the USB storage device to any USB host port (P6) on the SB-SOM-AM57x.
 
* The USB device is mounted automatically under /media/sdXY. Where X is the device letter and Y is the partition number.
 
* The USB device is mounted automatically under /media/sdXY. Where X is the device letter and Y is the partition number.
Line 120: Line 120:
 
root@compulab:~# mkdir -p /media/sdXY && mount /dev/sdXY /media/sdXY
 
root@compulab:~# mkdir -p /media/sdXY && mount /dev/sdXY /media/sdXY
 
</pre>
 
</pre>
* Continue to the [[#Install Linux kernel and filesystem images | Install Linux kernel and filesystem images]] section.
+
* Continue to the [[#Install Images|Install Images]] section.
  
===== Mount an NFS drive =====
+
==== Mount an NFS drive ====
 
* Connect the CL-SOM-AM57x Ethernet port (P21) to your local network.
 
* Connect the CL-SOM-AM57x Ethernet port (P21) to your local network.
 
* Copy the installation files to a directory exported through NFS:
 
* Copy the installation files to a directory exported through NFS:
** The file {{filename|debian-armhf-image.tar.bz2}} from the package directory {{filename|images}}  
+
** The file {{filename|rootfs.tar.bz2}} from the package directory {{filename|images}}  
 
** For Kernel 4.4:
 
** For Kernel 4.4:
*** The content of the package directory {{filename|images/kernel-v4.4}}
+
*** {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/kernel-v4.4}}
*** Package directory {{filename|extra/kernel-v4.4/rootfs-update}}
+
*** {{filename|rootfs-update}} from the package directory {{filename|extra/kernel-v4.4}}
 
** For TI SDK kernel 4.1:
 
** For TI SDK kernel 4.1:
*** The files {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/ti-sdk-4.1}}
+
*** {{filename|am57xx-sbc-am57x.dtb}} and {{filename|zImage-cl-som-am57x}} from the package directory {{filename|images/ti-sdk-4.1}}
*** Package directory {{filename|extra/ti-sdk-4.1/rootfs-update}}
+
*** {{filename|rootfs-update}} from the package directory {{filename|extra/ti-sdk-4.1}}
 +
 
 
* During Ramdisk image booting the CL-SOM-AM57x attempts to obtain an IP address using DHCP. If from some reason the IP address has not been obtained, use the following commands to obtain IP address for the CL-SOM-AM57x:
 
* During Ramdisk image booting the CL-SOM-AM57x attempts to obtain an IP address using DHCP. If from some reason the IP address has not been obtained, use the following commands to obtain IP address for the CL-SOM-AM57x:
 
** Obtain IP using DHCP:<pre>root@compulab:~# ifup eth1</pre>
 
** Obtain IP using DHCP:<pre>root@compulab:~# ifup eth1</pre>
Line 140: Line 141:
 
root@compulab:~#  mount -o nolock <host ip>:/path/to/nfs/share /mnt/net
 
root@compulab:~#  mount -o nolock <host ip>:/path/to/nfs/share /mnt/net
 
</pre>
 
</pre>
* Continue to the [[#Install Linux kernel and filesystem images | Install Linux kernel and filesystem images]] section.
+
* Continue to the [[#Install Images|Install Images]] section.
 
 
==== Install Linux kernel and filesystem images ====
 
  
 +
=== Install Images ===
 +
Once the ramdisk image is loaded and the media containing the CL-SOM-AM57x Kernel and Debian Linux images is mounted the installation can proceed.<br>
 
The Linux kernel and Root File System images can be installed on the following media:
 
The Linux kernel and Root File System images can be installed on the following media:
 
* [[#Install Images on eMMC|eMMC drive]]
 
* [[#Install Images on eMMC|eMMC drive]]
Line 149: Line 150:
 
* [[#Install on the NAND flash|NAND flash]]
 
* [[#Install on the NAND flash|NAND flash]]
  
===== Install Images on eMMC =====
+
==== Install Images on eMMC ====
 
{{Note|The below procedure will work only on empty eMMC chip. If you have already used the eMMC, please delete all the partitions before proceeding.}}
 
{{Note|The below procedure will work only on empty eMMC chip. If you have already used the eMMC, please delete all the partitions before proceeding.}}
 
* In this subsection the term {{filename|/mount/point}} can be:
 
* In this subsection the term {{filename|/mount/point}} can be:
Line 181: Line 182:
 
root@compulab:~# cp /mount/point/zImage-cl-som-am57x /mount/point/am57xx-sbc-am57x.dtb /media/mmcblk0p1 && sync
 
root@compulab:~# cp /mount/point/zImage-cl-som-am57x /mount/point/am57xx-sbc-am57x.dtb /media/mmcblk0p1 && sync
 
</pre>
 
</pre>
* Extract the content of the {{filename|debian-armhf-image.tar.bz2}} onto the second partition:
+
* Extract the content of the {{filename|rootfs.tar.bz2}} onto the second partition:
<pre>root@compulab:~# tar --numeric-owner -xvpjf /mount/point/debian-armhf-image.tar.bz2 -C /media/mmcblk0p2 && sync</pre>
+
<pre>root@compulab:~# tar --numeric-owner -xvpjf /mount/point/rootfs.tar.bz2 -C /media/mmcblk0p2 && sync</pre>
 
* Mount the user space update directory:
 
* Mount the user space update directory:
 
<pre>
 
<pre>
Line 197: Line 198:
 
root@compulab:~# reboot
 
root@compulab:~# reboot
 
</pre>
 
</pre>
 +
* Continue to the [[#After Installation|After Installation]] section.
  
===== Install on SATA drive =====
+
==== Install on SATA drive ====
 
{{Note|The below procedure will work only on empty SATA drive. If you have already used the drive, please delete all the partitions before proceeding.}}
 
{{Note|The below procedure will work only on empty SATA drive. If you have already used the drive, please delete all the partitions before proceeding.}}
 
* In this subsection the term {{filename|/mount/point}} can be:
 
* In this subsection the term {{filename|/mount/point}} can be:
Line 230: Line 232:
 
root@compulab:~# cp /mount/point/zImage-cl-som-am57x /mount/point/am57xx-sbc-am57x.dtb /media/boot && sync
 
root@compulab:~# cp /mount/point/zImage-cl-som-am57x /mount/point/am57xx-sbc-am57x.dtb /media/boot && sync
 
</pre>
 
</pre>
* Extract the content of {{filename|debian-armhf-image.tar.bz2}} onto the second partition:
+
* Extract the content of {{filename|rootfs.tar.bz2}} onto the second partition:
 
<pre>
 
<pre>
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/debian-armhf-image.tar.bz2 -C /media/rootfs && sync
+
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/rootfs.tar.bz2 -C /media/rootfs && sync
 
</pre>
 
</pre>
 
* Mount the user space update directory:
 
* Mount the user space update directory:
Line 248: Line 250:
 
root@compulab:~# reboot
 
root@compulab:~# reboot
 
</pre>
 
</pre>
* Continue to the [[#After Installation | After Installation]] section.
+
* Continue to the [[#After Installation|After Installation]] section.
  
===== Install on the NAND flash =====
+
==== Install on the NAND flash ====
 
* In this subsection the term {{filename|/mount/point}} can be:
 
* In this subsection the term {{filename|/mount/point}} can be:
 
** {{filename|/mnt/net}} if NFS is used
 
** {{filename|/mnt/net}} if NFS is used
Line 282: Line 284:
 
root@compulab:~# mkdir -p /media/rootfs && mount -t ubifs ubi0:rootfs /media/rootfs
 
root@compulab:~# mkdir -p /media/rootfs && mount -t ubifs ubi0:rootfs /media/rootfs
 
</pre>
 
</pre>
* Extract the content of {{filename|debian-armhf-image.tar.bz2}} onto the /media/rootfs:
+
* Extract the content of {{filename|rootfs.tar.bz2}} onto the /media/rootfs:
 
<pre>
 
<pre>
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/debian-armhf-image.tar.bz2 -C /media/rootfs && sync
+
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/rootfs.tar.bz2 -C /media/rootfs && sync
 
</pre>
 
</pre>
 
* Mount the user space update directory:
 
* Mount the user space update directory:
Line 300: Line 302:
 
root@compulab:~# reboot
 
root@compulab:~# reboot
 
</pre>
 
</pre>
* Continue to the [[#After Installation | After Installation]] section.
+
* Continue to the [[#After Installation|After Installation]] section.
  
 
== After Installation ==
 
== After Installation ==
 +
=== Select video output ===
 +
CL-SOM-AM57x (SBC-AM57x) evaluation platform has four video output interfaces: LCD, DVI, LVDS and HDMI. Current version of Xorg driver of CL-SOM-AM57x example root file system supports mirror video output mode only. It causes last registered video output device (LCD) resolution to be propagated to other devices.
  
 +
In order to force a specific video output device to be selected as a primary device the U-Boot environment variables should be adjusted.
  
 
+
* To enable HDMI video output:
=== Boot from eMMC ===
 
Default boot settings of CL-SOM-AM57x allows auto eMMC boot. If the boot settings are different than default, the following manual setup may be required.
 
 
 
* Set the {{parameter|bootargs}} environment variable:
 
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv bootargs "root=/dev/mmcblk0p2 rw rootwait console=ttyO2,115200n8"
+
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display1; fdt rm /ocp/dss/ports/port@0/endpoint@0; fdt rm /display@0; fdt rm /aliases display2;
 +
fdt rm /connector@1; fdt rm /tfp410; fdt rm /ocp/dss/ports/port@0/endpoint@1; fdt rm /aliases display3; fdt rm /ocp/dss/ports/port@2; fdt rm /display@1'
 
</pre>
 
</pre>
* To boot Linux, type:
+
* To enable LCD video output:
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv bootdelay 3
+
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display2; fdt rm /connector@1; fdt rm /tfp410; fdt rm /ocp/dss/ports/port@0/endpoint@1;
CL-SOM-AM57x # setenv bootcmd 'mmc dev 1 && mmc rescan && load mmc 1 ${loadaddr} zImage-cl-som-am57x && load mmc 1 ${fdtaddr}  am57xx-sbc-am57x.dtb && bootz ${loadaddr} - ${fdtaddr}'
+
fdt rm /aliases display3; fdt rm /ocp/dss/ports/port@2; fdt rm /display@1; fdt rm /aliases display0; fdt rm /ocp/dss/encoder@58060000; fdt rm /connector@0'
CL-SOM-AM57x # saveenv
 
CL-SOM-AM57x # boot
 
 
</pre>
 
</pre>
 
+
* To enable LVDS video output:
=== Boot from NAND flash ===
 
* Set the {{parameter|bootargs}} environment variable:
 
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv bootargs "root=ubi0:rootfs rw rootfstype=ubifs ubi.mtd=rootfs console=ttyO2,115200n8"
+
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display1; fdt rm /ocp/dss/ports/port@0/endpoint@0; fdt rm /display@0; fdt rm /aliases display2;
 +
fdt rm /connector@1; fdt rm /tfp410; fdt rm /ocp/dss/ports/port@0/endpoint@1; fdt rm /aliases display0; fdt rm /ocp/dss/encoder@58060000; fdt rm /connector@0'
 
</pre>
 
</pre>
* To boot Linux, type:
+
* To enable DVI video output:  
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv bootdelay 3
+
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display1; fdt rm /ocp/dss/ports/port@0/endpoint@0; fdt rm /display@0; fdt rm /aliases display3; fdt rm /ocp/dss/ports/port@2; fdt rm /display@1'
CL-SOM-AM57x # setenv bootcmd 'nand read ${loadaddr} 0 980000 &&  nand read ${fdtaddr} 980000 80000 && bootz ${loadaddr} - ${fdtaddr}'
 
CL-SOM-AM57x # saveenv
 
CL-SOM-AM57x # boot
 
 
</pre>
 
</pre>
  
=== Boot from SATA drive ===
+
=== Boot from eMMC ===
* Set the {{parameter|bootargs}} environment variable:
+
* Set the initial environment variables:
<pre>
 
CL-SOM-AM57x # setenv bootargs "root=/dev/sda2 rootfstype=ext4 rw rootwait console=ttyO2,115200n8"
 
</pre>
 
* To boot Linux, type:
 
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv bootdelay 3
+
CL-SOM-AM57x # setenv unreset_pcie 'i2c dev 4; pca953x output 1 1'
CL-SOM-AM57x # setenv bootcmd 'load scsi 0 ${loadaddr} zImage-cl-som-am57x && load scsi 0 ${fdtaddr} am57xx-sbc-am57x.dtb && bootz ${loadaddr} - ${fdtaddr}'
+
CL-SOM-AM57x # setenv loadimage 'setenv mmcdev 1 && mmc dev ${mmcdev} && mmc rescan && run emmcloadkernel && run emmcloadfdt'
 +
CL-SOM-AM57x # setenv bootcmd 'run unreset_pcie; run emmcargs; run loadimage; fdt addr ${fdtaddr}; setenv fdtaddr 88000000; run set_display; run bootkernel'
 
CL-SOM-AM57x # saveenv
 
CL-SOM-AM57x # saveenv
 
CL-SOM-AM57x # boot
 
CL-SOM-AM57x # boot
 
</pre>
 
</pre>
  
=== Display options ===
+
=== Boot from NAND flash ===
CL-SOM-AM57x (SBC-AM57x) evaluation platform has four video output interfaces: LCD, DVI, LVDS and HDMI.
+
* Set the initial environment variables:
LCD and HDMI are enabled in the current Linux package release.
 
Current version of Xorg driver of CL-SOM-AM57x example root file system supports mirror video output mode only.
 
It causes last registered video output device (LCD) resolution to be propagated to other devices.
 
 
 
In order to force a specific video output device to be selected as a primary device the U-Boot environment variables should be adjusted.
 
 
 
* HDMI enabled (LCD disabled)
 
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv emmcloadfdt 'load mmc ${mmcdev} ${fdtaddr} ${fdtfile} && fdt addr ${fdtaddr} && setenv fdtaddr 0x88000000 && fdt rm /display'
+
CL-SOM-AM57x # setenv unreset_pcie 'i2c dev 4; pca953x output 1 1'
 +
CL-SOM-AM57x # setenv loadimage 'nand read ${loadaddr} 0 980000 && nand read ${fdtaddr} 980000 80000'
 +
CL-SOM-AM57x # setenv bootargs "root=ubi0:rootfs rw rootfstype=ubifs ubi.mtd=rootfs console=ttyO2,115200n8"
 +
CL-SOM-AM57x # setenv bootcmd 'run unreset_pcie; run loadimage; fdt addr ${fdtaddr}; setenv fdtaddr 88000000; run set_display; run bootkernel'
 
CL-SOM-AM57x # saveenv
 
CL-SOM-AM57x # saveenv
 +
CL-SOM-AM57x # boot
 
</pre>
 
</pre>
  
* Default settings
+
=== Boot from SATA drive ===
 
+
* Set the initial environment variables:
 
<pre>
 
<pre>
CL-SOM-AM57x # setenv mmcloadfdt 'load mmc ${mmcdev} ${fdtaddr} ${fdtfile};'
+
CL-SOM-AM57x # setenv unreset_pcie 'i2c dev 4; pca953x output 1 1'
 +
CL-SOM-AM57x # setenv loadimage 'load scsi 0 ${loadaddr} ${kernel} && load scsi 0 ${fdtaddr} ${fdtfile}'
 +
CL-SOM-AM57x # sete bootargs 'root=/dev/sda2 rootfstype=ext4 rw rootwait console=ttyO2,115200n8'
 +
CL-SOM-AM57x # setenv bootcmd 'run unreset_pcie; run loadimage; fdt addr ${fdtaddr}; setenv fdtaddr 88000000; run set_display; run bootkernel'
 
CL-SOM-AM57x # saveenv
 
CL-SOM-AM57x # saveenv
 +
CL-SOM-AM57x # boot
 
</pre>
 
</pre>
  

Revision as of 08:53, 26 October 2016

Introduction

This article provides an introduction on how to install the following on the CompuLab CL-SOM-AM57x System-on-Module / Computer-on-Module eMMC internal storage device:

  • Example user space (root filesystem) image.
  • Linux kernel images.

Preparation steps

  • Obtain a PC workstation with a serial communication port or a free USB 2.0 Host port.
  • For networked installation you need to install a TFTP server on the host PC. For Windows machines we recommend TFTPD32 included in the Linux package for CL-SOM-AM57x (link below).
  • Download the Linux package for CL-SOM-AM57x from CompuLab website. Unzip the package to a directory on your host workstation.
  • All image files mentioned below can be found in the images subdirectory
  • Connect the host PC to the SB-SOM-AM57x base-board (connector P8) via the serial cable supplied with the evaluation kit.
    • SB-SOM-AM57x base-board features Serial-to-USB adapter available through connector P7. It can be used as an alternative debug port to connect the Host PC via the micro-USB cable supplied with the evaluation kit.
  • Start terminal emulation software on your PC with the following serial port settings:
Baud Rate Data Bits Stop Bits Parity Flow Control
115200 8 1 none none
  • Turn on the CL-SOM-AM57x evaluation system. The U-Boot boot-loader will start and you will get a command prompt.
Admolition note.png If the boot settings of your CL-SOM-AM57x are different than default, you may need to press and hold Ctrl-C while turning the CL-SOM-AM57x on, in order to get command prompt.

Boot into the installation environment (ramdisk)

The first step in CL-SOM-AM57x Linux installation is starting the installation environment (Linux kernel and Ramdisk image). This can be done using one of the following media:

Using installation environment on MMC/SD card

  • Copy the following files from Linux package for CL-SOM-AM57x to the root directory on the first partition of the MMC/SD card:
    • kernel.img, ramdisk.dtb, ramdisk.img and rootfs.tar.bz2 from the package directory images
    • For Kernel 4.4:
      • am57xx-sbc-am57x.dtb and zImage-cl-som-am57x from the package directory images/kernel-v4.4
      • rootfs-update from the package directory extra/kernel-v4.4
    • For TI SDK kernel 4.1:
      • am57xx-sbc-am57x.dtb and zImage-cl-som-am57x from the package directory images/ti-sdk-4.1
      • rootfs-update from the package directory extra/ti-sdk-4.1


Admolition note.png Format without a partition table is not supported by U-Boot.

The partition has to be formatted with either ext2/3/4 or FAT16/32 file system.

  • Insert the MMC/SD card into the MMC/SD socket (P9) on the SB-SOM-AM57x baseboard and reset the module.
  • To start installation environment boot manually, use the following U-Boot commands:
CL-SOM-AM57x # mmc dev 0
CL-SOM-AM57x # mmc rescan
CL-SOM-AM57x # load mmc 0 0x88000000 ramdisk.dtb && load mmc 0 0x82000000 kernel.img && load mmc 0 0x88080000 ramdisk.img
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M"
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000

Using installation environment from USB storage device

  • Copy the following files from Linux package for CL-SOM-AM57x to the root directory on the first partition on the USB storage device:
    • kernel.img, ramdisk.dtb, ramdisk.img and rootfs.tar.bz2 from the package directory images
    • For Kernel 4.4:
      • am57xx-sbc-am57x.dtb and zImage-cl-som-am57x from the package directory images/kernel-v4.4
      • rootfs-update from the package directory extra/kernel-v4.4
    • For TI SDK kernel 4.1:
      • am57xx-sbc-am57x.dtb and zImage-cl-som-am57x from the package directory images/ti-sdk-4.1
      • rootfs-update from the package directory extra/ti-sdk-4.1
  • Plug the USB storage device into the SB-SOM-AM57x USB port P6.
  • Remove MMC/SD card from the MMC/SD socket (P9) on the SB-SOM-AM57x baseboard.
  • Use the following U-boot commands to boot the installation environment on the CL-SOM-AM57x:
CL-SOM-AM57x # usb start
CL-SOM-AM57x # load usb 0 0x88000000 ramdisk.dtb && load usb 0 0x82000000 kernel.img && load usb 0 0x88080000 ramdisk.img
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M"
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000

Using installation environment from TFTP server

  • Connect the SB-SOM-AM57x Ethernet port (connector P21 on the SB-SOM) to your local network.
  • Put kernel.img, ramdisk.dtb, and ramdisk.img from images sub-directory of Linux package for CL-SOM-AM57x to a location accessible by the TFTP server:
    - On Windows machine: copy kernel.img, ramdisk.dtb, and ramdisk.img to the same folder and point the TFTP server to that folder
    - On Linux machine: copy kernel.img, ramdisk.dtb, and ramdisk.img to TFTP server root directory, usually /tftpboot or /tftproot.

Use U-Boot dhcp command to obtain IP address

CL-SOM-AM57x # dhcp
or manually set ipaddr environment variable:
CL-SOM-AM57x # setenv ipaddr <ip address>
  • Use the following U-Boot commands to start installation environment boot:
CL-SOM-AM57x # setenv bootargs "root=/dev/ram0 rw ramdisk_size=16384 console=ttyO2,115200n8 vram=16M ip=dhcp"
CL-SOM-AM57x # tftpboot 0x88000000 ramdisk.dtb
CL-SOM-AM57x # tftpboot 0x82000000 kernel.img
CL-SOM-AM57x # tftpboot 0x88080000 ramdisk.img
CL-SOM-AM57x # bootz 0x82000000 0x88080000 0x88000000

Install Kernel and Root File System Images

After the ramdisk image is loaded the Linux login prompt will appear. Login as root into the system.

compulab login: root

Mount the installation source media

The next step is installing the kernel and Root File System images. The following media can be used as a source for installation:

Mount an MMC/SD Card

  • Insert the MMC/SD card into the SD socket (P9) on the SB-SOM-AM57x.
  • The MMC/SD card is mounted automatically under /media/mmcblk0pX. Where X is the partition number.
  • If for some reason the MMC/SD card hasn't been mounted automatically, use the following mount command:
root@compulab:~# mkdir -p /media/mmcblk0pX && mount /dev/mmcblk0pX /media/mmcblk0pX

Mount a USB Storage Device

  • Plug the USB storage device to any USB host port (P6) on the SB-SOM-AM57x.
  • The USB device is mounted automatically under /media/sdXY. Where X is the device letter and Y is the partition number.
  • If for some reason the USB storage device hasn't been mounted automatically, use the following mount command:
root@compulab:~# mkdir -p /media/sdXY && mount /dev/sdXY /media/sdXY

Mount an NFS drive

  • Connect the CL-SOM-AM57x Ethernet port (P21) to your local network.
  • Copy the installation files to a directory exported through NFS:
    • The file rootfs.tar.bz2 from the package directory images
    • For Kernel 4.4:
      • am57xx-sbc-am57x.dtb and zImage-cl-som-am57x from the package directory images/kernel-v4.4
      • rootfs-update from the package directory extra/kernel-v4.4
    • For TI SDK kernel 4.1:
      • am57xx-sbc-am57x.dtb and zImage-cl-som-am57x from the package directory images/ti-sdk-4.1
      • rootfs-update from the package directory extra/ti-sdk-4.1
  • During Ramdisk image booting the CL-SOM-AM57x attempts to obtain an IP address using DHCP. If from some reason the IP address has not been obtained, use the following commands to obtain IP address for the CL-SOM-AM57x:
    • Obtain IP using DHCP:
      root@compulab:~# ifup eth1
    or
    • If there is no DHCP server on the network, you can set a static IP address using ifconfig:
      root@compulab:~# ifconfig eth1 <ip address>
  • Mount the NFS shared directory that contains the installation files:
root@compulab:~#  mount -o nolock <host ip>:/path/to/nfs/share /mnt/net

Install Images

Once the ramdisk image is loaded and the media containing the CL-SOM-AM57x Kernel and Debian Linux images is mounted the installation can proceed.
The Linux kernel and Root File System images can be installed on the following media:

Install Images on eMMC

Admolition note.png The below procedure will work only on empty eMMC chip. If you have already used the eMMC, please delete all the partitions before proceeding.
  • In this subsection the term /mount/point can be:
    • /mnt/net if NFS is used.
    • /media/mmcblk1pX if an MMC/SD card is used, where X is the partition number.
    • /media/sdXY if USB storage is used, where X is the USB drive letter and Y is the partition number.
Admolition note.png In the below procedure the first (boot) partition can be either FAT32 or EXT2/3/4. The example below is only for FAT32 filesystem.
  • Create two partitions for the Linux kernel (FAT32 100M) and root file system (EXT4 the rest of the disk) on the eMMC:
root@compulab:~# echo -e "n\np\n1\n2048\n204800\na\n1\nt\nc\nn\np\n2\n204801\n\nw\neof\n" | fdisk -u /dev/mmcblk0
  • Refresh the device nodes:
root@compulab:~# mdev -s && umount /dev/mmcblk0p1 && umount /dev/mmcblk0p2
  • Format the first partition with FAT32 file system:
root@compulab:~# mkfs.vfat -n boot /dev/mmcblk0p1
  • Format the second partition with EXT4 file system:
root@compulab:~# mkfs.ext4 /dev/mmcblk0p2
  • Mount both partitions:
root@compulab:~# mkdir -p /media/mmcblk0p1 && mount /dev/mmcblk0p1 /media/mmcblk0p1
root@compulab:~# mkdir -p /media/mmcblk0p2 && mount /dev/mmcblk0p2 /media/mmcblk0p2
  • Copy the zImage-cl-som-am57x and the am57xx-sbc-am57x.dtb to the first (FAT) partition:
root@compulab:~# cp /mount/point/zImage-cl-som-am57x /mount/point/am57xx-sbc-am57x.dtb /media/mmcblk0p1 && sync
  • Extract the content of the rootfs.tar.bz2 onto the second partition:
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/rootfs.tar.bz2 -C /media/mmcblk0p2 && sync
  • Mount the user space update directory:
mount -o loop /mount/point/rootfs-update /media/mmcblk0p2/usr/local/mydebs
  • Update the user space:
chroot /media/mmcblk0p2
/usr/local/mydebs/install.sh
exit
  • Remove MMC/SD card from SB-SOM-AM57x MMC/SD card socket (if used for installation) and reboot the module:
root@compulab:~# reboot

Install on SATA drive

Admolition note.png The below procedure will work only on empty SATA drive. If you have already used the drive, please delete all the partitions before proceeding.
  • In this subsection the term /mount/point can be:
    • /mnt/net if NFS is used
    • /media/mmcblk1pX if an MMC/SD card is used, where X is the partition number.
    • /media/sdXY if USB storage is used, where X is the USB drive letter and Y is the partition number.
Admolition note.png In the below procedure the first (boot) partition can be either FAT32 or EXT2/3/4. The example below is only for FAT32 file system.
  • Identify SATA drive special device file
export SATA_DRIVE=/dev/`basename /sys/devices/platform/44000000.ocp/4a140000.sata/ata1/host0/target0\:0\:0/0\:0\:0\:0/block/sd?`
  • Create two partitions for the Linux kernel (FAT32 100M) and root file system (EXT4 the rest of the disk) on SATA drive:
root@compulab:~# echo -e "n\np\n1\n2048\n204800\na\n1\nt\nc\nn\np\n2\n204801\n\nw\neof\n" | fdisk -u ${SATA_DRIVE}
  • Format the first partition with FAT32 file system:
root@compulab:~# mkfs.vfat -n boot ${SATA_DRIVE}1
  • Format the second partition with EXT4 file system:
root@compulab:~# mkfs.ext4 ${SATA_DRIVE}2
  • Mount both partitions:
root@compulab:~# mkdir -p /media/boot && mount ${SATA_DRIVE}1 /media/boot
root@compulab:~# mkdir -p /media/rootfs && mount ${SATA_DRIVE}2 /media/rootfs
  • Copy the zImage-cl-som-am57x and the am57xx-sbc-am57x.dtb to the first (FAT) partition:
root@compulab:~# cp /mount/point/zImage-cl-som-am57x /mount/point/am57xx-sbc-am57x.dtb /media/boot && sync
  • Extract the content of rootfs.tar.bz2 onto the second partition:
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/rootfs.tar.bz2 -C /media/rootfs && sync
  • Mount the user space update directory:
mount -o loop /mount/point/rootfs-update /media/rootfs/usr/local/mydebs
  • Update the user space:
chroot /media/rootfs
/usr/local/mydebs/install.sh
exit
  • Reboot the module:
root@compulab:~# reboot

Install on the NAND flash

  • In this subsection the term /mount/point can be:
    • /mnt/net if NFS is used
    • /media/mmcblk0pX if an MMC/SD card is used, where X is the partition number.
    • /media/sdXY if a USB storage is used, where X is the USB drive letter and Y is the partition number.
  • Format the NAND flash kernel partition and write the kernel image onto it:
root@compulab:~# flash_erase /dev/mtd3 0 0
root@compulab:~# nandwrite -p /dev/mtd3 /mount/point/zImage-cl-som-am57x
  • Format the NAND flash Device Tree partition and write the DT blob onto it:
root@compulab:~# flash_erase /dev/mtd4 0 0
root@compulab:~# nandwrite -p /dev/mtd4 /mount/point/am57xx-sbc-am57x.dtb
  • Format the NAND flash root filesystem partition:
root@compulab:~# ubiformat /dev/mtd5
  • Attach the NAND flash root filesystem partition:
root@compulab:~# ubiattach -m 5 -d 0
  • Create a ubi volume and name it "rootfs":
root@compulab:~# ubimkvol /dev/ubi0 -m -N rootfs
  • Mount the ubi volume:
root@compulab:~# mkdir -p /media/rootfs && mount -t ubifs ubi0:rootfs /media/rootfs
  • Extract the content of rootfs.tar.bz2 onto the /media/rootfs:
root@compulab:~# tar --numeric-owner -xvpjf /mount/point/rootfs.tar.bz2 -C /media/rootfs && sync
  • Mount the user space update directory:
mount -o loop /mount/point/rootfs-update /media/rootfs/usr/local/mydebs
  • Update the user space:
chroot /media/rootfs
/usr/local/mydebs/install.sh
exit
  • Reboot the module:
root@compulab:~# reboot

After Installation

Select video output

CL-SOM-AM57x (SBC-AM57x) evaluation platform has four video output interfaces: LCD, DVI, LVDS and HDMI. Current version of Xorg driver of CL-SOM-AM57x example root file system supports mirror video output mode only. It causes last registered video output device (LCD) resolution to be propagated to other devices.

In order to force a specific video output device to be selected as a primary device the U-Boot environment variables should be adjusted.

  • To enable HDMI video output:
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display1; fdt rm /ocp/dss/ports/port@0/endpoint@0; fdt rm /display@0; fdt rm /aliases display2;
fdt rm /connector@1; fdt rm /tfp410; fdt rm /ocp/dss/ports/port@0/endpoint@1; fdt rm /aliases display3; fdt rm /ocp/dss/ports/port@2; fdt rm /display@1'
  • To enable LCD video output:
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display2; fdt rm /connector@1; fdt rm /tfp410; fdt rm /ocp/dss/ports/port@0/endpoint@1;
fdt rm /aliases display3; fdt rm /ocp/dss/ports/port@2; fdt rm /display@1; fdt rm /aliases display0; fdt rm /ocp/dss/encoder@58060000; fdt rm /connector@0'
  • To enable LVDS video output:
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display1; fdt rm /ocp/dss/ports/port@0/endpoint@0; fdt rm /display@0; fdt rm /aliases display2;
fdt rm /connector@1; fdt rm /tfp410; fdt rm /ocp/dss/ports/port@0/endpoint@1; fdt rm /aliases display0; fdt rm /ocp/dss/encoder@58060000; fdt rm /connector@0'
  • To enable DVI video output:
CL-SOM-AM57x # setenv set_display 'fdt rm /aliases display1; fdt rm /ocp/dss/ports/port@0/endpoint@0; fdt rm /display@0; fdt rm /aliases display3; fdt rm /ocp/dss/ports/port@2; fdt rm /display@1'

Boot from eMMC

  • Set the initial environment variables:
CL-SOM-AM57x # setenv unreset_pcie 'i2c dev 4; pca953x output 1 1'
CL-SOM-AM57x # setenv loadimage 'setenv mmcdev 1 && mmc dev ${mmcdev} && mmc rescan && run emmcloadkernel && run emmcloadfdt'
CL-SOM-AM57x # setenv bootcmd 'run unreset_pcie; run emmcargs; run loadimage; fdt addr ${fdtaddr}; setenv fdtaddr 88000000; run set_display; run bootkernel'
CL-SOM-AM57x # saveenv
CL-SOM-AM57x # boot

Boot from NAND flash

  • Set the initial environment variables:
CL-SOM-AM57x # setenv unreset_pcie 'i2c dev 4; pca953x output 1 1'
CL-SOM-AM57x # setenv loadimage 'nand read ${loadaddr} 0 980000 && nand read ${fdtaddr} 980000 80000'
CL-SOM-AM57x # setenv bootargs "root=ubi0:rootfs rw rootfstype=ubifs ubi.mtd=rootfs console=ttyO2,115200n8"
CL-SOM-AM57x # setenv bootcmd 'run unreset_pcie; run loadimage; fdt addr ${fdtaddr}; setenv fdtaddr 88000000; run set_display; run bootkernel'
CL-SOM-AM57x # saveenv
CL-SOM-AM57x # boot

Boot from SATA drive

  • Set the initial environment variables:
CL-SOM-AM57x # setenv unreset_pcie 'i2c dev 4; pca953x output 1 1'
CL-SOM-AM57x # setenv loadimage 'load scsi 0 ${loadaddr} ${kernel} && load scsi 0 ${fdtaddr} ${fdtfile}'
CL-SOM-AM57x # sete bootargs 'root=/dev/sda2 rootfstype=ext4 rw rootwait console=ttyO2,115200n8'
CL-SOM-AM57x # setenv bootcmd 'run unreset_pcie; run loadimage; fdt addr ${fdtaddr}; setenv fdtaddr 88000000; run set_display; run bootkernel'
CL-SOM-AM57x # saveenv
CL-SOM-AM57x # boot

See also