This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

beagle bone black - kernel change by uboot console command

I want to chane the kernel.

How does the address of the kernel?

uboot, kernel and rootfs is applied to a single image?

 

  • Please describe what you want to do in more details. Also post the Linux version you are using.

  • My environment:
    u-boot-2014.07-g7e537bf ( am335x_boneblack_config )
    linux-3.14.26-g2489c02
    Beagle bone black

    U-Boot# mmc info
    Device: OMAP SD/MMC
    Manufacturer ID: fe
    OEM: 14e
    Name: MMC04
    Tran Speed: 52000000
    Rd Block Len: 512
    MMC version 4.41
    High Capacity: Yes
    Capacity: 3.7 GiB
    Bus Width: 4-bit

    I read the following URL.
    processors.wiki.ti.com/.../Linux_Core_U-Boot_User's_Guide

    U-Boot # mmc dev 0
    U-Boot # mmc rescan
    U-Boot # mmc dev 1
    U-Boot # fatload mmc 0 ${loadaddr} MLO
    U-Boot # mmc write ${loadaddr} 0x100 0x100
    U-Boot # mmc write ${loadaddr} 0x200 0x100
    U-Boot # fatload mmc 0 ${loadaddr} u-boot.img
    U-Boot # mmc write ${loadaddr} 0x300 0x400
    U-Boot # fatload mmc 0 ${loadaddr} rootfs.ext4
    U-Boot # mmc write ${loadaddr} 0x1000 ...rootfs.ext4 size in bytes divided by 512, in hex...

    But I don't understand the following.

    1. Why not write a 0 address?
    ex.
    U-Boot # fatload mmc 0 ${loadaddr} MLO
    U-Boot # mmc write ${loadaddr} 0x0 0x100

    2. I can't find the 'write address' from uboot source. (0x100, 0x200, 0x300)
     
    3. Address of zimage?

  • Hi,

    You can find load addresses (loadaddr) of u-boot, kernel image, fdt in u-boot source code.
    The start address of u-boot is the start of DDR address space 0x80000000. But have in mind that u-boot relocates itself to a higher address during boot.
    Closely inspect
    include/configs/ti_armv7_common.h
    include/configs/ti_am335x_common.h
    include/configs/am335x_evm.h
    In order to understand the process of loading the u-boot & kernel within DDR address space.

    Best Regards,
    Yordan