2009-11-23 22:54:05 use "cpio" extract initramfs damage my host linux !?
xm ye (CHINA)
i want look initramfs.gz of uclinux , i use cpio extract it in my host linux , but then my host linux can't open application, i reboot ,but it halt in INIT process.I have no idea but mount it use my recuse disk, i find the application in the /bin can't run ,it also will crash. I think the file system of uclinux have replace some files of my host linux. Are their someone face the same problem? what is the correct method to look initramfs.gz use cpio?
2009-11-23 23:04:52 Re: use "cpio" extract initramfs damage my host linux !?
Mike Frysinger (UNITED STATES)
you should never have been running these things as root. if you dont know the commands and you simply extracted over your development system, well to be brutally honest, that's what you get for doing something like run as root. there is no need whatsoever to be building anything as root here.
if you simply want to see what's in the archive, use `less`. if your host distro sucks and this just shows a hexdump or something, then run the cpio command yourself:
cpio -itv < rootfs.initramfs
i dont see much point in unpacking it since it's really just a mirror of the romfs/ dir.
2009-11-24 03:13:38 Re: use "cpio" extract initramfs damage my host linux !?
xm ye (CHINA)
thank you Mike! As you say rootfs.initramfs is the mirror of the romfs/ dir ,so where i can get some infomation about making rootfs? In the wiki Doc i have not found something.
2009-11-24 11:20:07 Re: use "cpio" extract initramfs damage my host linux !?
Robin Getz (UNITED STATES)
Look in the make files - what you can type is just "make image" - and it will package everything up for you.