⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 升级linux.txt

📁 9200的开发资料:包括uboot
💻 TXT
字号:
Linux:
* get the 2.4.27 kernel:
ftp://ftp.kernel.org/pub/linux/kernel/v2.4/linux-2.4.27.tar.gz

* apply the vrs-1 patch:
http://ftp.linux.org.uk/pub/linux/arm/kernel/v2.4/patch-2.4.27-vrs1.gz

* apply the latest vrs-1 update patch:
http://maxim.org.za/AT91RM9200/2.4.27vrs1-at91-06092004.patch.gz

* cd /usr/src/linux-2.4.27-vrs1 ...

* copy in the file "mkimage" from the rmk7 development invironment (I think
it's here),
Atmel-CDROM:/Linux-arm9/linux-2.4.19-rmk7.tar.gz

* edit mkimage to point to where your tftp directory, your cross compilation
directory, etc ...

* edit your Makefile for cross compilation:
ARCH := arm
CROSS_COMPILE   = /usr/local/arm/2.95.3/bin/arm-linux-

* configure:
# make at91rm9200dk_config
# make xconfig
# make dep
# ./mkimage

* this is my mkimage script:
make Image
/usr/local/arm/2.95.3/bin/arm-linux-objcopy -O binary -S vmlinux linux.bin
gzip -v9 linux.bin
/usr/local/uboot/mkimage -A arm -O linux -C gzip -a 0x20008000 -e 0x20008000 -d linux.bin.gz uImage
cp uImage /samba/company/Computer/tftp/

* the last command should ask you if you want to overwrite the file before it's
moved into the tftp directory for download by the target.

# make modules
* if you are NFS mounting your filesystem, you should provide a link from
/lib/modules/2.4.27-vrs1/ to the equivalent modules directory on your ARM root
filing system so that when you install the modules, they will be seen by the
ARM board immediately.

# make modules_install
* this last one will fail on the makedep part. I use this script which calls
the Busybox perl script "depmod.pl". This creates the basic dependency file.
#!/bin/sh ./depmod.pl -k ./vmlinux -F ./System.map -b 
../../fs/layout/lib/modules/2.4.27-vrs1/ > 
../../fs/layout/lib/modules/2.4.27-vrs1/modules.dep


It's hard to remember everything, hope this helps!

⌨️ 快捷键说明

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