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 agohi 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: -> i have copy source code into home folder ls => o/p: uClinux-dist-test-20060511.tar.bz2 uClinux-dist.diff.gz nios2gcc.tar.bz2 nios2libs.tar.bz2 build0411.zip nios2rootfs.tar.bz2 nios2linux-1.4.zip -> Login as a user account on Linux PC, open a terminal. pwd ->/home su -# root passwd tar jxf nios2gcc.tar.bz2 -C / exit ->so now /opt is in home folder.next command for setting path ->for /home/opt/nios2/bin PATH=$PATH:/home/opt/nios2/bin:$usr/bin ->for checking command nios2-linux-uclibc-gcc -v ->Login as a user account on Linux PC, open a terminal. su -# your root passwd tar jxf nios2libs.tar.bz2 -C / exit -> i have query after above step => have i to give PATH for nios2libs ? if -> yes, then where? . ? -># login as a user account, don't use root account, cd /home tar jxf uClinux-dist-test-20060511.tar.bz2 cd uClinux-dist-test zcat ../uClinux-dist.diff.gz | patch -p0 -> still in /home/uClinux-dist-test dir, don't cd linux-2.6.x make menuconfig make linux_hwselect SYSPTF=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