大破雑記帳

個人用メモな雑記ブログ いろんなことをざっくりと。

SKS8300-8X ブート周りメモ

0x200 以降はヘッダ部分のサイズ値分のみをデコードしている気がする

あとよく考えたらテスト2つの事前の0埋めは生成したバイナリ大きいので要らなかった

テスト1

ブート時にイメージをロードする 0x81000000 から4byte 100ブロックを0埋めし、 /dev/zero から生成した10MiBバイナリを通常ブートと同様にロードさせたやつ

RTL9300# ls
 -rw-r--r--      566 Thu Jan 01 00:26:01 1970 startup.cfg
 -rw-r--r--      668 Thu Jan 01 00:23:53 1970 id_dsa
 -rw-r--r--     1679 Thu Jan 01 00:24:07 1970 id_rsa
 -rw-r--r-- 10485760 Thu Jan 01 00:01:46 1970 zero.bin
 -rw-r--r-- 14607999 Thu Jan 01 01:09:16 1970 nos.img
RTL9300# mw.l 0x81000000 0 100 
RTL9300# md.l 0x81000000 100 
81000000: 00000000 00000000 00000000 00000000    ................
81000010: 00000000 00000000 00000000 00000000    ................
81000020: 00000000 00000000 00000000 00000000    ................
81000030: 00000000 00000000 00000000 00000000    ................
81000040: 00000000 00000000 00000000 00000000    ................
81000050: 00000000 00000000 00000000 00000000    ................
81000060: 00000000 00000000 00000000 00000000    ................
81000070: 00000000 00000000 00000000 00000000    ................
81000080: 00000000 00000000 00000000 00000000    ................
81000090: 00000000 00000000 00000000 00000000    ................
810000a0: 00000000 00000000 00000000 00000000    ................
810000b0: 00000000 00000000 00000000 00000000    ................
810000c0: 00000000 00000000 00000000 00000000    ................
810000d0: 00000000 00000000 00000000 00000000    ................
810000e0: 00000000 00000000 00000000 00000000    ................
810000f0: 00000000 00000000 00000000 00000000    ................
81000100: 00000000 00000000 00000000 00000000    ................
81000110: 00000000 00000000 00000000 00000000    ................
81000120: 00000000 00000000 00000000 00000000    ................
81000130: 00000000 00000000 00000000 00000000    ................
81000140: 00000000 00000000 00000000 00000000    ................
81000150: 00000000 00000000 00000000 00000000    ................
81000160: 00000000 00000000 00000000 00000000    ................
81000170: 00000000 00000000 00000000 00000000    ................
81000180: 00000000 00000000 00000000 00000000    ................
81000190: 00000000 00000000 00000000 00000000    ................
810001a0: 00000000 00000000 00000000 00000000    ................
810001b0: 00000000 00000000 00000000 00000000    ................
810001c0: 00000000 00000000 00000000 00000000    ................
810001d0: 00000000 00000000 00000000 00000000    ................
810001e0: 00000000 00000000 00000000 00000000    ................
810001f0: 00000000 00000000 00000000 00000000    ................
81000200: 00000000 00000000 00000000 00000000    ................
81000210: 00000000 00000000 00000000 00000000    ................
81000220: 00000000 00000000 00000000 00000000    ................
81000230: 00000000 00000000 00000000 00000000    ................
81000240: 00000000 00000000 00000000 00000000    ................
81000250: 00000000 00000000 00000000 00000000    ................
81000260: 00000000 00000000 00000000 00000000    ................
81000270: 00000000 00000000 00000000 00000000    ................
81000280: 00000000 00000000 00000000 00000000    ................
81000290: 00000000 00000000 00000000 00000000    ................
810002a0: 00000000 00000000 00000000 00000000    ................
810002b0: 00000000 00000000 00000000 00000000    ................
810002c0: 00000000 00000000 00000000 00000000    ................
810002d0: 00000000 00000000 00000000 00000000    ................
810002e0: 00000000 00000000 00000000 00000000    ................
810002f0: 00000000 00000000 00000000 00000000    ................
81000300: 00000000 00000000 00000000 00000000    ................
81000310: 00000000 00000000 00000000 00000000    ................
81000320: 00000000 00000000 00000000 00000000    ................
81000330: 00000000 00000000 00000000 00000000    ................
81000340: 00000000 00000000 00000000 00000000    ................
81000350: 00000000 00000000 00000000 00000000    ................
81000360: 00000000 00000000 00000000 00000000    ................
81000370: 00000000 00000000 00000000 00000000    ................
81000380: 00000000 00000000 00000000 00000000    ................
81000390: 00000000 00000000 00000000 00000000    ................
810003a0: 00000000 00000000 00000000 00000000    ................
810003b0: 00000000 00000000 00000000 00000000    ................
810003c0: 00000000 00000000 00000000 00000000    ................
810003d0: 00000000 00000000 00000000 00000000    ................
810003e0: 00000000 00000000 00000000 00000000    ................
810003f0: 00000000 00000000 00000000 00000000    ................
RTL9300# exit
Boot# run zero.bin
Loading primary partition image ...
loading image to 0x81000000 with JFFS2
load image size: 10485760 bytes
Booting kernel with Legacy format image at 81000100
Bad Header Checksum
ERROR: can't get kernel image!
Boot# debug_unish_env
RTL9300# md.l 0x81000000 100
81000000: eeddcc21 5355eecc dd55807e 00000000    ...!SU...U.~....
81000010: cdbddfae bb9b8901 70e5ccdd f6fc8364    ........p......d
81000020: ecddcef1 e354fed0 bdabdde1 e4b4d583    .....T..........
81000030: edfed0cd b655cca3 edd5c67e ddcc2153    .....U.....~..!S
81000040: ec4ddc00 5355cdc3 2201807e efbc7566    .M..SU.."..~..uf
81000050: a6c0cc2f fed0eecc dd550101 0101c564    .../.....U.....d
81000060: 9945ab32 55807eef 55807eef bc756689    .E.2U.~.U.~..uf.
81000070: e31d83dd fe558eab 7d55807e ff01ac66    .....U..}U.~...f
81000080: 0ec992d9 73e50101 bde510ce 0101bae8    ....s...........
81000090: 3edd81a1 53330101 9ac510aa 01ce8ae1    >...S3..........
810000a0: b1fb0080 53770000 70dc0001 0000cbb1    ....Sw..p.......
810000b0: a0300000 55a60000 cabd0101 0000c9b2    .0..U...........
810000c0: 81900100 5a210001 79bc0100 78007bb3    ....Z!..y...x.{.
810000d0: d4970100 5355a9fc dda501be afc175c5    ....SU........u.
810000e0: 8ed77700 55d00dac 0155807e efbc7ee6    ..w.U....U.~..~.
810000f0: f16c5200 331698cc 01010101 00007988    .lR.3.........y.
81000100: eeddcc21 5355eecc dd55807e 00000000    ...!SU...U.~....
81000110: cdbddfae bb9b8901 70e5ccdd f6fc8364    ........p......d
81000120: ecddcef1 e354fed0 bdabdde1 e4b4d583    .....T..........
81000130: edfed0cd b655cca3 edd5c67e ddcc2153    .....U.....~..!S
81000140: ec4ddc00 5355cdc3 2201807e efbc7566    .M..SU.."..~..uf
81000150: a6c0cc2f fed0eecc dd550101 0101c564    .../.....U.....d
81000160: 9945ab32 55807eef 55807eef bc756689    .E.2U.~.U.~..uf.
81000170: e31d83dd fe558eab 7d55807e ff01ac66    .....U..}U.~...f
81000180: 0ec992d9 73e50101 bde510ce 0101bae8    ....s...........
81000190: 3edd81a1 53330101 9ac510aa 01ce8ae1    >...S3..........
810001a0: b1fb0080 53770000 70dc0001 0000cbb1    ....Sw..p.......
810001b0: a0300000 55a60000 cabd0101 0000c9b2    .0..U...........
810001c0: 81900100 5a210001 79bc0100 78007bb3    ....Z!..y...x.{.
810001d0: d4970100 5355a9fc dda501be afc175c5    ....SU........u.
810001e0: 8ed77700 55d00dac 0155807e efbc7ee6    ..w.U....U.~..~.
810001f0: f16c5200 331698cc 01010101 00007988    .lR.3.........y.
81000200: 00000000 00000000 00000000 00000000    ................
81000210: 00000000 00000000 00000000 00000000    ................
81000220: 00000000 00000000 00000000 00000000    ................
81000230: 00000000 00000000 00000000 00000000    ................
81000240: 00000000 00000000 00000000 00000000    ................
81000250: 00000000 00000000 00000000 00000000    ................
81000260: 00000000 00000000 00000000 00000000    ................
81000270: 00000000 00000000 00000000 00000000    ................
81000280: 00000000 00000000 00000000 00000000    ................
81000290: 00000000 00000000 00000000 00000000    ................
810002a0: 00000000 00000000 00000000 00000000    ................
810002b0: 00000000 00000000 00000000 00000000    ................
810002c0: 00000000 00000000 00000000 00000000    ................
810002d0: 00000000 00000000 00000000 00000000    ................
810002e0: 00000000 00000000 00000000 00000000    ................
810002f0: 00000000 00000000 00000000 00000000    ................
81000300: 00000000 00000000 00000000 00000000    ................
81000310: 00000000 00000000 00000000 00000000    ................
81000320: 00000000 00000000 00000000 00000000    ................
81000330: 00000000 00000000 00000000 00000000    ................
81000340: 00000000 00000000 00000000 00000000    ................
81000350: 00000000 00000000 00000000 00000000    ................
81000360: 00000000 00000000 00000000 00000000    ................
81000370: 00000000 00000000 00000000 00000000    ................
81000380: 00000000 00000000 00000000 00000000    ................
81000390: 00000000 00000000 00000000 00000000    ................
810003a0: 00000000 00000000 00000000 00000000    ................
810003b0: 00000000 00000000 00000000 00000000    ................
810003c0: 00000000 00000000 00000000 00000000    ................
810003d0: 00000000 00000000 00000000 00000000    ................
810003e0: 00000000 00000000 00000000 00000000    ................
810003f0: 00000000 00000000 00000000 00000000    ................

テスト2

メーカーファームウェア上

Switch(sdiag)#tshell hexdump -n $((0x300)) -C /mnt/flash/zero2.bin
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  53 4b 53 38 33 30 30 2d  38 58 20 62 69 6e 61 72  |SKS8300-8X binar|
00000210  79 20 74 65 73 74 0a 00  00 00 00 00 00 00 00 00  |y test..........|
00000220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000300

ブートローダ上

RTL9300# mw.l 0x81000000 0 100
RTL9300# md.l 0x81000000 100
81000000: 00000000 00000000 00000000 00000000    ................
81000010: 00000000 00000000 00000000 00000000    ................
81000020: 00000000 00000000 00000000 00000000    ................
81000030: 00000000 00000000 00000000 00000000    ................
81000040: 00000000 00000000 00000000 00000000    ................
81000050: 00000000 00000000 00000000 00000000    ................
81000060: 00000000 00000000 00000000 00000000    ................
81000070: 00000000 00000000 00000000 00000000    ................
81000080: 00000000 00000000 00000000 00000000    ................
81000090: 00000000 00000000 00000000 00000000    ................
810000a0: 00000000 00000000 00000000 00000000    ................
810000b0: 00000000 00000000 00000000 00000000    ................
810000c0: 00000000 00000000 00000000 00000000    ................
810000d0: 00000000 00000000 00000000 00000000    ................
810000e0: 00000000 00000000 00000000 00000000    ................
810000f0: 00000000 00000000 00000000 00000000    ................
81000100: 00000000 00000000 00000000 00000000    ................
81000110: 00000000 00000000 00000000 00000000    ................
81000120: 00000000 00000000 00000000 00000000    ................
81000130: 00000000 00000000 00000000 00000000    ................
81000140: 00000000 00000000 00000000 00000000    ................
81000150: 00000000 00000000 00000000 00000000    ................
81000160: 00000000 00000000 00000000 00000000    ................
81000170: 00000000 00000000 00000000 00000000    ................
81000180: 00000000 00000000 00000000 00000000    ................
81000190: 00000000 00000000 00000000 00000000    ................
810001a0: 00000000 00000000 00000000 00000000    ................
810001b0: 00000000 00000000 00000000 00000000    ................
810001c0: 00000000 00000000 00000000 00000000    ................
810001d0: 00000000 00000000 00000000 00000000    ................
810001e0: 00000000 00000000 00000000 00000000    ................
810001f0: 00000000 00000000 00000000 00000000    ................
81000200: 00000000 00000000 00000000 00000000    ................
81000210: 00000000 00000000 00000000 00000000    ................
81000220: 00000000 00000000 00000000 00000000    ................
81000230: 00000000 00000000 00000000 00000000    ................
81000240: 00000000 00000000 00000000 00000000    ................
81000250: 00000000 00000000 00000000 00000000    ................
81000260: 00000000 00000000 00000000 00000000    ................
81000270: 00000000 00000000 00000000 00000000    ................
81000280: 00000000 00000000 00000000 00000000    ................
81000290: 00000000 00000000 00000000 00000000    ................
810002a0: 00000000 00000000 00000000 00000000    ................
810002b0: 00000000 00000000 00000000 00000000    ................
810002c0: 00000000 00000000 00000000 00000000    ................
810002d0: 00000000 00000000 00000000 00000000    ................
810002e0: 00000000 00000000 00000000 00000000    ................
810002f0: 00000000 00000000 00000000 00000000    ................
81000300: 00000000 00000000 00000000 00000000    ................
81000310: 00000000 00000000 00000000 00000000    ................
81000320: 00000000 00000000 00000000 00000000    ................
81000330: 00000000 00000000 00000000 00000000    ................
81000340: 00000000 00000000 00000000 00000000    ................
81000350: 00000000 00000000 00000000 00000000    ................
81000360: 00000000 00000000 00000000 00000000    ................
81000370: 00000000 00000000 00000000 00000000    ................
81000380: 00000000 00000000 00000000 00000000    ................
81000390: 00000000 00000000 00000000 00000000    ................
810003a0: 00000000 00000000 00000000 00000000    ................
810003b0: 00000000 00000000 00000000 00000000    ................
810003c0: 00000000 00000000 00000000 00000000    ................
810003d0: 00000000 00000000 00000000 00000000    ................
810003e0: 00000000 00000000 00000000 00000000    ................
810003f0: 00000000 00000000 00000000 00000000    ................
RTL9300# exit
Boot# dir
 -rw-r--r--     1679 Thu Jan 01 00:24:07 1970 id_rsa
 -rw-r--r-- 10485760 Thu Jan 01 00:01:46 1970 zero.bin
 -rw-r--r-- 14607999 Thu Jan 01 01:09:16 1970 nos.img
 -rw-r--r--  1049088 Thu Jan 01 00:13:34 1970 zero2.bin
 -rw-r--r--      668 Thu Jan 01 00:23:53 1970 id_dsa
 -rw-r--r--      566 Thu Jan 01 00:26:01 1970 startup.cfg
Boot# run zero2.bin
Loading primary partition image ...
loading image to 0x81000000 with JFFS2
load image size: 1049088 bytes
Booting kernel with Legacy format image at 81000100
Bad Header Checksum
ERROR: can't get kernel image!
Boot# debug_unish_env
RTL9300# md.l 0x81000000 100
81000000: eeddcc21 5355eecc dd55807e 00000000    ...!SU...U.~....
81000010: cdbddfae bb9b8901 70e5ccdd f6fc8364    ........p......d
81000020: ecddcef1 e354fed0 bdabdde1 e4b4d583    .....T..........
81000030: edfed0cd b655cca3 edd5c67e ddcc2153    .....U.....~..!S
81000040: ec4ddc00 5355cdc3 2201807e efbc7566    .M..SU.."..~..uf
81000050: a6c0cc2f fed0eecc dd550101 0101c564    .../.....U.....d
81000060: 9945ab32 55807eef 55807eef bc756689    .E.2U.~.U.~..uf.
81000070: e31d83dd fe558eab 7d55807e ff01ac66    .....U..}U.~...f
81000080: 0ec992d9 73e50101 bde510ce 0101bae8    ....s...........
81000090: 3edd81a1 53330101 9ac510aa 01ce8ae1    >...S3..........
810000a0: b1fb0080 53770000 70dc0001 0000cbb1    ....Sw..p.......
810000b0: a0300000 55a60000 cabd0101 0000c9b2    .0..U...........
810000c0: 81900100 5a210001 79bc0100 78007bb3    ....Z!..y...x.{.
810000d0: d4970100 5355a9fc dda501be afc175c5    ....SU........u.
810000e0: 8ed77700 55d00dac 0155807e efbc7ee6    ..w.U....U.~..~.
810000f0: f16c5200 331698cc 01010101 00007988    .lR.3.........y.
81000100: eeddcc21 5355eecc dd55807e 00000000    ...!SU...U.~....
81000110: cdbddfae bb9b8901 70e5ccdd f6fc8364    ........p......d
81000120: ecddcef1 e354fed0 bdabdde1 e4b4d583    .....T..........
81000130: edfed0cd b655cca3 edd5c67e ddcc2153    .....U.....~..!S
81000140: ec4ddc00 5355cdc3 2201807e efbc7566    .M..SU.."..~..uf
81000150: a6c0cc2f fed0eecc dd550101 0101c564    .../.....U.....d
81000160: 9945ab32 55807eef 55807eef bc756689    .E.2U.~.U.~..uf.
81000170: e31d83dd fe558eab 7d55807e ff01ac66    .....U..}U.~...f
81000180: 0ec992d9 73e50101 bde510ce 0101bae8    ....s...........
81000190: 3edd81a1 53330101 9ac510aa 01ce8ae1    >...S3..........
810001a0: b1fb0080 53770000 70dc0001 0000cbb1    ....Sw..p.......
810001b0: a0300000 55a60000 cabd0101 0000c9b2    .0..U...........
810001c0: 81900100 5a210001 79bc0100 78007bb3    ....Z!..y...x.{.
810001d0: d4970100 5355a9fc dda501be afc175c5    ....SU........u.
810001e0: 8ed77700 55d00dac 0155807e efbc7ee6    ..w.U....U.~..~.
810001f0: f16c5200 331698cc 01010101 00007988    .lR.3.........y.
81000200: 534b5338 3330302d 38582062 696e6172    SKS8300-8X binar
81000210: 79207465 73740a00 00000000 00000000    y test..........
81000220: 00000000 00000000 00000000 00000000    ................
81000230: 00000000 00000000 00000000 00000000    ................
81000240: 00000000 00000000 00000000 00000000    ................
81000250: 00000000 00000000 00000000 00000000    ................
81000260: 00000000 00000000 00000000 00000000    ................
81000270: 00000000 00000000 00000000 00000000    ................
81000280: 00000000 00000000 00000000 00000000    ................
81000290: 00000000 00000000 00000000 00000000    ................
810002a0: 00000000 00000000 00000000 00000000    ................
810002b0: 00000000 00000000 00000000 00000000    ................
810002c0: 00000000 00000000 00000000 00000000    ................
810002d0: 00000000 00000000 00000000 00000000    ................
810002e0: 00000000 00000000 00000000 00000000    ................
810002f0: 00000000 00000000 00000000 00000000    ................
81000300: 00000000 00000000 00000000 00000000    ................
81000310: 00000000 00000000 00000000 00000000    ................
81000320: 00000000 00000000 00000000 00000000    ................
81000330: 00000000 00000000 00000000 00000000    ................
81000340: 00000000 00000000 00000000 00000000    ................
81000350: 00000000 00000000 00000000 00000000    ................
81000360: 00000000 00000000 00000000 00000000    ................
81000370: 00000000 00000000 00000000 00000000    ................
81000380: 00000000 00000000 00000000 00000000    ................
81000390: 00000000 00000000 00000000 00000000    ................
810003a0: 00000000 00000000 00000000 00000000    ................
810003b0: 00000000 00000000 00000000 00000000    ................
810003c0: 00000000 00000000 00000000 00000000    ................
810003d0: 00000000 00000000 00000000 00000000    ................
810003e0: 00000000 00000000 00000000 00000000    ................
810003f0: 00000000 00000000 00000000 00000000    ................

テスト3

nos.imgから 0x300 切り出してブートを失敗させ止めたやつ

Boot# dir
 -rw-r--r--     1679 Thu Jan 01 00:24:07 1970 id_rsa
 -rw-r--r--      768 Thu Jan 01 00:01:33 1970 nos_edit0x300.img
 -rw-r--r-- 10485760 Thu Jan 01 00:01:46 1970 zero.bin
 -rw-r--r-- 14607999 Thu Jan 01 01:09:16 1970 nos.img
 -rw-r--r--  1049088 Thu Jan 01 00:13:34 1970 zero2.bin
 -rw-r--r--      668 Thu Jan 01 00:23:53 1970 id_dsa
 -rw-r--r--  1049088 Thu Jan 01 00:03:53 1970 zero3.bin
 -rw-r--r--      566 Thu Jan 01 00:26:01 1970 startup.cfg
 -rw-r--r-- 14607999 Thu Jan 01 00:04:32 1970 nos_edit.img
Boot# run nos_edit0x300.img
Loading primary partition image ...
loading image to 0x81000000 with JFFS2
load image size: 768 bytes
Booting kernel with Legacy format image at 81000100
Start checking the Kernel Image CRC ..........Bad Data CRC
ERROR: can't get kernel image!
Boot# debug_unish_env
RTL9300# md.l 0x81000000 100
81000000: 6e6f732e 696d6700 00010000 00dee66f    nos.img........o
81000010: 9e830629 00000000 00000000 00000000    ...)............
81000020: 00000000 00000000 00000000 00000000    ................
81000030: 00000000 00000000 00000000 00000000    ................
81000040: 00000000 00000000 00000000 00000000    ................
81000050: 00000000 00000000 00000000 00000000    ................
81000060: 2d2b345f 32362f2c 5f450000 00000000    -+4_26/,_E......
81000070: 00000000 00000000 00000000 00000000    ................
81000080: 00000000 00000000 00000000 00000000    ................
81000090: 00000000 00000000 00000000 00000000    ................
810000a0: 00000000 00000000 00000000 00000000    ................
810000b0: 00000000 00000000 00000000 00000000    ................
810000c0: 00000000 00000000 00000000 00000000    ................
810000d0: 00000000 00000000 00000000 00000000    ................
810000e0: 00000000 00000000 00000000 00000000    ................
810000f0: 00000000 00000000 00000000 00000000    ................
81000100: 93000000 c35b7515 6585c4ca 00dee53f    .....[u.e......?
81000110: 80000000 80251130 0c2e472b 05050201    .....%.0..G+....
81000120: 00000000 00000000 00000000 00000000    ................
81000130: 00000000 00000000 00000000 00000000    ................
81000140: 1f8b0808 49548565 0203766d 6c696e75    ....IT.e..vmlinu
81000150: 782e6269 6e00ec5a 7f6c1cc7 757e37bb    x.bin..Z.l..u~7.
81000160: 773a5227 734fb732 57112ded 9243f254    w:R'sO.2W.-..C.T
81000170: d1d6c9a2 63d639b4 a723edb2 b1fe506c    ....c.9..#....Pl
81000180: 17bdb476 73961844 49055486 9d942884    ...vs..DI.T...(.
81000190: 662b512d d19e798c 9922ac5b 548c64da    f+Q-..y..".[T.d.
810001a0: 2a7ad539 761213b5 d39ee51f 295a2190    *z.9v.......)Z!.
810001b0: 9bfc41b4 a9c1b446 ad3a6ac3 242a2ad9    ..A....F.:j.$**.
810001c0: acb7df9b dd259727 59958222 48111320    .....%.'Y.."H.. 
810001d0: 767676e6 bd6fdeaf 796fe688 deff7bff    vvv..o..yo....{.
810001e0: effdbf9f d6bfdeaf 79e7ea7f 4d66fd69    ........y...Mf.i
810001f0: 32f2869b 4b89af1f 3da5bf6d f6c4df36    2...K...=..m...6
81000200: abe8af72 7fc2cd51 c176e4ab 972a4931    ...r...Q.v...*I1
81000210: 7b47efd7 c8c2bc05 cceba87f 892ccc35    {G...........,.5
81000220: 53142372 c71da340 3a155c47 5adebb66    S.#r...@:.\GZ..f
81000230: 89d6e475 b74f90e1 80564715 6341cfd4    ...u.O...VG.cA..
81000240: 1628091a b61cd33f 2fecac93 6ab9fb4f    .(.....?/...j..O
81000250: a8907392 14fb008f 05ed83a0 5da97f85    ..s.........]...
81000260: c6eb5fa6 b1fab3e4 d69fa143 e0350a5e    .._........C.5.^
81000270: 8fe4d7bb b989d2c2 24f3cbc7 dd3ea9d3    ........$....>..
81000280: 5939fb73 7dc2ce39 f5393a90 8adfd15d    Y9.s}..9.9:....]
81000290: 9d221358 ba194b5e b8b9caf0 2557162f    .".X..K^....%W./
810002a0: b969419b 05359c47 354a4ee9 44930f42    .iA..5.G5JN.D..B
810002b0: 0616c54c 49badc87 a7ebbdc3 fd64db0e    ...LI........d..
810002c0: fd8edd65 bad4c66b 00b69382 b2febc96    ...e...k........
810002d0: c8bcadfe bc0d36e6 b5f0bc61 27e60c77    ......6....a'..w
810002e0: a56ddac3 f31e4d12 6d10de0f 98674afc    .m....M.m....gJ.
810002f0: e6d3826c 276fb94b 53964ded 445b947c    ...l'o.KS.M.D[.|

テスト3

メーカーファームウェア上

Switch(sdiag)#tshell hexdump -C /mnt/flash/zero4.tmp                                                                                          
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000100  53 4b 53 38 33 30 30 2d  38 58 20 62 69 6e 61 72  |SKS8300-8X binar|
00000110  79 20 74 65 73 74 20 31  0a 00 00 00 00 00 00 00  |y test 1........|
00000120  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000200  53 4b 53 38 33 30 30 2d  38 58 20 62 69 6e 61 72  |SKS8300-8X binar|
00000210  79 20 74 65 73 74 20 32  0a 00 00 00 00 00 00 00  |y test 2........|
00000220  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000300  53 4b 53 38 33 30 30 2d  38 58 20 62 69 6e 61 72  |SKS8300-8X binar|
00000310  79 20 74 65 73 74 0a 00  00 00 00 00 00 00 00 00  |y test..........|
00000320  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00100300

ブートローダ上

Boot# run zero4.tmp
Loading primary partition image ...
loading image to 0x81000000 with JFFS2
load image size: 1049344 bytes
Booting kernel with Legacy format image at 81000100
Bad Header Checksum
ERROR: can't get kernel image!
Boot# debug_unish_env
RTL9300# md.l 0x81000000 100
81000000: eeddcc21 5355eecc dd55807e 00000000    ...!SU...U.~....
81000010: cdbddfae bb9b8901 70e5ccdd f6fc8364    ........p......d
81000020: ecddcef1 e354fed0 bdabdde1 e4b4d583    .....T..........
81000030: edfed0cd b655cca3 edd5c67e ddcc2153    .....U.....~..!S
81000040: ec4ddc00 5355cdc3 2201807e efbc7566    .M..SU.."..~..uf
81000050: a6c0cc2f fed0eecc dd550101 0101c564    .../.....U.....d
81000060: 9945ab32 55807eef 55807eef bc756689    .E.2U.~.U.~..uf.
81000070: e31d83dd fe558eab 7d55807e ff01ac66    .....U..}U.~...f
81000080: 0ec992d9 73e50101 bde510ce 0101bae8    ....s...........
81000090: 3edd81a1 53330101 9ac510aa 01ce8ae1    >...S3..........
810000a0: b1fb0080 53770000 70dc0001 0000cbb1    ....Sw..p.......
810000b0: a0300000 55a60000 cabd0101 0000c9b2    .0..U...........
810000c0: 81900100 5a210001 79bc0100 78007bb3    ....Z!..y...x.{.
810000d0: d4970100 5355a9fc dda501be afc175c5    ....SU........u.
810000e0: 8ed77700 55d00dac 0155807e efbc7ee6    ..w.U....U.~..~.
810000f0: f16c5200 331698cc 01010101 00007988    .lR.3.........y.
81000100: 41281f59 86851ef9 15ada0e0 696e6172    A(.Y........inar
81000110: 46dd5313 2e0fa932 7ae5ccdd f6fc8364    F.S....2z......d
81000120: ecddcef1 e354fed0 bdabdde1 e4b4d583    .....T..........
81000130: edfed0cd b655cca3 edd5c67e ddcc2153    .....U.....~..!S
81000140: ec4ddc00 5355cdc3 2201807e efbc7566    .M..SU.."..~..uf
81000150: a6c0cc2f fed0eecc dd550101 0101c564    .../.....U.....d
81000160: 9945ab32 55807eef 55807eef bc756689    .E.2U.~.U.~..uf.
81000170: e31d83dd fe558eab 7d55807e ff01ac66    .....U..}U.~...f
81000180: 0ec992d9 73e50101 bde510ce 0101bae8    ....s...........
81000190: 3edd81a1 53330101 9ac510aa 01ce8ae1    >...S3..........
810001a0: b1fb0080 53770000 70dc0001 0000cbb1    ....Sw..p.......
810001b0: a0300000 55a60000 cabd0101 0000c9b2    .0..U...........
810001c0: 81900100 5a210001 79bc0100 78007bb3    ....Z!..y...x.{.
810001d0: d4970100 5355a9fc dda501be afc175c5    ....SU........u.
810001e0: 8ed77700 55d00dac 0155807e efbc7ee6    ..w.U....U.~..~.
810001f0: f16c5200 331698cc 01010101 00007988    .lR.3.........y.
81000200: 534b5338 3330302d 38582062 696e6172    SKS8300-8X binar
81000210: 79207465 73742032 0a000000 00000000    y test 2........
81000220: 00000000 00000000 00000000 00000000    ................
81000230: 00000000 00000000 00000000 00000000    ................
81000240: 00000000 00000000 00000000 00000000    ................
81000250: 00000000 00000000 00000000 00000000    ................
81000260: 00000000 00000000 00000000 00000000    ................
81000270: 00000000 00000000 00000000 00000000    ................
81000280: 00000000 00000000 00000000 00000000    ................
81000290: 00000000 00000000 00000000 00000000    ................
810002a0: 00000000 00000000 00000000 00000000    ................
810002b0: 00000000 00000000 00000000 00000000    ................
810002c0: 00000000 00000000 00000000 00000000    ................
810002d0: 00000000 00000000 00000000 00000000    ................
810002e0: 00000000 00000000 00000000 00000000    ................
810002f0: 00000000 00000000 00000000 00000000    ................
81000300: 534b5338 3330302d 38582062 696e6172    SKS8300-8X binar
81000310: 79207465 73740a00 00000000 00000000    y test..........
81000320: 00000000 00000000 00000000 00000000    ................
81000330: 00000000 00000000 00000000 00000000    ................
81000340: 00000000 00000000 00000000 00000000    ................
81000350: 00000000 00000000 00000000 00000000    ................
81000360: 00000000 00000000 00000000 00000000    ................
81000370: 00000000 00000000 00000000 00000000    ................
81000380: 00000000 00000000 00000000 00000000    ................
81000390: 00000000 00000000 00000000 00000000    ................
810003a0: 00000000 00000000 00000000 00000000    ................
810003b0: 00000000 00000000 00000000 00000000    ................
810003c0: 00000000 00000000 00000000 00000000    ................
810003d0: 00000000 00000000 00000000 00000000    ................
810003e0: 00000000 00000000 00000000 00000000    ................
810003f0: 00000000 00000000 00000000 00000000    ................