[Gta04-owner] bootargs.scr - how does it work?

Dr. H. Nikolaus Schaller hns at goldelico.com
Thu Nov 22 14:02:07 CET 2012


Hi Radek,

Am 22.11.2012 um 13:55 schrieb Radek Polak:

> Hi,
> for me the bootargs.scr does not work. I have tried like 20 combinations of 
> everything, but i am unable to use my own bootargs.scr.
> 
> My setup:
> 
> /dev/mmcblk0p2 is EXT4 filesystem with QtMoko:
> 
> # ls /boot
> 
> # bootargs.scr uImage
> 
> # cat /boot/bootargs.scr
> 
> <snip>
> 
> setenv bootargs "console=ttyO2,115200n8 mpurate=${mpurate} vram=12M 
> omapfb.vram=0:8M,1:4M omapfb.mode=dvi:${dvimode} omapfb.debug=y 
> omapdss.def_disp=${defaultdisplay} root=${mmcroot} rootfstype=${mmcrootfstype} 
> realroot=xxx testarg"
> 
> </snip>
> 
> Note that I have added realroot=xxx and testarg.

Ok.

> 
> Now i power the phone off. Now i press POWER + AUX, this brings me to uboot 
> menu. I press the "SD 2" icon.
> 
> I'd expect realroot=xxx and testarg in /proc/cmdline, but it's not there. I am 

Yes it should be there.

> using CONFIG_CMDLINE_FROM_BOOTLOADER=y and i am 100% sure that the cmdline 
> content is not compiled in kernel.
> 
> # cat /proc/cmdline
> 
> console=ttyO2,115200n8 mpurate=1000 vram=12M omapfb.vram=0:8M,1:4M 
> omapfb.mode=dvi:1024x768MR-16 at 60 omapfb.debug=y omapdss.def_disp=lcd 
> root=/dev/mmcblk0p2 rw rootfstype=ext4,ext3,btrfs rootwait
> 
> What can be wrong? Do i have to use uboot mkimage utility to modify 
> bootargs.scr?

Did you simply edit the file? Yes, you need mkimage since it adds a checksum
which is used to detect if the script is ok. If it does not match it is simply skipped
without notice (well, there could be one on RS232 but nowhere else).

BR,
Nikolaus



More information about the Gta04-owner mailing list