设时序!!!!!!!!!!!!!
能大不能小
最大无所谓,然后再调
sdram 时序掌握
kernel busybox application
编译是用同一个编译器
dd if=/dev/zero of=./root.fs bs= count=10
losetup /dev/loop7 root.fs
losetup -d /dev/loop7
mkfs.ext3 /dev/loop7
mount -o loop rootfs.ext3 /mnt/
mknod console c 5 1
mknod null 1 1
mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008040 -o bzli -d zImage uImag
3种启动方式
initrd=0x3000 root=/dev/ram0
------------- make the file system image ----------
## total = bs * count
1. dd if=/dev/zero of=
bs= count=
## insert the file into the loopback device
2. losetup /dev/loop
## format the block device
3. mkfs. /dev/loop
## detach the image file from the loopback device
4. losetup -d /dev/loop
-------------- build the file system (busybox) ------------
## choice the link type: static link or dymanic link
1. Build Options ---> Build BusyBox as a satic library.......
## configure the compiler prefix
2. Build Options ---> Do you want to build .......
## configure Installation floder
3. Installoation Options --> busybox installation prefix
## choice init process
4. Init Uitilies ---> init
## choice the shell
5. Shells ---> Choose ...... ---> ash
## build
6. make
## install
7. make install
-------------- copy the busybox into the image file -------
1. mount -o loop
2. cp -rf
3. cd
4. mkdir dev proc sys
5. mknod dev/console c 5 1
6. mknod dev/null c 1 3
## if the busybox linked as dynamic linker
cp -rf /arm-linux/lib/* lib/
7. umount
========================================================================
--------------------- A. boot from nand flash -----------------
1. nand erase
2. tftp 30000000
3. nand write 30000000
## configure command line tag for kernel booting
4. setenv bootargs noinitrd mem=64M console=ttySAC0 root=/dev/mtdblock2
saveenv
## configure command line tag for kernel booting
4. setenv bootargs noinitrd mem=64M console=ttySAC0 root=/dev/mtdblock2
saveenv
## download the kernel image and boot it
5. tftp 30008000 uImage
bootm 30008000
----------- done--------
-------------------- B. boot from init ram disk----------------------
1. tftp
2. setenv bootargs initrd=, mem=64M console=ttySAC0
root=/dev/ram0
saveenv
## download the kernel image and boot it
3. tftp 30008000 uImage
bootm 30008000
------------ done -------
------------------- C. boot from network file system (nfs) -------
## configure the nfs service of your host
1. .....
## copy the busybox into the nfs service root dir
2. cp -rf
cd
mkdir dev proc sys
mknod dev/console c 5 1
------------------- C. boot from network file system (nfs) -------
## configure the nfs service of your host
1. .....
## copy the busybox into the nfs service root dir
2. cp -rf
cd
mkdir dev proc sys
mknod dev/console c 5 1
mknod dev/null c 1 3
## if the busybox linked as dynamic linker
cp -rf /arm-linux/lib/* lib/
## setup the command line tags on the development board
3. setenv bootargs noinitrd console=ttySAC0,115200 mem=64M root=/dev/nfs
nfsroot=192.168.0.3:/
ip=192.168.0.2:192.168.0.3:192.168.0.3:255.255.255.0::eth0:off
## download the kernel image and boot it
3. tftp 30008000 uImage
bootm 30008000
------------ done -------
阅读(579) | 评论(0) | 转发(0) |