2 Aug 2009 17:49
TS-7200 16mb kernel image
idatum <idatum <at> comcast.net>
2009-08-02 15:49:13 GMT
2009-08-02 15:49:13 GMT
I'm attempting to create a kernel image for a 16mb
version of the TS-7200. Can someone give me some pointers?
Here is my fis list:
RedBoot> fis
list
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x00E20000 0x00000000
RedBoot 0x60E20000 0x60E20000 0x00040000 0x00000000
RedBoot config 0x60FC0000 0x60FC0000 0x00001000 0x00000000
FIS directory 0x60FE0000 0x60FE0000 0x00020000 0x00000000
Name FLASH addr Mem addr Length Entry point
(reserved) 0x60000000 0x60000000 0x00E20000 0x00000000
RedBoot 0x60E20000 0x60E20000 0x00040000 0x00000000
RedBoot config 0x60FC0000 0x60FC0000 0x00001000 0x00000000
FIS directory 0x60FE0000 0x60FE0000 0x00020000 0x00000000
If I understand this correctly, I need to crosscompile
evbarm and create gzimg_TS7200_wd0_flash_0x60e60000. Here are the steps I've
taken:
- Under .../sys/arch/evbarm/stand/gzboot/, cp -Rf
TS7200_flash_0x60660000 TS7200_flash_0x60e60000.
- Modify Makefile RELOC= 0x60e60000, and change ldscript
to set 0x60e60000.
- With an empty ../obj, I did a ./build.sh -u -U -m
evbarm kernel=TS7200 distribution, but got the build distribution
errors:
======= 1 extra files in DESTDIR
=========
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
------------------------------------------
./usr/mdec/gzboot_TS7200_0x60e60000.bin
========= end of 1 extra files ===========
Files in DESTDIR but missing from flist.
File is obsolete or flist is out of date ?
------------------------------------------
./usr/mdec/gzboot_TS7200_0x60e60000.bin
========= end of 1 extra files ===========
*** Failed target: checkflist
*** Failed command: cd /usr/src/distrib/sets && DESTDIR=/usr/src/obj/destdir.evbarm MACHINE=evbarm MACHINE_ARCH=arm AWK=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbawk CKSUM=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbcksum DB=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbdb HOST_SH=/bin/sh MAKE=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbmake MKTEMP=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbmktemp MTREE=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbmtree PAX=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbpax SED=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbsed TSORT=/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbtsort\ -q /bin/sh /usr/src/distrib/sets/checkflist -M /usr/src/obj/destdir.evbarm/METALOG.sanitised
*** Error code 1
Stop.
nbmake: stopped in /usr/src/distrib/sets
nbmake: stopped in /usr/src/distrib/sets
*** Failed target: distribution
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $ <at> )}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbmake _THISDIR_="${this}" "$ <at> " ${target}; }; _makedirtarget distrib/sets checkflist
*** Error code 1
*** Failed command: _makedirtarget() { dir="$1"; shift; target="$1"; shift; case "${dir}" in /*) this="${dir}/"; real="${dir}" ;; .) this=""; real="/usr/src" ;; *) this="${dir}/"; real="/usr/src/${dir}" ;; esac; show=${this:-.}; echo "${target} ===> ${show%/}${1:+ (with: $ <at> )}"; cd "${real}" && /usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbmake _THISDIR_="${this}" "$ <at> " ${target}; }; _makedirtarget distrib/sets checkflist
*** Error code 1
Stop.
nbmake: stopped in /usr/src
nbmake: stopped in /usr/src
ERROR: Failed to make distribution
*** BUILD ABORTED ***
*** BUILD ABORTED ***
I build the kernel image and then from /usr/src/distrib/evbarm/gzboot/gzimg,
run:
make DESTDIR=/usr/src/obj/destdir.evbarm MACHINE=evbarm
The output from make looks like this:
Populating gzimg_TS7200_wd0_flash_0x60e60000
rm -f gzimg_TS7200_wd0_flash_0x60e60000.kern.gz
gzip -9c /usr/src/sys/arch/evbarm/compile/obj/TS7200/netbsd-wd0.bin >
gzimg_TS7200_wd0_flash_0x60e60000.kern.gz
/usr/src/obj/tooldir.NetBSD-5.0_STABLE-i386/bin/nbcat
/usr/src/obj/destdir.evbarm/usr/mdec/gzboot_TS7200_0x60e60000.bin
gzimg_TS7200_wd0_flash_0x60e60000.kern.gz >
gzimg_TS7200_wd0_flash_0x60e60000
rm -f gzimg_TS7200_wd0_flash_0x60e60000.gz
gzip -9c gzimg_TS7200_wd0_flash_0x60e60000 >
gzimg_TS7200_wd0_flash_0x60e60000.gz
Is this a problem with my version of gzip?
Thanks - Joel
--------------------------------------------------
From: "David Laight" <david <at> l8s.co.uk>
Sent: Tuesday, August 04, 2009 09:54
Cc: <idatum <at> comcast.net>; <port-arm <at> netbsd.org>
Subject: Re: TS-7200 16mb kernel image
> On Tue, Aug 04, 2009 at 09:58:02AM +0200, Havard Eidnes wrote:
>> > Hi H?vard -- thanks for your help. I was able to create the kernel
>> > image;
>> > however I'm now stuck on booting the kernel. Here are the messages
>> > during
>> > boot:
>> >
>> > RedBoot> g 0x60E60000
>> > >> NetBSD/TS7200 Gzip Boot, Revision 1.2
>> > >> (root <at> ..., Mon Aug 3 17:32:57 PDT 2009)
>> > >> Load address: 0x200000
>> > Uncompressing image...FATAL: error -3 from zlib
>> >
>> > Does this indicate a checksum error?
>>
>> It does appear to do so -- looking at the zlib(3) man page seems
>> to indicate so:
>>
>> #define Z_OK 0
>> #define Z_STREAM_END 1
>> #define Z_NEED_DICT 2
>> #define Z_ERRNO (-1)
>> #define Z_STREAM_ERROR (-2)
>> #define Z_DATA_ERROR (-3)
>> #define Z_MEM_ERROR (-4)
>> #define Z_BUF_ERROR (-5)
>> #define Z_VERSION_ERROR (-6)
>> /* Return codes for the compression/decompression functions.
>> * Negative values are errors,
>> * positive values are used for special but normal events.
>> */
>
> If this is a zlib fubar, it might be related to the 'cvs -z' lossage.
>
> David
>
> --
> David Laight: david <at> l8s.co.uk
RSS Feed