|
From: Bruno L. F. C. <br...@op...> - 2005-07-10 01:07:54
|
Hello there long time, no hear. I hope everyone is OK. just buyed a new gadget that has uClinux inside, the Aviosys IP9100 4 video input camera server: http://www.aviosys.com.tw/ip9100aplus.htm the firmware ZIP file has a bin inside, get it from http://www.aviosys.com.tw/download/9100A_IE_V234.zip this bin have first 20 bytes of header/checksum info, followed by another ZIPed file (the kernel) followed by exactly 1MB of the image filesystem. extract parts with: unzip 9100A_IE_V234 dd if=9100A_IE_V234.bin of=kernel.zip bs=1 skip=20 count=$((0x00078452)) dd if=9100A_IE_V234.bin of=root.img bs=1 skip=$((0x00078466)) unzip kernel && ls -l linux.bin mount -o loop root.img /mnt the header/checksum info of 9100A_IE_V234 is 0000 42 4e 45 47 01 00 00 00 01 00 00 00 52 84 07 00 |BNEG........R...| 0010 00 a0 0f 00 |. .. | (note the 52840700, kernel zip length in big-endian format) strings of linux.bin file reveals the uClinux kernel version: Linux version 2.4.20-uc0 (root@ddr-linux) (gcc version 3.0) #959 Fri Aug 20 16:20:43 HKT 2004 by comparison on the other firmwares from aviosys site, the bytes 00a00f00 are some kind of checksum (perhaps CRC32) and first 12 bytes are problably the file signature for the device Cheers !3runo |