Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ARMǶÈëʽLINUXÉ豸Çý¶¯Éè¼ÆÈëÃÅѧϰ

  ¾­¹ýÒ»¶Îʱ¼äµÄѧϰ֮ºó£¬Ò²¿ª·¢ÁËһЩСÐ͵ÄÇý¶¯£¬ÕýÈçÎÒ֮ǰһƪÖÐдµ½µÃ£¬ÏÖÔÚÎÒ¾ÍÀ´Ð´Ò»ÏÂÔÚARMǶÈëʽLINUXÏÂÈçºÎÉè¼ÆÇý¶¯µÄ¿ò¼Ü¡£
        ÔÚÕâÀïÎÒÓõİå×ÓÊÇmicro2440°å×Ó£¬°å×ÓÉϵÄlinux°æ±¾ÊÇ2.6.13¡£ÒòΪÎÒÔÚǰһƪ½éÉÜÁËÇý¶¯±à³ÌµÄÁ½ÖÖ¿ò¼ÜÉè¼Æ£¬ËùÒÔÏÖÔÚÎÒ¾ÍÀ´·Ö±ðдһÏÂÕâÁ½ÖÖ¿ò¼ÜÉè¼ÆµÄ³ÌÐò¡£
¿ª·¢Æ½Ì¨£ºRED HAT LINUX 9£¨Linux 2.4.18£©
¿ª·¢°å£ºmicro2440£¨ÓÑÉÆÖ®±Û£©£¨Linux 2.6.13)
½»²æ±àÒ빤¾ß£ºarm-linux-gcc-3.4.1
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
2.4ÄÚºËÇý¶¯¿ò¼Ü£º
static int __init leds_init(void)
{
 int result;
 int i;
 result = register_chrdev(LED_MAJOR, DEVICE_NAME, &leds_fops);
 if(result < 0){
  printk(DEVICE_NAME "can't register major number\n");
  return result;
 }
 
// static devfs_handle_t devfs_handle;
// devfs_handle = devfs_register(NULL, DEVICE_NAME, DEVFS_FL_DEFAULT, LED_MAJOR, &leds_fops, NULL);
/*
*Ö®ËùÒÔ²»ÓÃdevfs_register£¬¶øÓÃdevfs_mk_cdev£¬Ô­ÒòÊÇÒòΪÔÚlinux2.6ÄÚºËÀïûÓÐdevfs_registerº¯Êý£¬¶ø¸ÄÓÃ*devfs_mk_cdev
*/
 devfs_mk_cdev(MKDEV(LED_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP, DEVICE_NAME);
 for(i = 0; i < 4; i++){
  s3c2410_gpio_cfgpin(led_table[i], led_cfg_table[i]);
  s3c2410_gpio_setpin(led_table[i], 1);
 }
 printk(DEVICE_NAME "initialized\n");
 return 0;
}
static void __exit leds_exit(void)
{
 devfs_remove(DEVICE_NAME);
 unregister_chrdev(LED_MAJOR, DEVICE_NAME);
}
---------------------------------------------------------------------
---------------------------------------------------------------------
---------------------------------------------------------------------
2.6ÄÚºËÇý¶¯¿ò¼Ü£º
static int __init leds_init(void)
{
 int result;
 int i;
&nbs


Ïà¹ØÎĵµ£º

linux϶¯Ì¬¿âÓ뾲̬¿â

ÌåÑéÒ»ÏÂlinuxϱàдºÍʹÓö¯Ì¬¿âÓ뾲̬¿â£¬·¶Àý£ºhelloworld³ÌÐò¡£
Ê×Ïȱàд¾²Ì¬¿â£º
hellos.h
 #ifndef _HELLO_S_H
#define _HELLO_S_H
void prints(char *str);
#endif
 
hellos.c
#include "hellos.h"
#include <stdio.h>
void prints(char *str)
{
printf("print in sta ......

LinuxǶÈëʽ¿ª·¢¾­µäÍøÕ¾


×¢£ºÒÔÏÂÄÚÈÝת×Ô£º
http://blog.chinaunix.net/u2/81965/showart_1674967.html
 
¹úÄÚÕ¾µã£º
ftp://ftp.altera.com/outgoing/release/
http://www.china-vision.net/blog/user1/6/archives/2006/200696114213.html
http://mail.google.com

shao_»ªºã¹«Ë¾µÄÖ÷Ò³£¬ÀïÃæÓкܶàµÄÏà¹Ø×ÊÁÏ£¬Óдý´ó¼ÒÈ¥·¢ÏÖ
......

linuxÏ¿ª·¢Óöµ½µÄÎÊÌ⼯ºÏ

 ¼Ç¼ÔÚlinuxÏ¿ª·¢Óöµ½µÄ¸÷ÖÖÎÊÌ⣬·½±ãÒÔºó²éÕÒ¡£
 
1.¹ØÓÚshellÖнű¾µÄÖ´Ðз½Ê½£ºÔÚµ±Ç°½Å±¾Ö´Ðл¹ÊÇÆô¶¯Ò»¸öеÄshell½ø³ÌÀ´Ö´Ðнű¾¡£
¼ÙÉ赱ǰĿ¼ÏÂÓнű¾script.sh¡£
Æô¶¯Ò»¸öеÄshell½ø³ÌÀ´Ö´ÐУº
ÕâÊÇshellÖÐĬÈϵÄÖ´Ðз½Ê½ÊÇÆô¶¯Ò»¸öеÄshell½ø³Ì£¨×Ó½ø³Ì£©À´Ö´Ðнű¾£¬¼´sh script.sh»òÕ߸³Ó ......

linuxÍøÂç±à³Ì»ù±¾Á÷³Ì

1.        »ù±¾¸ÅÄî
 
˵µ½ÍøÂç±à³Ì,²»µÃ²»ÏÈÌáµ½OSI²Î¿¼Ä£ÐÍ,ÆäÆß²ãÄ£ÐÍ´Óϵ½ÉÏ·Ö±ðΪ
1.ÎïÀí²ã(Physical Layer,PH)
2.Êý¾ÝÁ´Â·²ã(Data Link Layer,DL)
3.ÍøÂç²ã(Network Layer,N)
4.ÔËÊä²ã(Transport Layer,T)
5.»á»°²ã(Session Layer,S)
6.±íʾ²ã(Presentation Layer, ......

Red Hat enterprise linux 5 mysql°²×°²½Öè

Ò»¡¢°²×°·þÎñÆ÷¶Ë
£¨1£©¡¢ÔÚÓÐÁ½¸örmpÎļþµÄĿ¼ÏÂÔËÐÐÈçÏÂÃüÁ
[root@test1 local]# rpm -ivh MySQL-server-5.0.26-0.i386.rpm
ÏÔʾÈçÏÂÐÅÏ¢£º
warning: MySQL-server-5.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing……¡¡¡¡¡¡¡¡¡¡¡¡¡¡##################################### ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ