Most recent edit on 2006-08-04 13:33:20 by TomeiNingen [Text formatting; added link to arm-elf-gcc tool download.]
Additions:
The following is the steps about adding application into ucLinux on Skyeye 1.0:
In order to mount the romfs.img , the loopback and rom file system support modules need to be installed first. After that, mount the file into a temporary directory and copy all contents and the application into another temporary directory.Finally make a new romfs.img and run skyeye.
1. Install loopback device support module for the host
This is only necessary for some Linux distributions. Other distributions, such as FedoraCore, already have integrated support for loopback device.
2. Install ROM file system support module for the host
Again, do this if your Linux distribution doesn't have ROMFS support.
3. Mount romfs.img on a temporary directory of the host
4. Copy all contents from the above temporary directory and the own application into another temporary directory of the host.
5. Make a new romfs.img using the temporary directory which has the application.
Appendix : How to get the simple “Hello” execute program on the host for Linux on Skyeye
1. Install ucLinux ARM cross compiler∞ for the host.
chmod a+x arm-elf-tools-20030314.sh
2. Edit source code
int main(void) {
int i;
for (i = 0; i < 6; i=i+1) {
printf("i = %d ",i);
printf("Hello, embedded linux!\n");
}
return 0;
3. Compile the source code on the host
Deletions:
The following is the steps about adding application into Linux on Skyeye 1.0:
In order to mount the romfs.img , the loopback and rom file system support modules need to be installed first.After then , mount the file into a temporary directory and copy all contents and the application into another temporary directory.Finally make a new romfs.img and run skyeye.
1. The first step: installation -loopback device support module for the host
2. The second step: installation - ROM file system support module for the host
3. The third step : mount romfs.img on a temporary directory of the host
4. The fourth step: copy all contents from the above temporary directory and the own application into another temporary directory of the host .
5. The final step: make a new romfs.img using the temporary directory which has the application.
Appendix : How to get the simple “Hello” execute program on the host for Linux on Skyeye
1.Install Arm across compiler for the host
/chmod a+x arm-elf-tools-20030314.sh
2.Edit source code
int main(void)
{
int i;
for(i = 0; i < 6; i=i+1)
{
printf("i = %d ",i);
printf("Hello, embedded linux!\n");
return 0;
3.Compile the source code on the host
Edited on 2006-01-24 03:22:30 by NewOne
Additions:
1. The first step: installation -loopback device support module for the host
2. The second step: installation - ROM file system support module for the host
3. The third step : mount romfs.img on a temporary directory of the host
4. The fourth step: copy all contents from the above temporary directory and the own application into another temporary directory of the host .
OK!Now , it is a time to run linux on Skyeye and then to run the application
Appendix : How to get the simple “Hello” execute program on the host for Linux on Skyeye
1.Install Arm across compiler for the host
2.Edit source code
3.Compile the source code on the host
Deletions:
1. The first step: installation -loopback device support module
2. The second step: installation - ROM file system support module
3. The third step : mount romfs.img on a temporary directory
4. The fourth step: copy all contents from the temporary directory and the application into another temporary directory.
Appendix : How to get the simple “Hello” execute program for Linux on Skyeye
1.Install Arm across compiler
2.Edit source code
3.Compile the source code
Edited on 2006-01-19 03:51:19 by NewOne
Additions:
In order to mount the romfs.img , the loopback and rom file system support modules need to be installed first.After then , mount the file into a temporary directory and copy all contents and the application into another temporary directory.Finally make a new romfs.img and run skyeye.
Deletions:
In order to mount the romfs.img , the loopback and rom file system support modules need to be installed first.After then , mount the file into a temporary directory and copy all contents and the application into another temporary directory.Finally make a new romfs.img and run skyeye.The following is these detail step:
Edited on 2006-01-19 03:48:37 by NewOne
Additions:
for(i = 0; i < 6; i=i+1)
Deletions:
for(i = 0; i < 6; i )
Edited on 2006-01-19 03:47:13 by NewOne
Additions:
for(i = 0; i < 6; i )
Deletions:
for(i = 0; i < 6; i)
Edited on 2006-01-19 03:46:37 by NewOne
Additions:
for(i = 0; i < 6; i)
Deletions:
for(i = 0; i < 6; i){
Oldest known version of this page was edited on 2006-01-19 03:42:53 by NewOne []
Page view:
The following is the steps about adding application into Linux on Skyeye 1.0:
(Gentoo 2.6.10-r6 version)
In order to mount the romfs.img , the loopback and rom file system support modules need to be installed first.After then , mount the file into a temporary directory and copy all contents and the application into another temporary directory.Finally make a new romfs.img and run skyeye.The following is these detail step:
1. The first step: installation -loopback device support module
gentoo test # mount -o loop romfs.img /mnt/temp
mount: Could not find any loop device. Maybe this kernel does not know
about the loop device? (If so, recompile or `modprobe loop'.)
gentoo linux # make menuconfig
Device Drivers->Block devices->[M]loopback device support
gentoo linux # make modules
gentoo linux # make modules_install
gentoo linux # depmod
gentoo linux # modprobe loop
gentoo linux # lsmod
Module Size Used by
loop 13480 -
tun 8736 -
2. The second step: installation - ROM file system support module
gentoo test # mount -o loop romfs.img /mnt/temp
mount: unknown filesystem type 'romfs'
gentoo linux # make menuconfig
File systems->[M]ROM file system support
gentoo linux # make modules
gentoo linux # make modules_install
fs/romfs/romfs.o
gentoo linux # depmod
gentoo linux # modprobe romfs
gentoo linux # lsmod
Module Size Used by
romfs 6564 -
loop 13480 -
tun 8736 -
3. The third step : mount romfs.img on a temporary directory
gentoo test # mount -o loop romfs.img /mnt/temp
gentoo test # cd /mnt/temp
gentoo temp # ls
bin dev etc home lib mnt proc sbin tmp usr var
4. The fourth step: copy all contents from the temporary directory and the application into another temporary directory.
gentoo test # cp -r /mnt/temp/* romfs
gentoo test # cd romfs
gentoo romfs # ls
bin dev etc home lib mnt proc sbin tmp usr var
gentoo test # cp hello ./romfs/bin
(note: another temporary directory name : romfs
the application name : hello)
5. The final step: make a new romfs.img using the temporary directory which has the application.
gentoo test # genromfs -f romfs.img -d romfs/
gentoo test # skyeye -e linux
/> cd bin
/bin> hello
i = 0 Hello, embedded linux!
i = 1 Hello, embedded linux!
i = 2 Hello, embedded linux!
i = 3 Hello, embedded linux!
i = 4 Hello, embedded linux!
i = 5 Hello, embedded linux!
Appendix : How to get the simple “Hello” execute program for Linux on Skyeye
1.Install Arm across compiler
/chmod a+x arm-elf-tools-20030314.sh
./arm-elf-tools-20030314.sh
2.Edit source code
#include <stdio.h>
int main(void)
{
int i;
for(i = 0; i < 6; i
){
printf("i = %d ",i);
printf("Hello, embedded linux!\n");
}
return 0;
}
3.Compile the source code
arm-elf-gcc -Wl,-elf2flt -o hello hello.c