Skip to contentSkip to conversation

tegra: Expand Nyan-big support

PATCH New Matthew Gorski 5 participants 29 messages May 1, 2017 – Jun 5, 2017 3 messages not in the archive

lore
Share & tools
lore
#0 lore raw

cover tegra: Expand Nyan-big support

I am porting u-boot to nyan_big and need some input. I have been searching high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

I followed building instructions here: https://www.chromium.org
/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the- samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks of flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

#1 lore raw

cover tegra: Expand Nyan-big support

Hi Matthew,

Quoted 11 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra: Expand Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 15 lines

I followed building instructions here:
https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 6 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks of flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#2 lore raw

cover tegra: Expand Nyan-big support

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE
settings with no luck.

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:
Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16 MB kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs <MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

<https://github.com/chromeos-nvidia-androidtv/gnu-linux-on-acer-chromebook-13#copy-data-to-the-sd-card>Copy
data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

Quoted 53 lines · Simon Glass

Hi Matthew,

Quoted 1 line · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been

searching

Quoted 1 line

high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:

Expand

Quoted 9 lines

Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 3 lines

I followed building instructions here:
https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 12 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 6 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks of flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#3 lore raw

cover tegra: Expand Nyan-big support

Hi Matthew,

Quoted 5 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 12 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16 MB kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs <MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

Quoted 57 lines · Simon Glass
Quoted 53 lines

Hi Matthew,

Quoted 6 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

Quoted 7 lines

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 16 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 6 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks of flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#4 lore raw

cover tegra: Expand Nyan-big support

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the

kernel

Quoted 2 lines

load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 5 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16

MB

Quoted 7 lines

kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs <MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 20 lines · Simon Glass
Quoted 18 lines

Hi Matthew,

Quoted 13 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Quoted 7 lines
Quoted 7 lines

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 4 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks

of

Quoted 15 lines
Quoted 13 lines
Quoted 3 lines

flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

A message that is not in the archive (sent off-list or not yet received): CALr8Vo1R45iASk_1h7vDgcdaG=gQ3jvWXz4X4jchu_+6yfrfyA@mail.gmail.com

#6 lore raw

cover tegra: Expand Nyan-big support

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]> wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the

kernel

Quoted 2 lines

load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 5 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16

MB

Quoted 7 lines

kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs <MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 20 lines · Simon Glass
Quoted 18 lines

Hi Matthew,

Quoted 13 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Quoted 7 lines
Quoted 7 lines

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 4 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks

of

Quoted 15 lines
Quoted 13 lines
Quoted 3 lines

flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#7 lore raw

cover tegra: Expand Nyan-big support

Hi Matthew,

Quoted 10 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here: http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra one has anything different from mainline at present.

- Simon

Quoted 124 lines · Matthew Gorski

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 6 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel
load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 13 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16 MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs <MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 59 lines · Simon Glass
Quoted 55 lines

Hi Matthew,

Quoted 6 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

Quoted 7 lines

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 17 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 7 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks of
flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#8 lore raw

cover tegra: Expand Nyan-big support

Quoted 18 lines · Simon Glass

Hi Matthew,

Quoted 7 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in

developer

Quoted 3 lines

mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here: http://git.denx.de/?p=u-boot.
git;a=summary

Quoted 6 lines

There are various custodian branches but I don't believe the tegra one has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y
CONFIG_VIDEO_TEGRA124=y

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

Do I need to adjust:

            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO
THE IMAGE STARTS AT THE RIGHT OFFSET";

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};

please let me know if I should also adjust the SPL CONFIG even though I am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing-nv-U-Boot-chained-U-Boot-method-

Quoted 132 lines
Quoted 15 lines · Matthew Gorski

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 6 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel
load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

Quoted 16 lines

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 8 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16 MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t

rootfs

Quoted 19 lines
Quoted 5 lines

<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

Quoted 7 lines

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in

developer

Quoted 22 lines

mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 17 lines · Simon Glass
Quoted 15 lines

Hi Matthew,

Quoted 11 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 5 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1

--config

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard

mmcblk1p1

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Any help is appreciated I have only gotten a blank screen after weeks of
flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the

u-boot

Quoted 16 lines
Quoted 13 lines
Quoted 11 lines
Quoted 1 line

community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#9 lore raw

cover tegra: Expand Nyan-big support

Quoted 93 lines · Matthew Gorski
Quoted 19 lines · Simon Glass

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have

to

Quoted 4 lines

flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in

developer

Quoted 3 lines

mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here: http://git.denx.de/?p=u-boot.g
it;a=summary

Quoted 6 lines

There are various custodian branches but I don't believe the tegra one has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y
CONFIG_VIDEO_TEGRA124=y

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

Do I need to adjust:

            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
    description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";
    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 5 lines

please let me know if I should also adjust the SPL CONFIG even though I am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing-nv-U-Boot-chained-U-Boot-method-

Okay I tried a couple kernelpart.bin builds with the stock 0x80110000 CONFIG_SYS_TEXT_BASE and no adjustment to CONFIG_SPL_TEXT_BASE still no u-boot prompt.

Tried CONFIG_SYS_TEXT_BASE 0x8010E000 and still no command prompt.

What setting should I use for SPL? CONFIG_SPL_TEXT_BASE ?

I read from the older thread I should be getting a command prompt and I am familiar with porting u-boot as I have ported my own custom builds to Toradex Apalis TK1 and also Jetson TK1 boards.

I always used the L4T SYS TEXT BASE: define CONFIG_SYS_TEXT_BASE 0x8010E000

Quoted 140 lines
Quoted 138 lines
Quoted 2 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]>

Quoted 13 lines · wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 6 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel
load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

Quoted 13 lines

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 5 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> #

16

Quoted 3 lines
Quoted 3 lines

MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t

rootfs

Quoted 14 lines
Quoted 5 lines

<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

Quoted 8 lines

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have

to

Quoted 4 lines

flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in

developer

Quoted 14 lines

mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 9 lines · Simon Glass
Quoted 7 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20]

tegra:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/

?h=nyan-big

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 5 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1

--config

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard

mmcblk1p1

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Any help is appreciated I have only gotten a blank screen after

weeks

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

of
flashing. I can boot custom v3.10 kernels so I assume I am using

the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

correct building procedure. Thanks in advance for help from the

u-boot

Quoted 16 lines
Quoted 13 lines
Quoted 11 lines
Quoted 1 line

community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#10 lore raw

cover tegra: Expand Nyan-big support

In reply to Matthew Gorski

Hi Matthew,

Quoted 31 lines · Matthew Gorski
Quoted 13 lines · Simon Glass

Hi Matthew,

Quoted 9 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

Quoted 9 lines
Quoted 1 line

What mainline branch should I try?

There's only one mainline, here: http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra one has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 11 lines

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

Do I need to adjust:

Quoted 8 lines
            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
    description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it calcualted?

Quoted 33 lines
    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 3 lines

please let me know if I should also adjust the SPL CONFIG even though I am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing-nv-U-Boot-chained-U-Boot-method-

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on nyan also. Perhaps someone at collabora would know? Did you search the mailing list?

Regards,
Simon

Quoted 127 lines
Quoted 125 lines
Quoted 125 lines · Matthew Gorski

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 6 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel
load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 13 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16 MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs <MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 59 lines · Simon Glass
Quoted 55 lines

Hi Matthew,

Quoted 6 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

Quoted 7 lines

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not sure about the situation with the downstream trees.

Quoted 17 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 7 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks of
flashing. I can boot custom v3.10 kernels so I assume I am using the correct building procedure. Thanks in advance for help from the u-boot community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be able to take a look at some point.

How are you building your SD card? Are you following some instructions from somewhere?

Regards,
Simon

#11 lore raw

cover tegra: Expand Nyan-big support

Quoted 67 lines · Simon Glass

Hi Matthew,

Quoted 11 lines · Matthew Gorski
Quoted 7 lines · Simon Glass

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't

have to

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in

developer

Quoted 5 lines
Quoted 5 lines
Quoted 3 lines

mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here: http://git.denx.de/?p=u-boot.

git;a=summary

Quoted 11 lines
Quoted 6 lines

There are various custodian branches but I don't believe the tegra one has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.

com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 9 lines

Do I need to adjust:

            load = <0>;
            entry = <0>;
Quoted 8 lines
Quoted 4 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE

IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it calcualted?

I am really not sure how the padding was calculated. I just assumed this kernel-big.its FIT config was correct for nyan_big. I will try using my working linux kernel fit config.

Quoted 41 lines
Quoted 34 lines
    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 1 line

please let me know if I should also adjust the SPL CONFIG even though I

am chainbooting uboot:

Quoted 2 lines

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC- Installing-nv-U-Boot-chained-U-Boot-method-

Quoted 8 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on nyan also. Perhaps someone at collabora would know? Did you search the mailing list?

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting nyan to u-boot directly bypassing SPL?

Quoted 150 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]>

Quoted 13 lines · wrote:
Quoted 13 lines
Quoted 13 lines · Simon Glass

Hi Matthew,

Quoted 6 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel
load address but I am unable to find anything. I have tried multiple CONFIG_SYS_TEXT_BASE settings with no luck.

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for Tegra)

rootfs:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Did these instructions come from a web site somewhere?

Quoted 5 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE>

# 16

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t

rootfs

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already

in

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 10 lines

place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

How are you actually making it boot? Is this in dev mode with USB boot enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't

have to

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in

developer

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 2 lines

On Mon, May 1, 2017 at 11:14 AM, Simon Glass <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20]

tegra:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm

not

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

sure about the situation with the downstream trees.

Quoted 5 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its

kernel-u-boot

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1

--config

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard

mmcblk1p1

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Any help is appreciated I have only gotten a blank screen after

weeks

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

of
flashing. I can boot custom v3.10 kernels so I assume I am using

the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

correct building procedure. Thanks in advance for help from the

u-boot

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

community.

It is possible that it needs a particular address due to limitations in the FIT support on Nyan. I'm not sure what it is but might be

able

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

to take a look at some point.

How are you building your SD card? Are you following some

instructions

Quoted 11 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines
Quoted 4 lines

from somewhere?

Regards,
Simon

#12 lore raw

cover tegra: Expand Nyan-big support

Hi Matthew,

Quoted 130 lines · Matthew Gorski
Quoted 69 lines · Simon Glass

Hi Matthew,

Quoted 35 lines · Matthew Gorski
Quoted 18 lines · Simon Glass

Hi Matthew,

Quoted 8 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

Quoted 5 lines

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 8 lines

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra one has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 16 lines

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

Do I need to adjust:

            load = <0>;
            entry = <0>;
Quoted 7 lines
Quoted 5 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it calcualted?

I am really not sure how the padding was calculated. I just assumed this kernel-big.its FIT config was correct for nyan_big. I will try using my working linux kernel fit config.

Quoted 46 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 5 lines

please let me know if I should also adjust the SPL CONFIG even though I am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing-nv-U-Boot-chained-U-Boot-method-

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on nyan also. Perhaps someone at collabora would know? Did you search the mailing list?

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Regards,
Simon

Quoted 156 lines
Quoted 154 lines
Quoted 154 lines
Quoted 152 lines
Quoted 152 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]> wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 7 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 3 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 16 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE> # 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already in
place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 74 lines
Quoted 69 lines · Simon Glass

Hi Matthew,

Quoted 7 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

Quoted 8 lines

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not
sure about the situation with the downstream trees.

Quoted 23 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Quoted 8 lines

Any help is appreciated I have only gotten a blank screen after weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am using the
correct building procedure. Thanks in advance for help from the u-boot
community.

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but might be able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

#13 lore raw

cover tegra: Expand Nyan-big support

First off THANK YOU Simon for all the help and time. I am making progress now.

I found this here: https://lists.denx.de/pipermail/u-boot/2017-
February/281572.html

I adjusted my FIT its and now the display flashes like its entering u-boot but immediately reboots into chromeos usb recovery. I used the same fit config I am using for a regular kernel and I am using mainline master branch.

/dts-v1/;

/ {
    description = "Chrome OS kernel image with one or more FDT blobs";
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};

How do I adjust the padding in the FIT its file as shown here: #address-cells = <1>; and is it needed at all?

+/ {
+ description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";
+ #address-cells = <1>;
+ images {
+ kernel at 1{

Quoted 321 lines · Simon Glass

Hi Matthew,

Quoted 15 lines · Matthew Gorski
Quoted 12 lines · Simon Glass

Hi Matthew,

Quoted 8 lines · Matthew Gorski
Quoted 4 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski <[email protected]>

Quoted 12 lines · wrote:
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra

one

Quoted 25 lines
Quoted 25 lines
Quoted 9 lines
Quoted 4 lines

has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.com/cgit/user/tomeu/u-boot.

git/commit/?h=nyan-big

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Do I need to adjust:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO

THE

Quoted 44 lines
Quoted 3 lines
Quoted 1 line

IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it calcualted?

I am really not sure how the padding was calculated. I just assumed this kernel-big.its FIT config was correct for nyan_big. I will try using my working linux kernel fit config.

Quoted 36 lines
Quoted 36 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};

please let me know if I should also adjust the SPL CONFIG even though

I

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC- Installing-nv-U-Boot-chained-U-Boot-method-

Quoted 6 lines
Quoted 6 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on nyan also. Perhaps someone at collabora would know? Did you search the mailing list?

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Regards,
Simon

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]> wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see

the

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 4 lines

kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 3 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Did these instructions come from a web site somewhere?

Quoted 5 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK

DEVICE>

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not

already

Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 11 lines

in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · Simon Glass

Hi Matthew,

Quoted 1 line · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have

been

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not
sure about the situation with the downstream trees.

Quoted 1 line
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am

using

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

the
correct building procedure. Thanks in advance for help from

the

Quoted 24 lines
Quoted 22 lines
Quoted 22 lines
Quoted 20 lines
Quoted 20 lines
Quoted 17 lines
Quoted 15 lines
Quoted 2 lines

u-boot
community.

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but might be able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

#14 lore raw

cover tegra: Expand Nyan-big support

In reply to Simon Glass
Quoted 147 lines · Simon Glass

Hi Matthew,

Quoted 15 lines · Matthew Gorski
Quoted 12 lines · Simon Glass

Hi Matthew,

Quoted 8 lines · Matthew Gorski
Quoted 4 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski <[email protected]>

Quoted 12 lines · wrote:
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra

one

Quoted 25 lines
Quoted 25 lines
Quoted 9 lines
Quoted 4 lines

has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for the console to display command prompt.

The FIT config I am using is from here:https://git.collabora.com/cgit/user/tomeu/u-boot.

git/commit/?h=nyan-big

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Do I need to adjust:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO

THE

Quoted 44 lines
Quoted 3 lines
Quoted 1 line

IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it calcualted?

I am really not sure how the padding was calculated. I just assumed this kernel-big.its FIT config was correct for nyan_big. I will try using my working linux kernel fit config.

Quoted 36 lines
Quoted 36 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};

please let me know if I should also adjust the SPL CONFIG even though

I

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC- Installing-nv-U-Boot-chained-U-Boot-method-

Quoted 6 lines
Quoted 6 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on nyan also. Perhaps someone at collabora would know? Did you search the mailing list?

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting nyan to u-boot directly bypassing SPL?

Quoted 8 lines

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and reboots into recovery but if I do use #address-cells = <1>; in my FIT config I get a blank screen
so something is working when not using the padding.

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 166 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]> wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <[email protected]>

Quoted 3 lines · wrote:
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see

the

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 4 lines

kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 3 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Did these instructions come from a web site somewhere?

Quoted 5 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK

DEVICE>

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not

already

Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 34 lines
Quoted 11 lines

in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 1 line
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines · Simon Glass

Hi Matthew,

Quoted 1 line · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have

been

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm not
sure about the situation with the downstream trees.

Quoted 1 line
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Any help is appreciated I have only gotten a blank screen after weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am

using

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

the
correct building procedure. Thanks in advance for help from

the

Quoted 24 lines
Quoted 22 lines
Quoted 22 lines
Quoted 20 lines
Quoted 20 lines
Quoted 17 lines
Quoted 15 lines
Quoted 2 lines

u-boot
community.

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but might be able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

#15 lore raw

cover tegra: Expand Nyan-big support

Hi Matthew,

Quoted 157 lines · Matthew Gorski
Quoted 154 lines · Simon Glass

Hi Matthew,

Quoted 137 lines · Matthew Gorski
Quoted 72 lines · Simon Glass

Hi Matthew,

Quoted 37 lines · Matthew Gorski
Quoted 19 lines · Simon Glass

Hi Matthew,

Quoted 8 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

Quoted 5 lines

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 9 lines

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 17 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

Do I need to adjust:

            load = <0>;
            entry = <0>;
Quoted 8 lines
Quoted 6 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO
THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it calcualted?

I am really not sure how the padding was calculated. I just assumed this
kernel-big.its FIT config was correct for nyan_big. I will try using my working linux kernel fit config.

Quoted 48 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 7 lines

please let me know if I should also adjust the SPL CONFIG even though I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing-nv-U-Boot-chained-U-Boot-method-

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on nyan also. Perhaps someone at collabora would know? Did you search the mailing list?

Quoted 7 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and reboots into recovery but if I do use #address-cells = <1>; in my FIT config I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at depthcharge or where the kernel starts, then you can figure out how long the padding needs to be at the start of the FIT. Rather than guessing...!

- Simon

Quoted 181 lines

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 170 lines
Quoted 170 lines
Quoted 168 lines
Quoted 168 lines
Quoted 166 lines
Quoted 166 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <[email protected]> wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 8 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to see the
kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 3 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 19 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already
in
place, it can be created with:

Quoted 8 lines

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with USB boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I don't have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be adjusted for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB in developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 81 lines
Quoted 76 lines · Simon Glass

Hi Matthew,

Quoted 10 lines · Matthew Gorski

I am porting u-boot to nyan_big and need some input. I have been
searching
high and low and found this thread here: [U-Boot] [PATCH 0/20] tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.html

Quoted 7 lines

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/commit/?h=nyan-big

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm
not
sure about the situation with the downstream trees.

Quoted 24 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung-arm-chromebook

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version 1 --config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from sdcard mmcblk1p1

Quoted 11 lines

Any help is appreciated I have only gotten a blank screen after
weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am using
the
correct building procedure. Thanks in advance for help from the
u-boot
community.

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but might be able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

#16 lore raw

cover tegra: Expand Nyan-big support

Quoted 181 lines · Simon Glass

Hi Matthew,

Quoted 14 lines · Matthew Gorski
Quoted 11 lines · Simon Glass

Hi Matthew,

Quoted 7 lines · Matthew Gorski
Quoted 4 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB

in

Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 19 lines
Quoted 5 lines
Quoted 4 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 9 lines

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the tegra one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-boot.

git/commit/?h=nyan-big

Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 16 lines
Quoted 15 lines

Do I need to adjust:

            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO
THE
IMAGE STARTS AT THE RIGHT OFFSET";

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line

Perhaps you need to adjust this? How was the length of it calcualted?

I am really not sure how the padding was calculated. I just assumed this
kernel-big.its FIT config was correct for nyan_big. I will try using

my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook#TOC- Installing-nv-U-Boot-chained-U-Boot-method-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 16 lines
Quoted 16 lines
Quoted 10 lines
Quoted 5 lines

also. Perhaps someone at collabora would know? Did you search the mailing list?

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

Quoted 8 lines

If you figure out where u-boot-dtb.bin needs to start by looking at depthcharge or where the kernel starts, then you can figure out how long the padding needs to be at the start of the FIT. Rather than guessing...!

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100 correct?

Quoted 198 lines
Quoted 16 lines

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to

see

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 5 lines

the
kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL to start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 3 lines

I am creating my sdcard with a standard linux (Linux for Tegra) rootfs:

Did these instructions come from a web site somewhere?

Quoted 21 lines

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B sectors> -t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with

USB

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from sdcard/USB

in

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 7 lines

On Mon, May 1, 2017 at 11:14 AM, Simon Glass <[email protected]

Quoted 3 lines · wrote:

Hi Matthew,

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

On 1 May 2017 at 08:43, Matthew Gorski <[email protected]

Quoted 4 lines · wrote:

I am porting u-boot to nyan_big and need some input. I have been
searching
high and low and found this thread here: [U-Boot] [PATCH

0/20]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/

209530.html

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm
not
sure about the situation with the downstream trees.

Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chromium-os/firmware-porting-

guide/using-nv-u-boot-on-the-samsung-arm-chromebook

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk --version

1

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

--config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from

sdcard

Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 14 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only gotten a blank screen after
weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am using
the
correct building procedure. Thanks in advance for help from the
u-boot
community.

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but might

be

Quoted 20 lines
Quoted 18 lines
Quoted 18 lines
Quoted 16 lines
Quoted 16 lines
Quoted 14 lines
Quoted 14 lines
Quoted 11 lines
Quoted 9 lines

able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

#17 lore raw

cover tegra: Expand Nyan-big support

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel-big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Quoted 415 lines · Matthew Gorski
Quoted 185 lines · Simon Glass

Hi Matthew,

Quoted 10 lines · Matthew Gorski
Quoted 7 lines · Simon Glass

Hi Matthew,

Quoted 3 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the

tegra

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 10 lines
Quoted 5 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Do I need to adjust:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED

SO

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I am really not sure how the padding was calculated. I just assumed this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 16 lines
Quoted 16 lines
Quoted 10 lines
Quoted 5 lines

also. Perhaps someone at collabora would know? Did you search the mailing list?

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

Quoted 8 lines

If you figure out where u-boot-dtb.bin needs to start by looking at depthcharge or where the kernel starts, then you can figure out how long the padding needs to be at the start of the FIT. Rather than guessing...!

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100 correct?

Quoted 204 lines
Quoted 16 lines

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to

see

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

the
kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL

to

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for

Tegra)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

rootfs:

Did these instructions come from a web site somewhere?

Quoted 3 lines

Partition an SD card

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B

sectors>

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with

USB

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from

sdcard/USB in

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 2 lines

On Mon, May 1, 2017 at 11:14 AM, Simon Glass <

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:

I am porting u-boot to nyan_big and need some input. I

have

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

been
searching
high and low and found this thread here: [U-Boot] [PATCH

0/20]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.

html

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm
not
sure about the situation with the downstream trees.

Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock /usr/share/vboot/devkeys/kernel.keyblock --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk

--version 1

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

--config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from

sdcard

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

mmcblk1p1

Any help is appreciated I have only gotten a blank screen after
weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am using
the
correct building procedure. Thanks in advance for help

from

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

the
u-boot
community.

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but

might be

Quoted 20 lines
Quoted 18 lines
Quoted 18 lines
Quoted 16 lines
Quoted 16 lines
Quoted 14 lines
Quoted 14 lines
Quoted 11 lines
Quoted 9 lines

able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

#18 lore raw

cover tegra: Expand Nyan-big support

Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel-big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

But I do think to remember that it was only an issue once U-Boot tried to relocate itself.

I don't see any reason why my old branch wouldn't work today on your machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 422 lines
Quoted 200 lines · Matthew Gorski
Quoted 185 lines · Simon Glass

Hi Matthew,

Quoted 10 lines · Matthew Gorski
Quoted 7 lines · Simon Glass

Hi Matthew,

Quoted 3 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the

tegra

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 10 lines
Quoted 5 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Do I need to adjust:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED

SO

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I am really not sure how the padding was calculated. I just assumed this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 16 lines
Quoted 16 lines
Quoted 10 lines
Quoted 5 lines

also. Perhaps someone at collabora would know? Did you search the mailing list?

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

Quoted 8 lines

If you figure out where u-boot-dtb.bin needs to start by looking at depthcharge or where the kernel starts, then you can figure out how long the padding needs to be at the start of the FIT. Rather than guessing...!

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

Quoted 215 lines

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100 correct?

Quoted 204 lines
Quoted 16 lines

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to

see

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

the
kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL

to

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for

Tegra)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

rootfs:

Did these instructions come from a web site somewhere?

Quoted 3 lines

Partition an SD card

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B

sectors>

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with

USB

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from

sdcard/USB in

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 2 lines

On Mon, May 1, 2017 at 11:14 AM, Simon Glass <

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 1 line · wrote:

I am porting u-boot to nyan_big and need some input. I

have

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

been
searching
high and low and found this thread here: [U-Boot] [PATCH

0/20]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.

html

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 2 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big. I'm
not
sure about the situation with the downstream trees.

Quoted 1 line
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its
kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock --signprivate
/usr/share/vboot/devkeys/kernel_data_key.vbprivk

--version 1

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

--config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from

sdcard

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

mmcblk1p1

Any help is appreciated I have only gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am
using
the
correct building procedure. Thanks in advance for help

from

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines

the
u-boot
community.

It is possible that it needs a particular address due to limitations
in the FIT support on Nyan. I'm not sure what it is but

might be

Quoted 20 lines
Quoted 18 lines
Quoted 18 lines
Quoted 16 lines
Quoted 16 lines
Quoted 14 lines
Quoted 14 lines
Quoted 11 lines
Quoted 9 lines

able
to take a look at some point.

How are you building your SD card? Are you following some instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#19 lore raw

cover tegra: Expand Nyan-big support

Quoted 14 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel-big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

Quoted 8 lines

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Thus the padding.

Regards,

Tomeu

Quoted 436 lines

But I do think to remember that it was only an issue once U-Boot tried to relocate itself.

I don't see any reason why my old branch wouldn't work today on your machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 422 lines
Quoted 200 lines · Matthew Gorski
Quoted 185 lines · Simon Glass

Hi Matthew,

Quoted 10 lines · Matthew Gorski
Quoted 7 lines · Simon Glass

Hi Matthew,

Quoted 3 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Let me repost this to the bottom. New to the mailing list ;)

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 4 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't believe the

tegra

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 10 lines
Quoted 5 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-boot.git/

commit/?h=nyan-big

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Do I need to adjust:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
            load = <0>;
            entry = <0>;

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS PADDING IS NEEDED

SO

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

I am really not sure how the padding was calculated. I just assumed this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

This is exynos, where we booted directly into U-Boot. Actually I'm wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 16 lines
Quoted 16 lines
Quoted 10 lines
Quoted 5 lines

also. Perhaps someone at collabora would know? Did you search the mailing list?

Regards,
Simon

I have not searched the mailing list. What should I search for? Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 6 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

Quoted 8 lines

If you figure out where u-boot-dtb.bin needs to start by looking at depthcharge or where the kernel starts, then you can figure out how long the padding needs to be at the start of the FIT. Rather than guessing...!

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

Quoted 215 lines

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100 correct?

Quoted 204 lines
Quoted 16 lines

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <[email protected]>

Quoted 8 lines · wrote:
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Hi Matthew,

Quoted 3 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for depthcharge to

see

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

the
kernel
load address but I am unable to find anything. I have tried multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that Tegra uses SPL

to

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

start, so you may need to adjust CONFIG_SPL_TEXT_BASE instead.

Quoted 2 lines

I am creating my sdcard with a standard linux (Linux for

Tegra)

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line

rootfs:

Did these instructions come from a web site somewhere?

Quoted 3 lines

Partition an SD card

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t kernel <MMC BLOCK DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION SIZE in 512B

sectors>

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR. If one is not already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter command w

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

Copy data to the SD card

sudo dd if=./kernelpart.bin of=<MMC BLOCK DEVICE>p1 sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in dev mode with

USB

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid top-posting.

- Simon

I am using chained boot to test uboot as a FIT image so I I

don't

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE need to be

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for Tegra from

sdcard/USB in

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 2 lines

On Mon, May 1, 2017 at 11:14 AM, Simon Glass <

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

wrote:
I am porting u-boot to nyan_big and need some input. I

have

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

been
searching
high and low and found this thread here: [U-Boot] [PATCH

0/20]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2015-March/209530.

html

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I have tried to build u-boot with the branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

and also the official chromium next branch

Have you tried mainline U-Boot? It already supports nyan-big.
I'm
not
sure about the situation with the downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f kernel-big.its
kernel-u-boot

(with and without the load address setting)

vbutil_kernel --arch arm --pack kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock --signprivate
/usr/share/vboot/devkeys/kernel_data_key.vbprivk

--version 1

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

--config
dummy.txt --vmlinuz kernel-u-boot --bootloader dummy.txt

I have had numerous failed attempts to boot uboot from

sdcard

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

mmcblk1p1

Any help is appreciated I have only gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10 kernels so I assume I am
using
the
correct building procedure. Thanks in advance for help

from

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

the
u-boot
community.

It is possible that it needs a particular address due to
limitations
in the FIT support on Nyan. I'm not sure what it is but

might be

Quoted 20 lines
Quoted 18 lines
Quoted 18 lines
Quoted 16 lines
Quoted 16 lines
Quoted 14 lines
Quoted 14 lines
Quoted 11 lines
Quoted 9 lines

able
to take a look at some point.

How are you building your SD card? Are you following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#20 lore raw

cover tegra: Expand Nyan-big support

Quoted 25 lines · Tomeu Vizoso
Quoted 24 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel
-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

Quoted 4 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-
big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

Quoted 6 lines
Quoted 3 lines

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code starts at the determined address in memory by putting in just the right amount of padding ;).

It is rather ugly, but it does allow running u-boot without the need to change the firmware in flash.

Quoted 553 lines

Thus the padding.

Regards,

Tomeu

Quoted 547 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 531 lines
Quoted 251 lines · Matthew Gorski
Quoted 235 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <[email protected]

Quoted 14 lines

wrote:

Quoted 9 lines · Simon Glass

Hi Matthew,

Quoted 4 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <sjg@chromi um.org>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <matt.gorski@g mail.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <sjg@ch romium.org>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Hi Matthew,

Quoted 5 lines · Matthew Gorski

Let me repost this to the bottom.  New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash.  Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

developer
mode.  I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 11 lines
Quoted 5 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-bo ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

            load = <0>;
            entry = <0>;

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
    description = "U-Boot + FDT --------- THIS
PADDING IS NEEDED

SO

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am really not sure how the padding was calculated.  I just assumed
this
kernel-big.its FIT config was correct for nyan_big.  I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin"); type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb"; data = /incbin/("dts/dt.dtb"); type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porti
ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is exynos, where we booted directly into U-Boot. Actually I'm
wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

also. Perhaps someone at collabora would know? Did you search the
mailing list?

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list.  What should I search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

 Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Quoted 271 lines

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 263 lines
Quoted 16 lines

/dts-v1/;

/ {
    description = "Chrome OS nyan u-boot chain boot method";
    #address-cells = <1>;
    images {
        kernel at 1{

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <sjg@chr
omium.org>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Hi Matthew,

Quoted 4 lines · Matthew Gorski

Thanks for the reply Simon.

I have been trying to find the System.map for
depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 6 lines

the
kernel
load address but I am unable to find
anything.  I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

to

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

Quoted 3 lines

I am creating my sdcard with a standard linux
(Linux for

Tegra)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line

rootfs:

Did these instructions come from a web site
somewhere?

Quoted 3 lines

Partition an SD card

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

sectors>

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR.
If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 5 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in
dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash.  Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode.  I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

Quoted 3 lines

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input.  I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

0/20]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tegra:
Expand
Nyan-big support

 https://lists.denx.de/pipermail/u-boot/2
015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

(with and without the load address
setting)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock
--signprivate
/usr/share/vboot/devkeys/kernel_data_key.
vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing.  I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure.  Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines
Quoted 17 lines
Quoted 15 lines
Quoted 15 lines
Quoted 12 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Signature · 2 lines
Sjoerd Simons
Collabora Ltd.
#21 lore raw

cover tegra: Expand Nyan-big support

On Tue, May 2, 2017 at 2:54 AM, Sjoerd Simons <[email protected]

Quoted 45 lines

wrote:

Quoted 25 lines · Tomeu Vizoso
Quoted 24 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel
-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

Quoted 4 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-
big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

Quoted 6 lines
Quoted 3 lines

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code starts at the determined address in memory by putting in just the right amount of padding ;).

Quoted 3 lines

It is rather ugly, but it does allow running u-boot without the need to change the firmware in flash.

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on an old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/master/board/nyan_big/defconfig#11

I need to determine a suitable load address e.g fit load + 64k

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";

Quoted 559 lines
Quoted 554 lines

Thus the padding.

Regards,

Tomeu

Quoted 547 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 531 lines
Quoted 251 lines · Matthew Gorski
Quoted 235 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <[email protected]

Quoted 14 lines

wrote:

Quoted 9 lines · Simon Glass

Hi Matthew,

Quoted 4 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <sjg@chromi um.org>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <matt.gorski@g mail.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <sjg@ch romium.org>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Hi Matthew,

Quoted 5 lines · Matthew Gorski

Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 4 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 11 lines
Quoted 5 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-bo ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

            load = <0>;
            entry = <0>;
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
    description = "U-Boot + FDT --------- THIS

PADDING IS NEEDED

SO

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am really not sure how the padding was calculated. I just assumed
this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porti
ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is exynos, where we booted directly into U-Boot. Actually I'm
wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

also. Perhaps someone at collabora would know? Did you search the
mailing list?

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Quoted 271 lines

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 263 lines
Quoted 16 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <sjg@chr
omium.org>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <matt.go
rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map for
depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

to

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard linux
(Linux for

Tegra)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

sectors>

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR.
If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in
dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input. I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

0/20]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2
015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

(with and without the load address
setting)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock
--signprivate
/usr/share/vboot/devkeys/kernel_data_key.
vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines
Quoted 17 lines
Quoted 15 lines
Quoted 15 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

--
Sjoerd Simons
Collabora Ltd.

#22 lore raw

cover tegra: Expand Nyan-big support

Quoted 63 lines · Matthew Gorski
Quoted 43 lines · Sjoerd Simons
Quoted 25 lines · Tomeu Vizoso
Quoted 24 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel
-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

Quoted 4 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-
big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

Quoted 6 lines
Quoted 3 lines

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code starts at the determined address in memory by putting in just the right amount of padding ;).

Quoted 3 lines

It is rather ugly, but it does allow running u-boot without the need to change the firmware in flash.

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on an old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

I need to determine a suitable load address e.g fit load + 64k

Quoted 8 lines

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";

Seems if I use the description "description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET"; "

I get a blank display that shows no signs of loading uboot BUT if I use:

description = "Chrome OS kernel image with one or more FDT blobs";

Nyan tries to load something because the display flashes like a normal bootup but immediately reboots into chromeos usb/sdcard recovery.

So the hack in the the collabora uboot kernel-big.its doesnt seem to work anymore unless the padding is messing with the load address.

I am using mainline uboot with CONFIG_SYS_TEXT_BASE 0x81000100 should this be changed?

Also i am trying to figure out how padding is calculated in a fit image and this is confusing. Is the padding the actual description length?

Quoted 562 lines
Quoted 560 lines
Quoted 555 lines

Thus the padding.

Regards,

Tomeu

Quoted 547 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 531 lines
Quoted 251 lines · Matthew Gorski
Quoted 235 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <[email protected]

Quoted 14 lines

wrote:

Quoted 9 lines · Simon Glass

Hi Matthew,

Quoted 4 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <sjg@chromi um.org>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <matt.gorski@g mail.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <sjg@ch romium.org>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski <matt.gors
ki at gmail.com>
wrote:
Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 11 lines
Quoted 5 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

Quoted 7 lines

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-bo ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

            load = <0>;
            entry = <0>;
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
    description = "U-Boot + FDT --------- THIS

PADDING IS NEEDED

SO

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am really not sure how the padding was calculated. I just assumed
this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

    #address-cells = <1>;
    images {
        kernel at 1{
            description = "kernel";
            data = /incbin/("u-boot-dtb.bin");
            type = "kernel_noload";
            arch = "arm";
            os = "linux";
            compression = "none";
            load = <0>;
            entry = <0>;
        };
        fdt at 1{
            description = "tegra124-nyan-big.dtb";
            data = /incbin/("dts/dt.dtb");
            type = "flat_dt";
            arch = "arm";
            compression = "none";
            hash at 1{
                algo = "sha1";
            };
        };
    };
    configurations {
        default = "conf at 1";
        conf at 1{
            kernel = "kernel at 1";
            fdt = "fdt at 1";
        };
    };
};
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

please let me know if I should also adjust the SPL CONFIG even

though

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porti
ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is exynos, where we booted directly into U-Boot. Actually I'm
wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

also. Perhaps someone at collabora would know? Did you search the
mailing list?

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Quoted 271 lines

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 263 lines
Quoted 16 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <sjg@chr
omium.org>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <matt.go
rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map for
depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

to

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard linux
(Linux for

Tegra)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

sectors>

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR.
If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in
dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input. I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

0/20]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2
015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

(with and without the load address
setting)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock
--signprivate
/usr/share/vboot/devkeys/kernel_data_key.
vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines
Quoted 17 lines
Quoted 15 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

--
Sjoerd Simons
Collabora Ltd.

#23 lore raw

cover tegra: Expand Nyan-big support

I have yet to produce a u-boot command prompt. I can get the display to flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and using:

description = "Chrome OS kernel image with one or more FDT blobs";

but the boot process forces a reboot into recovery.

If I use:

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";
Produces a blank screen with the exact u-boot.bin

I hope someone can confirm nyan can chainboot u-boot and possibly post what the used for their FIT its config. Thanks for all the help and guided responses.

Quoted 659 lines · Matthew Gorski
Quoted 63 lines · Matthew Gorski
Quoted 43 lines · Sjoerd Simons
Quoted 25 lines · Tomeu Vizoso
Quoted 24 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel
-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

Quoted 4 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-
big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

Quoted 6 lines
Quoted 3 lines

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code starts at the determined address in memory by putting in just the right amount of padding ;).

Quoted 3 lines

It is rather ugly, but it does allow running u-boot without the need to change the firmware in flash.

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on an old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/depthc
harge/+/master/board/nyan_big/defconfig#11

I need to determine a suitable load address e.g fit load + 64k

Quoted 8 lines

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";

Seems if I use the description "description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET"; "

I get a blank display that shows no signs of loading uboot BUT if I use:

description = "Chrome OS kernel image with one or more FDT blobs";

Nyan tries to load something because the display flashes like a normal bootup but immediately reboots into chromeos usb/sdcard recovery.

So the hack in the the collabora uboot kernel-big.its doesnt seem to work anymore unless the padding is messing with the load address.

I am using mainline uboot with CONFIG_SYS_TEXT_BASE 0x81000100 should this be changed?

Also i am trying to figure out how padding is calculated in a fit image and this is confusing. Is the padding the actual description length?

Quoted 562 lines
Quoted 560 lines
Quoted 555 lines

Thus the padding.

Regards,

Tomeu

Quoted 547 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 531 lines
Quoted 251 lines · Matthew Gorski
Quoted 235 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <[email protected]

Quoted 14 lines

wrote:

Quoted 9 lines · Simon Glass

Hi Matthew,

Quoted 4 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <sjg@chromi um.org>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <matt.gorski@g mail.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <sjg@ch
romium.org>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski <matt.gors
ki at gmail.com>
wrote:
Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 18 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

Quoted 1 line

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 2 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-bo
ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

load = <0>;
entry = <0>;

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS
PADDING IS NEEDED

SO

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 2 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length of it

calcualted?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am really not sure how the padding was calculated. I just assumed
this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines
Quoted 35 lines

#address-cells = <1>;
images {
kernel at 1{
description = "kernel";
data = /incbin/("u-boot-dtb.bin");
type = "kernel_noload";
arch = "arm";
os = "linux";
compression = "none";
load = <0>;
entry = <0>;
};
fdt at 1{
description = "tegra124-nyan-big.dtb";
data = /incbin/("dts/dt.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash at 1{
algo = "sha1";
};
};
};
configurations {
default = "conf at 1";
conf at 1{
kernel = "kernel at 1";
fdt = "fdt at 1";
};
};
};

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

please let me know if I should also adjust the SPL
CONFIG even

though

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porti
ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is exynos, where we booted directly into U-Boot. Actually I'm
wondering we should boot directly into U-Boot (instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

also. Perhaps someone at collabora would know? Did you search the
mailing list?

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Quoted 271 lines

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 263 lines
Quoted 16 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <sjg@chr
omium.org>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <matt.go
rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map for
depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

to

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard linux
(Linux for

Tegra)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

sectors>

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR.
If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in
dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input. I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

0/20]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2
015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

(with and without the load address
setting)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock
--signprivate
/usr/share/vboot/devkeys/kernel_data_key.
vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines
Quoted 17 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

--
Sjoerd Simons
Collabora Ltd.

#24 lore raw

cover tegra: Expand Nyan-big support

Hi Matthew,

Quoted 9 lines · Matthew Gorski

I have yet to produce a u-boot command prompt. I can get the display to flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and using:

description = "Chrome OS kernel image with one or more FDT blobs";

but the boot process forces a reboot into recovery.

If I use:

Quoted 7 lines

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";
Produces a blank screen with the exact u-boot.bin

I hope someone can confirm nyan can chainboot u-boot and possibly post what the used for their FIT its config. Thanks for all the help and guided responses.

I hope to be able to try this later in the week.

- Simon

Quoted 662 lines
Quoted 658 lines · Matthew Gorski
Quoted 63 lines · Matthew Gorski
Quoted 44 lines · Sjoerd Simons
Quoted 25 lines · Tomeu Vizoso
Quoted 24 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel
-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

Quoted 4 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-
big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

Quoted 6 lines
Quoted 3 lines

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code starts at the determined address in memory by putting in just the right amount of padding ;).

Quoted 2 lines

It is rather ugly, but it does allow running u-boot without the need to change the firmware in flash.

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on an old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/depthcharge/+/master/board/nyan_big/defconfig#11

I need to determine a suitable load address e.g fit load + 64k

Quoted 7 lines

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";

Seems if I use the description "description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET"; "

I get a blank display that shows no signs of loading uboot BUT if I use:

description = "Chrome OS kernel image with one or more FDT blobs";

Nyan tries to load something because the display flashes like a normal bootup but immediately reboots into chromeos usb/sdcard recovery.

So the hack in the the collabora uboot kernel-big.its doesnt seem to work anymore unless the padding is messing with the load address.

I am using mainline uboot with CONFIG_SYS_TEXT_BASE 0x81000100 should this be changed?

Also i am trying to figure out how padding is calculated in a fit image and this is confusing. Is the padding the actual description length?

Quoted 562 lines
Quoted 560 lines
Quoted 556 lines

Thus the padding.

Regards,

Tomeu

Quoted 547 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 531 lines
Quoted 251 lines · Matthew Gorski
Quoted 235 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <[email protected]

Quoted 14 lines

wrote:

Quoted 9 lines · Simon Glass

Hi Matthew,

Quoted 4 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <sjg@chromi um.org>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <matt.gorski@g
mail.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <sjg@ch
romium.org>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski <matt.gors
ki at gmail.com>
wrote:
Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-bo
ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

load = <0>;
entry = <0>;

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS
PADDING IS NEEDED

SO

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length
of it

calcualted?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am really not sure how the padding was calculated. I just assumed
this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines

#address-cells = <1>;
images {
kernel at 1{
description = "kernel";
data = /incbin/("u-boot-dtb.bin");
type = "kernel_noload";
arch = "arm";
os = "linux";
compression = "none";
load = <0>;
entry = <0>;
};
fdt at 1{
description = "tegra124-nyan-big.dtb";
data = /incbin/("dts/dt.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash at 1{
algo = "sha1";
};
};
};
configurations {
default = "conf at 1";
conf at 1{
kernel = "kernel at 1";
fdt = "fdt at 1";
};
};
};

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

please let me know if I should also adjust the SPL
CONFIG even

though

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porti
ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is exynos, where we booted directly into U-Boot.
Actually I'm
wondering we should boot directly into U-Boot
(instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

also. Perhaps someone at collabora would know? Did
you search the
mailing list?

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Quoted 271 lines

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 263 lines
Quoted 16 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <sjg@chr
omium.org>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <matt.go
rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map for
depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

to

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard linux
(Linux for

Tegra)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

sectors>

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR.
If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in
dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input. I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

0/20]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2
015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

(with and without the load address
setting)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock
--signprivate
/usr/share/vboot/devkeys/kernel_data_key.
vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

--
Sjoerd Simons
Collabora Ltd.

A message that is not in the archive (sent off-list or not yet received): CALr8Vo0QVq3y_KRaUDbfu3HMv5fRY9O9S7jh-Xxfrtyj9cmfzQ@mail.gmail.com

A message that is not in the archive (sent off-list or not yet received): CALr8Vo0EvrPP0J8172W8Wf-k4rWVTp6QLPbTBXoarkya9X_CXg@mail.gmail.com

#27 lore raw

cover tegra: Expand Nyan-big support

Great Simon! That would be very appreciated! I look forward to your​ results. Thanks for all the guidance. If I have a servo board with serial I'm sure I could see what's going on behind the scenes ;)

On May 2, 2017 10:40 PM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 2 lines · Matthew Gorski

I have yet to produce a u-boot command prompt. I can get the display to flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and

using:

Quoted 5 lines

description = "Chrome OS kernel image with one or more FDT blobs";

but the boot process forces a reboot into recovery.

Quoted 7 lines

If I use:

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";
Produces a blank screen with the exact u-boot.bin

I hope someone can confirm nyan can chainboot u-boot and possibly post

what

Quoted 2 lines

the used for their FIT its config. Thanks for all the help and guided responses.

I hope to be able to try this later in the week.

- Simon

Quoted 61 lines
Quoted 58 lines · Matthew Gorski
Quoted 53 lines · Matthew Gorski
Quoted 46 lines · Sjoerd Simons
Quoted 25 lines · Tomeu Vizoso
Quoted 24 lines · Tomeu Vizoso
Quoted 10 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel
-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923>

Quoted 4 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/kernel-
big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support Depthcharge (though I hope this will change once I get back some time).

Quoted 6 lines
Quoted 3 lines

I cannot remember how the correct position of the kernel within the FIT image was calculated, but it definitely involved looking at the depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code starts at the determined address in memory by putting in just the right amount of padding ;).

It is rather ugly, but it does allow running u-boot without the need to change the firmware in flash.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on an old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/

depthcharge/+/master/board/nyan_big/defconfig#11

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

I need to determine a suitable load address e.g fit load + 64k

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE

IMAGE

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

STARTS AT THE RIGHT OFFSET";

Seems if I use the description "description = "U-Boot + FDT ---------

THIS

Quoted 6 lines
Quoted 6 lines

PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET"; "

I get a blank display that shows no signs of loading uboot BUT if I use:

description = "Chrome OS kernel image with one or more FDT blobs";

Quoted 7 lines
Quoted 7 lines

Nyan tries to load something because the display flashes like a normal bootup but immediately reboots into chromeos usb/sdcard recovery.

So the hack in the the collabora uboot kernel-big.its doesnt seem to work anymore unless the padding is messing with the load address.

I am using mainline uboot with CONFIG_SYS_TEXT_BASE 0x81000100 should

this

Quoted 568 lines
Quoted 567 lines

be changed?

Also i am trying to figure out how padding is calculated in a fit image and this is confusing. Is the padding the actual description length?

Quoted 562 lines
Quoted 560 lines
Quoted 556 lines

Thus the padding.

Regards,

Tomeu

Quoted 547 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 531 lines
Quoted 251 lines · Matthew Gorski
Quoted 235 lines · Simon Glass

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <[email protected]

Quoted 14 lines

wrote:

Quoted 9 lines · Simon Glass

Hi Matthew,

Quoted 4 lines · Matthew Gorski

On Mon, May 1, 2017 at 2:36 PM, Simon Glass <sjg@chromi um.org>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski <matt.gorski@g
mail.com>

Quoted 5 lines · wrote:
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass <sjg@ch
romium.org>

Quoted 11 lines · wrote:
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski <matt.gors
ki at gmail.com>
wrote:
Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com/cgit/user/tomeu/u-bo
ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

load = <0>;
entry = <0>;

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS
PADDING IS NEEDED

SO

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Perhaps you need to adjust this? How was the length
of it

calcualted?

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I am really not sure how the padding was calculated. I just assumed
this
kernel-big.its FIT config was correct for nyan_big. I will try

using my

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines

working linux kernel fit config.

Quoted 35 lines

#address-cells = <1>;
images {
kernel at 1{
description = "kernel";
data = /incbin/("u-boot-dtb.bin");
type = "kernel_noload";
arch = "arm";
os = "linux";
compression = "none";
load = <0>;
entry = <0>;
};
fdt at 1{
description = "tegra124-nyan-big.dtb";
data = /incbin/("dts/dt.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash at 1{
algo = "sha1";
};
};
};
configurations {
default = "conf at 1";
conf at 1{
kernel = "kernel at 1";
fdt = "fdt at 1";
};
};
};

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

please let me know if I should also adjust the SPL
CONFIG even

though

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I
am chainbooting uboot:

https://www.chromium.org/chromium-os/firmware-porti
ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-Installing -nv-U-Boot-chained-U-Boot-method-

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

This is exynos, where we booted directly into U-Boot.
Actually I'm
wondering we should boot directly into U-Boot
(instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 4 lines
Quoted 4 lines

also. Perhaps someone at collabora would know? Did
you search the
mailing list?

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

I have not searched the mailing list. What should I search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 8 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells = <1>; in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Quoted 271 lines

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 263 lines
Quoted 16 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass" <sjg@chr
omium.org>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski <matt.go
rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map for
depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

to

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard linux
(Linux for

Tegra)

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

sectors>

Quoted 15 lines
Quoted 15 lines
Quoted 15 lines
Quoted 15 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective MBR.
If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this in
dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

adjusted

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

for
chained boot?

I am using instructions to boot Linux for Tegra
from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input. I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

0/20]

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermail/u-boot/2
015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/using-nv-u-boot-on-the-samsung -arm-chromebook

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

(with and without the load address
setting)

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kernel.keyblock
--signprivate
/usr/share/vboot/devkeys/kernel_data_key.
vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 21 lines
Quoted 19 lines
Quoted 19 lines
Quoted 17 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Regards,
Simon

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

--
Sjoerd Simons
Collabora Ltd.

#28 lore raw

cover tegra: Expand Nyan-big support

Hey Matthew,

Did you have any luck with this? I was attempting to do this a while back with no success.

Cheers,

Thomas

Quoted 740 lines · Matthew Gorski

Great Simon! That would be very appreciated! I look forward to your​ results. Thanks for all the guidance. If I have a servo board with serial I'm sure I could see what's going on behind the scenes ;)

On May 2, 2017 10:40 PM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 2 lines · Matthew Gorski

I have yet to produce a u-boot command prompt. I can get the display to flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and

using:

Quoted 5 lines

description = "Chrome OS kernel image with one or more FDT blobs";

but the boot process forces a reboot into recovery.

Quoted 7 lines

If I use:

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET";
Produces a blank screen with the exact u-boot.bin

I hope someone can confirm nyan can chainboot u-boot and possibly post

what

Quoted 2 lines

the used for their FIT its config. Thanks for all the help and guided responses.

I hope to be able to try this later in the week.

- Simon

Quoted 18 lines
Quoted 15 lines · Matthew Gorski
Quoted 10 lines · Matthew Gorski
Quoted 5 lines · Sjoerd Simons
Quoted 3 lines · Tomeu Vizoso
Quoted 2 lines · Tomeu Vizoso

On 2 May 2017 at 03:19, Matthew Gorski <[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/

tree/kernel

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467e

e75ed06923>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/

tree/kernel-

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support

Depthcharge

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(though I hope this will change once I get back some time).

I cannot remember how the correct position of the kernel within

the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

FIT image was calculated, but it definitely involved looking at

the

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 1 line

depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then add enough padding in the fit image itself such that the u-boot code

starts

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

at the determined address in memory by putting in just the right

amount

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

of padding ;).

It is rather ugly, but it does allow running u-boot without the need

to

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 1 line

change the firmware in flash.

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on an old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/

depthcharge/+/master/board/nyan_big/defconfig#11

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

I need to determine a suitable load address e.g fit load + 64k

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE

IMAGE

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

STARTS AT THE RIGHT OFFSET";

Seems if I use the description "description = "U-Boot + FDT ---------

THIS

Quoted 10 lines
Quoted 10 lines

PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET"; "

I get a blank display that shows no signs of loading uboot BUT if I use:

description = "Chrome OS kernel image with one or more FDT blobs";

Nyan tries to load something because the display flashes like a normal bootup but immediately reboots into chromeos usb/sdcard recovery.

So the hack in the the collabora uboot kernel-big.its doesnt seem to

work

Quoted 3 lines
Quoted 3 lines

anymore unless the padding is messing with the load address.

I am using mainline uboot with CONFIG_SYS_TEXT_BASE 0x81000100 should

this

Quoted 23 lines
Quoted 23 lines

be changed?

Also i am trying to figure out how padding is calculated in a fit image and this is confusing. Is the padding the actual description length?

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

Thus the padding.

Regards,

Tomeu

Quoted 10 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 1 line

On Mon, May 1, 2017 at 7:45 PM, Matthew Gorski

<matt.gorski@gmail

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

.com>

Quoted 2 lines · wrote:
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

On Mon, May 1, 2017 at 7:34 PM, Simon Glass <[email protected]

Quoted 3 lines · wrote:

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <

matt.gorski at gmail.com

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On Mon, May 1, 2017 at 6:02 PM, Simon Glass

<[email protected]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · rg> wrote:

Hi Matthew,

On 1 May 2017 at 14:30, Matthew Gorski

<matt.gorski@gmail

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 3 lines · .com> wrote:

On Mon, May 1, 2017 at 2:36 PM, Simon Glass

<sjg@chromi

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

um.org>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski

<matt.gorski@g

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

mail.com>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass

<sjg@ch

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

romium.org>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski

<matt.gors

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

ki at gmail.com>
wrote:
Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for

Tegra

Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

sdcard/USB in

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I don't
believe the

tegra

Quoted 28 lines
Quoted 28 lines
Quoted 28 lines

one
has anything different from mainline at present.

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.

com/cgit/user/tomeu/u-bo

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

load = <0>;
entry = <0>;

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS
PADDING IS NEEDED

SO

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

Perhaps you need to adjust this? How was the length
of it

calcualted?

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

I am really not sure how the padding was calculated.

I

Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 45 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

just assumed
this
kernel-big.its FIT config was correct for nyan_big. I
will try

using my

Quoted 38 lines
Quoted 38 lines
Quoted 38 lines

working linux kernel fit config.

#address-cells = <1>;
images {
kernel at 1{
description = "kernel";
data = /incbin/("u-boot-dtb.bin");
type = "kernel_noload";
arch = "arm";
os = "linux";
compression = "none";
load = <0>;
entry = <0>;
};
fdt at 1{
description = "tegra124-nyan-big.dtb";
data = /incbin/("dts/dt.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash at 1{
algo = "sha1";
};
};
};
configurations {
default = "conf at 1";
conf at 1{
kernel = "kernel at 1";
fdt = "fdt at 1";
};
};
};

please let me know if I should also adjust the SPL
CONFIG even

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

though

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I
am chainbooting uboot:

https://www.chromium.org/

chromium-os/firmware-porti

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

ng-guide/

using-nv-u-boot-on-the-samsung-arm-chromebook#TOC-

Installing

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

-nv-U-Boot-chained-U-Boot-method-

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

This is exynos, where we booted directly into

U-Boot.

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

Actually I'm
wondering we should boot directly into U-Boot
(instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines
Quoted 12 lines

also. Perhaps someone at collabora would know? Did
you search the
mailing list?

Regards,
Simon

I have not searched the mailing list. What should I
search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells =

<1>;

Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 46 lines
Quoted 14 lines
Quoted 1 line

in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT. Rather than
guessing...!

Quoted 3 lines

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 15 lines
Quoted 15 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 5 lines
Quoted 5 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass"

<sjg@chr

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

omium.org>

Quoted 4 lines · wrote:
Quoted 4 lines
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski

<matt.go

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map

for

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 13 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

depthcharge to

see

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note that
Tegra uses SPL

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

to

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard

linux

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

(Linux for

Tegra)

Quoted 17 lines
Quoted 17 lines
Quoted 17 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

sectors>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective

MBR.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this

in

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

dev mode with

USB

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

boot
enabled and pressing Ctrl-U?

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a FIT
image so I I

don't

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

have to
flash to spl flash. Does CONFIG_SPL_TEXT_BASE
need to be

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

adjusted

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for

Tegra

Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 31 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

from

sdcard/USB in

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon Glass
<

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

wrote:

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

wrote:
I am porting u-boot to nyan_big and need
some input. I

have

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

been
searching
high and low and found this thread here:
[U-Boot] [PATCH

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

0/20]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/

pipermail/u-boot/2

Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

015-March/209530.

html

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I have tried to build u-boot with the
branch here:

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 12 lines
Quoted 12 lines
Quoted 12 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It already
supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

-arm-chromebook

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

(with and without the load address
setting)

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/

kernel.keyblock

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

--signprivate
/usr/share/vboot/devkeys/

kernel_data_key.

Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 66 lines
Quoted 65 lines
Quoted 65 lines
Quoted 65 lines
Quoted 45 lines
Quoted 45 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line

vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

might be

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

able
to take a look at some point.

How are you building your SD card? Are you
following some
instructions
from somewhere?

Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Regards,
Simon

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

--
Sjoerd Simons
Collabora Ltd.

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#29 lore raw

cover tegra: Expand Nyan-big support

Quoted 9 lines · Thomas Hoff

Hey Matthew,

Did you have any luck with this? I was attempting to do this a while back with no success.

Cheers,

Thomas

No unfortunately not. Simon was going to try himself at some point. I have a few u-boot forks im dying to chain-boot on nyan so I hope there is some progress. I think we need to see whats going on behind the scenes with a servo board and serial output because I can get u-boot to boot (i think) but it reboots immediately into recovery (no console on lcd display).

Let hope Simon gets some time in the near future ;)

Quoted 768 lines
Quoted 762 lines · Matthew Gorski

Great Simon! That would be very appreciated! I look forward to your​ results. Thanks for all the guidance. If I have a servo board with serial
I'm sure I could see what's going on behind the scenes ;)

On May 2, 2017 10:40 PM, "Simon Glass" <[email protected]> wrote:

Hi Matthew,

Quoted 2 lines · Matthew Gorski

I have yet to produce a u-boot command prompt. I can get the display to flash using u-boot mainline with 0x81000100 as the SYS_TEXT_BASE and

using:

Quoted 8 lines

description = "Chrome OS kernel image with one or more FDT blobs";

but the boot process forces a reboot into recovery.

If I use:

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE

IMAGE

Quoted 4 lines

STARTS AT THE RIGHT OFFSET";
Produces a blank screen with the exact u-boot.bin

I hope someone can confirm nyan can chainboot u-boot and possibly post

what

Quoted 2 lines

the used for their FIT its config. Thanks for all the help and guided responses.

I hope to be able to try this later in the week.

- Simon

Quoted 16 lines
Quoted 13 lines · Matthew Gorski
Quoted 8 lines · Matthew Gorski
Quoted 3 lines · Sjoerd Simons
Quoted 1 line · Tomeu Vizoso

On 2 May 2017 at 08:40, Tomeu Vizoso <[email protected]>

Quoted 10 lines · wrote:
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 8 lines · Matthew Gorski

Seems if you change the FIT description from anything but

"description = "Chrome OS kernel image with one or more FDT blobs";"

the kernel wont load. So this issue has to be in the kernel- big.its
<https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/

kernel

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

-big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06

923>

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

https://git.collabora.com/cgit/user/tomeu/u-boot.git/tree/

kernel-

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 3 lines

big.its?h=nyan-big&id=35bcb399c0d78ba6a050cc775d467ee75ed06923

We may just need a proper working .its for nyan

Hi Matthew,

it has been quite a while, but I remember that if we only tried chainloading U-Boot was because the goal was to integrate these machines in our LAVA lab, which to date doesn't support

Depthcharge

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

(though I hope this will change once I get back some time).

I cannot remember how the correct position of the kernel within

the

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

FIT image was calculated, but it definitely involved looking at

the

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 4 lines
Quoted 1 line

depthcharge sources.

Actually, I have grepped my IRC logs and turns out that we need for the start of U-Boot's code to be aligned to 64kB.

Yup, U-boot both needs to be properly aligned and know its text base address.

So the calculation we did was basically look at depthcharge where in memory the FIT image gets loaded, determine a suitable load address after that (e.g fit load + 64k), configure that in u-boot and then

add

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

enough padding in the fit image itself such that the u-boot code

starts

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

at the determined address in memory by putting in just the right

amount

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

of padding ;).

It is rather ugly, but it does allow running u-boot without the need

to

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 1 line

change the firmware in flash.

Thank You Tomeu, Sjoerd and Simon for taking the time to chime in on

an

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

old but interesting topic.

I believe I have enough info from you all to get this figured out now.

Since depthcharch loads the FIT image at 0x81000000
https://chromium.googlesource.com/chromiumos/platform/

depthcharge/+/master/board/nyan_big/defconfig#11

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

I need to determine a suitable load address e.g fit load + 64k

So 81000000 + 64k.

One thing I am not certain about is adding the padding to the FIT .its config. How is this done?

description = "U-Boot + FDT --------- THIS PADDING IS NEEDED SO THE

IMAGE

Quoted 4 lines
Quoted 4 lines
Quoted 1 line

STARTS AT THE RIGHT OFFSET";

Seems if I use the description "description = "U-Boot + FDT ---------

THIS

Quoted 3 lines
Quoted 3 lines

PADDING IS NEEDED SO THE IMAGE STARTS AT THE RIGHT OFFSET"; "

I get a blank display that shows no signs of loading uboot BUT if I

use:

Quoted 7 lines
Quoted 7 lines

description = "Chrome OS kernel image with one or more FDT blobs";

Nyan tries to load something because the display flashes like a normal bootup but immediately reboots into chromeos usb/sdcard recovery.

So the hack in the the collabora uboot kernel-big.its doesnt seem to

work

Quoted 3 lines
Quoted 3 lines

anymore unless the padding is messing with the load address.

I am using mainline uboot with CONFIG_SYS_TEXT_BASE 0x81000100 should

this

Quoted 23 lines
Quoted 23 lines

be changed?

Also i am trying to figure out how padding is calculated in a fit image and this is confusing. Is the padding the actual description length?

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

Thus the padding.

Regards,

Tomeu

Quoted 10 lines

But I do think to remember that it was only an issue once U-Boot tried
to relocate itself.

I don't see any reason why my old branch wouldn't work today on your
machine, other than maybe your hw is a different revision with a memory chip that wasn't supported back then? I also don't see why mainline wouldn't work, provided you have that hack in the ITS.

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

I'm adding Sjoerd to CC in case he remembers.

Good luck,

Tomeu

Quoted 1 line

On Mon, May 1, 2017 at 7:45 PM, Matthew Gorski

<matt.gorski@gmail

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

.com>

Quoted 3 lines · wrote:

On Mon, May 1, 2017 at 7:34 PM, Simon Glass <

sjg at chromium.org>

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines · wrote:

Hi Matthew,

On 1 May 2017 at 17:27, Matthew Gorski <

matt.gorski at gmail.com

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

wrote:

On Mon, May 1, 2017 at 6:02 PM, Simon Glass

<[email protected]

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 4 lines · rg> wrote:

Hi Matthew,

On 1 May 2017 at 14:30, Matthew Gorski

<matt.gorski@gmail

Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

.com> wrote:

On Mon, May 1, 2017 at 2:36 PM, Simon Glass

<sjg@chromi

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

um.org>

Quoted 4 lines · wrote:
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 11:26, Matthew Gorski

<matt.gorski@g

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

mail.com>

Quoted 4 lines · wrote:
Quoted 4 lines

On Mon, May 1, 2017 at 1:03 PM, Simon Glass

<sjg@ch

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

romium.org>

Quoted 4 lines · wrote:
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 10:40, Matthew Gorski

<matt.gors

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

ki at gmail.com>
wrote:
Let me repost this to the bottom. New to the
mailing list ;)

I am using chained boot to test uboot as a

FIT

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

image so I I

don't

Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does

CONFIG_SPL_TEXT_BASE

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

need to be

adjusted

Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for

Tegra

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

from

sdcard/USB in

Quoted 3 lines
Quoted 3 lines

developer
mode. I can boot L4T fine with kernel v3.10.

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

What mainline branch should I try?

There's only one mainline, here:
http://git.denx.de/?p=u-boot.git;a=summary

There are various custodian branches but I

don't

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

believe the

tegra

Quoted 2 lines
Quoted 2 lines

one
has anything different from mainline at

present.

Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines
Quoted 26 lines

- Simon

I will give mainline a try with:

CONFIG_SYS_TEXT_BASE 0x8010E000
and

CONFIG_SPL_TEXT_BASE 0x80108000

I know I will also need:

CONFIG_DISPLAY_PORT=y

Do you mean CONFIG_DISPLAY? If so, it is already
defined.

CONFIG_VIDEO_TEGRA124=y

That is defined in mainline

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for the console to display command prompt.

The FIT config I am using is from

here:https://git.collabora.com

/cgit/user/tomeu/u-bo

Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 22 lines
Quoted 1 line
Quoted 1 line

ot.git/

commit/?h=nyan-big

Quoted 9 lines
Quoted 9 lines

Do I need to adjust:

load = <0>;
entry = <0>;

Quoted 5 lines
Quoted 5 lines

/dts-v1/;

/ {
description = "U-Boot + FDT --------- THIS
PADDING IS NEEDED

SO

Quoted 3 lines
Quoted 3 lines

THE
IMAGE STARTS AT THE RIGHT OFFSET";

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines
Quoted 2 lines

Perhaps you need to adjust this? How was the length
of it

calcualted?

Quoted 3 lines
Quoted 3 lines

I am really not sure how the padding was

calculated. I

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

just assumed
this
kernel-big.its FIT config was correct for nyan_big.

I

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

will try

using my

Quoted 3 lines
Quoted 3 lines

working linux kernel fit config.

Quoted 14 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

#address-cells = <1>;
images {
kernel at 1{
description = "kernel";
data = /incbin/("u-boot-dtb.bin");
type = "kernel_noload";

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

arch = "arm";
os = "linux";
compression = "none";
load = <0>;
entry = <0>;
};
fdt at 1{
description =

"tegra124-nyan-big.dtb";

Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines
Quoted 19 lines

data = /incbin/("dts/dt.dtb");
type = "flat_dt";
arch = "arm";
compression = "none";
hash at 1{
algo = "sha1";
};
};
};
configurations {
default = "conf at 1";
conf at 1{
kernel = "kernel at 1";
fdt = "fdt at 1";
};
};
};

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

please let me know if I should also adjust the

SPL

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line

CONFIG even

though

Quoted 6 lines
Quoted 6 lines

I
am chainbooting uboot:

https://www.chromium.org/chrom

ium-os/firmware-porti

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
Quoted 1 line

ng-guide/

using-nv-u-boot-on-the-samsung

-arm-chromebook#TOC-Installing

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

-nv-U-Boot-chained-U-Boot-method-

Quoted 2 lines
Quoted 2 lines

This is exynos, where we booted directly into

U-Boot.

Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 23 lines
Quoted 3 lines
Quoted 3 lines

Actually I'm
wondering we should boot directly into U-Boot
(instead of SPL) on

nyan

Quoted 18 lines
Quoted 18 lines

also. Perhaps someone at collabora would know? Did
you search the
mailing list?

Regards,
Simon

I have not searched the mailing list. What should I
search for?
Booting
nyan to u-boot directly bypassing SPL?

Here are two subjects to search for:

Veyron-speedy u-boot
[PATCH 0/20] tegra: Expand Nyan-big support

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

Regards,
Simon

Very odd if I do not use "#address-cells = <1>;" the display flashes and
reboots into recovery but if I do use #address-cells =

<1>;

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line

in my FIT

config

Quoted 2 lines

I get a blank screen
so something is working when not using the padding.

If you figure out where u-boot-dtb.bin needs to start by looking at
depthcharge or where the kernel starts, then you can figure out how
long the padding needs to be at the start of the FIT.

Rather

Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 35 lines
Quoted 6 lines

than
guessing...!

- Simon

Okay so depthcharge starts at 0x81000000 from here:

https://chromium.googlesource.com/chromiumos/platform/
depthcharge/+/master/board/nyan_big/defconfig#11

In my System.map for u-boot after building says the start is:
81000100 T __image_copy_start
81000100 T _start

Hence the define CONFIG_SYS_TEXT_BASE 0x81000100

So you say use 0x81000000 as the CONFIG_SYS_TEXT_BASE and not 0x81000100
correct?

Quoted 15 lines
Quoted 15 lines

/dts-v1/;

/ {
description = "Chrome OS nyan u-boot chain boot

method";
    #address-cells = <1>;
    images {
        kernel at 1{
Quoted 5 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

On May 1, 2017 12:11 PM, "Matthew Gorski" <

matt.gorski at gmail.com>

Quoted 3 lines
Quoted 3 lines

wrote:

On May 1, 2017 11:45 AM, "Simon Glass"

<sjg@chr

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

omium.org>

Quoted 4 lines · wrote:
Quoted 4 lines

Hi Matthew,

On 1 May 2017 at 09:37, Matthew Gorski

<matt.go

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

rski at gmail.com>
wrote:
Thanks for the reply Simon.

I have been trying to find the System.map

for

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line
Quoted 1 line

depthcharge to

see

Quoted 8 lines
Quoted 8 lines

the
kernel
load address but I am unable to find
anything. I have tried
multiple
CONFIG_SYS_TEXT_BASE settings with no luck.

How did you choose what to use? Also note

that

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

Tegra uses SPL

to

Quoted 5 lines
Quoted 5 lines

start, so you may need to adjust
CONFIG_SPL_TEXT_BASE instead.

I am creating my sdcard with a standard

linux

Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 21 lines
Quoted 1 line
Quoted 1 line

(Linux for

Tegra)

Quoted 17 lines
Quoted 17 lines

rootfs:

Did these instructions come from a web site
somewhere?

Partition an SD card

sudo cgpt create <MMC BLOCK DEVICE>
sudo cgpt add -b 34 -s 32768 -P 1 -S 1 -t
kernel <MMC BLOCK
DEVICE>
# 16
MB
kernel image partition
sudo cgpt add -b 32802 -s <ROOT PARTITION
SIZE in 512B

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

sectors>

Quoted 5 lines
Quoted 5 lines

-t
rootfs
<MMC BLOCK DEVICE>

cgpt doesn't seem to create a protective

MBR.

Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines

If one is not
already
in
place, it can be created with:

sudo gdisk <MMC BLOCK DEVICE> # and enter
command w

Copy data to the SD card

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

sudo dd if=./kernelpart.bin of=<MMC BLOCK
DEVICE>p1
sudo mkfs.ext4 <MMC BLOCK DEVICE>p2
sudo mount <MMC BLOCK DEVICE>p2 /mnt/

How are you actually making it boot? Is this

in

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

dev mode with

USB

Quoted 3 lines
Quoted 3 lines

boot
enabled and pressing Ctrl-U?

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

Also, as this is a mailing list, please avoid
top-posting.

- Simon

I am using chained boot to test uboot as a

FIT

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

image so I I

don't

Quoted 2 lines
Quoted 2 lines

have to
flash to spl flash. Does

CONFIG_SPL_TEXT_BASE

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 1 line
Quoted 1 line

need to be

adjusted

Quoted 4 lines
Quoted 4 lines

for
chained boot?

I am using instructions to boot Linux for

Tegra

Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 11 lines
Quoted 1 line
Quoted 1 line

from

sdcard/USB in

Quoted 8 lines
Quoted 8 lines

developer
mode. I can boot L4T fine with kernel v3.10.

What mainline branch should I try?

On Mon, May 1, 2017 at 11:14 AM, Simon

Glass

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 1 line
Quoted 1 line

<

sjg at chromium.org>

Quoted 2 lines
Quoted 2 lines

wrote:

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 3 lines
Quoted 3 lines

Hi Matthew,

On 1 May 2017 at 08:43, Matthew Gorski <

matt.gorski at gmail.com>

Quoted 2 lines
Quoted 2 lines

wrote:
I am porting u-boot to nyan_big and

need

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line

some input. I

have

Quoted 3 lines
Quoted 3 lines

been
searching
high and low and found this thread

here:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

[U-Boot] [PATCH

0/20]

Quoted 5 lines
Quoted 5 lines

tegra:
Expand
Nyan-big support

https://lists.denx.de/pipermai

l/u-boot/2

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 9 lines
Quoted 1 line
Quoted 1 line

015-March/209530.

html

Quoted 6 lines
Quoted 6 lines

I have tried to build u-boot with the
branch here:

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 1 line
Quoted 1 line

https://git.collabora.com/cgit

/user/tomeu/u-boot.git/commit/?h=nyan-big

Quoted 5 lines
Quoted 5 lines

and also the official chromium next
branch

Have you tried mainline U-Boot? It

already

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

supports nyan-big.
I'm
not
sure about the situation with the
downstream trees.

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 6 lines
Quoted 6 lines

I followed building instructions here:

https://www.chromium.org/chrom

ium-os/firmware-porting-guide/

using-nv-u-boot-on-the-samsung

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

-arm-chromebook

Quoted 7 lines
Quoted 7 lines

I build with these commands:

mkimage -e 0x81000100 -a 0x81000100 -f
kernel-big.its
kernel-u-boot

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

(with and without the load address
setting)

vbutil_kernel --arch arm --pack
kernel.bin --keyblock
/usr/share/vboot/devkeys/kerne

l.keyblock

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

--signprivate
/usr/share/vboot/devkeys/kerne

l_data_key.

Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 36 lines
Quoted 1 line
Quoted 1 line

vbprivk

--version 1

Quoted 6 lines
Quoted 6 lines

--config
dummy.txt --vmlinuz kernel-u-boot --
bootloader dummy.txt

I have had numerous failed attempts to
boot uboot from

sdcard

Quoted 13 lines
Quoted 13 lines

mmcblk1p1

Any help is appreciated I have only
gotten a blank screen
after
weeks
of
flashing. I can boot custom v3.10
kernels so I assume I am
using
the
correct building procedure. Thanks in
advance for help

from

Quoted 9 lines
Quoted 9 lines

the
u-boot
community.

It is possible that it needs a particular
address due to
limitations
in the FIT support on Nyan. I'm not sure
what it is but

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

might be

Quoted 4 lines
Quoted 4 lines

able
to take a look at some point.

How are you building your SD card? Are

you

Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 24 lines
Quoted 24 lines
Quoted 24 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

following some
instructions
from somewhere?

Quoted 15 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

Regards,
Simon

Quoted 8 lines
Quoted 8 lines
Quoted 6 lines

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

Quoted 7 lines
Quoted 6 lines
Quoted 5 lines
Quoted 3 lines

--
Sjoerd Simons
Collabora Ltd.

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
https://lists.denx.de/listinfo/u-boot

#30 lore raw

cover tegra: Expand Nyan-big support

Hi,

Quoted 9 lines · Matthew Gorski
Quoted 5 lines · Thomas Hoff

Hey Matthew,

Did you have any luck with this? I was attempting to do this a while back with no success.

Quoted 8 lines
Quoted 3 lines

Cheers,

Thomas

No unfortunately not. Simon was going to try himself at some point. I have a few u-boot forks im dying to chain-boot on nyan so I hope there is some progress. I think we need to see whats going on behind the scenes with a servo board and serial output because I can get u-boot to boot (i think) but it reboots immediately into recovery (no console on lcd display).

Let hope Simon gets some time in the near future ;)

Just to follow up on this thread I sent a series to enable chain booting on nyan-big.

Regards,
Simon

#31 lore raw

cover tegra: Expand Nyan-big support

Awesome! Thanks Simon.

Hey Matthew, you get any further with this?

Cheers,

Thomas

Quoted 33 lines · Simon Glass

Hi,

Quoted 4 lines · Matthew Gorski

On Fri, May 5, 2017 at 1:54 PM, Thomas Hoff <[email protected]>

Quoted 4 lines · wrote:
Quoted 4 lines

Hey Matthew,

Did you have any luck with this? I was attempting to do this a while

back with no success.

Quoted 7 lines
Quoted 4 lines

Cheers,

Thomas

No unfortunately not. Simon was going to try himself at some point. I

have a few u-boot forks im dying to chain-boot on nyan so I hope there is some progress. I think we need to see whats going on behind the scenes with a servo board and serial output because I can get u-boot to boot (i think) but it reboots immediately into recovery (no console on lcd display).

Quoted 2 lines

Let hope Simon gets some time in the near future ;)

Just to follow up on this thread I sent a series to enable chain booting on nyan-big.

Regards,
Simon