[U-Boot] Enc: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")

Alexandre N. Perfeito perfeitoan at hotmail.com
Fri Sep 8 18:33:16 UTC 2017


    FYI

________________________________
De: sjg at google.com <sjg at google.com> em nome de Simon Glass <sjg at chromium.org>
Enviado: quinta-feira, 7 de setembro de 2017 21:16
Para: Tom Warren
Cc: Alexandre N. Perfeito
Assunto: Re: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")

Hi Alexander,

Can you please send this to the U-Boot list/ It's fine to cc me but it needs to go to the list.

Regards,
Simon


On 7 September 2017 at 17:35, Tom Warren <TWarren at nvidia.com<mailto:TWarren at nvidia.com>> wrote:
Sorry, Alexander. I have no experience trying to load U-Boot this way on Nyan-big. Hopefully Simon can help here ..

Tom

From: Alexandre N. Perfeito [mailto:perfeitoan at hotmail.com<mailto:perfeitoan at hotmail.com>]
Sent: Thursday, September 07, 2017 4:26 PM
To: Tom Warren <TWarren at nvidia.com<mailto:TWarren at nvidia.com>>
Cc: Simon Glass <sjg at chromium.org<mailto:sjg at chromium.org>>
Subject: Re: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")


Hi Tom,



    I Try to running Linux Mainline Kernel V 4.4.0 to boot up in my chromebook using Ctrl+U in dev mode  and using USBv3.0 drive as a drive.



I using this command:


aperfeito at alarm:/# sudo make -j5  uImage UIMAGE_LOADADDR=0x82408000 dtbs modules


In doc in http://git.denx.de/?p=u-boot.git;a=blob_plain;f=doc/README.chromium;hb=HEAD

SAY:

1. Patch U-Boot



Open include/configs/tegra124-common.h



Change:



#define CONFIG_SYS_TEXT_BASE  0x80110000



to:



#define CONFIG_SYS_TEXT_BASE  0x81000100
I did this and compiled U-boot.... OK

And after copy the files generated by Kernel compilation (uImage) Mychromebooks BLEPS everytime when try to boot with this files generated:
vbutil_kernel \
    --pack vmlinux.kpart \
    --version 1 \
    --vmlinuz vmlinux.uimg \
    --arch arm \
    --keyblock  /usr/share/vboot/devkeys/kernel.keyblock \
    --signprivate /usr/share/vboot/devkeys/kernel_data_key.vbprivk \
    --config config.txt \                                                                         #  console=tty0 init=/sbin/init root=PARTUUID=%U/PARTNROFF=1 rootwait rw noinitrd
    --bootloader bootloader.bin  #dummy

file vmlinux.kpart created

 Put the file vmlinux.kpart in Kernel Partition /dev/sda6 and file uImage compiled  in /boot also dtb(s) tegra124-nyan-big and -blaze.dtbs

My USB:
aperfeito at alarm ~]$ sudo cgpt show /dev/sda
[sudo] password for aperfeito:
       start        size            part           contents
           0           1                                PMBR (Boot GUID: AD11024D-1016-B345-A21D-F7B823B0318A)
           1           1                                Pri GPT header
           2          32                               Pri GPT table
          64       32768           6              Label: "KERN-A"
                                                          Type: ChromeOS kernel
                                                          UUID: D43B02E7-AF2D-3642-93D8-370D84193655
                                                          Attr: priority=0 tries=0 successful=0
       65600    53542815     7             Label: "ROOT-A"
                                                         Type: 0FC63DAF-8483-4772-8E79-3D69D8477DE4
                                                         UUID: A01D12A1-C0E2-D54C-B68A-6E24E3896AE2
    61997023          32                       Sec GPT table
    61997055           1                        Sec GPT header


The ADDRESS IS RIGHT ???? 0x82408000


________________________________
De: Tom Warren <TWarren at nvidia.com<mailto:TWarren at nvidia.com>>
Enviado: sexta-feira, 21 de julho de 2017 12:26
Para: Alexandre N. Perfeito
Assunto: RE: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")


Sorry, Alexander. I’m not sure what you are asking me to do here.



I’ve got an action-item to look at Simon’s Nyan-big patches, but haven’t had a chance to do that this week. I’ll try to get to it early next week, and if everything looks good I’ll post a PR to bring those patches in to u-boot/tegra.



Hope this helps,



Tom



From: Alexandre N. Perfeito [mailto:perfeitoan at hotmail.com]
Sent: Friday, July 21, 2017 10:23 AM
To: Tom Warren <TWarren at nvidia.com<mailto:TWarren at nvidia.com>>
Subject: Enc: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")



    Tom,



            Hi its me again , Alexander and I been chat with Simon and be send back to you for....Coud you foward to someone to help with this tip to i need  resolve to boot-up the board nyan-big Using the 4.4.x.x kernel.



Thanks again



Perfeito, Alexander



De: sjg at google.com<mailto:sjg at google.com> <sjg at google.com<mailto:sjg at google.com>> em nome de Simon Glass <sjg at chromium.org<mailto:sjg at chromium.org>>
Enviado: sexta-feira, 21 de julho de 2017 05:48
Para: Alexandre N. Perfeito
Cc: u-boot at lists.denx.de<mailto:u-boot at lists.denx.de>
Assunto: Re: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")

There is a series which shows how to do this for tegra and rockchip.
It is at u-boot-dm/chain-working and you can find a README there as
well.

The series has not been applied yet - I think it is in Tom Warren's queue?

Regards,
Simon
[...]

________________________________

De: sjg at google.com<mailto:sjg at google.com> <sjg at google.com<mailto:sjg at google.com>> em nome de Simon Glass <sjg at chromium.org<mailto:sjg at chromium.org>>
Enviado: sexta-feira, 21 de julho de 2017 05:48
Para: Alexandre N. Perfeito
Cc: u-boot at lists.denx.de<mailto:u-boot at lists.denx.de>
Assunto: Re: Uboot compatible with board Tegra124-nyan-big (ChromeBook G3 HP 14")



Hi Alexandre,

[...]

>>     Hi , My Name is Alexander and i need some tip information about U-boot
>> Board Nyan-Big to runinng Linux v4.4.x.x.
>
> Can you please resend this to the U-Boot mailing list and cc me?
>
> Thanks,
> Simon
>>
>>
>> I compiled source 4.4.0.70 Ubuntu distribution in chroot environment in my
>> chormebook Tegra Tk1.
>> After compilation the generated files were the following:
>>
>>
>>
>> [aperfeito at alarm boot]$ ls -l
>> total 24992
>> -rw-r--r-- 1 root root    98874 Jul 13 14:54 config-4.4.70-ARCH
>> -rw-r--r-- 1 root root  8277506 Jul 13 14:54 initrd.img-4.4.70-ARCH
>> -rw-r--r-- 1 root root  2033244 Jul 13 14:54 System.map-4.4.70-ARCH
>> -rw-r--r-- 1 root root 15175680 Jul 13 14:54 vmlinuz-4.4.70-ARCH
>>
>> I also compiled the u-boot-tegra in the same environment in chroot Ubuntu
>> Xenial distribution these were compiled according to the email of Tom Warren
>> send before
>>
>>   Make 'nyan-big_defconfig' and everything ok as you see below the
>> generated files:
>>
>>
>> [aperfeito at alarm u-boot-tegra]$ ls *.bin
>> u-boot.bin      u-boot-dtb-tegra.bin  u-boot-nodtb-tegra.bin
>> u-boot-dtb.bin  u-boot-nodtb.bin      u-boot-tegra.bin
>>
>> Now is the tip I'm asking you:
>> I have two suggestions on how to put this in the KERNEL partition of my
>> USB.
>>   My USB has two partitions
>>    To 1st. KERNEL Name with 16 megabytes of space dev / sda6
>>    A 2st.  ROOFS   Name approximately 29 Gigabytes of space where I worked
>> to compile the UbuntuXenial and Uboot-Tegra srcs kernel as you see in the
>> email.
>>
>>
>> Sugestion : 1
>> mkimage -D "-I dts -O dtb -p 2048" -f kernel.its vmlinux.uimg
>>   dd if=/dev/zero of=bootloader.bin bs=512 count=1
>>   vbutil_kernel \
>>     --pack vmlinux.kpart \
>>     --version 1 \
>>     --vmlinuz vmlinux.uimg \
>>     --arch arm \
>>     --keyblock kernel.keyblock \   --> How I do This  if necessary
>>     --signprivate kernel_data_key.vbprivk \  --> How I do This if
>> necessary
>>     --config cmdline \ --> TXT file whit this config below
>>     --bootloader bootloader.bin
>>
>> kernel.its adjust to files below as given to te src kernel 4.4.0-70
>> ./arch/arm/boot/dts/tegra124-nyan-blaze.dtb
>> ./arch/arm/boot/dts/tegra124-nyan-big.dtb
>> ___________________________________________________TXT CONFIG FILE
>> __________________________________________________
>> console=tty1 init=/sbin/init root=PARTUUID=%U/PARTNROFF=1 rootwait rw
>> noinitrd lsm.module_locking=0  ## OR ###
>> initrd=/boot/initrd.img-4.4.0-ARCH console=ttyS0,115200n8 console=tty1
>> ignore_loglevel earlyprintk cgroup_enable=memory root=/dev/sda7
>>
>>
>>       ###  For config line need your sugestion with is the best.
>>
>>
>> Sugestion: 2
>>
>>   I have to copy the kernel, generated initramfs, and dtb to the SDA6
>> partition and added the following kernel config to /dev/sda7/roofsparttion
>> :/boot/extlinux/extlinux.conf
>>
>> LABEL UbuntuXenial
>>  MENU LABEL UbuntuXenial on sda7 with 4.4 kernel
>>  LINUX /boot/vmlinuz-4.4.0
>>  FDT /boot/dtb/tegra124-nyan-big.dtb
>>  APPEND initrd=/boot/initrd.img-4.4.0-ARCH console=ttyS0,115200n8
>> console=tty1 ignore_loglevel earlyprintk cgroup_enable=memory root=/dev/sda7
>>
>>
>>
>> How to make U-boot-Tegra now Work with Kernel 4.4.x.x as v3.10.x.x Kernels
>> booting on USB.

There is a series which shows how to do this for tegra and rockchip.
It is at u-boot-dm/chain-working and you can find a README there as
well.

The series has not been applied yet - I think it is in Tom Warren's queue?

Regards,
Simon
[...]

________________________________
This email message is for the sole use of the intended recipient(s) and may contain confidential information.  Any unauthorized review, use, disclosure or distribution is prohibited.  If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
________________________________



More information about the U-Boot mailing list