iOS Programming Basics: How does the Hello World app work?

Source: Internet
Author: User

Set up a file system directory in the referenced Linux directory.

Unzip the source into the directory configuration compiler and compile the schema:

Cross_compile? = arm-linux-

ARCH = arm.


Perform make menuconfig configuration

Choose Static Compilation,

Select the installation path in the installation options (you can directly select the directory you just created). Save exit.

Make

Make install to generate files.

Enter to set up the directory to the ETC directory to execute: CP-RF. /.. /busybox-1.13.0/examples/bootfloppy/etc/*./
Copy the partial configuration file and copy the native to passwd group shadow to the current directory.

Modify the Inittab file to:

:: Sysinit:/etc/init.d/rcs::respawn:-/bin/shhang_serial0::askfirst:-/bin/sh::once:/usr/sbin/telnetd-l/bin/login :: Ctrlaltdel:/bin/umount-a-R
Manually create a device file in the Dev directory:
[Email protected] dev]# Mknod console C 5 1[[email protected] dev]# lsconsole[[email protected] dev]# mknod null C 1 3[[em AIL protected] dev]# lltotal 0crw-r--r--. 1 root root 5, 1 May  5 19:51 consolecrw-r--r--. 1 root root 1, 3 May  5 19:51 null

Modify the ETC/INIT.D/RC. S file

#! /bin/shpath=/bin/:/sbin/:/usr/bin:/usr/sbinrunlevel=sprevlevel=numask 022export PATH runlevel Prevlevel/bin/mount- Amkdir/dev/ptsmount-t devpts devpts/dev/ptsecho/sbin/mdev >/proc/sys/kernel/hotplugmdev-smkdir-p/var/lock/bin/ Hostname-f/etc/sysconfig/hostname

In the ETC directory to create the directory sysconfig into the directory to add files hostname, the content is the name of the display.

Modify the contents of the profile file as:

#Ash profile#vim:syntas=sh#no core files by Default#ulimit-s-C 0 >/dev/null 2>&1user= "' Id-un '" Logname= $USERP S1= ' [\[email protected]\h \w]# ' path= $PATHHOSTNAM = '/bin/hostname ' echo ' Welcome home Sir ' echo ' Jarvis is ok! ' Export USER LOGNAME PS1 PATH

To copy a library file from the cross-compiler:
[Email protected] lib]# cp-f/opt/embedsky/4.3.3/arm-none-linux-gnueabi/libc/armv4t/usr/lib/*.so*./-A

To make the bin file:

[Email protected] hakits]# mkyaffs2image my_root/  my_root.bin




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.