[linux] Re: bootable android sd-card maken

Frans van Berckel fberckel op xs4all.nl
Vr Okt 24 19:09:25 CEST 2014


On Fri, 2014-10-24 at 18:49 +0200, Frans van Berckel wrote:

> # dd /dev/sdc in der daad, omdat een disk image (inl partitie) is.
> 
> # fdisk -l 2014-02-28_Android_Kobo_Aura_HD.img
> 
> Disk 2014-02-28_Android_Kobo_Aura_HD.img: 6856 MB, 6856638464 bytes
> 255 heads, 63 sectors/track, 833 cylinders, total 13391872 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x00079b22
> 
>                               Device Boot      Start         End
> Blocks   Id  System
> 2014-02-28_Android_Kobo_Aura_HD.img1           61440    11562165
> 5750363    c  W95 FAT32 (LBA)
> 2014-02-28_Android_Kobo_Aura_HD.img2        11562166    12986367
> 712101   83  Linux
> 2014-02-28_Android_Kobo_Aura_HD.img3        12986368    13391871
> 202752   83  Linux

Wat zit er in de images?

# binwalk 2014-02-28_Android_Kobo_Aura_HD.img

DECIMAL   	HEX       	DESCRIPTION
-------------------------------------------------------------------------------------------------------
136804    	0x21664   	LZMA compressed data, properties: 0x04, dictionary
size: 16777216 bytes, uncompressed size: 1073741824 bytes
1048576   	0x100000  	uImage header, header size: 64 bytes, header CRC:
0x4747E6E5, created: Thu Feb 27 08:06:26 2014, image size: 2484080
bytes, Data Address: 0x70008000, Entry Point: 0x70008000, data CRC:
0xFA5150D4, OS: Linux, CPU: ARM, image type: OS Kernel Image,
compression type: none, image name: "Aura HD Android Kernel"
1064799   	0x103F5F  	gzip compressed data, from Unix, last modified:
Thu Feb 27 08:06:15 2014, max compression

# kpartx -av 2014-02-28_Android_Kobo_Aura_HD.img 

add map loop0p1 (252:0): 0 11500726 linear /dev/loop0 61440
add map loop0p2 (252:1): 0 1424202 linear /dev/loop0 11562166
add map loop0p3 (252:2): 0 405504 linear /dev/loop0 12986368

# mkdir img1 img2 img3

# mount /dev/mapper/loop0p1 img1
# mount /dev/mapper/loop0p2 img2
# mount /dev/mapper/loop0p3 img3

# ls -l img1

drwxr-xr-x 17 root root 4096 Feb 28  2014 AlReader
drwxr-xr-x  3 root root 4096 Feb 28  2014 backups
drwxr-xr-x  4 root root 4096 Feb 28  2014 Books
drwxr-xr-x  3 root root 4096 Feb 28  2014 data
drwxr-xr-x  3 root root 4096 Feb 28  2014 DCIM
drwxr-xr-x  2 root root 4096 Feb 28  2014 download
drwxr-xr-x  2 root root 4096 Feb 28  2014 Eigene Inhalte
drwxr-xr-x  4 root root 4096 Feb 28  2014 koboExtStorage
drwxr-xr-x  2 root root 4096 Feb 28  2014 LOST.DIR
drwxr-xr-x  4 root root 4096 Feb 28  2014 TunnyBrowser

# ls -l img2

drwxrwx---  4 root  root  4096 Nov 23  2013 cache
drwxrwx--x 15 root  root  4096 Feb 28  2014 data
drwxrwxrwx  2 root  root  16384 Nov 17  2013 lost+found

# ls -l img3

drwxr-xr-x  3 root root  1024 Feb  1  2014 acct
lrwxrwxrwx  1 root root    15 Feb 28  2014 cache -> /mnt/data/cache
dr-x------  2 root root  1024 Nov 17  2013 config
lrwxrwxrwx  1 root root    17 Feb 28  2014 d -> /sys/kernel/debug
lrwxrwxrwx  1 root root    14 Feb 28  2014 data -> /mnt/data/data
-rw-r--r--  1 root root   118 Jan 29  2014 default.prop
drwxr-xr-x  2 root root  1024 Jun 26  2013 dev
lrwxrwxrwx  1 root root    11 Feb 28  2014 etc -> /system/etc
lrwxrwxrwx  1 root root    10 Feb 28  2014 extsd -> /mnt/extsd
-rwxr-x---  1 root root 90132 Jun 26  2013 init
-rwxr-x---  1 root root  1263 Feb 25  2014 init.freescale.rc
-rwxr-x---  1 root root  1677 Jun 26  2013 init.goldfish.rc
-rwxr-x---  1 root root 19334 Feb  1  2014 init.rc
-rw-r--r--  1 root root     0 Jun 26  2013 initrd.cpio.adb
drwx------  2 root root 12288 Nov 17  2013 lost+found
drwxrwxr-x 10 root root  1024 Feb  1  2014 mnt
drwxr-xr-x  2 root root  1024 Jun 26  2013 proc
drwxr-xr-x  2 root root  1024 Jun 26  2013 sbin
lrwxrwxrwx  1 root root    11 Feb 28  2014 sdcard -> /mnt/sdcard
lrwxrwxrwx  1 root root    20 Feb 28  2014 sdcard op fat
-> /dev/block/mmcblk1p1
drwxr-xr-x  2 root root  1024 Jun 26  2013 sys
drwxr-xr-x 12 root root  1024 Feb 26  2014 system
lrwxrwxrwx  1 root root    10 Feb 28  2014 udisk -> /mnt/udisk
-rw-r--r--  1 root root  2269 Feb 24  2014 ueventd.freescale.rc
-rw-r--r--  1 root root     0 Jun 26  2013 ueventd.goldfish.rc
-rw-r--r--  1 root root  3882 Jun 26  2013 ueventd.rc
lrwxrwxrwx  1 root root    14 Feb 28  2014 vendor -> /system/vendor

# umount img1 img2 img3

Met vriendelijke groet,

Frans van Berckel




More information about the Linux mailing list