📄 cat_sh
字号:
#!/bin/sh
# dswei@ustc.edu: GPL
#************************************************************************************
#
# 用于将内核mos、用户程序uart、leds的二进制代码合并成一个文件m
# mos < 8k,放在位置0;uart < 1k,放在12k开始处;leds < 1k放在13k开始处
# 请注意:12K、13K的取值与内核代码init/main.c中相应的OSCreateProcess函数的nand_start_addr相等,
# UART_SIZE、LEDS_SIZE不小于OSCreateProcess的参数led
#
#************************************************************************************
UART_OFT=12
UART_SIZE=1
LEDS_OFT=13
LEDS_SIZE=1
echo "Concatenate the kernel and user programs uart,leds:"
cp -f ../mos m
dd bs=1024 conv=notrunc if=uart of=m seek=$UART_OFT count=$UART_SIZE
dd bs=1024 conv=notrunc if=leds of=m seek=$LEDS_OFT count=$LEDS_SIZE
arm-linux-objdump -D -b binary -m arm m > cat3.s
echo "Now,you should use the JTAG tool to download the file \"m\" into your nand flash"
#Jflash-s3c2410 m /t=5
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -