|
Namazu for hns による簡易全文検索 詳しくは 詳細指定/ヘルプを参照して下さい |
||||||||||||||||||||||||||||||||||||||||||||
2012年04月28日(土) 旧暦 [n年日記] [更新:"2012/05/02 00:36:12"]#1 [NetBSD] u-boot-2009.06
たまたま作ってあった cross compiler があったので、次のようにして見た
modena@makoto 23:39:07/120429(..local-src/u-boot-2009.06)% history 47 export CROSS_COMPILE=/export/src/src/obj/tooldir.NetBSD-6.99.4-amd64/bin/powerpc--netbsd- 48 gmake Sandpoint8245_config 52 touch /export/local-src/u-boot-2009.06/include/endian.h 53 touch /export/local-src/u-boot-2009.06/include/stdargs.h 55 touch /export/local-src/u-boot-2009.06/include/byteswap.h 56 gmake 57 find . -name crc32\*touch しているのは、これでうまく行く訳はないけれども、 先の見通しを立てるため、やっている。 また 多分 Sandpoint8245 では KURO-BOX/T4 用のものは作れないと思うけれど、これも試しにやって見るということで。
modena@makoto 23:38:52/120429(..local-src/u-boot-2009.06)% gmake
for dir in tools examples api_examples ; do gmake -C $dir _depend ; done
gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/tools'
gmake[1]: Nothing to be done for `_depend'.
gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/tools'
gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/examples'
gmake[1]: Circular ppc_longjmp.S <- ppc_longjmp.S dependency dropped.
gmake[1]: Circular ppc_setjmp.S <- ppc_setjmp.S dependency dropped.
gmake[1]: Nothing to be done for `_depend'.
gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/examples'
gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/api_examples'
gmake[1]: Nothing to be done for `_depend'.
gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/api_examples'
gmake -C tools all
gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/tools'
gcc -g -Wall -idirafter
/export/local-src/u-boot-2009.06/include -idirafter
/export/local-src/u-boot-2009.06/include2 -idirafter
/export/local-src/u-boot-2009.06/include -I
/export/local-src/u-boot-2009.06/libfdt -I
/export/local-src/u-boot-2009.06/tools -DTEXT_BASE=0xFFF00000
-DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o
/export/local-src/u-boot-2009.06/tools/mkimage.c
In file included from /export/local-src/u-boot-2009.06/tools/fdt_host.h:25:0,
from /export/local-src/u-boot-2009.06/tools/mkimage.h:41,
from /export/local-src/u-boot-2009.06/tools/mkimage.c:25:
/export/local-src/u-boot-2009.06/tools/../include/libfdt.h: In function 'fdt_set_magic':
/export/local-src/u-boot-2009.06/tools/../include/libfdt.h:162:1:
warning: implicit declaration of function 'bswap_32'
gcc -Wall -pedantic -idirafter
/export/local-src/u-boot-2009.06/include -idirafter
/export/local-src/u-boot-2009.06/include2 -idirafter
/export/local-src/u-boot-2009.06/include -I
/export/local-src/u-boot-2009.06/libfdt -I
/export/local-src/u-boot-2009.06/tools -DTEXT_BASE=0xFFF00000
-DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o crc32.c
gcc: crc32.c: No such file or directory
gcc: no input files
gmake[1]: *** [crc32.o] Error 1
gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/tools'
gmake: *** [tools] Error 2
modena@makoto 23:38:54/120429(..local-src/u-boot-2009.06)% find . -name crc32\*
Makefile を少し変更しておいて、
modena@makoto 23:55:23/120429(..local-src/u-boot-2009.06)% diff -u Makefile.orig Makefile
--- Makefile.orig 2009-07-09 21:53:32.000000000 +0900
+++ Makefile 2012-04-29 23:54:52.000000000 +0900
@@ -1713,6 +1713,9 @@
Sandpoint8245_config: unconfig
@$(MKCONFIG) $(@:_config=) ppc mpc824x sandpoint
+linkstation_config: unconfig
+ @$(MKCONFIG) $(@:_config=) ppc mpc824x linkstation
+
sbc8240_config: unconfig
@$(MKCONFIG) $(@:_config=) ppc mpc824x sbc8240
次のようにする方が少し まし な気がする
86 gmake linkstation_config 88 gmake/export/local-src/u-boot-2009.06/include/configs/linkstation.h:599:2: error: #error Config IDE: Unknown LinkStation type include/configs/linkstation.h より
73 /*---------------------------------------
74 * Supported models
75 *
76 * LinkStation HDLAN /KuroBox Standard (CONFIG_HLAN)
77 * LinkStation old model (CONFIG_LAN) - totally untested
78 * LinkStation HGLAN / KuroBox HG (CONFIG_HGLAN)
79 * KURO-NAS/T4 (CONFIG_KURO_NAS_T4)
80 *
81 * Models not supported yet
82 * TeraStation (CONFIG_HTGL)
83 */
次のように一行追加しておくと、上記の Unknown LinkStation type は出なくなるmodena@makoto 00:04:54/120430(..local-src/u-boot-2009.06)% cat include/config.mk* ARCH = ppc CPU = mpc824x BOARD = linkstation CONFIG_KURO_NAS_T4 = yesmodena@makoto 00:04:20/120430(..local-src/u-boot-2009.06)% gmake for dir in tools examples api_examples ; do gmake -C $dir _depend ; done gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/tools' gmake[1]: Nothing to be done for `_depend'. gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/tools' gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/examples' gmake[1]: Circular ppc_longjmp.S <- ppc_longjmp.S dependency dropped. gmake[1]: Circular ppc_setjmp.S <- ppc_setjmp.S dependency dropped. gmake[1]: Nothing to be done for `_depend'. gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/examples' gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/api_examples' gmake[1]: Nothing to be done for `_depend'. gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/api_examples' gmake -C tools all gmake[1]: Entering directory `/export/local-src/u-boot-2009.06/tools' gcc -Wall -pedantic -idirafter /export/local-src/u-boot-2009.06/include -idirafter /export/local-src/u-boot-2009.06/include2 -idirafter /export/local-src/u-boot-2009.06/include -I /export/local-src/u-boot-2009.06/libfdt -I /export/local-src/u-boot-2009.06/tools -DTEXT_BASE=0xFFF00000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o crc32.o crc32.c gcc: crc32.c: No such file or directory gcc: no input files gmake[1]: *** [crc32.o] Error 1 gmake[1]: Leaving directory `/export/local-src/u-boot-2009.06/tools' gmake: *** [tools] Error 2 modena@makoto 00:04:32/120430(..local-src/u-boot-2009.06)% ls -l include/config.mk*tools に行っているから crc32.c が見つからないのか。 modena@makoto 00:04:56/120430(..local-src/u-boot-2009.06)% find . -name crc32.c ./lib_generic/crc32.c ./drivers/mtd/ubi/crc32.cそう言えば mkimage は作ってくれなくても良い気もする (必要としているのは u-boot 本体だけだから)。 @ Linkstation/TeraStation/玄箱/PPC/KUROBOX/T4/U-Boot/FIT:
NetBSD ではないけれど、
こちら
に先人がいらっしゃるようです
上記頁 KURO-BOX/T4 用 U-Boot も作成する では、 から持って来た 2009.08 と u-boot-2009.08.diff.txt となっていて、 にある方は 2009.06 となっている。後で比較しようと思っているが kuroutoshikou.com 側のは、あるていど patch が当った形になっている ような気がする。 @ 玄人志向 KURO-BOX/T4:
の頁の
<ダウンロード2> ブートイメージ Ver 1.01 (bz2 ファイル 5.01MB)には u-boot が入っているのか、今まで気が付かなかった。 % tar ztvf ~/tmp/bootimg.tar.bz2 drwxr-xr-x 2 root wheel 0 Sep 25 2009 boot -rwxr-xr-x 1 root wheel 245868 Sep 25 2009 boot/u-boot-kuro-nas-t4.bin -rw-r--r-- 1 root wheel 5111396 Sep 25 2009 boot/kuro_nas_t4.itb lrwxrwxrwx 1 root wheel 0 Oct 9 2009 boot/uImage.buffalo -> kuro_nas_t4.itb ( つっこみ )
|
最近の日記 2025年10月25日 ・recover from disk error 2025年10月23日 ・dd does not duplicate Windows 11 boot disk ? 2025年10月04日 ・pkgin search pkgname segfaults 2025年08月16日 ・installboot (Although it’s too late) 2025年07月20日 ・network setup from qemnu | ||