in Embedded

Embedded Linux S3C2440 environment setup


Setup the embedded Linux S3C2440 environment recently, by using Fedora Linux system in Virtualbox, the USB to serial port, did the minicom setup, network connection setup etc.

Create Virtualbox image from USB image

As my Fedora Linux system was in a 32GB USB drive, I need to convert to Virtualbox image, use Virtualbox in Windows system is more convenient than use pure Linux system for me, I created Samba for the file sharing between two systems.

First I converted the boot USB drive to raw image by using DD command, it took more than one hour to convert.

Then use Virtualbox command to convert raw material image to VDI (Virtualbox) or VMDK (Vmware), I found both can be imported into Virtualbox. Command usage as below, and refer to this Link.

dd command,

$ sudo dd if=/dev/sdb of=./sdb.raw

VDI format convert,

$ VBoxManage convertdd sdb.raw sdb.vdi --format VDI

VMDK format convert,

$ VBoxManage convertdd sdb.raw sdb.vmdk --format VMDK

Convert between VDI/VMDK formats:

$ VBoxManage clonehd sdb.vdi sdb.vmdk --format VMDK
$ VBoxManage clonehd sdb.vmdk sdb.vdi --format VDI

USB to serial port usage

As most of current computer / laptop doesn’t have serial port anymore, we have to use USB to serial port converter, I am using two types of converter, PL2303 and MCT U232 P9

use putty as hyper terminal

As Windows latest version doesn’t support hyper terminal anymore, the best replacement is the putty, after connect the USB to serial port hardware, the device manger shows as below and change the baud rate as 115,200,

Device Manager

The putty configuration interface is as below screenshot,


After connection and start S3C2440, it shows the startup screen in putty,
putty startup

Use minicom in Fedora Linux

As mentioned, it’s not required to install the USB to RS232 serial port converter driver. First just select the device to be used in Virtualbox, as below screenshot shows,


Configure the minicom by command below,

$ minicom -s

Then choose “Serial port setup”, configure the “Serial device”, if you are using RS232 cable, the serial device shall be /dev/ttyS0, here I am using USB-serial converter, then should be /dev/ttyUSB0, as below screenshot shows,


After connection and start S3C2440, it shows the startup screen in minicom as below,
ttyUSB0 startup

Network connection between S3C2440 and Virutalbox

Added three Network Adapter in the Virtualbox,

  • First one, NAT, to access the external internet
  • 2nd one, Host-only Adapter to communicate between Virtualbox Linux and host
  • 3rd one, Bridged Adapter, communicate between S3C2440 and Virtualbox

As below screenshot shows,
three ethnet

eth0 is NAT(, eth1 is Host-only(, and eth2 is Bridged Adapter(,

Bridged Adapter

The S3C2440 ip address is,

S3C2440 IP

Ping from Virtualbox Fedora to S3C2440,
ping S3C2440

Telnet from Virtualbox Fedora to S3C2440,

telnet S3C2440

USB connection between S3C2440 and Virtualbox

USB connection is to download the Linux image to S3C2440, to use the USB port, just simply select the USB port in Virtualbox, and use the minicom interface to download use the USB port,
USB connect

Download zImage screenshot as below,
zImage download

1, MCT U232-P9 Linux driver: As I found Fedora Linux doesn’t require the USB to serial driver, so I didn’t use this.
2, USB-RS232 Converter Driver, The MCT_U232_P9 cannot be installed successful.
3, linux+arm环境配置——minicom的使用篇, describe the usage of minicom.

Write a Comment



  • Embedded Linux S3C2440 Application Development and Debugging – Xiong Hui Lin's Personal page

    […] Embedded Linux S3C2440 environment setup […]

  • Embedded Linux S3C2440 Environment Startup – Xiong Hui Lin's Personal page

    […] Summarize the Embedded Linux S3C2440 board startup, for the environment setup, can refer to another blog entry. […]