Forum Discussion
Altera_Forum
Honored Contributor
20 years agoproblem with initramfs
hello all friend i have made kernel image with initramfs.i have used nios ide fot it. for intramfs ,i have made rootfs sourse with help of nios (filesystem project). but when i load it on...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by slsnios@Jul 13 2006, 02:43 PM hi hippo
i have read step1-3 .i have some query.
according it and my understanding for it,i have made following doc for my reference .before going to work on linux, i want to be sure am i right or wrong .
can you tell me where i am wong in my doc.
i am following below step:
eg, i am user hippo,
-> login as a user account, eg hippo on linux pc, open a terminal.
-> i have copy source code into /home/hippo folder
ls /home/hippo
=> o/p:
uclinux-dist-test-20060511.tar.bz2 uclinux-dist.diff.gz nios2gcc.tar.bz2
su -# root passwd
tar jxf /home/hippo/nios2gcc.tar.bz2 -c /
exit
->so /opt/nios2/bin has the cross gcc. next command for setting path
->add /opt/nios2/bin to path ( if you save it to .bash_profile, logout and login again)
path=$path:/opt/nios2/bin
->for checking command
nios2-linux-uclibc-gcc -v
--> install uclinux-dist source
cd /home/hippo
tar jxf uclinux-dist-test-20060511.tar.bz2
cd uclinux-dist-test
zcat ../uclinux-dist.diff.gz | patch -p0
-> still in /home/hippo/uclinux-dist-test dir, don't cd linux-2.6.x
make menuconfig
make linux_hwselect sysptf=path of your_system.ptf
make romfs# to create romfs dir, make will fail, ignored
make menuconfig
-> compile kernel and apps
make
-> rebuild kernel for initramfs
make linux image
--> the kernel in elf object format will be /home/hippo/uclinux-dist-test/images/zimage
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=16853)
--- quote end ---
--- Quote End --- updated your doc.