AnsweredAssumed Answered

adau1761 on zynq

Question asked by 316638479@qq.com on May 29, 2013
Latest reply on Jun 20, 2013 by 316638479@qq.com

Hi,Larsc

We have run the audio-zynq-linux successfully.But in order to boot the root file system at the second partition of SD card,  We had to input the command"fatload mmc 0 0x3000000 uImage && fatload mmc 0 0x2A00000 && bootm 0x3000000 - 0x2A00000".It was so troubsome because we must input these commands every time when we boot the kernel.We want to switch to the root file system at the second partition of the SD card without inputting any command in the u-boot.How can we do?

 

We have tried to modify the macro called CONFIG_EXTRA_ENV_SETTINGS(in the file u-boot-xlnx/include/configs/zynq_common.h) as follows:

#define CONFIG_EXTRA_ENV_SETTINGS     \
"ethaddr=00:0a:35:00:01:22\0"     \
"kernel_image=uImage\0"     \
"ramdisk_image=uramdisk.image.gz\0"     \
"devicetree_image=devicetree.dtb\0"     \
"bitstream_image=system.bit.bin\0"     \
"loadbit_addr=0x100000\0"     \
"kernel_size=0x500000\0"     \
"devicetree_size=0x20000\0"     \
"ramdisk_size=0x5E0000\0"     \
"fdt_high=0x20000000\0"     \
"initrd_high=0x20000000\0"     \
"mmc_loadbit_fat=echo Loading bitstream from SD/MMC/eMMC to RAM.. && " \
"mmcinfo && " \
"fatload mmc 0 ${loadbit_addr} ${bitstream_image} && " \
"fpga load 0 ${loadbit_addr} ${filesize}\0" \
"norboot=echo Copying Linux from NOR flash to RAM... && " \
"cp 0xE2100000 0x3000000 ${kernel_size} && " \
"cp 0xE2600000 0x2A00000 ${devicetree_size} && " \
"echo Copying ramdisk... && " \
"cp 0xE2620000 0x2000000 ${ramdisk_size} && " \
"bootm 0x3000000 0x2000000 0x2A00000\0" \
"qspiboot=echo Copying Linux from QSPI flash to RAM... && " \
"sf probe 0 0 0 && " \
"sf read 0x3000000 0x100000 ${kernel_size} && " \
"sf read 0x2A00000 0x600000 ${devicetree_size} && " \
"echo Copying ramdisk... && " \
"sf read 0x2000000 0x620000 ${ramdisk_size} && " \
"bootm 0x3000000 0x2000000 0x2A00000\0" \
"sdboot=echo Copying Linux from SD to RAM... && " \
"mmcinfo && " \
"fatload mmc 0 0x3000000 ${kernel_image} && " \
"fatload mmc 0 0x2A00000 ${devicetree_image} && " \
"bootm 0x3000000 - 0x2A00000\0" \
"nandboot=echo Copying Linux from NAND flash to RAM... && " \
"nand read 0x3000000 0x100000 ${kernel_size} && " \
"nand read 0x2A00000 0x600000 ${devicetree_size} && " \
"echo Copying ramdisk... && " \
"nand read 0x2000000 0x620000 ${ramdisk_size} && " \
"bootm 0x3000000 0x2000000 0x2A00000\0" \
"jtagboot=echo TFTPing Linux to RAM... && " \
"tftp 0x3000000 ${kernel_image} && " \
"tftp 0x2A00000 ${devicetree_image} && " \
"tftp 0x2000000 ${ramdisk_image} && " \
"bootm 0x3000000 0x2000000 0x2A00000\0".

 

But finally it failed.We still had to input those commands in the u-boot.How can we do?

Outcomes