User:Redatim

(New page: == Raw Kernel Commands == '''Get the internal kernel size:''' xxd -ps -s 2092 -l 4 /dev/mtd3 | sed 's/\(..\)\(..\)\(..\)\(..\)/0x\4\3\2\1/' '''Dump the internal kernel:''' dd if=/dev/m...)
(Raw Kernel Commands)
Line 5: Line 5:
'''Dump the internal kernel:'''
'''Dump the internal kernel:'''
-
  dd if=/dev/mtd3 of=vmlinuz-`uname -r` bs=1 seek=2048 count=$((`xxd -ps -s 2092 -l 4 /dev/mtd3 | sed 's/\(..\)\(..\)\(..\)\(..\)/0x\4\3\2\1/'`))
+
  dd if=/dev/mtd3 of=vmlinuz-`uname -r` bs=1 skip=2048 count=$((`xxd -ps -s 2092 -l 4 /dev/mtd3ro | sed 's/\(..\)\(..\)\(..\)\(..\)/0x\4\3\2\1/'`))
 +
 
 +
'''Reflash a dumped kernel:'''
 +
dd if=vmlinuz-xxx of=/dev/mtd3 bs=2048 seek=1

Revision as of 23:25, 21 July 2010

Raw Kernel Commands

Get the internal kernel size:

xxd -ps -s 2092 -l 4 /dev/mtd3 | sed 's/\(..\)\(..\)\(..\)\(..\)/0x\4\3\2\1/'

Dump the internal kernel:

dd if=/dev/mtd3 of=vmlinuz-`uname -r` bs=1 skip=2048 count=$((`xxd -ps -s 2092 -l 4 /dev/mtd3ro | sed 's/\(..\)\(..\)\(..\)\(..\)/0x\4\3\2\1/'`))

Reflash a dumped kernel: dd if=vmlinuz-xxx of=/dev/mtd3 bs=2048 seek=1