Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Bootstrapping gumstix?



Hi! John,


First of all, what do you have gumstix?  current source code supports
to basix and connex.  If you have verdex or verdex-pro then require this
patchs.

  ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/gumstix/

  more latest patch is '*-20090221.diff'.
  It tested current source tree at 20090221.



From: John Klos <john%ziaspace.com@localhost>
Date: Tue, 7 Apr 2009 01:34:29 +0000 (UTC)

> As per the little note at the bottom of the port-evbarm page:
> 
> When booting, it is necessary to set these with u-boot dynamically.
> > go 0xa0200000 busheader=basix
> 
> Should I replace the parts of gumstix-factory.script which say a2000000 to 
> a0200000?

The U-boot loads u-boot-image at a2000000, and parses header of image, and
copy to load-address(0xa0008000).
In case NetBSD, U-boot loads the striped kernel(netbsd.bin) at 0xa0200000
directly.  If you create u-boot-image then can load to a2000000 or
approximately.

You can put sys/arch/evbarm/compile/u-boot-mkimg.sh.

  ftp://ftp.netbsd.org/pub/NetBSD/misc/kiyohara/tmp/u-boot-mkimg.sh-20080821

Also edit sys/arch/evbarm/conf/mk.gumstix.
Index: mk.gumstix
===================================================================
RCS file: /cvsroot/src/sys/arch/evbarm/conf/mk.gumstix,v
retrieving revision 1.1
diff -u -r1.1 mk.gumstix
--- mk.gumstix  16 Oct 2006 16:40:14 -0000      1.1
+++ mk.gumstix  7 Apr 2009 07:14:14 -0000
@@ -1,5 +1,7 @@
 #      $NetBSD: mk.gumstix,v 1.1 2006/10/16 16:40:14 kiyohara Exp $
 
+MKIMG?= ${HOST_SH} ${THISARM}/compile/u-boot-mkimg.sh
+
 SYSTEM_FIRST_OBJ=      gumstix_start.o
 SYSTEM_FIRST_SFILE=    ${THISARM}/gumstix/gumstix_start.S
 
@@ -7,6 +9,10 @@
 KERNEL_BASE_VIRT=0xc0200000
 
 SYSTEM_LD_TAIL_EXTRA+=; \
+       echo ${MKIMG} $@ $@.img ; \
+       env OBJDUMP=${OBJDUMP} OBJCOPY=${OBJCOPY} S=${S} ${MKIMG} $@ $@.img; \
+       env OBJDUMP=${OBJDUMP} OBJCOPY=${OBJCOPY} S=${S} \
+           ${MKIMG} -e 0x000020a0 $@ $@.old.img; \
        echo ${OBJCOPY} -S -O binary $@ $@.bin; \
        ${OBJCOPY} -S -O binary $@ $@.bin;


You can use netbsd.old.bin, if version of u-boot 1.1.4 and older.  Or
netbsd.img.


> Is the bootm command similar to the go command, and therefore should have 
> the "busheader=basix" added to it?

If your board is basix then add 'busheader=basix'.  Or 'netCF', 'netDUO',
'netwifimicrosd' or others.

Thanks,
--
kiyohara

  P.S. I am knowing, Gumstix inc release newer version for Overo.  Water
       and Air, Fire.  Also Palo43, Tobi (expansions).
         http://www.gumstix.com/store/catalog/motherboards.php
       I bought Earth and Summit only.  ;-)


Home | Main Index | Thread Index | Old Index