Table of Contents

Advertisement

S3C2410/ Mobile Solution Group / IM-1.1-04-05
Installation Manual for S3C2410
(Linux)
Mobile Solution Group, System LSI.
Property of Samsung Electronics Co., Ltd.

Advertisement

Table of Contents
loading

Summary of Contents for Samsung S3C2410

  • Page 1 S3C2410/ Mobile Solution Group / IM-1.1-04-05 Installation Manual for S3C2410 (Linux) Mobile Solution Group, System LSI. Property of Samsung Electronics Co., Ltd.
  • Page 2 Copyright © 2004 Samsung Electronics Co, Ltd. All Rights Reserved. Though every care has been taken to ensure the accuracy of this document, Samsung Electronics Co, Ltd. cannot accept responsibility for any errors or omissions or for any loss occasioned to any person, whether legal or natural, from acting, or refraining from action, as a result of the information contained herein.
  • Page 3 S3C2410/ Mobile Business Enabling / IM-1.1-04-05 Revision History Date Version Author Amendment 2004-04-30 TS Team Preliminary Copy 2004-05-07 TS Team Document Update Property of Samsung Electronics Co., Ltd. Mobile Solution Group, System LSI.
  • Page 4: Table Of Contents

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 Contents DOWNLOADING BSP....................1 INSTALLING TOOLCHAIN ..................2 COMPILING BOOTLOADER AND KERNEL FOR SMDK2410 ..........3 ................. 3 NTRODUCTION TO OOTLOADER 3.1.1 What is Vivi ....................3 ....................3 OMPILING ....................6 OMPILING ERNEL ..................
  • Page 5 S3C2410/ Mobile Business Enabling / IM-1.1-04-05 Figures 3-1 V ................... 4 IGURE IVI CONFIGURATION 3-2 I ................4 IGURE NPUTTING IVI CONFIGURATION FILE 3-3 S ................5 IGURE AVING ERNEL ONFIGURATION 3-4 K ..................6 IGURE ERNEL CONFIGURATIONS 3-5 I ................
  • Page 6 S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4-30 I ................29 IGURE MAGE FILES ON ARGET OARD 4-31 P SMC ..................30 IGURE ARTITIONING 4-32 W SMC ..................31 IGURE RITING MAGES ON 4-33 W SMC ..................32 IGURE RITING MAGES ON Mobile Solution Group, System LSI.
  • Page 7: Downloading Bsp

    Small Size root file system image (Only for Booting) root_qtopia.cramfs Qtopia window Root file System image Below is the list of downloaded files from the Samsung website. [root@localhost test]# [root@localhost test]# ls cross-2.95.3.tar.bz2 root.cramfs root_qtopia.cramfs s3c2410_kernel2.4.18_module_mmc.tar.bz2 s3c2410_kernel2.4.18_r1.1.tar.bz2...
  • Page 8: Installing Toolchain

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 2 Installing Toolchain Building the tool chain is not a trivial exercise and for most common situations pre-built tool chains already exists. Unless you need to build your own, or you want to do it anyway to gain a deeper understanding, then simply installing and using a suitable ready-made tool chain is strongly recommended.
  • Page 9: Compiling Bootloader And Kernel For Smdk2410

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 3 Compiling Bootloader and Kernel for SMDK2410 3.1 Introduction to Bootloader In embedded system, general firmware like CMOS does not exist. So to boot embedded system for the first time, we have to make bootloader which can adjust well to target board.
  • Page 10: Figure 3-1 Vivi Configuration

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 Figure 3-1 Vivi configuration Please enter the name of the configuration file you wish to load ‘arch/def-configs/smdk2410’ as shown in figure 3-2. Figure 3-2 Inputting Vivi configuration file Select ‘Exit’ and then ‘Yes’ to save your new kernel configuration.
  • Page 11: Figure 3-3 Saving New Kernel Configuration

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 Figure 3-3 Saving New Kernel Configuration After saving the New Kernel configuration, please execute the following command to compile Vivi source code. [root@localhost s3c2410_vivi_r1.1]# make If the compilation of vivi progresses well, ‘vivi’ binary image file will be created under /vivi directory.
  • Page 12: Compiling Kernel

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 3.3 Compiling Kernel Kernel source is compressed by the name of ‘s3c2410_kernel2.4.18_r1.1.tar.bz2’. Extract this bz2 file executing following command. After extracting kernel tarball file ‘s3c2410_kernel2.4.18_r1.1’ directory will generate. [root@localhost test]# tar jxvf s3c2410_kernel2.4.18_r1.1.tar.bz2 [root@localhost test]# cd s3c2410_kernel2.4.18_r1.1 Set the values by executing ‘make menuconfig’...
  • Page 13: Figure 3-5 Inputting Kernel Configuration File

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 Figure 3-5 Inputting Kernel configuration file Select ‘Exit’ and then ‘Yes’ to save your new kernel configuration. Figure 3-6 Saving New Kernel Configuration Mobile Solution Group, System LSI.I Property of Samsung Electronics Co., Ltd.
  • Page 14: Copying Root File System

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 [root@localhost s3c2410_kernel2.4.18_r1.1]# make dep [root@localhost s3c2410_kernel2.4.18_r1.1]# make zImage After executing above commands the Kernel image will be created in ‘s3c2410_kernel2.4.18_r1.1/arch/arm/boot’ directory by the name of ‘zImage’. Copy ‘zImage’(kernel image) to ‘image’ directory, to port the kernel image on the target board.
  • Page 15: Porting Linux To The Target Board

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4 Porting Linux to the Target Board 4.1 Porting Linux to the Target Board Now in this chapter we will learn how to write vivi (bootloader), zImage (kernel image), and root_qtopia.cramfs to SMC(Smart Media Card) by using ‘imagewrite’ utility. This method can be used after booting target board.
  • Page 16: Figure 4-2 Serial Port Setup

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 Figure 4-2 Serial Port setup Push ‘E’ key for setting up ‘bps/Par/Bits’. Push ‘I’ to set up ‘bps’ to 115200, Push ‘V’ to set up ‘Data bits’ to 8, Push ‘W’ to set up ‘Stop bits’ to ‘1’, and ‘V’ to set up ‘parity’ to ‘NONE’.
  • Page 17: Figure 4-4 Hardware/Software Flow Control Setup

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 Push ‘F’ key for setting up ‘Hardware Flow Control’ to ‘NO’. Push ‘G’ key for setting up ‘Software Flow Control’ to ‘NO’. The default value is ‘NO’. Figure 4-4 Hardware/Software Flow Control Setup Once setting is over, please press ‘Enter’ key. And select ‘Save setup as dfl’ item, then press ‘Enter’...
  • Page 18: Figure 4-6 Exiting From Minicom

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 To quit from Minicom, please press ‘Ctrl + A’ and then ‘Z’, at last push ‘Q’ key. Then Selecting ‘Yes’, Minicom is quitted. Figure 4-6 Exiting from Minicom Property of Samsung Electronics Co., Ltd.
  • Page 19: Uploading 'Vivi' Using Jtag Cable

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.3 Uploading ‘vivi’ using JTAG Cable JTAG cable and Jflash program are required to port the images to the target board. Here we use Windows Jflash program, which is compressed with tarball ‘sjf2410_v4’. You can download this program from following URL.
  • Page 20: Porting Images Using Vivi

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4.4 Porting Images using vivi Once vivi (bootloader) is stored in SMC (NAND flash memory), you can write vivi (bootloader), kernel image, qtopia image etc. to SMC on prompt mode of vivi (bootloader) by xmodem of Minicom. It can be possible only when bootloader exists in flash memory.
  • Page 21: Figure 4-9 Xmodem_Initial_Timeout Settings

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 If it is not possible to change the ‘xmodem_initial_timeout’, you can edit the /vivi/arch/s3c2410/smdk.c file as shown in fig 4-9. Figure 4-9 xmodem_initial_timeout settings Mobile Solution Group, System LSI.I Property of Samsung Electronics Co., Ltd.
  • Page 22: Smc Partitioning And Writing Vivi Image

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4.5 SMC partitioning and writing vivi image Now you can write all images including vivi again through vivi prompt. But before writing the images, you have to partition the SMC to assign the memory for each image. SMC is composed of bon file system and vivi supports this.
  • Page 23: Figure 4-12 Entering Filename For Vivi

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 To download the vivi bootloader press ‘ctrl +A’ -> ‘z’ and then ‘S’ to send file. Window questioning about transfer mode will appear. Please select xmodem and hit Enter Key. Figure 4-11 xmodem x-fer mode for Vivi Please give the path of the vivi bootloader file as shown in the following figure.
  • Page 24: Figure 4-13 Vivi Download Status

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 You can see the sending status of vivi bootloader as shown in the following figure. Figure 4-13 vivi download status After sending vivi bootloader image completes hit Enter key to come to vivi prompt.
  • Page 25: Writing Kernel Image

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.6 Writing Kernel Image To upload kernel Image please execute the following command. vivi> load flash kernel x To download the vivi bootloader press ‘ctrl +A’ -> ‘z’ and then ‘S’ to send file.
  • Page 26: Figure 4-17 Zimage Download Status

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 You can see the sending status of zImage as shown in the following figure. Figure 4-17 zImage download status After sending zImage completes, hit Enter key to come to vivi prompt. Figure 4-18 vivi Prompt Property of Samsung Electronics Co., Ltd.
  • Page 27: Writing Root File System Image

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.7 Writing Root File System Image To upload Root File System (root.cramfs) Image please execute the following command. vivi> load flash root x To download the root.cramfs press ‘ctrl +A’ -> ‘z’ and then ‘S’ to send file.
  • Page 28: Figure 4-21 Root.cramfs Download Status

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 You can see the sending status of root.cramfs image as shown in the following figure. Figure 4-21 root.cramfs download status After sending root.cramfs completes, hit Enter key to come to vivi prompt. Figure 4-22 vivi Prompt Now the SMC contains vivi (Bootloader), zImage (kernel), and root.cramfs (Root File System) images.
  • Page 29: Figure 4-23 After Booting The Target Board

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 Or you can also power OFF the board and power ON again. In this case target board will wait for some inputs defined by developer. If we do not input anything or press “Enter”, target board begins to boot.
  • Page 30: Ztelnet

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4.8 Ztelnet 4.8.1 Installing ztelnet Please execute the following command to install the ztelnet RPM. [root@localhost root]# rpm –i ztelnet-0.9.1-7mz.i386.rpm While using ztelnet, target board has to be booted. The SMC which is provided with SMDK 2410 Board contains vivi, kernel image, root file system, so you can boot target board by using this SMC.
  • Page 31: Executing Minicom

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.9 Executing Minicom Terminal 1: # cd /image Terminal 2: # minicom Switch ON the target Board, after progressed booting of target board, press ‘Enter’ key, then you can begin to use shell of target board system.
  • Page 32: Setting Up An Ip Address For Host Pc And Smdk 2410 Target Board

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4.10 Setting up an IP address for Host PC and SMDK 2410 Target Board # ifconfig eth0 down Terminal 1: # ifconfig eth0 10.10.10.1 up : Set up an arbitrary IP. # ifconfig eth0 10.10.10.2 : Set up IP that can make a pair with that of host PC.
  • Page 33: Confirming The Connection Between Host Pc And Target Board

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.11 Confirming the connection between Host PC and Target Board Terminal 1: # ping 10.10.10.2 : We can confirm that the Host PC and Target Board can communicate. Figure 4-27 Ping Test Mobile Solution Group, System LSI.I...
  • Page 34: Connecting Host Pc To Target Board By Using Ztelnet

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4.12 Connecting Host PC to Target Board by using ztelnet Terminal 1 : # ztelnet 10.10.10.2 Login by root account, so that you won’t need to input password, and then press ‘Enter’ key. Figure 4-28 ztelnet Property of Samsung Electronics Co., Ltd.
  • Page 35: Transferring Images By Ztelnet

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.13 Transferring Images by ztelnet Terminal 1: # cd /tmp # rz Pushing ‘Ctrl + ]’, ‘ztelnet>’ console appears. ztelnet> sz vivi zImage root_qtopia.cramfs imagewrite Terminal 2: # cd /tmp Figure 4-29 Copying Image files to target board using ztelnet Only /tmp directory can be used for both reading and writing, all directories except /tmp are read-only.
  • Page 36: Imagewrite

    S3C2410/ Mobile Business Enabling / IM-1.1-04-05 4.14 Imagewrite 4.14.1 Creating partitions in SMC Terminal executing minicom enable host PC user to work inside target board. Now create three partitions in SMC inside Minicom terminal. # ./imagewrite /dev/mtd/0 -part 0 192K 2M...
  • Page 37: Copying The Images To Smc Using Imagewrite Utility

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 4.14.2 Copying the Images to SMC using imagewrite utility Usage : # ./imagewrite <mtd_dev> <file:offset> # ./imagewrite /dev/mtd/0 vivi:0 : Store vivi in SMC. # ./imagewrite /dev/mtd/0 zImage:192K : Store zImage in SMC. # ./imagewrite /dev/mtd/0 root_qtopia.cramfs:2M : Store root_qtopia.cramfs in SMC.
  • Page 38 S3C2410/ Mobile Business Enabling / IM-1.1-04-05 Figure 4-33 Writing Images on SMC Property of Samsung Electronics Co., Ltd. Mobile Solution Group, System LSI.
  • Page 39: Index

    S3C2410/ Mobile Solution Group / IM-1.1-04-05 Index Booting, 9, 25 RAM, 3 bootloader, 1, 3 root file system, 8 Bootloader, IV, 3, 22, 30 Root File System, 3, 21, 22 Root filesystem, 8 root.cramfs, V, 1, 8, 16, 21, 22 root_qtopia.cramfs, 8, 9, 29, 30, 31...
  • Page 41 Copyright © 2004 Samsung Electronics Co, Ltd. All Rights Reserved...

Table of Contents