uCrouter project forum
EVM9200 (AT91RM9200) support for uClinux
|
EVM9200 (AT91RM9200) support for uClinux
http://www.ucrouter.ru/download/EVM9200-uClinux-20041215.patch.tgz
1. Copy & Unpack uClinux distributive to opt
cp uClinux-dist-20041215.tar.bz2 /opt
cd /opt
tar -xjvf ./uClinux-dist-20041215.tar.bz2
2. Copy & Unpack Atmel Linux kernel to uClinux tree
cp linux-2.4.19-rmk7.tar.gz /opt/uClinux-dist
cd /opt/uClinux-dist
tar -xzvf linux-2.4.19-rmk7.tar.gz
3. Copy & apply EVM9200 support for linux-2.4.19-rmk7
cp linux-2.4.19-rmk7-EVM9200.patch /opt/uClinux-dist
cd /opt/uClinux-dist
cat ./linux-2.4.19-rmk7-EVM9200.patch | patch -p0
ln -s /opt/uClinux-dist/linux-2.4.19-rmk7 /opt/uClinux-dist/linux-2.4.19.rmk7.x
4. Copy & Apply EVM9200 support for uClinux
cp EVM9200-uClinux-20041215.patch /opt
cd ./opt
cat ./EVM9200-uClinux-20041215.patch | patch -p0
5. Configure linux-2.4.19-rmk7 & uClinux user applications
type:
make menuconfig
From main menu select item: 'Vendor/Product Selection'
Then from 'Vendor/Product Selection' dialog
Select Vendor:
'(Atmel) Vendor'
Select Product:
'(EVM9200)'
Return to main menu. From main menu select item:'Kernel/Library/Default Selection'
Then from 'Kernel/Library/Default Selection' dialog
Select kernel version:(linux-2.4.19-rmk7.x)
and Libc Version : (glibc)
Return to main menu. Select "Exit" to exit from 'make menuconfig' utility.
6. Compile linux-2.4.19-rmk7 & uClinux user applications
type:
make dep 2>&1 | tee make_dep.out
make | tee make.out
files appear:
/opt/uClinux-dist/images/ucImage
/opt/uClinux-dist/images/ucInitrd
7. Update kernel image via u-boot.
u-boot>tftpboot 20800000 ucImage
u-boot>protect off 10020000 100BFFFF
u-boot>erase 10020000 100BFFFF
u-boot>cp.b 20800000 10020000 9FFFF
where:
u-boot> - u-boot prompt
tftpboot - u-boot load file via tftp protocol command
20800000 - SDRAM load address
ucImage - linux kernel image
uImage must be located at the
host tftp server download directory
(Linux host) /tftpboot
protect - u-boot flash protect on/off command
off - disable protection
10020000 - start flash address
100BFFFF - end flash address
erase - u-boot flash erase command
10020000 - start flash erase address
100BFFFF - end flash erase address
cp.b - u-boot byte copy command
20800000 - SDRAM source address
10020000 - flash destination address
9FFFF - bytes copy
8. Update linux initrd via u-boot tftp.
u-boot>tftpboot 20800000 ucInitrd
u-boot>erase 100C0000 101EFFFF
u-boot>cp.b 20800000 100C0000 12FFFF
9. Set u-boot environment variables.
for 32Mb SDRAM:
u-boot>setenv bootargs root=/dev/ram rw initrd=0x20800000,0x400000 ramdisk_size=8000 console=ttyS0,115200 mem=32M
or for 16Mb SDRAM:
u-boot>setenv bootargs root=/dev/ram rw initrd=0x20800000,0x400000 ramdisk_size=8000 console=ttyS0,115200 mem=16M
u-boot>bootcmd bootm 10020000 100C0000
u-boot>saveenv
10. Reboot target.
Best Regards,
Dmitriy Ckerkashin
|
- EVM9200 (AT91RM9200) support for uClinux - dch, 2005\07\03 13:50:17, 2960 bytes
|
|
Register
Forgot passwd
Top
|
Answer
ARM®и Thumb® зарегистрированные торговые марки ARM Limited.
Linux® зарегистрированная торговая марка Linus Torvalds.
µClinux и uClinux торговые марки Arcturus Networks Inc.
|