Guichan on the Skyeye

Source: Internet
Author: User

1. Install the Skyeye on the ubuntu8.04

 

(1). APT-Get install Skyeye

 

(2). Download Skyeye testsuite: skyeye-testsuite-1.3.0_rc1

 

(3). Download The busybox & Linux source code.

 

Cross compile tools: Arm-Linux-GCC 3.4.1

Busybox: busybox-1.17.2

Linux Kernel: linux-2.6.35.4

 

 

Kernel command line: Mem = 32 m console = tty0 console = ttysac0 root =/dev/Ram initrd = 0xc0800000, 0x00800000 ramdisk_size = 8192 RW

 

* ** Use new busybox to instead of the old busybox in the Skyeye's initrd. IMG.

 

(4). Modify the Linux kernel source code

 

ARCH/ARM/mach-s3c2410/include/Mach/map. H + 87

# Define s3c2410_cs6 (0xc0000000)

ARCH/ARM/mach-s3c2410/include/Mach/memory. H + 14

# Define phys_offset ul (0xc0000000)

 

 

 

2. Run the guichan examples on the Skyeye Linux

(1). Make New initrd. IMG (8 MB)

 

# Mkdir initrd
# Dd If =/dev/Zero of = initrd. img bs = 1 k count = 8192
# Mke2fs-F-V initrd. img
# Mount-o loop initrd. IMG initrd

# Umount./initrd

 

 

(2). Compile the guichan librarys & Other Related librarys.

We need following static librarys:

 

Libguichan_sdl.a libguichan. A libsdl_image.a libsdl. A LibPNG. A libz. A libpthread.

 

Http://blog.csdn.net/huyugv_830913/archive/2010/11/03/5985846.aspx

 

(3). Run the guichan examples

Label example:

 

Export sdl_nomouse = 1

Export sdl_fbdev =/dev/fb0

 

 

Widgets example:

Note: Make sure widgets example can run on the Skyeye, I disable the silder component.

// Slider = new GCN: slider (0, 10 );
// Slider-> setsize (100, 10 );

 

 

3. Run the SDL example on the Skyeye (showimage)

 

 

Pecker.hu@gmail.com

Nanjing

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.