Nothing is impossible
全部博文(32)
分类: LINUX
2008-08-26 16:49:46
tar jxvf arm-linux-gcc-3.4.1.tar.bz2 #在当前目录下生成一个usr tar zxvf linux2.6.14-dma-2440.tar.gz |
mkdir /usr/local/arm chown $USER /usr/local/arm chmod 777 /usr/local/arm #确保非root用户可以修改其中的内容 |
mv ~/usr/local/arm/3.4.1 /usr/local/arm |
ls -al arch/arm/boot |
tar zxvf sf_200482122123.tar.gz cd cramfs-1.1 make |
ln -T ~/cramfs-1.1/mkcramfs /usr/bin/mkcramfs (as root) chmod 777 /usr/bin/mkcramfs |
mkdir rootfs mkdir rootfs/roms mkdir rootfs/tmp |
mount rootfsdma.cramfs roms -o loop |
tar cvf 1.tar roms/ |
mv 1.tar tmp/ umount roms (as root) cd tmp tar xvf 1.tar |
tar: roms/usr/lib:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/usr/bin:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/usr/Qtopia/qtopia-free-1.7.0/bin:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/usr/Qtopia/qtopia-free-1.7.0:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/usr/Qtopia:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/usr:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/sbin:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/etc/init.d:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms/etc:不可信的旧时间戳 1970-01-01 08:00:00 tar: roms:不可信的旧时间戳 1970-01-01 08:00:00 |
<% No timestamps are stored in a cramfs, so these default to the epoch (1970 GMT). Recently-accessed files may have updated timestamps, but the update lasts only as long as the inode is cached in memory, after which the timestamp reverts to 1970, i.e. moves backwards in time. %> |
mkcramfs roms rootfs_dma.cramfs $ls drwxrwxr-x 3 qspy qspy 4096 07-04 18:00 . drwxrwxr-x 4 qspy qspy 4096 07-04 15:19 .. -rw-r--r-- 1 root root 61061120 07-04 15:19 1.tar drwxr-xr-x 12 qspy qspy 4096 1970-01-01 roms -rw-rw-r-- 1 qspy qspy 26370048 07-04 18:00 rootfs_dma.cramfs |