cat_sh

来自「一个基于MMU的操作系统」· 代码 · 共 24 行

TXT
24
字号
#!/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 + =
减小字号Ctrl + -
显示快捷键?