Port-arm archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Call for testing: Mini2440 port
Hello,
I have in a previous post announced the Mini2440 port. It is
functional, and supports most of the devices on the board, but needs
further testing. Therefore I would like to encourage people with a
Mini2440 at hand to try to out this port. Please note that neither
NAND nor NOR flash memories are supported at this point. Currently,
U-Boot is required in order to load the NetBSD bootmini2440-bootloader.
NetBSD can currently be installed either to an SD-card, or the
Mini2440 can run as a diskless node.
Network Install to SD-card:
In order to install the NetBSD MINI2440 on an SD-card follow the steps below.
These instructions assume that DHCP is used to configure IPv4
addresses, and that a TFTP server is running at 10.0.0.1.
All binary files needed can either be build directly from the CVS
repository or obtained from the daily snapshot directory at
nyftp.netbsd.org (use newest with evbarm in pub/NetBSD-daily/HEAD).
* The dhcp-server must be configured with a proper “next-server”
option, as in the following example /etc/dhcpd.conf:
host mini2440 {
hardware ethernet 08:08:11:18:12:27;
fixed-address 10.0.0.20;
next-server 10.0.0.1;
}
* TFTP must be setup, such that the bootmini2440-bootloader and
netbsd-MINI2440_INSTALL kernel are downloadable:
a. Start TFTP service by uncommenting “'#tftp" line in
/etc/inetd.conf, and restart inetd invoking '/etc/rc.d/inetd restart'
b. Populate the TFTP-directory (usually /tftpboot) with two files:
1. bootmini2440 found at evbarm/installation/ directory of ISO image.
2. netbsd-MINI2440_INSTALL found at
evbarm/installation/instkernel/ directory as
netbsd-MINI2440_INSTALL.gz. gunzip it and copy it to the
TFTP-directory as netbsd-MINI2440_INSTALL
Make sure to have READ permission for files, or TFTP daemon will not
be able to serve them to the MINI2440-board.
* From the U-Boot prompt, request an address via DHCP with autoloading disabled:
MINI2440 # setenv autoload n
MINI2440 # dhcp
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.0.0.20
MINI2440 #
‘printenv’ can be used to see the settings obtained from the DHCP request:
autoload=n
gatewayip=10.0.0.1
netmask=255.255.255.0
rootpath=/export/mini2440
ipaddr=10.0.0.20
serverip=10.0.0.1
dnsip=10.0.0.1
* Load "bootmini2440" at address 0x30a00000 over tftp by utilizing
U-Boots tftp capabilities:
U-Boot> tftp 30a00000 bootmini2440
* Launch the bootmini2440-bootloader and ask it to fetch the install
image over the network:
U-Boot> go 30a00000 tftp:netbsd-MINI2440_INSTALL
* The installer should now launch.
* When the distribution-selection screen shows, select "d: Custom
installation".
Select "e: Kernel (MINI2440)" and continue installation.
* Setup the disk-partitioning as desired and continue installation.
- Please note, that SD-cards do not behave as regular harddrive. In
order to get the best performance, care should be taken that
partitions start on 8192-byte boundaries and end at them. Also, it is
adviced that the block size of UFS is set to 8192 (other values might
be more optimal). For more details see
http://www.olpcnews.com/forum/index.php?topic=4993.0.
- In order to avoid loading bootmini2440 over the network, or store
it in NAND, it might be a good idea to have a FAT-partition on the
SD-card which can be accessed by U-Boot.
* Choose "HTTP" as installation source, configuring the dme0 manually if needed.
* A local server can be used as source,or the releng server can be used::
Host: nyftp.netbsd.org
Base directory: pub/NetBSD-daily/HEAD/201202011750Z/
* Once installation completes, bootmini2440 is again loaded over the network:
U-Boot> tftp 30a00000 bootmini2440
* The NetBSD system is then booted from the SD-card:
U-Boot> go 30a00000 ld0a:netbsd
Setup as Diskless Node:
It is possible to run MINI2440 as an NFS diskless node. In that case a
root-directory for the MINI2440 is create on a server, and exported
via NFS.
In this example /export/mini2440 is exported, and will be mounted as
root file system by the MINI2440.
* First, /export/mini2440 needs to be exported, this is done by having
the following line in /etc/exports:
/export/mini2440 -maproot=0
* Restart the NFS-server:
# /etc/rc.d/mountd restart
* Two files, base.tgz and etc.tgz, are to be inflated at the NFS
exported directory. These files are found at
evbarm/binary/sets/ directory of ISO image.
*. Run MAKEDEV script to populate dev/ directory:
# cd /export/mini2440/dev
# sh ./MAKEDEV all
*. Gunzip netbsd-MINI2440.gz, found in evbarm/binary/kernel/,
and copy it as "netbsd" to the NFS exported directory.
* From the U-Boot prompt, request an address via DHCP with autoloading disabled:
MINI2440 # setenv autoload n
MINI2440 # dhcp
* run TFTP to load bootmini2440 and starts NetBSD kernel
MINI2440 # tftp 30a00000 bootmini2440
dm9000 i/o: 0x20000300, id: 0x90000a46
DM9000: running in 16 bit mode
MAC: 08:08:11:18:12:27
TFTP from server 192.168.24.24; our IP address is 192.168.24.69
Filename 'bootmini2440'.
Load address: 0x30a00000
Loading: T #########
done
Bytes transferred = 117628 (1cb7c hex)
MINI2440 # go 30a00000 nfs:netbsd
bootmini2440 loads NetBSD kernel with the NFS protocol, and the
Mini2440 runs as NFS diskless node.
For more information please visit http://xpg.dk/nb-mini2440-ht/
Kind regards,
Paul
Home |
Main Index |
Thread Index |
Old Index