bootargs on pandaboard es

1,891 views
Skip to first unread message

dagentooboy

unread,
Apr 25, 2012, 3:53:25 PM4/25/12
to Android Building
So I have managed to build AOSP several times and I can't find any
info on how to edit the bootargs. Linaro has a boot.scr file but I
can't find anything like that after the fasboot. Someone please HELP!!!

dagentooboy

unread,
Apr 26, 2012, 5:08:42 PM4/26/12
to Android Building
Anyone?

dagentooboy

unread,
Apr 27, 2012, 3:18:18 PM4/27/12
to Android Building
I really need an answer to this one. Has anyone figured out how to
change the bootargs?

Jean-Baptiste Queru

unread,
Apr 27, 2012, 3:23:26 PM4/27/12
to android-...@googlegroups.com
Android really lives on the other side of the kernel. How the
bootloader passes arguments to the kernel is likely to be highly
device-specific. I suspect that even the android-kernel list might not
know that. You might have to go back to the PandaBoard side of things
for more information on the PandaBoard bootloader.

JBQ
> --
> You received this message because you are subscribed to the "Android Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en



--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Martin Storsjö

unread,
Apr 27, 2012, 3:33:52 PM4/27/12
to Android Building
Iirc, for fastboot, the args corresponding to what's in boot.scr are
somewhere hardcoded in the bootloader which is only available as a binary
in AOSP. However, a slightly easier way to solve it, which I've used, is
to rebuild the kernel - a set of default bootargs (to which the bootloader
ones are appended) are set in the kernel config. Look for CONFIG_CMDLINE
in arch/arm/configs/panda_defconfig - change/add there and rebuild the
kernel.

// Martin

Benedikt Dietrich

unread,
Apr 28, 2012, 7:28:06 PM4/28/12
to Android Building
Hi,

I rebuilt u-boot for the panda board es (ICS 4.0.3). It is straight
forward and worked for me without any problems:

git clone git://git.omapzoom.org/repo/u-boot.git uboot
export CROSS_COMPILE=/path/to/aosp/prebuilt/linux-x86/toolchain/arm-
eabi-4.4.3/bin/arm-eabi-
export ARCH=arm
cd uboot
git checkout omap4_dev
make omap4430panda_config
make

You should make your changes in uboot/include/configs/omap4430panda.h
before running make
- to increase BOOTDELAY to e.g. 5, then it is possible to interrupt
auto boot and you can configure the bootargs manually (would have to
do this on each boot) or
- change the following line: #define CONFIG_BOOTARGS
"console=ttyO2,115200n8 mem=512M"

To install put pandaboard in fastboot mode and run
fastboot flash path/to/uboot/build/u-boot.bin

Best regards,
Benedikt

dagentooboy

unread,
Apr 30, 2012, 10:08:25 AM4/30/12
to Android Building
The CONFIG_CMDLINE edit seems to work great. Thanks

I already tried the u-boot rebuild. Maybe a combination of both is
what I need.

Chris Bainbridge

unread,
May 9, 2012, 1:30:14 PM5/9/12
to android-...@googlegroups.com
On Sunday, April 29, 2012 12:28:06 AM UTC+1, Benedikt Dietrich wrote:

You should make your changes in uboot/include/configs/omap4430panda.h
before running make
- to increase BOOTDELAY to e.g. 5, then it is possible to interrupt
auto boot and you can configure the bootargs manually (would have to
do this on each boot) or
- change the following line: #define CONFIG_BOOTARGS
"console=ttyO2,115200n8 mem=512M"

Changing the BOOTDELAY in omap4430pand.h works. Changing the CONFIG_BOOTARGS does not, also booting u-boot and then doing 'setenv bootargs' does not work. It appears that u-boot can not set the boot args.  In fact, the u-boot binary included in the aosp repository contains the following boot args: 

$ strings device/ti/panda/bootloader.bin|grep bootargs=
bootargs=console=ttyO2,115200n8 mem=512M init=/init vram=32M omapfb.vram=0:16M androidboot.console=ttyO2

But when you boot the kernel the output shows:

Kernel command line: console=ttyO2,115200n8 mem=1G androidboot.console=ttyO2 androidboot.serialno=5D0E000600000001 androidboot.bootloader=U-Boot_1.1.4-gedeced79

Which is different. Either the omapzoom/aosp u-boot can not set boot args, or the kernel is ignoring the boot args passed by u-boot and instead using some hard-coded value? 

Which repository contains the source for the pre-built kernel in device/ti/panda/kernel?

Martin Storsjö

unread,
May 9, 2012, 1:58:55 PM5/9/12
to android-...@googlegroups.com
On Wed, 9 May 2012, Chris Bainbridge wrote:

> Which repository contains the source for the pre-built kernel in
> device/ti/panda/kernel?

It's in https://android.googlesource.com/kernel/omap. The commit message
in device/ti/panda/kernel points out the exact revision from this repo
that has been used to build it, but it should correspond to the
android-omap-panda-3.0 branch.

// Martin
Reply all
Reply to author
Forward
0 new messages