hns - 日記自動生成システム - Version 2.19.9

先月 2012年04月 来月
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
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 = yes
modena@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



最近の日記
2024年03月10日
停電 (瞬電)
2024年03月03日
the second try on bare-metal
useradd
2024年02月29日
opendkim and senmail
2024年01月24日
chat/iam 0.0.8
2024年01月21日
uselocale vs setlocale (textproc/R-readxl)
以上、1 日分です。
タイトル一覧
カテゴリ分類
Powered by hns-2.19.9, HyperNikkiSystem Project

Count.cgi (since 2000/02/05)