ramdisk.sh

来自「source code of armboot for s3c4510」· Shell 代码 · 共 29 行

SH
29
字号
#!/bin/sh#-----------------------------------------------------------------------------------------------# Usage: mkimage -l image#  mkimage -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image#-----------------------------------------------------------------------------------------------#  -l ==> list image header information#  -A ==> set architecture to 'arch'#  -O ==> set operating system to 'os'#  -T ==> set image type to 'type'#  -C ==> set compression type 'comp'#  -a ==> set load address to 'addr' (hex)#  -e ==> set entry point to 'ep' (hex)#  -n ==> set image name to 'name'#  -d ==> use image data from 'datafile'#-----------------------------------------------------------------------------------------------#arch name = NULL,alpha,arm,x86,ia64,mips,mips64,ppc,s390,sh,sparc,sparc64	#os name = NULL,openbsd,netbsd,freebsd,4_4bsd,linux,svr4,esix,solaris,irix,sco,dell,ncr,lynxos,vxworks,psos,qnx,ppcboot	#comp name = gzip,none#image type =standalone,kernel,	ramdisk, multi,	firmware, scriptif [ $# -ne 4 ];  then	echo "Usage: $0 load_addr(hex) entry_point(hex) in_image out_image gzip|none"    exit 1else	echo "mkimage -A arm -O linux -T ramdisk -C gzip -a $1 -e $2 -n LINUX -d $3 $3.img"	mkimage -A arm -O linux -T ramdisk -C $4 -a $1 -e $2 -n LINUX -d $3 $3.imgfi

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?