HD-LANV1 は 15MB の /dev/fl1 のうち、7MB ほどしか使ってないので、 ramdisk.image のシュリンクも必要なく、 15MB の最後の 1MB を第二カーネル置き場とする
[yasunari@SECO common]$ diff -c misc-simple.c{.orig,} *** misc-simple.c.orig 2004-05-24 17:35:29.000000000 +0900 --- misc-simple.c 2004-08-13 01:21:40.000000000 +0900 *************** *** 193,198 **** --- 193,199 ---- * were relocated to. */ #ifdef FLASH_BOOT_IMAGE + second_kernel: { int i = 0; info = image_addr; *************** *** 362,367 **** --- 363,377 ---- #ifdef FLASH_BOOT_IMAGE i=0;while(i<5 && cmd_line[i] == "debug"[i]) ++i; if(i>4) {dbg_mode();} + + /* 012345678901234 */ + /* root=/dev/hda1 */ + if ( cmd_line[14] == '2' ) { + puts("second kernel\n"); + image_addr = (struct firminfo*)(KERNEL_IMAGE_ADDRESS + 14 * 1024 * 1024 ); + goto second_kernel; + } + #endif /* mappings on early boot can only handle 16M */
******* Product Information ******* ---------------------------------- Product Name: HD-LAN VER: 1.23 Date: 2004/5/10 11:24:1 ---------------------------------- Firmware check:done. >>root=/dev/hda1 Now Loading...done. Now Booting Memory BAT mapping: BAT2=64Mb, BAT3=0Mb, residual: 0Mb HWTYPE:None PLD Model Linux version 2.4.17_mvl21-sandpoint (root@toda_dev.melcoinc.co.jp) (gcc version 2.95.3 20010315 (release/MontaVista)) #857 2004年 5月 10日 月曜日 11:22:13 JST MELCO Network Attached Storage Series 2002 MELCO INC. (略) MELCO INC. Link Station series HD-LAN SECO login:
******* Product Information ******* ---------------------------------- Product Name: HD-LAN VER: 1.23 Date: 2004/5/10 11:24:1 ---------------------------------- Firmware check:done. >>root=/dev/hda12 second kernel ******* Product Information ******* ---------------------------------- Product Name: VER: 65535.65535 Date: 1899/-1/-1 -1:-1:-1 ---------------------------------- Firmware check:Fail!:invalid Firmware sizeとなって、DIAG LED が5回点滅を繰り返す。
← | ハックの記録 | → HD-LAN V1 2つ目のカーネル |