Use broncho images in Windows

Source: Internet
Author: User
Tags ftp connection
In Windows, use broncho image 1. What is broncho?

Broncho is a Linux mobile phone software platform developed by Shenzhen dingzhi Corporation. This project is said to have been around for more than two years. Recently, the company established a website for broncho and started to promote the software platform in a relatively low profile. I am not familiar with Shenzhen dingzhi, but I know that Li xianjing, a well-known software expert on the internet, works in this company and is also one of the main developers of broncho.

The broncho website provides the simulator's vmware-fc7 image for users to download, the website has SDK getting started documentation, describes how to use the VMware image, and how to write and run the hello World Program.

This document introduces how to use broncho vmware-fc7 images in windows. The content of this article is very simple. It is just the use of some tools. I believe most readers do not know it. In fact, the main purpose of this article is to introduce the readers to broncho. Why should I introduce products of a company I am not familiar.

2. Edit and run the VMware Image

On Windows, you can also use VMware to open the vmware-fc7 images provided by the broncho website. VMware is a well-known virtual machine tool. It is easy to go online. I am using the version 6.0.2. Fc7 indicates that the operating system used for this virtual machine image is Fedora Core 7, a common Linux release version. Its predecessor, RedHat, is more famous. After running the image, use "uname-R" to check that the kernel version of the image is 2.6.21. The Linux kernel version used by the broncho platform is 2.6.21.

Before running the image, you can edit it and delete the floppy disk and optical drive (the original settings are not suitable for Windows). In fact, you can keep them and run them. It is worth mentioning that VMware's network settings.

2.1 VMware network settings

VMware has three network settings. Select "edit-> virtual network settings..." to see: bridged, host-only (vmnet1), and NAT (vmnet8 ). The VMware installer establishes a virtual network connection: vmnet1 and vmnet8. Select "Connect-> show all connections. The meanings of the three connections are as follows:

  • Bridge is an independent IP address allocated to the host and virtual machine, just like two independent computers.
  • Host-only means that the VM is only connected to the host. In this case, the virtual machine cannot connect to the external network. In this way, note that the IP address of the VM and the IP address connected to vmnet1 must be on the same subnet, that is, the first three bytes are the same.
  • Nat is the external connection of the VM directly using the host. As long as the host can access the Internet, the VM can access the Internet. In this way, make sure that the IP address of the VM and the IP address connected to vmnet8 are on the same subnet. At this time, the host and virtual machine have different IP addresses on the vmnet8 network. You can establish a telnet, ssh, or FTP connection between the two.

My home Internet must use a fixed IP address, so I chose Nat. After editing, you can start the image. Log On with root (default password root1023), and use "ifconfig eth0" to view the IP address of the VM.

2.2 connecting hosts and virtual machines

The SSH connection is enabled for the broncho Virtual Machine by default. We can use Putty to connect to the VM on the host. Putty is a simple SSH tool (green software, run directly). You can download it from my homepage. Putty is easy to set. Fill in the Virtual Machine IP address and select ssh.

You can save the name (for example, broncho. Double-click it. After logging on to the VM with putty, you can write and run Hello world according to the SDK getting started document.

I am used to editing files in a Windows environment, so I still need an FTP connection between the host and the virtual machine. The FTP server is not installed on the broncho Virtual Machine by default. I installed an FTP server on the host. I use Serv-U. Because I have selected Nat, the IP address of the FTP server must be set according to the IP address of the vmnet8 connection. After starting the FTP server on the host, you can use the FTP get/put file on the VM. By default, the broncho VM has a zip/unzip tool. You can create a zip package for multiple FTP files.

2.3 running Simulator

After logging on to the VM with putty, run the following command to run the simulator (you can copy it and right-click and paste it in Putty ):

cd /broncho-sdk/work/pcemu/broncho/usr
. pc_emu_run.sh

"." In the second sentence is short for the source command. After running, you can see the simulator screen in the VMware window. The following are the standby screen, Start Menu, and program menu:

I tried surfing the Internet in a browser:

The first type is www.google.com. On qvga, we can use Google's PDA version: www.google.com/pda. Search fmddlmyy, line, and can be used. You can use the link http://mobile.live.com/hm/folder.aspxto compile your msnmailbox.

2.4 broncho usage impressions

The current broncho version is not complete yet. For example, the mail program currently only supports 163 mailboxes, the simulator cannot simulate handwriting input well, and pidgin cannot be used yet. However, compared with the openmoko and Android simulators I have seen, broncho looks more like a normal mobile phone. The simulator starts faster and runs smoothly than the openmoko and Android simulators. "Fast simulator startup" cannot indicate advanced technology, because the degree of simulation may be different. However, "Fast simulator startup" is very important for application developers, and it can avoid waiting for hollow and consuming life.

3. Why do you want to introduce broncho?

Broncho did not fully open its own solution to openmoko. Broncho currently only opens its own SDK interfaces, as well as the source code of the kernel and bootloader. On the bronch forum, I explained the following:

Open source on the broncho platform is a step-by-step process. For example, the open source components such as kernel and GTK used in the broncho platform will be returned to the open source community. The Open Source of MMI and applications depends on the protection of intellectual property rights in China and the promotion of the broncho platform. After all, such a project requires a lot of manpower and material resources, without making a profit on the broncho platform, the survival and development of the broncho team will not be open-source for the moment. However, the broncho platform will do a good job in developing documents and community support, and return to the community.

This approach is similar to Android. The main purpose of the vendor is to promote its own SDK and expand the influence of the solution. So why should I introduce broncho? A reply from the Forum illustrates my thoughts:

I'm wondering why topwise wants to publish this platform in this way. This is just to promote your own sdks, or to increase the influence of this set of solutions for independent sales, or is there a more profound idea? Of course, far-reaching ideas often come at the price of reality.

There are still many companies that are working on Linux mobile phone software. However, it is generally not audible. Some companies even say that their Linux phones are not Linux, but newplus or something else.

Although broncho does not fully open its own code, I am very happy to see that domestic companies can make excellent Linux mobile phone software.

In fact, for some time, I basically lost confidence in the Linux mobile phone software. I think the investment required to make the Linux software based on open-source solutions more productized. I think it is difficult for Linux to establish a foothold in the market under the Suppression of window mobile or Symbian unless Nokia is a Linux mobile phone.

Broncho has strengthened my confidence in Linux and domestic software development. Although this is only a result of wisdom, domestic companies are more friendly than FIC (of course openmoko is more open), access, and France Telecom. It is hoped that broncho can be improved as soon as possible to truly reach the productization level.

From my perspective, I certainly hope that broncho will be as open as openmoko, provided that broncho can find its own business model. Otherwise, survival is more important than openness.

Broncho has indeed strengthened my confidence in Linux and domestic software development. Of course, it is much more difficult to make stable products for Linux mobile phone software based on open-source solutions than to make prototypes. I hope broncho can stick to it and truly reach the productization level. When conditions are met, you can fully open your own solutions and expand your influence.

Appendix 1 use puttya1.1 to copy and right-click and paste

Select text in the text area of the putty window and click the left button to copy the text. Right-click and paste in the hosts area. Right-click a menu on the title bar.

A1.2 set the window color and Text Encoding

You can change the settings by right-clicking the title bar. However, it is more common to set the settings on the configuration menu that just started putty. After the settings are saved, you do not need to reset them each time.

I like the white background and black characters. You can select "window-> colours" and hook "Use System colours ".

Putty uses the default host encoding when displaying text. It is GBK in simplified Chinese. If the area configured for the connected Linux system is "zh_CN.UTF-8", the Chinese characters in the program are UTF-8 encoded, garbled characters are generated according to the GBK display. At this time you can click "window-> translation", in the "Character Set translation on converted data" drop-down box select "UTF-8", Chinese can be displayed normally.

Appendix 2 install the FTP server in the broncho Image

If you want to upload and download many files to a VM, it is too troublesome to run the FTP command in Linux. In this case, you can install an FTP server in the broncho image, use ftp tools on the host.

A2.1 download

After logging on with root:

Wget http://www.fmddlmyy.cn/broncho/vsftpd-2.0.5-16.fc7.i386.rpm

If there is no Internet, use ftp to upload data to the virtual machine.

A2.2 Installation

Rpm-u vsftpd-2.0.5-16.fc7.i386.rpm

-U parameter indicates upgrade or installation.

A2.3 settings

Type the command ntsysv to set Automatic startup. On the ntsysv interface, use Pagedown to flip to the end and use a space to select vsftpd. Select OK with the tab key and press enter to exit.

After the instance is restarted, the FTP and Telnet servers are automatically started. If you need to start the instance immediately, enter the following command:

Service vsftpd restart

You cannot use the root account for FTP logon. Therefore, we need to create a common account, for example:

Useradd lvjie

Passwd lvjie

Now, log on to the host with a new account.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.