Computer Science and Technology
eBook - ePub

Computer Science and Technology

Proceedings of the International Conference (CST2016)

  1. English
  2. ePUB (mobile friendly)
  3. Available on iOS & Android
eBook - ePub

Computer Science and Technology

Proceedings of the International Conference (CST2016)

Book details
Book preview
Table of contents
Citations

About This Book

-->

This proceedings consists of selected papers presented at the International Conference on Computer Science and Technology (CST2016), which was successfully held in Shenzhen, China during January 8–10, 2016.

CST2016 covered a wide range of fundamental studies, technical innovations and industrial applications in 7 areas, namely Computer Systems, Computer Network, Security, Databases and Information Systems, Artificial Intelligence and Multimedia, Theory and Software Engineering and Computer Applications.

CST 2016 aims to provide a forum for researchers, engineers, and students in the area of computer science and technology. It features unique mixed various topics in computer science and technology including big data, system architecture, hardware and applications. CST 2016 attracted more than 300 submissions. Among them, only 142 papers were accepted in to the conference after a stringent peer review process.

--> Contents:

  • Computer System
  • Computer Network
  • Computer Security
  • Databases and Information Systems
  • Artificial Intelligence and Multimedia
  • Theory and Software Engineering
  • Computer Applications

--> -->
Readership: Researchers and academic.
--> Key Features:

  • More than 100 author will attend the conference and give the oral presentation or poster
  • The papers accepted by the proceedings will be reviewed strictly

Frequently asked questions

Simply head over to the account section in settings and click on “Cancel Subscription” - it’s as simple as that. After you cancel, your membership will stay active for the remainder of the time you’ve paid for. Learn more here.
At the moment all of our mobile-responsive ePub books are available to download via the app. Most of our PDFs are also available to download and we're working on making the final remaining ones downloadable now. Learn more here.
Both plans give you full access to the library and all of Perlego’s features. The only differences are the price and subscription period: With the annual plan you’ll save around 30% compared to 12 months on the monthly plan.
We are an online textbook subscription service, where you can get access to an entire online library for less than the price of a single book per month. With over 1 million books across 1000+ topics, we’ve got you covered! Learn more here.
Look out for the read-aloud symbol on your next book to see if you can listen to it. The read-aloud tool reads text aloud for you, highlighting the text as it is being read. You can pause it, speed it up and slow it down. Learn more here.
Yes, you can access Computer Science and Technology by Ning Cai in PDF and/or ePUB format, as well as other popular books in Computer Science & Cyber Security. We have over one million books available in our catalogue for you to explore.

Information

Publisher
WSPC
Year
2016
ISBN
9789813146433

Session 1

Computer System

Transplantation Research and Implementation of Embedded Linux System Based on S3C2440

Fu-bing WANG1,†, Jun-ling GAO, Pan-pan LI, Sai WANG and Mei-Hua WANG
College of Electrical and Information Engineering, AnHui University of Science and
Technology, HuaiNan, AnHui, China

E-mail:†[email protected]
An embedded system under the development of the microprocessor is widely applied in the world. The basis of further research and development and application is the question of how to build a small, real-time, good performance of embedded operating system. This research paper describes the methods and process of latest u-boot-2015.07, latest stable version of the linux-4.2.1 kernel, yaffs2 file system and the root file system transplant to the target board based on S3C2440 processor. The results prove that post-transplant Linux runs well on the target board. Embedded system migration not only familiarizes us with in-depth Bootloader, Linux kernel, file system and other software, but also get to know the various hardware resources of the target board.
Keywords: Embedded Linux; Bootloader; Linux kernel; Yaffs2 file system; S3C2440 processor.

1.Introduction

Today, embedded systems have become an important part of the computer field, its various products have entered all aspects of live. Embedded systems are generally defined as: application-centric, computer technology, hardware and software can be tailored to meet the special computer system that strictly requires reliability, cost, size, power consumption. S3C2440 with ARM920T core, using 0.13um CMOS standard cell and memory cell macros. Low power consumption, simple, elegant, and fully static design is particularly suitable for cost and power sensitive applications.
Bootloader functions directly related to the CPU and the microprocessor type, so different CPU architectures require different Bootloader. In addition, Bootloader also depends on the specific configuration of the target board related equipment, we need to make the appropriate changes bootloader to use. Linux is a free to use and free dissemination of class Unix operating system, is a POSIX and UNIX based multi-user, multi-tasking, multi-threading and multi-CPU supported operating systems, as an embedded operating system is the best choice.
Yaffs2 is the NAND Flash File System developed by engineer Charles Manning Yaffs1 and yaffs2 main difference is that the size of the write PAGE, yaffs2 supports 2K per page, much higher than the yaffs of 512 Bytes, so more advantage for large capacity NAND flash. Since the target board uses the k9f2g08u0c, using yaffs2 as the file system.
This paper aims to transplant the new bootloader, Linux kernel and file system to keep pace with embedded industrial developments. As industrial developments shift towards the operation of embedded user layer application program, the application and function of embedded systems can be realized.

2.Materials Preparation and Compilation Environment Buildings

The latest u-boot-2015.07can be downloaded at http://www.denx.de/wiki/U-Boot, the latest stable version of the linux-4.2.1 kernel can be downloaded at https://www.kernel.org/,yaffs2 file system can be downloaded at www.yaffs.netMajor, Ubuntu12.04 operating system is used as host. After install the arm-linux-gcc-4.3.2 cross compiler, the environment basically be build.

3.Bootloader Function and Transplantation

The first program when the PC power on runs is called BIOS, its role is to initialize the hardware, establishment of memory space map, ready for the final call to the operating system kernel. Similarly, before calling the Linux kernel, it needs to make the appropriate preparations, then transplant u-boot is to carry out the preparatory work.

3.1.U-boot first stage modification

The config.mk file in the source of U-boot used “LDFLAGS_u-boot + = -pie” this compiler option, resulting in a larger file code compiler out and more complex, so remove this compile option and locate the u-boot code directly in SDRAM address of 0x33f80000 and change the value of CONFIG_SYS_TEXT_BASE to 0x33f80000 in smdk2410.h file. Remove all the code in the middle of “mov r0,#0 ” and “ldr pc,=board_init_r” in crt0.S file.
To make the system start faster, start ICACHE and reset the clock parameters in Start. S file. As the U-boot is not supported from NAND Flash booting, add code in init. c file for NAND Flash booting support ,function void copy_to_sdram (unsigned char * scr, unsigned char * dest, unsigned int len) call function IsBootFromNorFlash (),determining whether Nor Flash starts, if not, call function nand_read_ll((unsigned int src),dest,len),then jump out to call function void clear_bss() to make sure the global variables can be used. In lowlevel_init.S file, depending on the target board SDRAM model DATASHEET to set 13 registers initialization parameters, then the SDRAM can be used. Start. S file has been re-set PLL before, so delete function correlated with PLL lock time in smdk2440.c files, the purpose is to start the system faster, delete as : writel (0xFFFFFF,&clk_power>locktime);
writel(M_MDIV<<12)+(M_PDIV<<4)+M_SDIV, &clk_power->mpllcon);
After the Start. S file in U-boot copy the entire U-boot code to SDRAM, then set the sp register, making the second stage of the C code can run, the entire U-boot memory usage shown in Figure 1:
image
Fig.1. U-boot memory usage
Now, the operating environment of the C function has been completely ready. By the following command“ldr pc,_start_armboot”to jump directly, it calls “start_arm_boot”function in lib_arm / board.c.

3.2.U-boot second stage modification

image
Fig.2. The second stage of U-boot flow chart
Before starting the kernel, U-boot allows the user to decide whether to enter download mode, that is, into U-boot control interface. The second stage of u-boot flow chart shows in Figure 2. First, initialize related hardware devices. The main thing is to set the system clock, initializing serial ports. board_init function sets MPLL, changing the system clock, it is the target dependent function. board_init function also stores machine Type ID : gt ->bd ->bi_arch_number=MACH_TYPE_SMDK2440; Serial port initialization function is mainly serial_init, it sets UART control register, which is CPU related function. Implemented in the “cup/arm920t/ s3c24x0/ serial. c.” Second, detect system memory map. For the target board the memory distribution is clear, set the code is as follows: int dram_init (void){gd- >bd->bi_dram[0].start=0x30000000;gd->bd->bi_dram[0]. 0x30000000;gd->bd->bi_dram[0].size=0x4000000;return 0;}. Third, set boot parameter for kernel. U-boot through list of tags pass parameters to kernel,I add the following two configuration items in the configuration file “include/configs/smdk2440.h”.as“#defineCONFIG_ETUP_MEMORY_TAGS 1 #define CONFIG_CMDLINE_TAG 1”.For the architecture of ARM CPU, by “do_boot_linux” function in the lib_arm/armlinux.c to start the kernel. Finally, the kernel is called by following function “theKernel(0,bd->bi_arch_number,bd->bi_bootparams); ”.

4.Linux Kernel Transplantation

Linux boot process can be divided into two parts: architecture/board related boot process, the subsequent common boot process.ARM processor boot Linux kernel process is shown in Figure 3.
image
Fig.3. ARM pr...

Table of contents

  1. Cover
  2. Halftitle
  3. Title
  4. Copyright
  5. Preface
  6. Committee
  7. Keynote Speech
  8. Contents
  9. Session 1 Computer System
  10. Session 2 Computer Network
  11. Session 3: Computer Security
  12. Session 4 Databases and Information Systems
  13. Session 5: Artificial Intelligence and Multimedia
  14. Session 6: Theory and Software Engineering
  15. Session 7: Computer Applications
  16. Author Index