Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FS#1204 - zedboard kernel not boot #6541

Closed
openwrt-bot opened this issue Dec 2, 2017 · 3 comments
Closed

FS#1204 - zedboard kernel not boot #6541

openwrt-bot opened this issue Dec 2, 2017 · 3 comments
Labels

Comments

@openwrt-bot
Copy link

mybays:

BoardType:ZedBoard rev.c
All lede release including snapshots boot failed

log:
U-Boot SPL 2016.03 (Nov 20 2017 - 12:10:57)
mmc boot
Trying to boot from MMC
reading system.dtb
reading uImage
spl_load_image_fat: error reading image uImage, err - -1
reading u-boot-dtb.img
reading u-boot-dtb.img

U-Boot 2016.03 (Nov 20 2017 - 12:10:57 +0000)

Model: Zynq Zed Development Board
Board: Xilinx Zynq
DRAM: ECC disabled 512 MiB
MMC: sdhci@e0100000: 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@e0001000
Out: serial@e0001000
Err: serial@e0001000
Model: Zynq Zed Development Board
Board: Xilinx Zynq
Net: ZYNQ GEM: e000b000, phyaddr 0, interface rgmii-id

Warning: ethernet@e000b000 (eth0) using random MAC address - 9a:6a:72:d7:cf:dc
eth0: ethernet@e000b000
Hit any key to stop autoboot: 0
Zynq> printenv
baudrate=115200
bootcmd=run $modeboot
bootdelay=3
dfu_mmc=run dfu_mmc_info && dfu 0 mmc 0
dfu_mmc_info=set dfu_alt_info ${kernel_image} fat 0 1\;${devicetree_image} fat 0 1\;${ramdisk_image} fat 0 1
dfu_ram=run dfu_ram_info && dfu 0 ram 0
dfu_ram_info=set dfu_alt_info ${kernel_image} ram 0x3000000 0x500000\;${devicetree_image} ram 0x2A00000 0x20000\;${ramdisk_image} ram 0x2000000 0x600000
fdt_high=0x20000000
fdtcontroladdr=1eb24f90
fit_image=fit.itb
fit_size=0x800000
flash_off=0x100000
initrd_high=0x20000000
jtagboot=echo TFTPing FIT to RAM... && tftpboot ${load_addr} ${fit_image} && bootm ${load_addr}
load_addr=0x2000000
modeboot=sdboot
nor_flash_off=0xE2100000
norboot=echo Copying FIT from NOR flash to RAM... && cp.b ${nor_flash_off} ${load_addr} ${fit_size} && bootm ${load_addr}
sdboot=echo Copying FIT from SD to RAM... && load mmc 0 ${load_addr} ${fit_image} && bootm ${load_addr}
stderr=serial@e0001000
stdin=serial@e0001000
stdout=serial@e0001000
thor_mmc=run dfu_mmc_info && thordown 0 mmc 0
thor_ram=run dfu_ram_info && thordown 0 ram 0
usbboot=if usb start; then echo Copying FIT from USB to RAM... && load usb 0 ${load_addr} ${fit_image} && bootm ${load_addr}; fi

Environment size: 1241/131068 bytes
Zynq> setenv fit_image lede-zynq-zc702-fit.itb
Zynq> boot
Copying FIT from SD to RAM...
reading lede-zynq-zc702-fit.itb
5363072 bytes read in 915 ms (5.6 MiB/s)

Loading kernel from FIT Image at 02000000 ...

Using 'config@1' configuration
Verifying Hash Integrity ... OK
Trying 'kernel@1' kernel subimage
Description: ARM OpenWrt Linux-4.4.100
Type: Kernel Image
Compression: uncompressed
Data Start: 0x020000e4
Data Size: 3841960 Bytes = 3.7 MiB
Architecture: ARM
OS: Linux
Load Address: 0x00008000
Entry Point: 0x00008000
Hash algo: crc32
Hash value: dfa9a5b8
Hash algo: sha1
Hash value: 7a8c18ddc3c684cae9e42b11032b9461f74abc08
Verifying Hash Integrity ... crc32+ sha1+ OK

Loading ramdisk from FIT Image at 02000000 ...

Using 'config@1' configuration
Trying 'ramdisk@1' ramdisk subimage
Description: ARM OpenWrt zc702 ramdisk
Type: RAMDisk Image
Compression: gzip compressed
Data Start: 0x023aa1b8
Data Size: 1507038 Bytes = 1.4 MiB
Architecture: ARM
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Hash algo: crc32
Hash value: ad7db36e
Hash algo: sha1
Hash value: 0897d778cd4dfe15cb948d4ce86657d743ccc9b6
Verifying Hash Integrity ... crc32+ sha1+ OK

Loading fdt from FIT Image at 02000000 ...

Using 'config@1' configuration
Trying 'fdt@1' fdt subimage
Description: ARM OpenWrt zc702 device tree blob
Type: Flat Device Tree
Compression: uncompressed
Data Start: 0x0251a1a8
Data Size: 12483 Bytes = 12.2 KiB
Architecture: ARM
Hash algo: crc32
Hash value: 3f1a2246
Hash algo: sha1
Hash value: 1d92f37305263aaf7141e96692594b5a294b977a
Verifying Hash Integrity ... crc32+ sha1+ OK
Booting using the fdt blob at 0x251a1a8
Loading Kernel Image ... OK
Loading Ramdisk to 1e9b3000, end 1eb22ede ... OK
Loading Device Tree to 1e9ac000, end 1e9b20c2 ... OK

Starting kernel ...

undefined instruction
pc : [<0001e90c>] lr : [<60406919>]
reloc pc : [] lr : [<444be919>]
sp : 1eb24968 ip : 60406919 fp : 1ff488b0
r10: 00000000 r9 : 1eb27ef0 r8 : 020000e4
r7 : 60406919 r6 : 00008000 r5 : 1ffa5bb4 r4 : 00000000
r3 : 000030c3 r2 : 1e9ac000 r1 : 00000000 r0 : 1eb27fb0
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...

resetting ...

@openwrt-bot
Copy link
Author

txomon:

I have been testing this in the board for the last months and no change so far.

undefined instruction
pc : [<00008008>] lr : [<1ff4a86c>]
reloc pc : [] lr : [<0400086c>]
sp : 1eb26a58 ip : 000000ff fp : 00000000
r10: 00000001 r9 : 1eb29ef0 r8 : 1ff4a8f8
r7 : 00000000 r6 : 00008000 r5 : 1ffa6b8c r4 : 00000000
r3 : 00001e7b r2 : 1e9ae000 r1 : 00000000 r0 : 1eb29fb0
Flags: nZCv IRQs off FIQs off Mode SVC_32
Resetting CPU ...

This is using the latest development release

@openwrt-bot
Copy link
Author

luaraneda:

I had the same problem and I did some modifications to fix it.

You can find my changes on the pull request [[https://github.com//pull/942|#942]]

Can you please test my changes on your board to validate my results?

Cheers,

Luis Araneda.

@openwrt-bot
Copy link
Author

mybays:

Nice work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant