Skip to contentSkip to conversation

Working with the Target

DISCUSSION Shane Dixon 3 participants 5 messages Mar 12, 2009 – Mar 13, 2009

lore
Share & tools
lore
#0 lore raw

Hi all,

I am curious to know how others are working with their target device. My last application would build from OE and I had a public/private key on my device and a makefile that automatically scp'd the program, uninstall the old, install the new, and ran the program to test it. I'd like to do something like netboot the device and keep the kernel and rootfs on my machine shared over NFS, but I'm not sure if I can do that with OE.

How are others testing new applications with their target boards?

(By the way, my target is an at91sam9263ek)

Signature · 3 lines
Shane Dixon
Atmel Corporation
E-mail: [email protected]
#1 lore raw

Dnia czwartek, 12 marca 2009 o 17:29:22 Shane Dixon napisał(a):

Quoted 10 lines

I am curious to know how others are working with their target device. My last application would build from OE and I had a public/private key on my device and a makefile that automatically scp'd the program, uninstall the old, install the new, and ran the program to test it.

I'd like to do something like netboot the device and keep the kernel and rootfs on my machine shared over NFS, but I'm not sure if I can do that with OE.

(By the way, my target is an at91sam9263ek)

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.

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz
#2 lore raw
Quoted 4 lines · Marcin Juszkiewicz

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. Would it be possible for you to dump a few files like your u-boot printenv, your tftp config, your nfs config, and local.conf?

Signature · 4 lines
Shane Dixon
Atmel Corporation
Office: 719.540.1123
E-mail: [email protected]
#3 lore raw
Quoted 8 lines · Shane Dixon
Quoted 1 line · Marcin Juszkiewicz

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. Would it be possible for you to dump a few files like your u-boot printenv, your tftp config, your nfs config, and local.conf?

You can create tarballs of the image.

IMAGE_FSTYPES = "jffs2 tar.gz"

is in my local.conf.

Philip

#4 lore raw
In reply to Shane Dixon

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

Quoted 8 lines · Marcin Juszkiewicz
Quoted 4 lines

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.

Quoted 2 lines

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.

Quoted 1 line

your tftp config,

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

Quoted 1 line

your nfs config,

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

Quoted 1 line

and local.conf?

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

Regards,

Signature · 3 lines
JID:      [email protected]
Website:  http://marcin.juszkiewicz.com.pl/
LinkedIn: http://www.linkedin.com/in/marcinjuszkiewicz