共2条
1/1 1 跳转至页
uclinux,image,bin 为什么我编译的uclinux得到的是image.bin文件?
问
所有的uclinux文档都说编译后会得到image.rom image.ram文件。
但我始终得不到。
无论是用2.4核 还是2.0内核,最终在images目录都只有
-rw-r--r-- 1 root root 1689140 1?? 19 09:50 image.bin
-rwxr-xr-x 1 root root 39844 1?? 19 09:50 linux.data
-rwxr-xr-x 1 root root 929424 1?? 19 09:50 linux.text
-rw-r--r-- 1 root root 719872 1?? 19 09:50 romfs.img
这些个文件,
怎么样才能生成rom ram文件呢? 答 1: re看一下/uClinux-dist/vendors/Samsung/S3C44B0/Makefile 就明白了
如我的如下:
ROMFSIMG = $(IMAGEDIR)/romfs.img
IMAGE = $(IMAGEDIR)/image.bin
ELFIMAGE = $(IMAGEDIR)/image.elf
images:
ARM-elf-objcopy -O binary -R .note -R .comment -S $(ROOTDIR)/$(LINUXDIR)/linux $(IMAGEDIR)/linux_bootram.bin
cp $(ROOTDIR)/$(LINUXDIR)/arch/ARMnommu/boot/zImage $(IMAGEDIR)/linux_bootrom.bin
[ -d /tftpboot ] || mkdir /tftpboot
cp $(IMAGEDIR)/linux_bootram.bin /tftpboot/
最后生成linux_bootram.bin 和 linux_bootrom.bin 并cp linux_bootram.bin到/tftpboot
但我始终得不到。
无论是用2.4核 还是2.0内核,最终在images目录都只有
-rw-r--r-- 1 root root 1689140 1?? 19 09:50 image.bin
-rwxr-xr-x 1 root root 39844 1?? 19 09:50 linux.data
-rwxr-xr-x 1 root root 929424 1?? 19 09:50 linux.text
-rw-r--r-- 1 root root 719872 1?? 19 09:50 romfs.img
这些个文件,
怎么样才能生成rom ram文件呢? 答 1: re看一下/uClinux-dist/vendors/Samsung/S3C44B0/Makefile 就明白了
如我的如下:
ROMFSIMG = $(IMAGEDIR)/romfs.img
IMAGE = $(IMAGEDIR)/image.bin
ELFIMAGE = $(IMAGEDIR)/image.elf
images:
ARM-elf-objcopy -O binary -R .note -R .comment -S $(ROOTDIR)/$(LINUXDIR)/linux $(IMAGEDIR)/linux_bootram.bin
cp $(ROOTDIR)/$(LINUXDIR)/arch/ARMnommu/boot/zImage $(IMAGEDIR)/linux_bootrom.bin
[ -d /tftpboot ] || mkdir /tftpboot
cp $(IMAGEDIR)/linux_bootram.bin /tftpboot/
最后生成linux_bootram.bin 和 linux_bootrom.bin 并cp linux_bootram.bin到/tftpboot
共2条
1/1 1 跳转至页
回复
有奖活动 | |
---|---|
【有奖活动——B站互动赢积分】活动开启啦! | |
【有奖活动】分享技术经验,兑换京东卡 | |
话不多说,快进群! | |
请大声喊出:我要开发板! | |
【有奖活动】EEPW网站征稿正在进行时,欢迎踊跃投稿啦 | |
奖!发布技术笔记,技术评测贴换取您心仪的礼品 | |
打赏了!打赏了!打赏了! |