합계 41897
drwx------ 2 daysleep daysleep 512 1970-01-01 09:00 .
drwxr-xr-x 4 root root 4096 2011-06-10 01:38 ..
-rw-r--r-- 1 daysleep daysleep 24296 2010-08-20 20:54 MLO
-rw-r--r-- 1 daysleep daysleep 376 2010-08-20 20:54 md5sum.txt
-rw-r--r-- 1 daysleep daysleep 19960110 2010-08-20 20:54 ramdisk.gz
-rw-r--r-- 1 daysleep daysleep 19509297 2010-08-20 20:54 ramfs.img
-rw-r--r-- 1 daysleep daysleep 210360 2010-08-20 20:54 u-boot.bin
-rw-r--r-- 1 daysleep daysleep 3190568 2010-08-20 20:54 uImage
-rw-r--r-- 1 daysleep daysleep 755 2010-08-20 20:54 user.scr
============================ user.scr ===============================
========================= End of user.scr ============================....(This is appeared as broken characters) ...mmc initsetenv dvimode 1024x768MR-16@60setenv vram 16M omapfb.vram=0:8M,1:4M,2:4Msetenv console tty0 console=ttyS2,115200n8if test "${beaglerev}" = "AxBx"; thensetenv rdaddr 0x81000000setenv optargs mem=80M@0x80000000 musb_hdrc.fifomode=5elif test "${beaglerev}" = "Cx"; thensetenv rdaddr 0x88000000setenv ramroot /dev/ram0 rw ramdisk_size=131072 initrd=${rdaddr},128Msetenv optargs mem=80M@0x80000000 mem=128M@0x88000000 musb_hdrc.fifomode=5elsesetenv rdaddr 0x88000000setenv ramroot /dev/ram0 rw ramdisk_size=131072 initrd=${rdaddr},128Msetenv optargs mem=80M@0x80000000 mem=384M@0x88000000firun loadramdiskled 0 offrun loaduimageled 1 onrun ramboot
========================= printenv in u-boot ========================
=============== End of printenv in u-boot ========================bootcmd=if mmc init ${mmcdev}; then if userbutton; then setenv bootscr user.scr;if run loadbootscript; then run bootscript; fi; if run loaduimage; then if run loadramdisk; then run ramboot; fi; run mmcboot; fi; fi; if run loadbootscript; then run bootscript; fi; setenv bootscr user.scr;if run loadbootscript; then run bootscript; fi; if run loaduimage; then run mmcboot; fi; fi; run nandboot;bootdelay=3baudrate=115200loadaddr=0x80200000rdaddr=0x81000000usbtty=cdc_acmconsole=ttyS2,115200n8optargs=bootscr=boot.scrcamera=lbcm3m1vram=12Mdvimode=640x480MR-16@60defaultdisplay=dvimmcdev=1mmcroot=/dev/mmcblk0p2 rwmmcrootfstype=ext3 rootwaitnandroot=/dev/mtdblock4 rwnandrootfstype=jffs2ramroot=/dev/ram0 rw ramdisk_size=65536 initrd=0x81000000,64Mramrootfstype=ext2mmcargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype}nandargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${nandroot} rootfstype=${nandrootfstype}loadbootscript=fatload mmc ${mmcdev} ${loadaddr} ${bootscr}ramargs=setenv bootargs console=${console} ${optargs} mpurate=${mpurate} buddy=${buddy} camera=${camera} vram=${vram} omapfb.mode=dvi:${dvimode} omapdss.def_disp=${defaultdisplay} root=${ramroot} rootfstype=${ramrootfstype}loadramdisk=fatload mmc ${mmcdev} ${rdaddr} ramdisk.gzbootscript=echo Running bootscript from mmc ...; source ${loadaddr}loaduimage=fatload mmc ${mmcdev} ${loadaddr} uImagemmcboot=echo Booting from mmc ...; run mmcargs; bootm ${loadaddr}nandboot=echo Booting from nand ...; run nandargs; nand read ${loadaddr} 280000400000; bootm ${loadaddr}ramboot=echo Booting from ramdisk ...; run ramargs; bootm ${loadaddr}buddy=nonebeaglerev=xMAmpurate=1000dieid#=766600011ff00000015739eb0802400eEnvironment size: 2013/131068 bytes
u-boot는 자동 부팅시 맨처음 실행하는 환경변수가 bootcmd인 것으로 생각된다. bootcmd를 좀 더 알기 쉽게 풀어 보면 다음과 같다.
====================== bootcmd ======================
if mmc init ${mmcdev};
then if userbutton;
then setenv bootscr user.scr;
if run loadbootscript; then run bootscript; fi;
if run loaduimage;
then if run loadramdisk; then run ramboot; fi;
run mmcboot;
fi;
fi;
if run loadbootscript; then run bootscript; fi;
setenv bootscr user.scr;
if run loadbootscript; then run bootscript; fi;
if run loaduimage; then run mmcboot; fi;
fi;
run nandboot;
================ End of bootcmd ======================
여기서, 빨간색 부분은 부팅시 사용자 버튼이 눌려 졌을때 사용되는 부분이기 때문에 나머지 부분을 먼저 살펴보자. bootcmd에서 사용되어지는 환경변수들을 우선 살펴보자.
loadbootscript ....
댓글 없음:
댓글 쓰기