<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi Troy,<div><br></div><div>Thanks a lot for your input!</div><div><br></div><div>Looks like there was some problem with my Qemu. I was using some older version "version 4.2.1 (Debian 1:4.2-3ubuntu6.11)".</div><div>The image came up fine when I tried with the latest Qemu "aspeed-6.0" branch, it gives the image version which you're using.</div><div><br></div><div>Output:</div><div>---------</div><div><div>Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 0.1.0 evb-ast2600 ttyS4</div><div><br></div><div>evb-ast2600 login: root</div><div>Password: </div><div>root@evb-ast2600:~# </div></div><div><br></div><div>BTW, is there an option with Qemu to boot u-boot and linux image separately? Also something like TFTP from u-boot (Qemu) to my VM (Ubuntu) where I'm running my TFTP server. Please let me know if there are any steps for the same.</div><div><br></div><div><br></div><div>Regards,</div><div>Vinoth Kumar RK</div><div><br></div></div></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 5 Feb 2021 at 12:59, Troy Lee <<a href="mailto:troy_lee@aspeedtech.com">troy_lee@aspeedtech.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Vinothkumar,<br>
<br>
I’m not sure what’s wrong. Beware that the QEMU will directly write into your image file, so you might want to running it on a copy or use -snapshot option.<br>
<br>
I could boot into OS with the following qemu command:<br>
qemu-system-arm -M ast2600-evb -drive file=image-bmc,format=raw,if=mtd -nographic -nic user<br>
<br>
My QEMU version:<br>
qemu-system-arm --version<br>
QEMU emulator version 5.2.50 (v5.2.0-991-g45240eed4f)<br>
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers<br>
<br>
Thanks,<br>
Troy Lee<br>
<br>
From: VINOTHKUMAR RK <<a href="mailto:vkrk.user@gmail.com" target="_blank">vkrk.user@gmail.com</a>> <br>
Sent: Friday, February 5, 2021 12:19 PM<br>
To: Troy Lee <<a href="mailto:troy_lee@aspeedtech.com" target="_blank">troy_lee@aspeedtech.com</a>><br>
Cc: <a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a><br>
Subject: Re: evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'<br>
<br>
Hi Troy,<br>
<br>
Thanks for sharing the changes, with this I'm able to generate mtd image. But when I try to load them through Qemu, it's getting stuck with the below error. Is there any workaround?<br>
<br>
Error log:<br>
------------<br>
fdt_root: FDT_ERR_BADMAGIC<br>
ERROR: root node setup failed<br>
- must RESET the board to recover.<br>
<br>
FDT creation failed! hanging...### ERROR ### Please RESET the board ###<br>
<br>
<br>
Qemu command:<br>
-----------------------<br>
qemu-system-arm -m 1G -M ast2600-evb -nographic -drive file=obmc-phosphor-image-evb-ast2600-20210205034901.static.mtd,format=raw,if=mtd -net nic -net user,hostfwd=:127.0.0.1:2222-:22,hostfwd=:127.0.0.1:2443-:443,hostname=qemu<br>
<br>
Qemu log:<br>
--------------<br>
U-Boot 2019.04 (Feb 04 2021 - 10:27:21 +0000)<br>
<br>
SOC: AST2600-A0 <br>
eSPI Mode: SIO:Enable : SuperIO-2e<br>
Eth: MAC0: RGMII, MAC1: RGMII, MAC2: RGMII, MAC3: RGMII<br>
Model: AST2600 EVB<br>
DRAM: already initialized, 240 MiB (capacity:256 MiB, VGA:64 MiB), ECC off<br>
PCIE-0: Link down<br>
MMC: <br>
<br>
sdhci_slot0@100: 1, sdhci_slot1@200: 2, emmc_slot0@100: 0<br>
Loading Environment from SPI Flash... *** Warning - spi_flash_probe_bus_cs() failed, using default environment<br>
<br>
In: serial@1e784000<br>
Out: serial@1e784000<br>
Err: serial@1e784000<br>
Model: AST2600 EVB<br>
Net: <br>
Warning: ftgmac@1e660000 (eth0) using random MAC address - 5e:23:16:3b:07:db<br>
eth0: ftgmac@1e660000<br>
Warning: ftgmac@1e680000 (eth1) using random MAC address - 92:2d:b9:4b:a5:93<br>
, eth1: ftgmac@1e680000<br>
Warning: ftgmac@1e670000 (eth2) using random MAC address - f6:16:60:c6:0a:2d<br>
, eth2: ftgmac@1e670000<br>
Warning: ftgmac@1e690000 (eth3) using random MAC address - 02:43:32:16:41:6d<br>
, eth3: ftgmac@1e690000<br>
Hit any key to stop autoboot: 0 <br>
## Loading kernel from FIT Image at 20100000 ...<br>
Using 'conf@aspeed-ast2600-evb.dtb' configuration<br>
Trying 'kernel@1' kernel subimage<br>
Description: Linux kernel<br>
Type: Kernel Image<br>
Compression: uncompressed<br>
Data Start: 0x2010012c<br>
Data Size: 3527112 Bytes = 3.4 MiB<br>
Architecture: ARM<br>
OS: Linux<br>
Load Address: 0x80001000<br>
Entry Point: 0x80001000<br>
Hash algo: sha256<br>
Hash value: d3bfde4459bab8272cda12f0747d47735521c9ee4f5786283cfea439398c976d<br>
Verifying Hash Integrity ... sha256+ OK<br>
## Loading ramdisk from FIT Image at 20100000 ...<br>
Using 'conf@aspeed-ast2600-evb.dtb' configuration<br>
Trying 'ramdisk@1' ramdisk subimage<br>
Description: obmc-phosphor-initramfs<br>
Type: RAMDisk Image<br>
Compression: uncompressed<br>
Data Start: 0x20465cf8<br>
Data Size: 1087608 Bytes = 1 MiB<br>
Architecture: ARM<br>
OS: Linux<br>
Load Address: unavailable<br>
Entry Point: unavailable<br>
Hash algo: sha256<br>
Hash value: 488f44eb0c954ef85ede0c1dde3803696b3637d41996fc2be9610bbdb756b1a9<br>
Verifying Hash Integrity ... sha256+ OK<br>
## Loading fdt from FIT Image at 20100000 ...<br>
Using 'conf@aspeed-ast2600-evb.dtb' configuration<br>
Trying 'fdt@aspeed-ast2600-evb.dtb' fdt subimage<br>
Description: Flattened Device Tree blob<br>
Type: Flat Device Tree<br>
Compression: uncompressed<br>
Data Start: 0x2045d408<br>
Data Size: 34852 Bytes = 34 KiB<br>
Architecture: ARM<br>
Hash algo: sha256<br>
Hash value: a9bcf2a34ea7477d2c5f86ec793b659ecce07554dee5897460198f513ede4d0b<br>
Verifying Hash Integrity ... sha256+ OK<br>
Booting using the fdt blob at 0x2045d408<br>
Loading Kernel Image ... OK<br>
Loading Ramdisk to 8ce57000, end 8cf60878 ... OK<br>
Loading Device Tree to 8ce4b000, end 8ce56823 ... OK<br>
fdt_root: FDT_ERR_BADMAGIC<br>
ERROR: root node setup failed<br>
- must RESET the board to recover.<br>
<br>
FDT creation failed! hanging...### ERROR ### Please RESET the board ###<br>
<br>
<br>
<br>
<br>
<br>
Regards,<br>
Vinoth Kumar RK<br>
<br>
On Fri, 5 Feb 2021 at 07:57, Troy Lee <mailto:<a href="mailto:troy_lee@aspeedtech.com" target="_blank">troy_lee@aspeedtech.com</a>> wrote:<br>
Hi Vinothkumar,<br>
<br>
Please refer to the following two changes in Gerrit:<br>
• <a href="https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/39343" rel="noreferrer" target="_blank">https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/39343</a><br>
• <a href="https://gerrit.openbmc-project.xyz/c/openbmc/meta-aspeed/+/39344" rel="noreferrer" target="_blank">https://gerrit.openbmc-project.xyz/c/openbmc/meta-aspeed/+/39344</a><br>
<br>
Thanks,<br>
Troy Lee<br>
<br>
From: openbmc <openbmc-bounces+troy_lee=mailto:<a href="mailto:aspeedtech.com@lists.ozlabs.org" target="_blank">aspeedtech.com@lists.ozlabs.org</a>> On Behalf Of VINOTHKUMAR RK<br>
Sent: Thursday, February 4, 2021 8:28 PM<br>
To: mailto:<a href="mailto:openbmc@lists.ozlabs.org" target="_blank">openbmc@lists.ozlabs.org</a><br>
Subject: evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'<br>
<br>
Hi,<br>
<br>
I'm trying to build for evb-ast2600 platform, but it doesn't succeed. Please help.<br>
<br>
Build command: (fresh checkout and build)<br>
TEMPLATECONF=meta-evb/meta-evb-aspeed/meta-evb-ast2600/conf . openbmc-env<br>
bitbake obmc-phosphor-image<br>
<br>
Branch details:<br>
commit 7dc2f7a38dccb3d87a9b79d0a66b25da1027a72f <br>
<br>
<br>
Error Log:<br>
Loading cache: 100% | | ETA: --:--:--<br>
Loaded 0 entries from dependency cache.<br>
Parsing recipes: 100% |########################################################################################################################################################################| Time: 0:00:44<br>
Parsing of 2424 .bb files complete (0 cached, 2424 parsed). 3683 targets, 362 skipped, 0 masked, 0 errors.<br>
WARNING: No bb files in default matched BBFILE_PATTERN_meta-evb-ast2600 '^/home/vinoth/project/openbmc/meta-evb/meta-evb-aspeed/meta-evb-ast2600/'<br>
NOTE: Resolving any missing task queue dependencies<br>
<br>
Build Configuration:<br>
BB_VERSION = "1.49.0"<br>
BUILD_SYS = "x86_64-linux"<br>
NATIVELSBSTRING = "ubuntu-20.04"<br>
TARGET_SYS = "arm-openbmc-linux-gnueabi"<br>
MACHINE = "evb-ast2600"<br>
DISTRO = "openbmc-phosphor"<br>
DISTRO_VERSION = "0.1.0"<br>
TUNE_FEATURES = "arm armv7a vfp vfpv4d16 callconvention-hard"<br>
TARGET_FPU = "hard"<br>
meta <br>
meta-poky <br>
meta-oe <br>
meta-networking <br>
meta-python <br>
meta-phosphor <br>
meta-aspeed <br>
meta-evb-ast2600 = "master:7dc2f7a38dccb3d87a9b79d0a66b25da1027a72f"<br>
<br>
Initialising tasks: 100% |#####################################################################################################################################################################| Time: 0:00:03<br>
Sstate summary: Wanted 1378 Found 939 Missed 439 Current 0 (68% match, 0% complete)<br>
NOTE: Executing Tasks<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_metadata: Feature 'phosphor-gpio-keys' not found, but KERNEL_DANGLING_FEATURES_WARN_ONLY is set<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_metadata: This may cause runtime issues, dropping feature and allowing configuration to continue<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_metadata: Feature 'phosphor-vlan' not found, but KERNEL_DANGLING_FEATURES_WARN_ONLY is set<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_metadata: This may cause runtime issues, dropping feature and allowing configuration to continue<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_configme: Feature 'phosphor-gpio-keys' not found, but KERNEL_DANGLING_FEATURES_WARN_ONLY is set<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_configme: This may cause runtime issues, dropping feature and allowing configuration to continue<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_configme: Feature 'phosphor-vlan' not found, but KERNEL_DANGLING_FEATURES_WARN_ONLY is set<br>
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_configme: This may cause runtime issues, dropping feature and allowing configuration to continue<br>
WARNING: obmc-phosphor-sysd-1.0-r1 do_package_qa: QA Issue: obmc-phosphor-sysd: SRC_URI uses PN not BPN [src-uri-bad]<br>
ERROR: obmc-phosphor-image-1.0-r0 do_generate_static: Image '/home/vinoth/project/openbmc/build/tmp/deploy/images/evb-ast2600/u-boot.bin' is too large!<br>
ERROR: Logfile of failure stored in: /home/vinoth/project/openbmc/build/tmp/work/evb_ast2600-openbmc-linux-gnueabi/obmc-phosphor-image/1.0-r0/temp/log.do_generate_static.2176796<br>
ERROR: Task (/home/vinoth/project/openbmc/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb:do_generate_static) failed with exit code '1'<br>
NOTE: Tasks Summary: Attempted 4041 tasks of which 2680 didn't need to be rerun and 1 failed.<br>
<br>
Summary: 1 task failed:<br>
/home/vinoth/project/openbmc/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb:do_generate_static<br>
Summary: There were 10 WARNING messages shown.<br>
Summary: There was 1 ERROR message shown, returning a non-zero exit code.<br>
<br>
<br>
<br>
Regards,<br>
VINOTHKUMAR RK<br>
</blockquote></div>