³ÌÐòÉÕ¼ £¨amlogic open linux£© ѧϰ±Ê¼Ç
Ò»¡¢UbootÉÕ¼
1¡¢Á¬½Ójtag¡¢ÍøÏß¡¢´®¿Ú
2¡¢°Ñtftpd32.exe·Åµ½ubootÉÕ¼µÄĿ¼Àï
3¡¢Æô¶¯tftpd32.exe
4¡¢Æô¶¯ttermpro.exe
5¡¢Ë«»÷uboot.bat
6¡¢µÈµ½´°¿Úµ¯³öÀ´
8¡¢ÔÚ´®¿Ú¹¤¾ßÖÐ
1¡¢ Ö´ÐÐprint ÃüÁ²é¿´»·¾³±äÁ¿
2¡¢Ö´ÐÐsetenv serverip ¾ßÌåIP µØÖ·£¬ÅäÖÃtftp server µÄµØÖ·µÈ
3¡¢Ö´ÐÐsetenv loadaddr 82000000£¬ÉèÖÃuboot.bin µÄ¼ÓÔØÄÚ´æλÖÃΪ0x82000000
4¡¢Ö´ÐÐsavenv, ±£´æÉÏÊöÐÞ¸Ä
9¡¢ÉÕ¼£º
tftpboot 82000000 u-boot.bin
sf probe 2
sf erase 0 60000
sf write 82000000 0 60000
×¢Ò⣺Èç¹û°å×ÓÉÏÒѾÉÕ¹ýuboot£¬´ÓµÚ8²½¿ªÊ¼
¶þ¡¢KernelÉÕ¼
1¡¢°ÑucImageÎļþ·ÅÔÚtftpd32.exeÏàͬµÄĿ¼ÏÂ
2¡¢Æô¶¯tftpd32.exe
3¡¢Æô¶¯´®¿Úµ÷ÊÔ¹¤¾ß ttermpro.exe
ÏÂÃæ²Ù×÷¶¼ÊÇÔÚ´®¿Ú¹¤¾ßÖнøÐеģº
4¡¢ÊäÈë nand erase ²Á³ýnandÀïµÄÄÚÈÝ
5¡¢tftp ucImage ¼ÓÔص½ÄÚ´æ
6¡¢nand write 0x82000000 0x40000 0x400000 дÈënandÖÐ
7¡¢ set bootcmd 'nand read 0x82000000 0x40000 0x400000;bootm 82000000' ÉèÖÃbootcmd
×¢Ò⣺ÏÂÔØ֮ǰעÒâÅäÖÃÕýÈ·µÄipºÍ·þÎñÆ÷
Èý¡¢¼ÓÔØÎļþϵͳ
1¡¢bootargÉèÖà £¬ÉèÖÃÖ®ºóÐèÒªsave
setenv bootargs root=/dev/nfs nfsroot=192.168.11.6:/amlogic_source/rootfs rw init=/init ip=192.168.11.3:192.168.11.1:192.168.11.1:255.255.255.0 console=ttyS0,115200 osd=1280,720,17,p ----Ö±½ÓÖ¸¶¨ip
setenv bootargs root=/dev/nfs nfsroot=192.168.11.6:/amlogic_source/rootfs rw init=/init ip=dhcp console=ttyS0,115200 osd=1280,720,17,p ----¶¯Ì¬·ÖÅäip
setenv bootargs root=/dev/ram0 rw init=/init console=ttyS0,115200 osd=1280,720,17,p
---Ö±½ÓÆô¶¯Ð¡ÏµÍ³ £¬ÐèÒªÉÕ¶ÔÓ¦µÄucImage
×¢Ò⣺1¡¢nfsroot=192.168.11.6:/amlogic_source/rootfs----µçÄÔÉÏlinuxϵͳÏÂrootfsµÄ·¾¶£¬rootfsÊÇ´ÓÍøÕ¾ÉÏÏÂÔØÖ®ºó½âѹËõµÄ
2¡¢init=/init ip=192.168.11.3:192.168.11.1:192.168.11.1:255.255.255.0----¸ø°å×Ó·ÖÅäµÄip£¬Ö÷ÒªÐèÒªºÍµçÄÔÉÏlinuxϵͳϵÄipÔÚͬһ¸ö×Ö¶ÎÏ£¬²¢ÇÒÍø¹Ø¡¢×ÓÍøÑÚÂëÒ»Ñù
2¡¢ÔÚµçÄÔµÄlinuxϵͳÖÐÐèÒª°²×°Æô¶¯nfs server
A¡¢apt-get install nfs-kernel-server °²×°nfs server
Ïà¹ØÎĵµ£º
6.7.1 LinuxʹÓõĻº´æ
²»¹ÜÔÚÓ²¼þÉè¼Æ»¹ÊÇÈí¼þÉè¼ÆÖУ¬¸ßËÙ»º´æÊÇ»ñµÃ¸ßÐÔÄܵij£ÓÃÊֶΡ£Linux ʹÓÃÁ˶àÖÖºÍÄÚ´æ¹ÜÀíÏà¹ØµÄ¸ßËÙ»º´æ¡£
1£® »º³åÇø¸ßËÙ»º´æ£º
»º³åÇø¸ßËÙ»º´æÖаüº¬ÁËÓÉ¿éÉ豸ʹÓõÄÊý¾Ý»º³åÇø¡£ÕâЩ»º³åÇøÖаüº¬ÁË´ÓÉ豸ÖжÁÈ¡µÄÊý¾Ý¿é»òдÈëÉ豸µÄÊý¾Ý¿é¡£»º³åÇø¸ßËÙ»º´æÓÉÉ豸±êʶºÅºÍ¿é±êºÅË÷Òý£¬Ò ......
ÔÚ struct mntent ÖеijÉÔ±Óë /etc/fstab ÎļþÖеÄÌõÄ¿ÊÇÖ±½Ó¶ÔÓ¦µÄ¡£ËüµÄÄÚÈÝÈçÏ£º
struct mntent {
char *mnt_fsname; /* ¹ÒÔصÄÎļþϵͳµÄÃû×Ö */
char *mnt_dir; /* ¹ÒÔصã */
char *mnt_type; /* ÎļþϵͳÀàÐÍ£ºufs¡¢nfs µÈ */
char *mnt_opts; /* Ñ¡ÏÒÔ¶ ......
1¡¢×ܽᱳ¾°
ÔÚlinuxϵͳÏ£¬Èç¹ûÄãÏÂÔز¢°²×°ÁËÓ¦ÓóÌÐò£¬ºÜÓпÉÄÜÔÚ¼üÈëËüµÄÃû³Æʱ³öÏÖ“command not
found”µÄÌáʾÄÚÈÝ¡£Èç¹ûÿ´Î¶¼µ½°²×°Ä¿±êÎļþ¼ÐÄÚ£¬ÕÒµ½¿ÉÖ´ÐÐÎļþÀ´½øÐвÙ×÷¾ÍÌ«·±ËöÁË¡£ÕâÉæ¼°µ½»·¾³±äÁ¿PATHµÄÉèÖÃÎÊÌ⣬¶øPATHµÄÉèÖÃÒ²
ÊÇÔÚlinux϶¨ÖÆ»·¾³±äÁ¿µÄÒ»¸ö×é³É²¿·Ö¡£±¾°¸Àý»ùÓÚRedHat ......
ÓÉÓÚ fc3 ÄÚºËĬÈÏ fat32 Îļþϵͳ×Ö·û±àÂëÊÇ ascii£¬Èç¹ûÓÅÅ̵ÄÎļþÃû°üº¬ÖÐÎÄ£¬ÄÇôÔÚת»»Ê±»á³öÎÊÌ⣬ӦÓóÌÐò¾Í»áʧȥÏìÓ¦¡£¾ßÌåµÄ±íÏÖÓжàÖÖ£¬±ÈÈç×ÀÃæ¼ÙËÀ£¬¹Ø»úʱÌáʾÎÞ·¨Ð¶ÔØ·ÖÇøµÈµÈ
½â¾öµÄ°ì·¨ÊÇÔÚ¹ÒÔØʱ£¬¸ù¾ÝÓïÑÔ»·¾³ locale µÄÖµ£¬Ê¹ÓùÒÔزÎÊý¡£Èç¹ûÊÇ UTF- ......