Created
July 31, 2013 01:39
-
-
Save 3van/6118638 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [root@overlord ICOM-Firmware-3.10.42]# ls | |
| ICOM-ApplicationImage-01-33-00.bin ICOM-BootImage-01-20-00.bin | |
| [root@overlord ICOM-Firmware-3.10.42]# file ICOM-ApplicationImage-01-33-00.bin | |
| ICOM-ApplicationImage-01-33-00.bin: gzip compressed data, from Unix, last modified: Wed Apr 24 02:52:40 2013 | |
| [root@overlord ICOM-Firmware-3.10.42]# file ICOM-BootImage-01-20-00.bin | |
| ICOM-BootImage-01-20-00.bin: u-boot legacy uImage, Linux Multiboot-Image, Linux/PowerPC, Multi-File Image (gzip), 3319729 bytes, Mon Aug 13 09:15:20 2012, Load Address: 0x00000000, Entry Point: 0x00000000, Header CRC: 0xDCFCAA34, Data CRC: 0x61524C9D | |
| [root@overlord ICOM-Firmware-3.10.42]# /root/u-boot/tools/mkimage -l ICOM-BootImage-01-20-00.bin | |
| Image Name: Linux Multiboot-Image | |
| Created: Mon Aug 13 09:15:20 2012 | |
| Image Type: PowerPC Linux Multi-File Image (gzip compressed) | |
| Data Size: 3319729 Bytes = 3241.92 kB = 3.17 MB | |
| Load Address: 00000000 | |
| Entry Point: 00000000 | |
| Contents: | |
| Image 0: 1254888 Bytes = 1225.48 kB = 1.20 MB | |
| Image 1: 2064829 Bytes = 2016.43 kB = 1.97 MB | |
| [root@overlord ICOM-Firmware-3.10.42]# dd if=ICOM-BootImage-01-20-00.bin of=kernel.img.gz bs=1 skip=76 count=1254888 | |
| 1254888+0 records in | |
| 1254888+0 records out | |
| 1254888 bytes (1.3 MB) copied, 2.58609 s, 485 kB/s | |
| [root@overlord ICOM-Firmware-3.10.42]# dd if=ICOM-BootImage-01-20-00.bin of=ramdisk.img.gz bs=1 skip=1254964 | |
| 2064829+0 records in | |
| 2064829+0 records out | |
| 2064829 bytes (2.1 MB) copied, 4.13788 s, 499 kB/s | |
| [root@overlord ICOM-Firmware-3.10.42]# file kernel.img.gz | |
| kernel.img.gz: gzip compressed data, from Unix, last modified: Mon Aug 13 09:13:14 2012, max compression | |
| [root@overlord ICOM-Firmware-3.10.42]# file ramdisk.img.gz | |
| ramdisk.img.gz: gzip compressed data, was "ramdisk", from Unix, last modified: Mon Aug 13 09:15:17 2012, max compression | |
| [root@overlord ICOM-Firmware-3.10.42]# gzip -d kernel.img.gz; gzip -d ramdisk.img.gz | |
| [root@overlord ICOM-Firmware-3.10.42]# file kernel.img | |
| kernel.img: data | |
| [root@overlord ICOM-Firmware-3.10.42]# file ramdisk.img | |
| ramdisk.img: Linux rev 1.0 ext2 filesystem data | |
| [root@overlord ICOM-Firmware-3.10.42]# /root/u-boot/tools/mkimage -l ramdisk.img | |
| Image Type: Kirkwood Boot from Kwbimage boot option Image | |
| Data Size: -4 Bytes = 4194304.00 kB = 4096.00 MB | |
| Load Address: 00000000 | |
| Entry Point: 00000000 | |
| [root@overlord ICOM-Firmware-3.10.42]# mkdir ramdisk; mount -o loop -t ext2 ./ramdisk.img ./ramdisk; cd ramdisk | |
| [root@overlord ramdisk]# ls -al | |
| total 50 | |
| drwxr-xr-x 18 root root 1024 Aug 13 2012 . | |
| drwxr-xr-x 3 root root 4096 Jul 30 21:37 .. | |
| drwx--x--x 2 root root 1024 Aug 13 2012 app | |
| drwx------ 2 root root 1024 Aug 13 2012 bin | |
| drwx--x--x 2 root root 1024 Aug 13 2012 config | |
| drwxr-xr-x 21 root root 17408 Aug 13 2012 dev | |
| drwxr-xr-x 4 1002 users 1024 Aug 13 2012 etc | |
| drwxr-xr-x 5 1002 users 2048 Aug 13 2012 lib | |
| drwx------ 2 root root 12288 Aug 13 2012 lost+found | |
| drwx-wx-wx 2 root root 1024 Aug 13 2012 mnt | |
| drwx-wx-wx 5 root root 1024 Aug 13 2012 ms | |
| drwx-wx-wx 6 root root 1024 Aug 13 2012 net | |
| drwx------ 2 root root 1024 Aug 13 2012 proc | |
| drwxr-xr-x 2 1002 users 1024 Aug 13 2012 root | |
| drwxr-xr-x 2 root root 1024 Aug 13 2012 sbin | |
| drwx-wx-wx 2 root root 1024 Aug 13 2012 tmp | |
| drwx------ 7 root root 1024 Aug 13 2012 usr | |
| drwx------ 3 root root 1024 Aug 13 2012 var |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment