Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
20 years ago

the question of the starting of uclinux by u-boot

when i download the kernel and filesystem of uclinux to the flash 0x0 ,

uclinux can rightly startup. but, when i use the u-boot to startup the

kernel and filesystem of uclinux by the bootm command, the program is

always running the half to stop.

follows:

U-Boot 1.1.3 (Dec 28 2005 - 19:11:13)

CPU : Nios-II

SYSID : d4a9fbb0, Mon Dec 19 06:36:32 2005

BOARD : Altera EP-1C6

*** Warning - bad CRC, using default environment

==> bootm 0x00040000# # Booting image at 00040000 ...

Image Name: 2.6.4 kernel for EP1C6

Image Type: Nios-II Linux Kernel Image (gzip compressed)

Data Size: 459971 Bytes = 449.2 kB

Load Address: 00800000

Entry Point: 00800000

Verifying Checksum ... OK

Uncompressing Kernel Image ... OK

my u-boot is downloaded the address of 0x00000000;the kernel of uclinux

is downloaded the address of 0x00040000;the filesystem of uclinux is

downloaded the address of 0x00150000.

my load address is 0x00800000;my entry address is 0x00800000.(0x00800000

is my sdram the base address.)

why? can someone help me!

thanks!

16 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi Scott:

    i remake the kernel by the microtronic cyclone development board and the microtronic psk development board. but, the problem is same to the before.

    the output:

    ==> bootm 00040000# # Booting image at 00040000 ...

    Image Name: Linux Kernel Image

    Image Type: Nios-II Linux Kernel Image (gzip compressed)

    Data Size: 460103 Bytes = 449.3 kB

    Load Address: 00800000

    Entry Point: 00800000

    Verifying Checksum ... OK

    Uncompressing Kernel Image ... OK

    cursor winke( halt )

    Because my sdram is 16 bits in my development board. but, the sdram is 32 bits in the altera and microtronic. maybe it be the problem? how to solve it ?

    i want to know how to modify settings the kernel of uclinux or the other good mothed.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    1. maybe you should check the hardware of your board in more details.

    you should run from onchip memory and do a lot of sdram tests, and check the timing/functionality of your board.

    2. if you want to run uclinux, it is better to use S-core, with a small icache, eg 512Bytes.

    the E-core is too slow. If you use CycloneII, use hw mul.

    3. you can use initramfs with the kernel. so that you need only one kernel image to boot, instead of three. After you are comfortable with uClinux, you can try compressed loader then.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi lucky,

    This is very strange -- I've been using u-boot for quite some time without any major

    problems ... so a few more questions ... I'm sure we'll eventually figure this out:

    1. Where did you get the u-boot source code, and when?

    2. Did you enable the JTAG UART in u-boot? i.e. -- are you using the JTAG UART

    for both u-boot and the kernel ... or are you using a serial UART for u-boot and

    the JTAG UART for the kernel?

    Also, please try the following with an uncompressed u-boot image file:

    -- Program the image to flash as you normally do: @ 0004_0000

    -- Post the output of u-boot command:

    ==> md.l 00400040 8

    -- Tell us what happens when you try this from the u-boot prompt:

    ==> go 00040040

    This will jump directly to the kernel entry point in flash for an uncompressed image

    file (the u-boot header is 0x40 bytes long; the kernel binary immediately follows

    the kernel. Doing this will force the kernel to relocate itself.

    Regards,

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi, scott: (thank you very much for your help)

    "1. Where did you get the u-boot source code, and when?"

    i am a friend with liangYi. my u-boot is sent to me from liangYi. and liangYi's u-boot is sent to him from you. about in october 2005.

    "2. Did you enable the JTAG UART in u-boot? i.e. -- are you using the JTAG UART

    for both u-boot and the kernel ... or are you using a serial UART for u-boot and

    the JTAG UART for the kernel?"

    i can use a serial UART for u-boot, but can not use the JTAG UART for the kernel,because i have not startupped the kernel.

    "3. Also, please try the following with an uncompressed u-boot image file:

    -- Program the image to flash as you normally do: @ 0004_0000

    -- Post the output of u-boot command:"

    the output:

    U-Boot 1.1.3 (Jan 3 2006 - 10:17:49)

    CPU : Nios-II

    SYSID : d4a9fbb0, Mon Dec 19 06:36:32 2005

    BOARD : Altera EP-1C6

    *** Warning - bad CRC, using default environment

    ==> md.l 00400040 8

    00400040: 197fff26 002ee03a 00005206 003ff506 &...:....R....?.

    00400050: 002ee03a 00003206 203ee83a 003fff06 :....2..:.> ..?.

    ==> go 00040040# # Starting application at 0x00040040 ...

    (cursor winking in windows and program halt)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi lucky,

    Just to be sure I understand:

    -- You configured u-boot to use the serial UART, and

    -- You configured the kernel to use the JTAG UART.

    Yes?

    --Scott
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    hi scott:

    i have already solved the problem. it is startupping the kernel.

    in the past :

    -- I configured u-boot to use the serial UART, and

    -- I configured the kernel to use the JTAG UART.

    now :

    -- I configur u-boot to use the serial UART, and

    -- I configur the kernel to use the UART.

    thank you very much for your help!

    the other question is:

    U-Boot 1.1.3 (Jan 3 2006 - 10:17:49)

    CPU : Nios-II

    SYSID : d4a9fbb0, Mon Dec 19 06:36:32 2005

    BOARD : Altera EP-1C6

    *** Warning - bad CRC, using default environment

    why is the "bad CRC"?

    how to setting environment variety, the problem of "bad CRC" can be solved?