Current-Users archive

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

Re: status for Marvell Orion support



> 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.

Many thanks for this!

A few comments:

> ~/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

Instead of this change, I changed the rnd_add_uint32() call to

                rnd_add_uint32(&sc->rnd_source, claimed);

Kiyohara's patch used "status" in "claimed"s place, and "status"
isn't declared in that scope.

> ~/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

OK, as an alternative to the "no pseudo-device md" dance, I
removed "pseudo-device md" from the ORION_NAS config file.

> 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:

OK, that's cool.

> *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.

As far as I can see, the only thing missing at this point is
instructions for how to make the KUROBOX_PRO boot its own kernel
without "outside assistance".  That probably means explaining how
one could store a NetBSD kernel in flash on the box (which image,
which command to use etc.).

> Hope this helps.

It filled in a few blanks for me; thanks for that.

Best regards,

- HÃvard


Home | Main Index | Thread Index | Old Index