2009-09-27 12:33:24     update u-boot in CM-BF537E in kernel

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

2009-09-27 12:33:24     update u-boot in CM-BF537E in kernel

Miquel Soler i Mir (SPAIN)

Message: 80526   

 

Hello to everybody.

 

I had a running kernel with MTD with 3 paritions

 

dev:    size   erasesize  name

mtd0: 00500000 00001000 "ROMfs"

mtd1: 00040000 00020000 "bootloader(nor)"

mtd2: 00280000 00020000 "uImage(nor)"

mtd3: 00140000 00020000 "jffs2(nor)"

 

I'm trying to update the u-boot

 

1.- I had u-boot.bin file with a complied and checked.

 

2.- I enable the dd in busybox ! It's correct?

 

If it's not correct where I can enable the "dd" in menuconfig

 

3.- I'm using this commands:

 

cd mnt

 

tftp -g -r u-boot.bin 192.168.0.18

 

flash_eraseall -j /dev/mtd1

 

dd if=/mnt/u-boot.bin of=/dev/mtd1 bs=128k

 

It's not working, the dd comand sems to be OK, but the u-boot is not working.

 

Nothing is serial port .

 

The wiki the command to update the kernel is

 

dd if=/tmp/uboot.bin of=/dev/mtd0 bs=128k conv=sync

 

 

 

But in my kernel the conv option is not working. Can be a problem of dd in busybox?

 

Thanks

 

 

 

Miquel Soler i Mir

 

 

 

TranslateQuoteReplyEditDelete

 

 

2009-09-27 16:42:25     Re: update u-boot in CM-BF537E in kernel

Frank Van Hooft (CANADA)

Message: 80528   

 

I'm not using the same flash type as you, so perhaps things work differently. But, I don't use dd. I simply use the copy command. Like this:

 

cp  /mnt/u-boot.bin  /dev/mtd1

 

Might be worth a try?

QuoteReplyEditDelete

 

 

2009-09-27 21:14:14     Re: update u-boot in CM-BF537E in kernel

Mike Frysinger (UNITED STATES)

Message: 80532   

 

like Frank says, dd/etc... doesnt really matter.  simply using `cat` should work fine too.

 

cat /tmp/uboot.bin > /dev/mtd1

 

why dont you try reading the mtd device and make sure things were written properly.  and try reading it with a booting system.

 

also, your flash_eraseall command makes no sense.  why are you using the -j option ?  did you read the --help and see what -j actually does ?

QuoteReplyEditDelete

 

 

2009-09-28 05:47:07     Re: update u-boot in CM-BF537E in kernel

Miquel Soler i Mir (SPAIN)

Message: 80564   

 

Thanks Frank and Mike.

 

Now I'm using

 

cd mnt

 

tftp -g -r u-boot.bin 192.168.0.18

 

flash_eraseall /dev/mtd1

 

cat /tmp/u-boot.bin > /dev/mtd1

 

I'm sorry for -j option, Copy & paste from jffs2 update it's not good.

 

Another question

 

It's possible make the same with the uImage.ext2?

 

Thanks

 

Miquel Soler i Mir

TranslateQuoteReplyEditDelete

 

 

2009-09-28 14:54:18     Re: update u-boot in CM-BF537E in kernel

Mike Frysinger (UNITED STATES)

Message: 80580   

 

so is the u-boot update working or not ?

 

i dont understand your uImage.ext2 question

QuoteReplyEditDelete

 

 

2009-09-28 15:02:11     Re: update u-boot in CM-BF537E in kernel

Miquel Soler i Mir (SPAIN)

Message: 80582   

 

The upgrade of u-boot is working fine.

 

I try with the kernel and is working fine.

 

I can update the u-boot and kernel.

 

1) for u-boot

 

cd mnt

 

tftp -g -r u-boot.bin 192.168.0.18

 

flash_erase /dev/mtd1

 

cat /mnt/u-boot.bin > /dev/mtd1

 

2) for kernel + filesystem

 

cd mnt

 

tftp -g -r uImage.ext2 192.168.0.18

 

flash_erase /dev/mtd2

 

cat /mnt/uImage.ext2 > /dev/mtd2

 

Both are working in CM-BF537E, when I have a little bit of time I will test in TCM-BF537.

 

Thanks for the help

 

Miquel Soler i Mir

Attachments

    Outcomes