cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
1028271706@qq.com
Adventurer
Adventurer
3,559 Views
Registered: ‎06-19-2018

Ramdisk image is corrupt or invaild when I boot my zynq board

Jump to solution

I make boot files to boot my board, and I don't need ramdisk image, because my rootfs in ext4( like the pynq linux), and in fact, I burned the pynq linux to TF card, and make boot.bin, uImage, devicetree.dtb for my zynq board which is similar as zedboard,so I don't want ramdisk image, I delete all about ramdisk in the uboot/include/configs/zynq_common.h when i make u-boot.but when I BOOT my board,some errors like this appeared:

kernel.jpg

I really have no ramdisk image in the fat32 partition of my sd card, but why ramdisk was still checked, I just deleted all about it in zynq_common.h?

Thanks for your reply, and forgive my poor English.

0 Kudos
1 Solution

Accepted Solutions
1028271706@qq.com
Adventurer
Adventurer
3,487 Views
Registered: ‎06-19-2018

I finally solved the problem, I deleted all about ramdisk in sdboot at zynq_common.h, even the extra '$' can make a big trouble, so cut out completely ramdisk. 

View solution in original post

0 Kudos
6 Replies
1028271706@qq.com
Adventurer
Adventurer
3,547 Views
Registered: ‎06-19-2018

Here is my boot args:

bootargs = "console=ttyPS0,115200 root=/dev/mmcblk0p2 rw earlyprintk rootfstype=ext4 rootwait";

0 Kudos
trigger
Voyager
Voyager
3,525 Views
Registered: ‎09-14-2016

HI 1028271706@qq.com,

 

Please provide us a full u-boot log plz.

 

Cheers,

Trigger

0 Kudos
1028271706@qq.com
Adventurer
Adventurer
3,519 Views
Registered: ‎06-19-2018

Hi,trigger! Here is my uboot log below.

U-Boot 2015.04 (Oct 10 2018 - 00:38:32)

Board: Xilinx Zynq
I2C: ready
DRAM: ECC disabled 512 MiB
MMC: zynq_sdhci: 0
SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Board: Xilinx Zynq
Net: Gem.e000b000
reading uEnv.txt
286 bytes read in 13 ms (21.5 KiB/s)
Importing environment from SD ...
Hit any key to stop autoboot: 0
Device: zynq_sdhci
Manufacturer ID: 41
OEM: 3432
Name: SD16G
Tran Speed: 50000000
Rd Block Len: 512
SD version 3.0
High Capacity: Yes
Capacity: 14.5 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes
reading uEnv.txt
286 bytes read in 12 ms (22.5 KiB/s)
Loaded environment from uEnv.txt
Importing environment from SD ...
Running uenvcmd ...
Copying Linux from SD to RAM...
reading uImage
3648368 bytes read in 328 ms (10.6 MiB/s)
reading devicetree.dtb
**Unable to read file devicetree.dtb
Copying Linux from SD to RAM...
reading uImage
3648368 bytes read in 327 ms (10.6 MiB/s)
reading devicetree.dtb
9231 bytes read in 21 ms (428.7 KiB/s)
## Booting kernel from Legacy Image at 02080000 ...
Image Name: Linux-3.19.0-xilinx
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3648304 Bytes = 3.5 MiB
Load Address: 02080000
Entry Point: 02080000
Verifying Checksum ... OK
Wrong Ramdisk Image Format
Ramdisk image is corrupt or invalid

0 Kudos
1028271706@qq.com
Adventurer
Adventurer
3,488 Views
Registered: ‎06-19-2018

I finally solved the problem, I deleted all about ramdisk in sdboot at zynq_common.h, even the extra '$' can make a big trouble, so cut out completely ramdisk. 

View solution in original post

0 Kudos
uav1024
Visitor
Visitor
2,810 Views
Registered: ‎01-14-2019

Hi, thanks for your sharing, I have removed all the 'ramdisk' related parts in 'zynq-common.h' file, but it still returns 'Wrong Ramdisk Image Format' and 'Ramdisk image is corrupt or invalid' errors, can you give somes suggestions, thanks.

u-boot configs are as follows:

CONFIG_ARM=y
CONFIG_ARCH_ZYNQ=y
CONFIG_SYS_TEXT_BASE=0x4000000
CONFIG_SPL=y
CONFIG_DEBUG_UART_BASE=0xe0001000
CONFIG_DEBUG_UART_CLOCK=50000000
CONFIG_IDENT_STRING=" Xilinx Zynq EBAZ420X"
CONFIG_SPL_STACK_R_ADDR=0x200000
CONFIG_DEBUG_UART=y
CONFIG_DISTRO_DEFAULTS=y
CONFIG_IMAGE_FORMAT_LEGACY=y
CONFIG_SPL_STACK_R=y
CONFIG_SPL_OS_BOOT=y
CONFIG_SPL_SPI_LOAD=n
CONFIG_SYS_PROMPT="Zynq> "
CONFIG_CMD_MEMTEST=y
CONFIG_CMD_FPGA_LOADBP=y
CONFIG_CMD_FPGA_LOADFS=y
CONFIG_CMD_FPGA_LOADMK=y
CONFIG_CMD_FPGA_LOADP=y
CONFIG_CMD_GPIO=y
CONFIG_CMD_I2C=y
CONFIG_CMD_MMC=y
CONFIG_CMD_NAND=y
CONFIG_CMD_SF=y
CONFIG_CMD_USB=y
CONFIG_CMD_TFTPPUT=y
CONFIG_CMD_CACHE=y
CONFIG_CMD_EXT4_WRITE=y
CONFIG_DEFAULT_DEVICE_TREE="zynq-ebaz420x"
CONFIG_ENV_IS_IN_SPI_FLASH=n
CONFIG_NET_RANDOM_ETHADDR=y
CONFIG_SPL_DM_SEQ_ALIAS=y
CONFIG_FPGA_XILINX=y
CONFIG_FPGA_ZYNQPL=y
CONFIG_DM_GPIO=y
CONFIG_DM_I2C=y
CONFIG_SYS_I2C_CADENCE=y
CONFIG_LED=y
CONFIG_LED_GPIO=y
CONFIG_MISC=y
CONFIG_I2C_EEPROM=y
CONFIG_SYS_I2C_EEPROM_ADDR=0x0
CONFIG_SYS_I2C_EEPROM_ADDR_OVERFLOW=0x0
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_ZYNQ=y
CONFIG_PHY_MARVELL=y
CONFIG_PHY_REALTEK=y
CONFIG_PHY_XILINX=y
CONFIG_MII=y
CONFIG_ZYNQ_GEM=y
CONFIG_DEBUG_UART_ZYNQ=y
CONFIG_ZYNQ_SERIAL=y
CONFIG_USB=y
CONFIG_USB_EHCI_HCD=n
CONFIG_USB_ULPI_VIEWPORT=y
CONFIG_USB_ULPI=y
CONFIG_MTD_DEVICE=y
CONFIG_NAND=y
CONFIG_NAND_ZYNQ=y
CONFIG_OF_EMBED=y

 

 

zynq_err1.jpg

0 Kudos
Yechiel
Newbie
Newbie
539 Views
Registered: ‎05-24-2021

Hi,

You should add

+CONFIG_IMAGE_FORMAT_LEGACY=y

to your u-boot config file. Worked for me.

 

0 Kudos