saveenv for pandaboard

446 views
Skip to first unread message

V

unread,
Jan 7, 2011, 5:45:22 AM1/7/11
to pandaboard
how to do the saveenv on pandaboard. want to save new bootargs

Thanks in advance,
Vinod

Sukumar Ghorai

unread,
Jan 7, 2011, 8:13:58 AM1/7/11
to panda...@googlegroups.com
pandaboard does not have any eMMC or NAND to save the saveenv
And current u-boot we dont supoprt the saveenv in external eMMC card.
 
So best solution using boot.scr
 boot.scr is the boot script used by u-boot. Basically boot.scr loads the kernel (plus an optional initrd), set the bootargs and jumps into the kernel entry point.

Step-1: create a boot.src.txt as like -
fatload mmc 0 0x80300000 uImage
echo Booting from mmc0 ...
setenv bootargs console=tty02,115200n8 noinitrd init=/sbin/init root=/dev/mmcblk0p2 rootwait rw loglevel=8
bootm 80300000
 
Step-2: run
mkimage -A arm -T script -O linux -C none -a 0 -e 0 -n "boot.scr" -d boot.scr.txt boot.scr
 
Step-3:
copy boot.scr along with MLO, u-boot and uImage in MMC/SD boot partition.
 
Regards
Ghorai

Sukumar Ghorai

unread,
Jan 7, 2011, 8:14:59 AM1/7/11
to panda...@googlegroups.com
Hi,
with correctioin ..
pandaboard does not have any eMMC or NAND to save the saveenv
And current u-boot we dont supoprt the saveenv in external MMC/SD card.
 
So best solution using boot.scr
 boot.scr is the boot script used by u-boot. Basically boot.scr loads the kernel (plus an optional initrd), set the bootargs and jumps into the kernel entry point.

Paul Claessen

unread,
Jan 7, 2011, 9:14:41 AM1/7/11
to panda...@googlegroups.com
REMOVE ME
 

srinidhi

unread,
Jan 7, 2011, 6:01:44 AM1/7/11
to panda...@googlegroups.com
Patches are welcome :-). Saveenv s not there in current u boot you can use boot.scr instead

Srinidhi
Sent from Nokia Phone

srinidhi

unread,
Jan 7, 2011, 8:22:47 AM1/7/11
to panda...@googlegroups.com
Even ping from u boot doesnt work right? Also what should be enabled in config file in kernel to enable ethernet. I wanna use nfs mount
Thanks

Srinidhi
Sent from Nokia Phone
-----Original Message-----
From: Sukumar Ghorai
Sent: 07/01/2011 6:43:58 pm
Subject: Re: [pandaboard] saveenv for pandaboard

pandaboard does not have any eMMC or NAND to save the saveenv

And current u-boot we dont supoprt the saveenv in external eMMC card.

So best solution using boot.scr
boot.scr is the boot script used by u-boot. Basically boot.scr loads the
kernel (plus an optional initrd), set the bootargs and jumps into the kernel
entry point.

Step-1: create a boot.src.txt as like -
fatload mmc 0 0x80300000 uImage
echo Booting from mmc0 ...
setenv bootargs console=tty02,115200n8 noinitrd init=/sbin/init
root=/dev/mmcblk0p2 rootwait rw loglevel=8
bootm 80300000

Step-2: run
mkimage -A arm -T script -O linux -C none -a 0 -e 0 -n "boot.scr" -d
boot.scr.txt boot.scr

Step-3:
copy boot.scr along with MLO, u-boot and uImage in MMC/SD boot partition.

Regards
Ghorai

On Fri, Jan 7, 2011 at 4:15 PM, V <vino...@gmail.com> wrote:

Anand Gadiyar

unread,
Jan 10, 2011, 10:58:18 AM1/10/11
to panda...@googlegroups.com
Enable CONFIG_USB_EHCI_HCD and CONFIG_USB_EHCI_HCD_OMAP3 to get the
EHCI driver built-in, and CONFIG_USB_NET_SMSC95XX for the ethernet
controller.

(CONFIG_USB_EHCI_HCD_OMAP3 might be CONFIG_USB_EHCI_HCD_OMAP depending
on which kernel version you're using).

srinidhi

unread,
Jan 10, 2011, 12:21:07 PM1/10/11
to panda...@googlegroups.com
Thanks for the reply. I am using 2.6.35 kernel. I have enabled all the listed features. But ethernet s not getting initialised during boot.
Geetha had uploaded a patch which should enable ethernet in android_panda_defconfig. Even that s not working. The only kernel image in which ethernet gettin initialised is pre built kernel image with gfx enabled in it.

Thondar, Geetha

unread,
Jan 10, 2011, 1:29:31 PM1/10/11
to panda...@googlegroups.com
Srinidhi
I tested the kernel with the latest pull and Ethernet works fine. Are you using "ip=dhcp" in your boot args?

I have tested pinging other ips in the network. Internet browsing should work too.

Are you trying NFS? We haven't tested NFS on Pandroid.

Thanks
Geetha

srinidhi

unread,
Jan 10, 2011, 8:51:43 PM1/10/11
to panda...@googlegroups.com
Hi Geetha,
I am using ip="static ip address"

This boot arg works fine with uImage _gfx for nfs mount.
Is there any way to get config file of uImage_gfx? I am curious to learn how one works with nfs mount but not other, for the same boot arg.

Srinidhi K V

unread,
Jan 10, 2011, 11:19:15 PM1/10/11
to panda...@googlegroups.com
This is the boot argument i am using

setenv bootargs 'mem=463M init=/init noinitrd console=ttyO2,115200n8 root=/dev/nfs nfsroot=192.168.0.162:/nfsboot/android_panda/ rw ip=192.168.0.29:192.168.0.162:192.168.0.1:255.255.255.0:panda:usb0:off nolock, rootwait vram=16M,omapfb.vram=0:5M,1:5M '


192.168.0.29 - Panda IP ; 192.168.0.162- Host IP ; 162:192.168.0.1 - Gateway IP : Netmask :255.255.255.0

Srinidhi

Thondar, Geetha

unread,
Jan 11, 2011, 11:56:55 AM1/11/11
to panda...@googlegroups.com
Srinidhi,
Which release is uImage_gfx from? I don't see it in the downloads list and I think it is in one of the tar files. Please refer to the release number and pick the corresponding kernel from http://gitorious.org/pandroid/kernel-omap
Please compare that config with the current config to see what the difference is.

srinidhi

unread,
Jan 11, 2011, 12:15:00 PM1/11/11
to panda...@googlegroups.com
Hi Geetha,
Kernel which i was referring to is L 27.5.2(2.6.32). Yeah as you said it comes in tar file. Tar contains two kernels uImage and uImage_gfx.
Ya i ll diff two config files and will check out the difference. Thanks for the pointer.

Thondar, Geetha

unread,
Jan 11, 2011, 12:16:45 PM1/11/11
to panda...@googlegroups.com
Srinishi,
Details on L27.5.2 kernel...
http://omappedia.org/wiki/OMAP_Pandroid_Main#Kernel

source: git://gitorious.org/pandroid/kernel-omap
branch: origin/L27.5.2_panda
board config: android_4430panda_defconfig

srinidhi

unread,
Jan 11, 2011, 12:22:58 PM1/11/11
to panda...@googlegroups.com
Yeah i have already created local branch of this. I ll check out the difference.
Thanks

Srinidhi K V

unread,
Jan 12, 2011, 6:19:31 AM1/12/11
to panda...@googlegroups.com

Hi Geetha,
I could fix the problem, but the cause seems to be very peculiar for me
Ethernet gets initialized (with android_panda_defconfig) and NFS mount is success every time but fails only when i use MLO which i have built.

How did I build X-loader?
source: git://gitorious.org/pandaboard/x-loader.git
branch: origin/omap4_panda_L24.9
config: omap4430panda_config

I am unable to figure it out how they are linked. But that is what I have observed after some permutation and combinations.

Thanks
Srinidhi

Thondar, Geetha

unread,
Jan 12, 2011, 3:02:05 PM1/12/11
to panda...@googlegroups.com

Srinidhi K V

unread,
Jan 13, 2011, 12:42:56 AM1/13/11
to panda...@googlegroups.com
Hi Geetha,

That is how I built X-loader with the config setting given in this link
http://www.omappedia.com/wiki/OMAP_Pandroid_Main#Bootloader

Thanks
Srinidhi

luca ellero

unread,
Jan 28, 2011, 5:42:45 AM1/28/11
to panda...@googlegroups.com
Hi everybody,
I have seen that there are two version of x-loader supporting pandaboard:

http://gitorious.org/x-loader (omap4_panda_L24.9 branch, and also others)

http://gitorious.org/pandaboard/x-loader (master branch)

it seems that the first one is better because it distinguish between
versions 2.0 and 2.1.

Which one should be used?

Thanks

Regards
Luca Ellero

Joshi, Vikas

unread,
Jan 31, 2011, 2:16:27 AM1/31/11
to panda...@googlegroups.com
Probably use the one mentioned on the wiki: http://omappedia.org/wiki/PandaBoard - follow links for source trees and then for bootloader.
Helps keep wiki up-to-date too!

Vikas

luca ellero

unread,
Jan 31, 2011, 3:09:41 AM1/31/11
to panda...@googlegroups.com
Thanks Vikas
Luca
Reply all
Reply to author
Forward
0 new messages