Skip to content

Instantly share code, notes, and snippets.

@kazken3
Created December 1, 2011 16:25
Show Gist options
  • Save kazken3/1417963 to your computer and use it in GitHub Desktop.
Save kazken3/1417963 to your computer and use it in GitHub Desktop.
# cat /proc/cmdline
mem=384M@0M nvmem=128M@384M vmalloc=256M video=tegrafb console=ttyS0,115200n8 usbcore.old_scheme_first=1 no_console_suspend tegraboot=sdmmc
tegrapart考察
/proc/cmdlineからtegrapartを抜いてみる。
* pt:600:80:800
* bootloader:680:400:800
* fdt:1180:12c00:800
* recovery:13d80:a00:800
* boot:14800:1000:800
* mbr:b80:200:800
* system:15880:18000:800
* cache:2d900:12c00:800
* misc:d80:400:800
* staging:40580:1f400:800
* userdata:5fa00:35b600:800
読み方は
scheme explained name:offset:length:blocksize
になる。
MBRの中身と付きあわせてみる。
od -tx1 -Ax -N 64 -j 446 /dev/block/mmcblk3
0001be 00 00 00 00 83 00 00 00 00 08 00 00 00 10 00 00 1st partition Linux(83),LBA=00000800,size=00001000,p1,/misc
0001ce 00 00 00 00 83 00 00 00 00 18 00 00 00 b0 04 00 2nd partition Linux(83),LBA=00001800,size=0004b000,p2,/fdt
0001de 00 00 00 00 83 00 00 00 00 c8 04 00 00 28 00 00 3rd partition Linux(83),LBA=0004c800,size=00002800,p3,?
0001ee 00 00 00 00 05 00 00 00 00 f0 04 00 40 62 ea 00 4th partition Extend, LBA=0004f000,size=00ea6240,p4,ext
0001fe
hexdump -C -s 323584 /dev/block/mmcblk3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment