$B%m!<%@$N2~B$(B


$B#2$DL\$N%+!<%M%k$r5/F0$G$-$k$h$&!"%m!<%@$K$B%m!<%@$KF~$l49$($N3NG'(B $B$^$:$O!"8 $B5/F0$G$-$J$1$l$P!"$9$J$o$A:F5/ITG=$J$N$@$,!"!"!"(B
make zImage $B$7$F:n@.$5$l$?(B bootcode.bin $B$r(B /dev/fl2 $B$K=q$/(B
[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

$B%j%V!<%H(B

$B:F5/ITG=3P8g$G!"%j%V!<%H$7$?!#(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

$B%=!<%9=$@5(B

$B$I$&$d$C$F#2$DL\$N%+!<%M%k$r%V!<%H$9$k$+$G$"$k$,!"!"!"(B
$B%m!<%@$N=$@5$r:G>.8B$K$9$k$?$a!"(B
(1) $B%3%^%s%I%i%$%s$G(B root=/dev/hda1 $B$KB3$1$F(B 2 $B$rF~NO$9$l$P!"(B
(2) firmimg.bin $B$N%"%I%l%9(B $B$r(B /dev/fl1 $B$N(B 2MB $BL\$G$"$k(B 0xFFE00000 $B$K%;%C%H!"(B
(3) $B$b$&0l2s(B Product Information $B$NI=<($+$i(B

$B%-! (1) $B$N%-! 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:15:25 2004 *************** *** 343,348 **** --- 344,355 ---- #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"); + } #endif /* mappings on early boot can only handle 16M */ bash-2.04$ $B$H$7$F(B bootcode.bin $B$r%3%s%Q%$%k$7!"(B/dev/fl2 $B$K=q$-9~$_!"(B $B%V!<%H;~$K(B root=/dev/hda1 $B$KB3$$$F(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
Now Loading...done.
Now Booting
"second kernel" $B$HI=<($5$l$F$$$k$N$G!"$-$A$s$H=&$($F$$$k$h$&$@!#(B

$BJL%+!<%M%k$N5/F0=hM}(B

(2) firmimg.bin $B$N%"%I%l%9(B $B$r(B /dev/fl1 $B$N(B 2MB $BL\$G$"$k(B 0xFFE00000 $B$K%;%C%H!"(B
(3) $B$b$&0l2s(B Product Information $B$NI=<($+$i(B
$B$N%3!<%I$r=q$/!#(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 size
OK!
$B$^$@!"#2$DL\$N%+!<%M%k$rCV$$$F$$$J$$$N$G!"%(%i!<$K$J$k$N$O$"$?$j$(!#(B
$B"+(B $B%O%C%/$N5-O?(B $B"*!!#2$DL\$N%+!<%M%k(B

Copyright (C) 2004 Yasunari Yamashita. All Rights Reserved.
yasunari $B!w(B yamasita.jp
$B;32<9/@.(B$B!w(B$B5~ETI\8~F|;T(B