Project

General

Profile

Loading a New Kernal

Added by John Mladenik about 14 years ago

Sorry if this is redundant but my software guys are not available today and I am stuck. I need to load the Cianna kernal on my hardware in order to debug the LCD. I am on a windows system and the Ethernet does ping from uboot but not from linux so I think I need to do this through the serial port. Is this the correct command sequence to so what I want?

u-Boot> loadb 0xC0700000
(Kermit the file through Hyperterminal)
u-Boot> sf probe 0
u-Boot> sf erase 0x100000 0x280000
u-Boot> sf write 0xC0700000 0x100000 ${filesize}


I don't want to type these in if it will brick my board.

Thanks

John


Replies (3)

RE: Loading a New Kernal - Added by Tim Iskander about 14 years ago

John
I will get a new wiki page started for this, but for now...

Updating Software Images on the MityDSP-L138¶

This topic outlines what you need to do to update the FLASH (SPI, or NAND) images on a MityDSP-L138. This topic assumes that, at a minimum, the processor boots into u-boot. If this is not the case see the section on Programming a Dead Board.
ARM User Boot Loader (UBL)¶

The ARM user boot loader (UBL) is located at the base of SPI FLASH. Assuming you have a working Ethernet connection on your target and a tftp server available, you can program the UBL from the U-Boot prompt:

U-Boot> tftp C0700000 <tftp server ip>:<path to file>
u-Boot> sf probe 0
u-Boot> sf erase 0x100000 0x280000
u-Boot> sf write 0xC0700000 0x100000 ${filesize}

If you do not have a working Ethernet connection, you can also use the serial port to program the UBL from the U-Boot prompt:

u-Boot> loadb 0xC0700000
(Kermit the file through Hyperterminal)
u-Boot> sf probe 0
u-Boot> sf erase 0x100000 0x280000
u-Boot> sf write 0xC0700000 0x100000 ${filesize}

After the loadb is entered, the target will wait for the program over the serial line. If you are using something like Tera-Term, you can send a file using the Kermit protocol.

RE: Loading a New Kernal - Added by John Mladenik about 14 years ago

Is the UBL the same as a kernal? Our software guys sent me a file they called the kernal and told me to replace the existing kernal on my hardware. Will

I think the kernal they have compiled replaces some of your drivers with Cianna specific drivers specifically the LCD. the file they called uImage3 with no extension on it at all.

so I type these commands

U-Boot> loadb C0000000
(kermit file over)
U-Boot> sf probe 0
U-Boot> sf erase 0 10000
U-Boot> sf write C0000000 0 ${filesize}

and then when I reboot I will have the new kernal installed with the Cianna drivers for the LCD?

RE: Loading a New Kernal - Added by Michael Williamson about 14 years ago

No. If you do this you will erase the UBL and u-boot. Please don't execute this command as you have typed.

Look at the bottom section of this wiki page for instructions as to how to FLASH the kernel. A new wiki page will be added clarifying the boot process for this platform.

-Mike

    (1-3/3)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)