[root@hackkit /root]# cat /dev/fl2 > fl2.orig [root@hackkit /root]# cat bootcode.bin > /dev/fl2 [root@hackkit /root]# ls -l bootcode.bin -rwxr-xr-x 1 root root 34028 Jul 11 01:42 bootcode.bin [root@hackkit /root]# cmp -n 34028 /dev/fl2 bootcode.bin [root@hackkit /root]#$B$H$j$"$($:=q$1$?$h$&$@$,!"!"!"!"K\Ev$K%V!<%H$7$F$/$k$N$+!"IT0B!#(B
******* Product Information ******* ---------------------------------- Product Name: KURO-BOX(maru) VER: 1.00 Date: 2004/7/10 8:40:23 ---------------------------------- Firmware check:done. >>root=/dev/hda1$B$3$l$,8+$($?=V4V!"$[$C$H6;$r$J$G$*$m$9!#$"!<$3$o!#(B
******* Product Information ******* ---------------------------------- Product Name: KURO-BOX(maru) VER: 1.00 Date: 2004/7/10 8:40:23 ---------------------------------- Firmware check:done. >>root=/dev/hda12 second kernel Now Loading...done. Now Booting"second kernel" $B$HI=<($5$l$F$$$k$N$G!"$-$A$s$H=&$($F$$$k$h$&$@!#(B
bash-2.04$ diff -c misc-simple.c.orig misc-simple.c *** misc-simple.c.orig Wed Jul 7 14:48:12 2004 --- misc-simple.c Sun Jul 11 04:24:44 2004 *************** *** 181,186 **** --- 181,187 ---- * were relocated to. */ #ifdef FLASH_BOOT_IMAGE + second_kernel: { int i = 0; info = image_addr; *************** *** 343,348 **** --- 344,357 ---- #ifdef FLASH_BOOT_IMAGE i=0;while(i<5 && cmd_line[i] == "debug"[i]) ++i; + + /* 012345678901234 */ + /* root=/dev/hda1 */ + if ( cmd_line[14] == '2' ) { + puts("second kernel\n"); + image_addr = (struct firminfo*)(KERNEL_IMAGE_ADDRESS + 2 * 1024 * 1024 ); + goto second_kernel; + } #endif /* mappings on early boot can only handle 16M */ bash-2.04$$B$U$D!P!K(B
bootcode.bin $B$r%3%s%Q%$%k$7!"(B/dev/fl2 $B$K=q$-9~$_!"(B
$B$^$:$OIaDL$K%V!<%H$9$k$3$H$r3NG'!#(B
$BB3$$$F!"%V!<%H;~$K(B root=/dev/hda1 $B$N8e$K(B 2 $B$rF~NO$9$k!#(B
******* Product Information ******* ---------------------------------- Product Name: KURO-BOX(maru) VER: 1.00 Date: 2004/7/10 8:40:23 ---------------------------------- Firmware check:done. >>root=/dev/hda12 second kernel ******* Product Information ******* ---------------------------------- Product Name: $BxA(BK$B1boxq9(B[z$B2e(B/$B~1pWR\(B-$B}m(B VER: 41338.14505 Date: 1856/85/56 -85:89:-93 ---------------------------------- Firmware check:Fail!:invalid Firmware sizeOK!
$B"+(B | $B%O%C%/$N5-O?(B | $B"*!!#2$DL\$N%+!<%M%k(B |