Port-arm archive

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

[Fwd: Re: status for Marvell Orion support]



See earlier message.

-------- Original Message --------
Subject:        Re: status for Marvell Orion support
Date:   Tue, 10 Mar 2009 21:57:43 -0400
From:   Donald T Hayford <don%donhayford.com@localhost>
To:     Havard Eidnes <he%NetBSD.org@localhost>
CC:     kiyohara%kk.iij4u.or.jp@localhost, current-users%netbsd.org@localhost
References: <20081109.173642.26361273.kiyohara%kk.iij4u.or.jp@localhost> <20090305.011311.117150384.he%uninett.no@localhost> <20090305.154201.71570811.kiyohara%kk.iij4u.or.jp@localhost> <20090310.111559.95460806.he%uninett.no@localhost>



Havard Eidnes wrote:
hmm...
I don't use gzimg. [...]

Hmm...  That probably means that there's no kernel with an
embedded file system with the install tools?  How, then, do I
install the required bits?  Pre-install a disk image on another
host before installing the disk in the KUROBOX-PRO?  That's
cheating! :)  It would be best if installation could be done in a
more self-sufficient manner...

In the next issue of BSD Magazine (due out in April) is an article on installing NetBSD on the Kurobox Pro. Excerpts from that will be on the NetBSD wiki in a few weeks. If you're impatient (like me), see below for a brief synopsis. This was done with a version of -current from 20081107, but should be very similar for a more recent -current.

~/kuronet/src $ cd sys/arch/arm/marvell/
~/kuronet/src/sys/arch/arm/marvell $ nano if_oriongbe.c
...change the line:
#include "rnd.h"
...to:
//#include "rnd.h"
...save the file
~/kuronet/src $ cd ../../evbarm/conf
~/kuronet/src/sys/arch/evbarm/conf $ echo 'include “arch/evbarm/conf/KUROBOX_PRO”' \
KUROBOX_PRO_INSTALL
~/kuronet/src/sys/arch/evbarm/conf $ echo 'no pseudo-device md' >> KUROBOX_PRO_INSTALL ~/kuronet/src/sys/arch/evbarm/conf $ echo 'include “arch/evbarm/conf/INSTALL”' \
KUROBOX_PRO_INSTALL
~/kuronet/src/sys/arch/evbarm/conf $ cd ../../../../distrib/evbarm/instkernel/instkernel
~/kuronet/src/distrib/evbarm/instkernel/instkernel $ nano Makefile
...add the line
KUROBOX_PRO_INSTALL ${RAMDISK} - \
...after the line
IQ80321_INSTALL ${RAMDISK} - \
...save the file
~/kuronet/src $ cd ../../../../etc/etc.evbarm
~/kuronet/src/etc/etc.evbarm $ nano Makefile.inc
...change the line:
IQ80310 IQ80321 SMDK2410 SMDK2800 \
...to:
IQ80310 IQ80321 KUROBOX_PRO SMDK2410 SMDK2800 \
...save the file
~/kuronet/src $ ./build.sh -O ../obj -T ../tools -m evbarm-el tools
~/kuronet/src $ ./build.sh -O ../obj -T ../tools -U -u -m evbarm-el distribution ~/kuronet/src $ ./build.sh -O ../obj -T ../tools -U -u -m evbarm-el -V KERNEL_SETS=KUROBOX_PRO release

In ~/kuronet/obj/releasedir/evbarm/installation/instkernel, you'll find a gzipped binary installation image that you can tftp to the kurobox pro and use to install NetBSD to either your SATA drive or to a USB drive:

*Orion1 CPU = Low
=== KURO U-Boot. ===
** LOADER **
<...snip...>
hit any key to switch tftp boot.
Hit any key to stop autoboot: 2 1 0
<<system_bootend>>
Hit any key to stop autoboot: 3 0
Marvell>> setenv serverip 192.168.1.101
Marvell>> setenv ipaddr 192.168.1.178
Marvell>> tftp 0x8000 netbsd-KUROBOX_PRO_INSTALL.bin
Using egiga0 device
TFTP from server 192.168.1.101; our IP address is 192.168.1.178
Filename 'netbsd-KUROBOX_PRO_INSTALL.bin'.
Load address: 0x8000
Loading: #################################################################
<...snip...>
done
Bytes transferred = 8210384 (7d47d0 hex)
Marvell>> g 0x8000

*You'll have to set up a ftp or nfs server so the installer will have someplace to get the world files from, which you'll find at ~/kuronet/obj/releasedir/evbarm/binary/sets. Finally, you can tftp over the kernel from the same directory to boot up NetBSD.

Hope this helps.

Regards, Don







Home | Main Index | Thread Index | Old Index