Skip to contentSkip to conversation

zynq_zc706_defconfig target works on zc702 board

Buildroot Fabien Marteau 2 participants 2 messages Feb 23, 2022

lore
Share & tools
lore
#0 lore raw

Hello,

I just tryied to compile buildroot for ZC702 board using target zynq_zc706_defconfig (ZC706).

With last buildroot git :

make zynq_zc706_defconfig
sudo dd if=output/images/sdcard.img of=/dev/mmcblk0

Booting the board with SDCard freshly formatted :

<debug_uart> Debug uart enabled

U-Boot SPL 2018.01 (Feb 23 2022 - 11:43:15)
mmc boot
Trying to boot from MMC1
spl_load_image_fat: error reading image fpga.bin, err - -2
spl: error reading image fpga.bin, err - 1
spl_load_image_fat_os: error reading image system.dtb, err - -2 reading u-boot.img
reading u-boot.img

U-Boot 2018.01 (Feb 23 2022 - 11:43:15 +0100) Xilinx Zynq ZC706

Model: Zynq ZC706 Development Board
Board: Xilinx Zynq
Silicon: v0.0
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   sdhci@e0100000: 0 (SD)
SF: Detected n25q128a with page size 512 Bytes, erase size 128 KiB, total 32 MiB

*** Warning - bad CRC, using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Net:   ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0

Zynq>

Then booting Linux :

Zynq> boot
Device: sdhci@e0100000
Manufacturer ID: 27
OEM: 5048
Name: SD16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
** Unable to read file uEnv.txt **
Copying Linux from SD to RAM...
reading uImage
3732256 bytes read in 212 ms (16.8 MiB/s) reading devicetree.dtb
13667 bytes read in 14 ms (953.1 KiB/s) reading uramdisk.image.gz
951488 bytes read in 65 ms (14 MiB/s)
## Booting kernel from Legacy Image at 02080000 ...

   Image Name:   Linux-4.9.0-xilinx
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3732192 Bytes = 3.6 MiB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name:
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 951424 Bytes = 929.1 KiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK
Loading Ramdisk to 1ff17000, end 1ffff480 ... OK Loading Device Tree to 1ff10000, end 1ff16562 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0

[...]

Starting network: OK

Welcome to Buildroot
buildroot login:

It works as is \o/

Do I have to make a patch to add the target?

Best regards,
Fabien Marteau
Armadeus System
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#1 lore raw

Hi Fabien,

Quoted 94 lines

Il giorno 23 feb 2022, alle ore 21:59, Fabien Marteau <[email protected]> ha scritto:

Hello,

I just tryied to compile buildroot for ZC702 board using target zynq_zc706_defconfig (ZC706).

With last buildroot git :

make zynq_zc706_defconfig
sudo dd if=output/images/sdcard.img of=/dev/mmcblk0

Booting the board with SDCard freshly formatted :

<debug_uart> Debug uart enabled

U-Boot SPL 2018.01 (Feb 23 2022 - 11:43:15)
mmc boot
Trying to boot from MMC1
spl_load_image_fat: error reading image fpga.bin, err - -2
spl: error reading image fpga.bin, err - 1
spl_load_image_fat_os: error reading image system.dtb, err - -2 reading u-boot.img
reading u-boot.img

U-Boot 2018.01 (Feb 23 2022 - 11:43:15 +0100) Xilinx Zynq ZC706

Model: Zynq ZC706 Development Board
Board: Xilinx Zynq
Silicon: v0.0
I2C:   ready
DRAM:  ECC disabled 1 GiB
MMC:   sdhci@e0100000: 0 (SD)
SF: Detected n25q128a with page size 512 Bytes, erase size 128 KiB, total 32 MiB

*** Warning - bad CRC, using default environment

In:    serial@e0001000
Out:   serial@e0001000
Err:   serial@e0001000
Net:   ZYNQ GEM: e000b000, phyaddr 7, interface rgmii-id
eth0: ethernet@e000b000
Hit any key to stop autoboot:  0

Zynq>

Then booting Linux :

Zynq> boot
Device: sdhci@e0100000
Manufacturer ID: 27
OEM: 5048
Name: SD16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.4 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
** Unable to read file uEnv.txt **
Copying Linux from SD to RAM...
reading uImage
3732256 bytes read in 212 ms (16.8 MiB/s) reading devicetree.dtb
13667 bytes read in 14 ms (953.1 KiB/s) reading uramdisk.image.gz
951488 bytes read in 65 ms (14 MiB/s)
## Booting kernel from Legacy Image at 02080000 ...

  Image Name:   Linux-4.9.0-xilinx
  Image Type:   ARM Linux Kernel Image (uncompressed)
  Data Size:    3732192 Bytes = 3.6 MiB

Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
Image Name:
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 951424 Bytes = 929.1 KiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
## Flattened Device Tree blob at 02000000
Booting using the fdt blob at 0x2000000 Loading Kernel Image ... OK
Loading Ramdisk to 1ff17000, end 1ffff480 ... OK Loading Device Tree to 1ff10000, end 1ff16562 ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0

[...]

Starting network: OK

Quoted 7 lines

Welcome to Buildroot
buildroot login:

It works as is \o/

Do I have to make a patch to add the target?

Sure, you can do that and add an entry in DEVELOPERS with you to maintain it.

But here I think we need specific tag names, dts files etc for zc702. And possibly bump all the versions for uboot and Linux.

Can you do that?

Best regards
Giulio

Quoted 8 lines

Best regards,
Fabien Marteau
Armadeus System
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot