[oe] Working with the Target

Marcin Juszkiewicz marcin at juszkiewicz.com.pl
Fri Mar 13 12:51:55 UTC 2009


Dnia czwartek, 12 marca 2009 o 23:02:46 Shane Dixon napisał(a):

> On Thu, 2009-03-12 at 20:27 +0100, Marcin Juszkiewicz wrote:
> > I used my at91sam9263ek with kernel fetched via TFTP and NFS root
> > for quite long time. It is very useful way to change rootfs
> > contents - especially when you can press 'Reset' any time without
> > risk of unfinished transactions.

> I'd like to setup the same thing, but I didn't see anything in the OE
> manual for creating a bootable rootfs directory.

IMAGE_FSTYPES += "tar.gz" will give you tarball which you unpack (as 
root) and use as NFS root.

> Would it be possible for you to dump a few files like your u-boot
> printenv,

ethaddr=3a:1f:34:08:54:54
bootdelay=3
baudrate=115200
filesize=1713b0
fileaddr=22200000
tboot=tftp 0x22200000 at91 ; bootm 0x22200000
env=bootcmd run tboot
bootcmd=run tboot
serverip=192.168.1.112
ipaddr=192.168.1.250
bootargs=console=ttyS0,115200 rootfstype=ubifs ubi.mtd=2 
root=ubi0:rootfs
ubifsboot=console=ttyS0,115200 rootfstype=ubifs ubi.mtd=2 
root=ubi0:rootfs
nfsb=setenv bootargs root=301 root=/dev/nfs 
nfsroot=192.168.1.112:/srv/nfs/at91/bug ip=192.168.1.250:::255.255.255.0 
console=ttyS0
stdin=serial
stdout=serial
stderr=serial

As you see I fetch kernel via TFTP and boot into ubifs on mtd2. If I 
want to boot into NFS root I just enter u-boot and use 'nfsroot' + 
'nfsb' variables as bootargs.

> your tftp config, 

13:51 hrw at home:default$ cat tftpd-hpa
#Defaults for tftpd-hpa
RUN_DAEMON="yes"
OPTIONS="-l -s /srv/tftpd/"


> your nfs config, 

/srv/nfs/  *(rw,sync,no_root_squash,no_subtree_check)

> and local.conf?

MACHINE="at91sam9263ek"
DISTRO="angstrom-2008.1"

Regards, 
-- 
JID:      hrw at jabber.org
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz






More information about the Openembedded-devel mailing list