background image

S3C2410/ Mobile Solution Group / IM-1.1-04-05                                

 

 

Mobile Solution Group, System LSI.I              Property of Samsung Electronics Co., Ltd.                 

     31 

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. 
 

 

 

Figure 4-32 Writing Images on SMC 

 
After completing the above procedure please reboot the target board.  

 
After progressed booting of target board, press ‘Ctrl + C’ and ‘Enter’ key, then you can begin to use 
shell of target board system. 

 
The console display will look as shown in the next figure. The root file system is Qtopia. The LCD 

screen on the target board will show different applications and related icons. 
 

Summary of Contents for S3C2410

Page 1: ...S3C2410 Mobile Solution Group IM 1 1 04 05 Mobile Solution Group System LSI Property of Samsung Electronics Co Ltd Installation Manual for S3C2410 Linux ...

Page 2: ...e patents or patent pending applications trademarks copyrights or other intellectual property rights covering subject matter in this document The furnishing of this document does not give the recipient or reader any license to these patents trademarks copyrights or other intellectual property rights No part of this document may be communicated distributed reproduced or transmitted in any form or b...

Page 3: ... Enabling IM 1 1 04 05 III Property of Samsung Electronics Co Ltd Mobile Solution Group System LSI Revision History Date Version Author Amendment 2004 04 30 1 0 TS Team Preliminary Copy 2004 05 07 1 1 TS Team Document Update ...

Page 4: ... 4 2 MINICOM 9 4 3 UPLOADING VIVI USING JTAG CABLE 13 4 4 PORTING IMAGES USING VIVI 14 4 5 SMC PARTITIONING AND WRITING VIVI IMAGE 16 4 6 WRITING KERNEL IMAGE 19 4 7 WRITING ROOT FILE SYSTEM IMAGE 21 4 8 ZTELNET 24 4 8 1 Installing ztelnet 24 4 9 EXECUTING MINICOM 25 4 10 SETTING UP AN IP ADDRESS FOR HOST PC AND SMDK 2410 TARGET BOARD 26 4 11 CONFIRMING THE CONNECTION BETWEEN HOST PC AND TARGET BO...

Page 5: ...AL_TIMEOUT SETTINGS ON VIVI PROMPT 14 FIGURE 4 9 XMODEM_INITIAL_TIMEOUT SETTINGS 15 FIGURE 4 10 PARTITIONING SMC 16 FIGURE 4 11 XMODEM X FER MODE FOR VIVI 17 FIGURE 4 12 ENTERING FILENAME FOR VIVI 17 FIGURE 4 13 VIVI DOWNLOAD STATUS 18 FIGURE 4 14 VIVI PROMPT 18 FIGURE 4 15 XMODEM X FER MODE FOR KERNEL IMAGE 19 FIGURE 4 16 ENTERING FILENAME FOR ZIMAGE 19 FIGURE 4 17 ZIMAGE DOWNLOAD STATUS 20 FIGUR...

Page 6: ...M 1 1 04 05 Mobile Solution Group System LSI Property of Samsung Electronics Co Ltd VI FIGURE 4 30 IMAGE FILES ON TARGET BOARD 29 FIGURE 4 31 PARTITIONING SMC 30 FIGURE 4 32 WRITING IMAGES ON SMC 31 FIGURE 4 33 WRITING IMAGES ON SMC 32 ...

Page 7: ...P MobileCo mputing S3C2410X S3C2410X htm and copy it to the working directory home test Following are the necessary files for S3C2410 Filename Description cross 2 95 3 tar bz2 Toolchain Ztelnet 0 9 1 7mz i386 rpm RPM s3c2410_vivi_r1 1 tar bz2 bootloader s3c2410_kernel2 4 18_r1 1 tar bz2 kernel s3c2410_kernel2 4 18_module_mmc tar bz2 MMC root cramfs Small Size root file system image Only for Bootin...

Page 8: ... suitable ready made tool chain is strongly recommended Please follow the commands below and Install the tool chain in the directory mentioned below root localhost test mkdir p usr local arm root localhost test tar jxvf cross 2 95 3 tar bz2 The above command will generate the 2 95 3 folder under the test directory Copy this folder under usr local arm directory root localhost test mv 2 95 3 usr loc...

Page 9: ...wnloaded if you remove the power supply so to avoid this work you have to store to flash memory It provides interface to send commands to target board or to inform user s state of target board 3 1 1 What is Vivi Vivi is bootloader made to use exclusively at ARM line processor Because vivi supports only serial interface to communicate between host PC and embedded system you have to connect host PC ...

Page 10: ...d Mobile Solution Group System LSI 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: ...nel image and root file system to target board To do this work more conveniently it is good to collect the compiled images to image directory Create the image directory under home test and copy the compiled images to image directory root localhost s3c2410_vivi_r1 1 mkdir home test image root localhost s3c2410_vivi_r1 1 cp vivi home test image Please execute the following command to create imagewri...

Page 12: ... Set the values by executing make menuconfig command You can load default configuration file that is composed with values optimized to target board In the case of kernel default configuration files are located in s3c2410_kernel2 4 18_r1 1 directory Please enter the path of the configuration file to load arch arm def configs smdk24a0 file after selecting Load on Alternate Configuration File menu ro...

Page 13: ...1 04 05 Mobile Solution Group System LSI I Property of Samsung Electronics Co Ltd 7 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 ...

Page 14: ...4 18_r1 1 arch arm boot root localhost boot cp zImage home test image 3 4 Copying Root file System Root filesystem is composed of Cramfs Compressed ROM file system Cramfs is designed small and simple The size is restricted to 256MB but it doesn t act on a defect in embedded system To port the Root File System onto the target board easily copy the root file system to image directory root localhost ...

Page 15: ... in target board Transfer all the images from image directory to target board by using ztelnet 4 2 Minicom We have to transfer the images using ztelnet before that we should know how to use Minicom In this section we explain how to use Minicom Ztelnet is explained later in this chapter Desktop Linux has Minicom program for serial communication It is used for command prompt of vivi or shell prompt ...

Page 16: ...ectronics Co Ltd Mobile Solution Group System LSI 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 Figure 4 3 Serial Port setup ...

Page 17: ...h 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 for saving the values Figure 4 5 saving Minicom Setup Push Exit key to exit from the setting mode Currently the set points are stored to the file etc minirc dfl ...

Page 18: ...ng IM 1 1 04 05 12 Property of Samsung Electronics Co Ltd Mobile Solution Group System LSI 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 ...

Page 19: ... bootloader to your K9S1208 NAND Flash on Wndows PC so that you can boot the target board to the vivi prompt to write the kernel and Qtopia images After you complete downloading vivi bootloader to the SMC Please insert the SMC on to the target board Connect the target board by serial cable and run the Minicom Supply power to target board in that case target board is waiting inputs during the times...

Page 20: ...n flash memory If transfer incomplete message is appeared while writing images the reason is that the timeout of xmodem_initial is too short In this case you can solve the problem by increasing the timeout of xmodem_initial First check the value of xmodem_initial_timeout parameter If it is too short extend timeout properly vivi param show vivi param set xmodem_initial_timeout 5000000 5000000 means...

Page 21: ...Mobile Solution Group System LSI I Property of Samsung Electronics Co Ltd 15 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 ...

Page 22: ...i supports this So you can make partitions through vivi prompt with the help of following command vivi bon part 0 192k 2M Figure 4 10 Partitioning SMC The bon command makes 3 partitions of sizes 0 192K 192K 2M and 2M End part 0 192k vivi will be written here 192k 2M zImage kernel will be written here 2M End part root cramfs root filesystem will be written here Above command does formatting of SMC ...

Page 23: ... 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 Figure 4 12 Entering filename for vivi ...

Page 24: ...ectronics Co Ltd Mobile Solution Group System LSI 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 Figure 4 14 vivi Prompt ...

Page 25: ...e the following command vivi load flash kernel x 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 15 xmodem x fer mode for kernel Image Please give the path of the kernel image zImage file as shown in the following figure Figure 4 16 Entering filename for zImage ...

Page 26: ... Samsung Electronics Co Ltd Mobile Solution Group System LSI 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 ...

Page 27: ...mage 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 Window questioning about transfer mode will appear Please select xmodem and hit Enter Key Figure 4 19 xmodem x fer mode for root cramfs Image Please give the path of the root cramfs file as shown in the following figure Figure 4 20 Entering filename for root cramfs ...

Page 28: ...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 Please execute boot command on vivi prompt to boot the target board vivi boot ...

Page 29: ...If we do not input anything or press Enter target board begins to boot After progressed booting of target board press Ctrl C and Enter key then you can begin to use shell prompt of target board system Figure 4 23 after booting the Target Board Now you can start downloading all the images to target board by using ztelnet utility and fuse the NAND flash memory Ethernet interface is used to transfer ...

Page 30: ...ovided with SMDK 2410 Board contains vivi kernel image root file system so you can boot target board by using this SMC Now you can download compiled images to the target board by using ztelnet Before downloading the images connect host PC and target board by Ethernet cable The downloading of images can be done by using two terminal windows 1 The terminal which is used for ztelnet 2 And the other o...

Page 31: ...nics Co Ltd 25 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 root localhost root cd home test image root localhost image Figure 4 24 Booting Target Board ...

Page 32: ...p System LSI 4 10 Setting up an IP address for Host PC and SMDK 2410 Target Board Terminal 1 ifconfig eth0 down ifconfig eth0 10 10 10 1 up Set up an arbitrary IP Terminal 2 ifconfig eth0 10 10 10 2 Set up IP that can make a pair with that of host PC inetd Figure 4 25 Setting arbitrary IP Figure 4 26 ifconfig ...

Page 33: ...e Solution Group System LSI I Property of Samsung Electronics Co Ltd 27 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 ...

Page 34: ... of Samsung Electronics Co Ltd Mobile Solution Group System LSI 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 ...

Page 35: ...to target board using ztelnet Only tmp directory can be used for both reading and writing all directories except tmp are read only But tmp directory is ramfs so if power supply is cut all images downloaded are deleted If you want to store the images you have to write those to flash memory by using a special utility After downloading all images check the downloaded items by executing ls command in ...

Page 36: ... to work inside target board Now create three partitions in SMC inside Minicom terminal imagewrite dev mtd 0 part 0 192K 2M Figure 4 31 Partitioning SMC Divide SMC to three partitions and the size of each partition is as follows Vivi Bootloader 0 192KB Kernel Image 192KB 2MB root_qtopia cramfs 2MB End part write vivi at 0 192KB partition zImage at 192KB 2MB partition and root_qtopia cramfs at 2MB ...

Page 37: ... Store zImage in SMC imagewrite dev mtd 0 root_qtopia cramfs 2M Store root_qtopia cramfs in SMC Figure 4 32 Writing Images on SMC After completing the above procedure please reboot the target board After progressed booting of target board press Ctrl C and Enter key then you can begin to use shell of target board system The console display will look as shown in the next figure The root file system ...

Page 38: ...S3C2410 Mobile Business Enabling IM 1 1 04 05 32 Property of Samsung Electronics Co Ltd Mobile Solution Group System LSI Figure 4 33 Writing Images on SMC ...

Page 39: ...0 P Ping Test V 27 Q qtopia 1 8 Qtopia 1 R RAM 3 root file system 8 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 root_qtopia_2440 cramfs 1 8 S S3C2410 1 S3C24A0 I II sjf2410_v4 13 SMC 9 14 16 22 24 30 31 32 SMC partitioning IV 16 SMDK 2440 26 T Target Board 9 23 25 26 27 28 29 tftpboot 8 Toolchain IV 1 2 V Vivi IV V 3 4 5 13 17 30 vivi promp...

Page 40: ......

Page 41: ...Copyright 2004 Samsung Electronics Co Ltd All Rights Reserved ...

Page 42: ......

Page 43: ......

Reviews: