2008-09-10 06:51:05     Error when booting new Kernel on CM-BF537E

Document created by Aaronwu Employee on Aug 7, 2013
Version 1Show Document
  • View in full screen mode

2008-09-10 06:51:05     Error when booting new Kernel on CM-BF537E

ivan ucles (GERMANY)

Message: 61882   

 

Hi all,

 

i have problem when booting a new image of the kernel. I get the following:

 

 

 

## Booting image at 01000000 ...

   Image Name:   uClinux Kernel and ext2

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1990305 Bytes =  1.9 MB

   Load Address: 00001000

   Entry Point:  00156000

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 156000

����f▒~f����f�����▒x��x▒�▒▒x�������`����▒▒▒▒▒�f▒�f�����~��▒�▒����`�����ff�~▒x��▒�~����▒~f����f�����▒��▒�▒▒▒�`�����~�������`▒▒fffx��fx��▒���x��x▒~▒▒x��f`ff▒x▒▒�������x~f��fx▒f▒f��fx���~��xfx����`������fx怘

 

 

 

Here are the steps i followed. I supossed i skipped something or did something wrong. Maybe somebody could help me.

 

 

 

1. Install: blackfin-toolchain-08r1.5-14.i386.rpm

 

                 blackfin-toolchain-elf-gcc-4.1-08r1.5-14.i386.rpm

 

                 blackfin-toolchain-uclibc-default-08r1.5-14.rpm

 

2. Unpack uClinux-dist-2008R1.5-RC3

 

                # make menuconfig,   then i select Vendor (Bluetechnix) and product (CM-BF537E)

 

               I also add the driver for can support and Can4linux examples.

 

               Then,  # make

 

3. Using Kermit i load the new created image (uImage) to the default address (0x01000000)

 

    Then i write in u-boot prompt: bootm 1000000

 

 

 

What am i doing wrong?

 

Thanks in advance

 

 

 

 

QuoteReplyEditDelete

 

 

2008-09-10 07:30:10     Re: Error when booting new Kernel on CM-BF537E

Robin Getz (UNITED STATES)

Message: 61884   

 

Ivan:

 

It could just be a baud rate problem. Did you check that? (change the baud rates on your term app, and see if any work by hitting return a few times - not very techinical debug - but it is quick and tells you where the problem is).

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-10 07:52:22     Re: Error when booting new Kernel on CM-BF537E

ivan ucles (GERMANY)

Message: 61888   

 

Robin:

 

I set the configuration of kermit on the .kermrc file:

 

set line /dev/ttyUSB0

define sz !sz \%0 > /dev/ttyUSB0 < /dev/ttyUSB0

set speed 115200

set carrier-watch off

set prefixing all

set parity none

set stop-bits 1

set modem none

set file type bin

set file name lit

set flow-control none

set prompt "Linux Kermit> "

 

which are the values i got from the board's documentation.

 

And when i write 'loadb' in the u-boot prompt i get:

 

CM-BF537E> loadb

## Ready for binary (kermit) download to 0x01000000 at 115200 bps...

 

So i think it's not a problem of baudrate.

 

I am using the correct cross-compiler, rigth?

 

Ivan

QuoteReplyEditDelete

 

 

2008-09-10 10:51:49     Re: Error when booting new Kernel on CM-BF537E

Robin Getz (UNITED STATES)

Message: 61892   

 

Ivan:

 

Just because U-Boot is working at the correct baud rate (115200) doesn't mean the kernel is

 

In U-Boot, what are your bootargs? if it includes "console=ttyBF0,57600" - the kernel is comming out at 57600 baud.

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-12 07:27:33     Re: Error when booting new Kernel on CM-BF537E

ivan ucles (GERMANY)

Message: 62045   

 

Robin:

 

You were right, if i specify 'console=ttyBF0,115200' then at least i can see what happens.

 

The problem now is that i get a kernel panic:

 

VFS: Cannot open root device "mtdblock3" or unknown-block(0,0)

Please append a correct "root=" boot option; here are the available partitions:

1f00 5120 mtdblock0 (driver?)

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

 

 

 

 

I also tried with 'root=/dev/mdblock0 console=ttyBF0,115200' and i get the same error

 

I do not understand well which one should i choose.

 

If i do: cat /proc/mtd i get:

 

 

 

dev:         size          erasesize          name

 

mtd0:   00040000  00020000   Bootloader

 

mtd1:   001c0000  00020000   Kernel

 

mtd2:   00200000  00020000   JFFS2

 

mtd3:   00400000  00001000   ROMfs

 

 

 

Thanks,

 

Ivan

QuoteReplyEditDelete

 

 

2008-09-12 08:30:39     Re: Error when booting new Kernel on CM-BF537E

Robin Getz (UNITED STATES)

Message: 62046   

 

Ivan:

 

It depends on how you attached the root file system. (ext2, initrd, jffs2) - there are many answers - depending on what you are trying to do. My first question is how can you do "cat /proc/mtd" - if your kernel is not booting ?

 

-Robin

QuoteReplyEditDelete

 

 

2008-09-12 09:10:29     Re: Error when booting new Kernel on CM-BF537E

ivan ucles (GERMANY)

Message: 62050   

 

That's what i get in the kernel that was preinstalled on the board.

 

Now i'm trying to update it in order to add a driver for CAN bus. When i recompiled the kernel i selected jffs2, and i got the files rootfs.ext2 and rootfs.jffs2 in the images folder. But i only transfered uImage to my board's RAM.

 

Should i put the .ext2 or the jffs2 in RAM too?

QuoteReplyEditDelete

 

 

2008-09-12 10:21:04     Re: Error when booting new Kernel on CM-BF537E

Mike Frysinger (UNITED STATES)

Message: 62054   

 

loading random files into random locations into ram wont suddenly get the kernel to know anything about them

 

review your kernel boot output to see what root filesystems are available, and read the FAQ about this (... VFS unable to mount rootfs ...):

http://docs.blackfin.uclinux.org/doku.php?id=faq

 

QuoteReplyEditDelete

 

 

2008-09-15 07:54:23     Re: Error when booting new Kernel on CM-BF537E

ivan ucles (GERMANY)

Message: 62169   

 

Hi,

 

i read the faq.

 

I'm trying to store in flash both rootfs.jffs2 and uImage.

 

The problem is that their sizes are 1.4 and 1.9M, repectively. And i only know how to address 2M of my 4M flash memory.

 

To access the other 2M i have to change the flag PF4.'Where' can i change it?

 

i do cp.b to copy from ram to flash. Can i pass an argument to cp.b so that it writes in the other bank of the flash?how?

 

the only help i get is

 

Usage:

cp - memory copy

 

 

Thanks in advance

QuoteReplyEditDelete

 

 

2008-09-16 01:16:35     Re: Error when booting new Kernel on CM-BF537E

Mike Frysinger (UNITED STATES)

Message: 62201   

 

it doesnt make sense to use both of those files at the same time.  please read the documentation:

http://docs.blackfin.uclinux.org/doku.php?id=uclinux-dist:images

 

as for toggling pf4, read the tinyboard documentation.  it tells you how to use pf4 to switch the addressable banks.

 

cp only operates on memory addresses.  it knows nothing of bank switching.  you must do that yourself on the fly.

QuoteReplyEditDelete

 

 

2008-09-17 07:26:19     Re: Error when booting new Kernel on CM-BF537E

ivan ucles (GERMANY)

Message: 62308   

 

Hi,

 

i didn't realise that the file system was already attached in the uImage.

 

i stored uImage in flash and managed to boot it.

 

thanks!

Attachments

    Outcomes