- compile ARM gdb and insight
Environment
ubuntu 7.10
arm linux kernel 2.6.15.7
ARM gcc-3.4.2 and glibc-2.3.3 - compile GDB and GDBServer
- compile GDB
get termcap and build arm termcap library
moidfy Makefile
assign
CC=arm-linux-gcc
LD=arm-linux-ld
AR=arm-linux-ar
make;
copy libtermcap.a into the library of the toolchains and termcap.h into the include path of the toolchain
build GDB
./configure --host= i686-pc-linux-gnu --target=arm-linux ;make
moidfy Makefile
assign
CC=arm-linux-gcc
LD=arm-linux-ld
AR=arm-linux-ar
make;
copy libtermcap.a into the library of the toolchains and termcap.h into the include path of the toolchain
build GDB
./configure --host= i686-pc-linux-gnu --target=arm-linux ;make
- compile GDBServer
CC=arm-linux-gcc AR= arm-linux-ar LD=arm-linux-ld ./configure --host= i686-pc-linux-gnu --target=arm-linux;make
- compile Insight
./configure --host= i686-pc-linux-gnu --target=arm-linux --prefix=/usr/local/insight ;make;make install
- 燒Kernel的過程
boot# tftp 41000000 uImage
Using faradaynic#0 device
TFTP from server 192.168.42.50; our IP address is 192.168.42.51
Filename 'uImage'.
Load address: 0x41000000
Loading: #################################################################
done
Bytes transferred = 1090003 (10a1d3 hex)
boot# erase 14080000 141fffff
........................ done
Erased 24 sectors
boot# cp.b 41000000 14080000 10a1d3(image size)
Filename 'uImage'.
Load address: 0x41000000
Loading: #################################################################
done
Bytes transferred = 1090003 (10a1d3 hex)
boot# erase 14080000 141fffff
........................ done
Erased 24 sectors
boot# cp.b 41000000 14080000 10a1d3(image size)
- 環境變數的設定
setenv bootargs mem=36M console=ttyS1
root=/dev/nfs rw nfsroot=192.168.42.50:/home/dean/MyTMP/0.18/aspeed/rootfs ip=192.168.42.45:192.168.42.50:192.168.42.1.255.255.0.0:::eth0:off
格式如下:
ip=ipaddr:tftp_serverip:gatewayip:netmask:::網卡名稱:off
root=/dev/nfs rw nfsroot=192.168.42.50:/home/dean/MyTMP/0.18/aspeed/rootfs ip=192.168.42.45:192.168.42.50:192.168.42.1.255.255.0.0:::eth0:off
格式如下:
ip=ipaddr:tftp_serverip:gatewayip:netmask:::網卡名稱:off
Add netconsole parameters as the below:
The kernel will throw the data of console to the remote pc
Please execute the command in the remote PC and show the console data
netcat -u -l -p 6666 -v
- u-boot之mkimage的使用方式
[root@localhost tftpboot]#mkimage -A arm -O linux -T kernel -C none -a 0x30000 -e 0x30008000 -d zImage zImage.img
參數的意義:
-A :set architecture
-O :set OS
-T :set image type
-C :set compression type
-a :set load address
-e :set entry point
-n :set image name
-d :use image data
-x :set XIP (execute in place)
參數的意義:
-A :set architecture
-O :set OS
-T :set image type
-C :set compression type
-a :set load address
-e :set entry point
-n :set image name
-d :use image data
-x :set XIP (execute in place)
沒有留言:
張貼留言