How to change x-loader and u-boot

Hi;

I want to edit and change x-loader.bin and u-boot.bin files to close
serial port communication during boot process.
I downloaded the source codes ;
http://gitorious.org/x-load-omap3
http://www.denx.de/wiki/U-Boot/SourceCode

but I could not find which code to change.

You might consider a career change.

— On Wed, 5/11/11, ayunus ayunusbayrak@gmail.com wrote:


> From: ayunus ayunusbayrak@gmail.com
> Subject: [beagleboard] How to change x-loader and u-boot
> To: “Beagle Board” beagleboard@googlegroups.com
> Date: Wednesday, May 11, 2011, 8:35 AM
>
> Hi;
>
> I want to edit and change x-loader.bin and u-boot.bin files to close
> serial port communication during boot process.
> I downloaded the source codes ;
> http://gitorious.org/x-load-omap3
> http://www.denx.de/wiki/U-Boot/SourceCode
>
> but I could not find which code to change.
>
> –
> You received this message because you are subscribed to the Google Groups “Beagle Board” group.
> To post to this group, send email to beagleboard@googlegroups.com.
> To unsubscribe from this group, send email to beagleboard+unsubscribe@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.

|

I am searching a solution not advice

Perhaps no one has ever thought of it.
Curious as to the purpose.
Other than not configuring the tty interface as recommended in the various startup options I can't immediately think of another way.

I've seen and experienced it not working, a classic example is specifying ttyS02 instead of tty02 for the -XM, so it should be easy to do if that is all you require.
Regards
Sid.

This shouldn't be too hard, specially if you look at the correct git tree's....

x-loader, disable: CFG_PRINTF

http://gitorious.org/x-loader/x-loader/blobs/master/include/configs/omap3530beagle.h#line31

u-boot:
http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/omap3_beagle.h;h=5cfa4cb69a8b040f2f14591dad378c1237e1b893;hb=19b54a701811220221fc4d5089a2bb18892018ca#l99

But once you do that, good luck debugging anything related to bootup,
as you'll have no easy way to figure out where it failed.. (i'd do it
in steps first, changeing u-boot first then x-loader after you know it
works..)

Regards,

I’ve seen and experienced it not working, a classic example is specifying ttyS02 instead of tty02 for the -XM, so it should be easy to do if that is all you require

you are rigth it is a solution for me if I can do but I think again I have to change the source code.

x-loader, disable: CFG_PRINTF

> http://gitorious.org/x-loader/x-loader/blobs/master/include/configs/omap3530beagle.h#line31

u-boot:
> http://git.denx.de/?p=u-boot.git;a=blob;f=include/configs/omap3_beagle.h;h=5cfa4cb69a8b040f2f14591dad378c1237e1b893;hb=19b54a701811220221fc4d5089a2bb18892018ca#l99

But once you do that, good luck debugging anything related to bootup,
as you’ll have no easy way to figure out where it failed… (i’d do it
in steps first, changeing u-boot first then x-loader after you know it
works…)

Thanks Robert it is the answer that I am looking for , If I change the codes and crosscompile it than, can I change directly from boot partitions with old ones or do I have to prepare sd card with them ?

u-boot.bin you can copy right over.. for mlo it's 50/50, weither you
have to redo the sd card..

Regards,

Actually for u-boot you can use CONFIG_SILENT_CONSOLE config option (add it to omap3_beagle.h), if this is defined then you can control the verbose with a simply environment variable

If you define the “silent” env variable, this is what happen:

  • Until the console devices have been initialized, output has to be
    suppressed by testing for the flag “GD_FLG_SILENT” in “gd->flags”.

  • When the console devices have been initialized, “stdout” and
    “stderr” are set to “nulldev”, so subsequent messages are
    suppressed automatically. Make sure to enable “nulldev” by
    #defining CONFIG_SYS_DEVICE_NULLDEV in your board config file.

  • When booting a linux kernel, the “bootargs” are fixed up so that
    the argument “console=” will be in the command line, no matter how
    it was set in “bootargs” before.

Lioric

I have closed the uart port writings from x-loader and u-boot.
If someone needs the recomplied MLO and U-boot.bin are attached

u-boot.bin (277 KB)

MLO (16.9 KB)

can you show how to build x-loader and u-boot?

i have problem, u-boot compiled by me don't boot.

commands (u-boot-2011.03):
--- 8< ---
make CROSS_COMPILE=arm-none-linux-gnueabi- devkit8000_config
make CROSS_COMPILE=arm-none-linux-gnueabi-
--- 8< ---

copy u-boot.bin on a sd and try to boot from card:

--- 8< ---
Starting OS Bootloader from MMC...

U-Boot 2011.03 (May 27 2011 - 00:45:22)

OMAP3530-GP ES3.1, CPU-OPP2, L3-165MHz, Max CPU Clock 600 mHz
OMAP3 DevKit8000 + LPDDR/NAND
I2C: ready
DRAM: 256
--- 8< ---

that's all, freeze.

Is it possible to disable printing of '40W' at the beginning?
#undef'ing CFG_PRINTF removes printf() (serial_print()), but '40W'
still makes its way to the tty =(
grep does not help to locate 40W source - it is probably written
symbol by symbol from some asm part =(

one_half_3544 wrote: