LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1003|回复: 5

紧急求救!uClinux编译成功,但不见romfs.img

[复制链接]
发表于 2006-10-13 11:23:21 | 显示全部楼层 |阅读模式
GDB/ARMulator
uClibc
make dep            ok
make lib_only      ok
make user_only   ok
make romfs          ok
make image         ok
make                    ok
可是uClinux-dist下只有boot.rom和linux.elf两个文件,怎么回事啊。
附录:uClinux-dist/vendors/GDB/ARMulator/Makefile

#        Makefile -- Build instructions for GDB/ARMulator
#

ROMFSIMG = $(IMAGEDIR)/boot.rom

ROMFS_DIRS = bin dev etc home lib mnt proc sbin usr var

DEVICES = \
        tty,c,5,0      console,c,5,1      cua0,c,5,64      cua1,c,5,65  \
        \
        mem,c,1,1      kmem,c,1,2         null,c,1,3       ram0,b,1,0 \
        ram1,b,1,1 \
        \
        ptyp0,c,2,0    ptyp1,c,2,1        ptyp2,c,2,2      ptyp3,c,2,3 \
        ptyp4,c,2,4    ptyp5,c,2,5        ptyp6,c,2,6      ptyp7,c,2,7 \
        ptyp8,c,2,8    ptyp9,c,2,9        ptypa,c,2,10     ptypb,c,2,11 \
        ptypc,c,2,12   ptypd,c,2,13       ptype,c,2,14     ptypf,c,2,15 \
        \
        rom0,b,31,0    rom1,b,31,1        rom2,b,31,2      rom3,b,31,3 \
        rom4,b,31,4    rom5,b,31,5        rom6,b,31,6      rom7,b,31,7 \
        rom8,b,31,8    rom9,b,31,9 \
        \
        tty0,c,4,0     tty1,c,4,1         tty2,c,4,2       tty3,c,4,3 \
        ttyS0,c,4,64   ttyS1,c,4,65 \
        \
        ttyp0,c,3,0    ttyp1,c,3,1        ttyp2,c,3,2      ttyp3,c,3,3 \
        ttyp4,c,3,4    ttyp5,c,3,5        ttyp6,c,3,6      ttyp7,c,3,7 \
        ttyp8,c,3,8    ttyp9,c,3,9        ttypa,c,3,10     ttypb,c,3,11 \
        ttypc,c,3,12   ttypd,c,3,13       ttype,c,3,14     ttypf,c,3,15 \
        \
        zero,c,1,5     random,c,1,8       urandom,c,1,9


clean:

romfs:
        [ -d $(ROMFSDIR)/$$i ] || mkdir -p $(ROMFSDIR)
        for i in $(ROMFS_DIRS); do \
                [ -d $(ROMFSDIR)/$$i ] || mkdir -p $(ROMFSDIR)/$$i; \
        done
        for i in $(DEVICES); do \
                touch $(ROMFSDIR)/dev/@$$i; \
        done
        # these permissions are needed for openpty and family to work
        # on non-ptmx ptys
        chmod 620 $(ROMFSDIR)/dev/@[pt]ty[pqrsPQRS][0-9a-f],*
        $(ROMFSINST) -s /var/tmp /tmp
        #$(ROMFSINST) -s /bin /sbin
        $(ROMFSINST) /etc/rc
        $(ROMFSINST) /etc/inittab
        $(ROMFSINST) ../../Generic/romfs/etc/services /etc/services
        case "$(LINUXDIR)" in \
        *2.4.*) ;; \
        *2.6.*) ;; \
        *) echo "ttyS0:linux:/bin/sh" >> $(ROMFSDIR)/etc/inittab ;; \
        esac
        $(ROMFSINST) /etc/motd
        $(ROMFSINST) /etc/passwd
        echo "$(VERSIONSTR) -- " `date` > $(ROMFSDIR)/etc/version

image:
        [ -d $(IMAGEDIR) ] || mkdir -p $(IMAGEDIR)
        genromfs -v -V "ROMdisk" -f $(ROMFSIMG) -d $(ROMFSDIR)
        # arm-elf-ld -r -o /root/src/uClinux-dist/linux2.4.x/romfs.o -b binary $(ROMFSIMG)
        #cp $(ROOTDIR)/$(LINUXDIR)/linux $(IMAGEDIR)
 楼主| 发表于 2006-10-13 14:11:04 | 显示全部楼层
有没有人教教我啊~
回复 支持 反对

使用道具 举报

发表于 2006-10-13 15:32:03 | 显示全部楼层
boot.rom就是roms.img,一样的
ln -s boot.rom roms.img就行了
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-13 16:04:17 | 显示全部楼层
非常感谢,我马上试验一下~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-13 16:13:14 | 显示全部楼层
测试过了,果然可以,但这是为什么呢,为什么很多人都是在make romfs /make image时就在uClinux-dist/images/下生成多个文件,而我就一个boot.rom,有什么区别呢?
偶菜鸟啊~~~
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-10-13 16:13:29 | 显示全部楼层
测试过了,果然可以,但这是为什么呢,为什么很多人都是在make romfs /make image时就在uClinux-dist/images/下生成多个文件,而我就一个boot.rom,有什么区别呢?
偶菜鸟啊~~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表