evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'

Troy Lee troy_lee at aspeedtech.com
Wed Feb 17 13:40:57 AEDT 2021


Hi Vinoth Kumar,

> mount: mounting /dev/mtdblock4 on run/initramfs/ro failed: Invalid argument
It seems that kernel is corrected loaded and runs, but the rofs isn’t.
You could check if the rofs in your flash image, or you could load it into ram through tftp, then modifying bootarg indicate Kernel to mount rofs from different place.


Thanks,
Troy Lee


From: VINOTHKUMAR RK <vkrk.user at gmail.com> 
Sent: Monday, February 15, 2021 7:46 PM
To: Troy Lee <troy_lee at aspeedtech.com>
Cc: openbmc at lists.ozlabs.org
Subject: Re: evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'

Hi Troy,

I tried to load the Kernel image (fitImage-obmc-phosphor-initramfs-evb-ast2600--5.8.17+git0+3cc95ae407-r0-evb-ast2600-20210205034901.bin) directly through TFTP in evb-ast2600. I could see a crash due to some file system mounting issue. Can you please let me know if you've any fix/workaround for this issue?

Please check the below link for complete log:
- https://gist.github.com/vkrk-user/909b554aa4cddd10663ad706d4c182a7


Crash log:
-------------
mount: mounting /dev/mtdblock4 on run/initramfs/ro failed: Invalid argument
[    2.475872] jffs2: notice: (98) jffs2_build_xattr_subsystem: complete building xattr subsystem, 2 of xdatum (0 unchecked, 2 orphan) and 2 of xref (2 dead, 0 orphan) found.
[    2.768965] overlayfs: upper fs does not support tmpfile.
[    3.040864] overlayfs: upper fs does not support RENAME_WHITEOUT.
chroot: can't execute '/bin/sh': No such file or directory

Unable to confirm /sbin/init is an executable non-empty file
in[    3.333044] Kernel panic - not syncing: Attempted to kill init! exitcode=0x00000100
[    3.342421] CPU: 0 PID: 1 Comm: init Not tainted 5.8.17-3cc95ae #1
[    3.349316] Hardware name: Generic DT based system
[    3.354661] Backtrace:
[    3.357411] [<8010d92c>] (dump_backtrace) from [<8010db80>] (show_stack+0x20/0x24)
[    3.365860]  r7:80a049bc r6:60000093 r5:00000000 r4:80c66358
[    3.372184] [<8010db60>] (show_stack) from [<808b7000>] (dump_stack+0x9c/0xb0)
[    3.380248] [<808b6f64>] (dump_stack) from [<801211a0>] (panic+0x114/0x340)
[    3.388016]  r7:80a049bc r6:80c0df08 r5:00000000 r4:80c88380
[    3.394336] [<8012108c>] (panic) from [<80127178>] (complete_and_exit+0x0/0x2c)
[    3.402492]  r3:00000001 r2:00000000 r1:00000100 r0:80a049bc
[    3.408803]  r7:ffffe000
[    3.411630] [<8012678c>] (do_exit) from [<80127214>] (do_group_exit+0x50/0xc8)
[    3.419677]  r7:000000f8
[    3.422503] [<801271c4>] (do_group_exit) from [<801272ac>] (__wake_up_parent+0x0/0x30)
[    3.431338]  r7:000000f8 r6:00000004 r5:00000004 r4:006ec190
[    3.437656] [<8012728c>] (sys_exit_group) from [<80100060>] (ret_fast_syscall+0x0/0x54)
[    3.446587] Exception stack(0xbd0dffa8 to 0xbd0dfff0)
[    3.452225] ffa0:                   006ec190 00000004 00000001 00000000 00000001 006ec190
[    3.461351] ffc0: 006ec190 00000004 00000004 000000f8 00000000 00000000 00507a7c 00000000
[    3.470476] ffe0: 00507b34 7ed76a14 00497934 76dcc574
[    3.476121] CPU1: stopping
[    3.479141] CPU: 1 PID: 99 Comm: jffs2_gcd_mtd5 Not tainted 5.8.17-3cc95ae #1
[    3.487099] Hardware name: Generic DT based system



Regards,
Vinoth Kumar RK

On Fri, 5 Feb 2021 at 14:58, Troy Lee <mailto:troy_lee at aspeedtech.com> wrote:
Hi Vinothkumar,
 
If you want to boot different Kernel from TFTP, I think you can use tftp command in u-boot.
ast# dhcp
ast# tftp 0x83000000 serverip:/path/image-kernel
ast# bootm 0x83000000
 
If you want to use qemu options loading u-boot/kernel images to different memory offset, I’m not familiar with this. Need some expert’s help here.
 
Thanks,
Troy Lee
 
From: VINOTHKUMAR RK <mailto:vkrk.user at gmail.com> 
Sent: Friday, February 5, 2021 4:16 PM
To: Troy Lee <mailto:troy_lee at aspeedtech.com>
Cc: mailto:openbmc at lists.ozlabs.org
Subject: Re: evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'
 
Hi Troy,
 
Thanks a lot for your input!
 
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)".
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.
 
Output:
---------
Phosphor OpenBMC (Phosphor OpenBMC Project Reference Distro) 0.1.0 evb-ast2600 ttyS4
 
evb-ast2600 login: root
Password: 
root at evb-ast2600:~# 
 
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.
 
 
Regards,
Vinoth Kumar RK
 
 
On Fri, 5 Feb 2021 at 12:59, Troy Lee <mailto:troy_lee at aspeedtech.com> wrote:
Hi Vinothkumar,

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.

I could boot into OS with the following qemu command:
qemu-system-arm -M ast2600-evb -drive file=image-bmc,format=raw,if=mtd -nographic -nic user

My QEMU version:
qemu-system-arm --version
QEMU emulator version 5.2.50 (v5.2.0-991-g45240eed4f)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers

Thanks,
Troy Lee

From: VINOTHKUMAR RK <mailto:vkrk.user at gmail.com> 
Sent: Friday, February 5, 2021 12:19 PM
To: Troy Lee <mailto:troy_lee at aspeedtech.com>
Cc: mailto:openbmc at lists.ozlabs.org
Subject: Re: evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'

Hi Troy,

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?

Error log:
------------
fdt_root: FDT_ERR_BADMAGIC
ERROR: root node setup failed
 - must RESET the board to recover.

FDT creation failed! hanging...### ERROR ### Please RESET the board ###


Qemu command:
-----------------------
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

Qemu log:
--------------
U-Boot 2019.04 (Feb 04 2021 - 10:27:21 +0000)

SOC: AST2600-A0 
eSPI Mode: SIO:Enable : SuperIO-2e
Eth: MAC0: RGMII, MAC1: RGMII, MAC2: RGMII, MAC3: RGMII
Model: AST2600 EVB
DRAM:  already initialized, 240 MiB (capacity:256 MiB, VGA:64 MiB), ECC off
PCIE-0: Link down
MMC:   

sdhci_slot0 at 100: 1, sdhci_slot1 at 200: 2, emmc_slot0 at 100: 0
Loading Environment from SPI Flash... *** Warning - spi_flash_probe_bus_cs() failed, using default environment

In:    serial at 1e784000
Out:   serial at 1e784000
Err:   serial at 1e784000
Model: AST2600 EVB
Net:   
Warning: ftgmac at 1e660000 (eth0) using random MAC address - 5e:23:16:3b:07:db
eth0: ftgmac at 1e660000
Warning: ftgmac at 1e680000 (eth1) using random MAC address - 92:2d:b9:4b:a5:93
, eth1: ftgmac at 1e680000
Warning: ftgmac at 1e670000 (eth2) using random MAC address - f6:16:60:c6:0a:2d
, eth2: ftgmac at 1e670000
Warning: ftgmac at 1e690000 (eth3) using random MAC address - 02:43:32:16:41:6d
, eth3: ftgmac at 1e690000
Hit any key to stop autoboot:  0 
## Loading kernel from FIT Image at 20100000 ...
   Using 'conf at aspeed-ast2600-evb.dtb' configuration
   Trying 'kernel at 1' kernel subimage
     Description:  Linux kernel
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x2010012c
     Data Size:    3527112 Bytes = 3.4 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x80001000
     Entry Point:  0x80001000
     Hash algo:    sha256
     Hash value:   d3bfde4459bab8272cda12f0747d47735521c9ee4f5786283cfea439398c976d
   Verifying Hash Integrity ... sha256+ OK
## Loading ramdisk from FIT Image at 20100000 ...
   Using 'conf at aspeed-ast2600-evb.dtb' configuration
   Trying 'ramdisk at 1' ramdisk subimage
     Description:  obmc-phosphor-initramfs
     Type:         RAMDisk Image
     Compression:  uncompressed
     Data Start:   0x20465cf8
     Data Size:    1087608 Bytes = 1 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: unavailable
     Entry Point:  unavailable
     Hash algo:    sha256
     Hash value:   488f44eb0c954ef85ede0c1dde3803696b3637d41996fc2be9610bbdb756b1a9
   Verifying Hash Integrity ... sha256+ OK
## Loading fdt from FIT Image at 20100000 ...
   Using 'conf at aspeed-ast2600-evb.dtb' configuration
   Trying 'fdt at aspeed-ast2600-evb.dtb' fdt subimage
     Description:  Flattened Device Tree blob
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x2045d408
     Data Size:    34852 Bytes = 34 KiB
     Architecture: ARM
     Hash algo:    sha256
     Hash value:   a9bcf2a34ea7477d2c5f86ec793b659ecce07554dee5897460198f513ede4d0b
   Verifying Hash Integrity ... sha256+ OK
   Booting using the fdt blob at 0x2045d408
   Loading Kernel Image ... OK
   Loading Ramdisk to 8ce57000, end 8cf60878 ... OK
   Loading Device Tree to 8ce4b000, end 8ce56823 ... OK
fdt_root: FDT_ERR_BADMAGIC
ERROR: root node setup failed
 - must RESET the board to recover.

FDT creation failed! hanging...### ERROR ### Please RESET the board ###





Regards,
Vinoth Kumar RK

On Fri, 5 Feb 2021 at 07:57, Troy Lee <mailto:mailto:troy_lee at aspeedtech.com> wrote:
Hi Vinothkumar,
 
Please refer to the following two changes in Gerrit:
• https://gerrit.openbmc-project.xyz/c/openbmc/meta-phosphor/+/39343https://gerrit.openbmc-project.xyz/c/openbmc/meta-aspeed/+/39344
 
Thanks,
Troy Lee
 
From: openbmc <openbmc-bounces+troy_lee=mailto:mailto:aspeedtech.com at lists.ozlabs.org> On Behalf Of VINOTHKUMAR RK
Sent: Thursday, February 4, 2021 8:28 PM
To: mailto:mailto:openbmc at lists.ozlabs.org
Subject: evb-ast2600: Getting some build errors - 'u-boot.bin' is too large!'
 
Hi,
 
I'm trying to build for evb-ast2600 platform, but it doesn't succeed. Please help.
 
Build command: (fresh checkout and build)
TEMPLATECONF=meta-evb/meta-evb-aspeed/meta-evb-ast2600/conf . openbmc-env
bitbake obmc-phosphor-image
 
Branch details:
commit 7dc2f7a38dccb3d87a9b79d0a66b25da1027a72f 
 
 
Error Log:
Loading cache: 100% |                                                                                                                                                                         | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |########################################################################################################################################################################| Time: 0:00:44
Parsing of 2424 .bb files complete (0 cached, 2424 parsed). 3683 targets, 362 skipped, 0 masked, 0 errors.
WARNING: No bb files in default matched BBFILE_PATTERN_meta-evb-ast2600 '^/home/vinoth/project/openbmc/meta-evb/meta-evb-aspeed/meta-evb-ast2600/'
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "1.49.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "arm-openbmc-linux-gnueabi"
MACHINE              = "evb-ast2600"
DISTRO               = "openbmc-phosphor"
DISTRO_VERSION       = "0.1.0"
TUNE_FEATURES        = "arm armv7a vfp vfpv4d16 callconvention-hard"
TARGET_FPU           = "hard"
meta                 
meta-poky            
meta-oe              
meta-networking      
meta-python          
meta-phosphor        
meta-aspeed          
meta-evb-ast2600     = "master:7dc2f7a38dccb3d87a9b79d0a66b25da1027a72f"

Initialising tasks: 100% |#####################################################################################################################################################################| Time: 0:00:03
Sstate summary: Wanted 1378 Found 939 Missed 439 Current 0 (68% match, 0% complete)
NOTE: Executing Tasks
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
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_metadata: This may cause runtime issues, dropping feature and allowing configuration to continue
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
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_metadata: This may cause runtime issues, dropping feature and allowing configuration to continue
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
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_configme: This may cause runtime issues, dropping feature and allowing configuration to continue
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
WARNING: linux-aspeed-5.8.17+gitAUTOINC+3cc95ae407-r0 do_kernel_configme: This may cause runtime issues, dropping feature and allowing configuration to continue
WARNING: obmc-phosphor-sysd-1.0-r1 do_package_qa: QA Issue: obmc-phosphor-sysd: SRC_URI uses PN not BPN [src-uri-bad]
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!
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
ERROR: Task (/home/vinoth/project/openbmc/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb:do_generate_static) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4041 tasks of which 2680 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/vinoth/project/openbmc/meta-phosphor/recipes-phosphor/images/obmc-phosphor-image.bb:do_generate_static
Summary: There were 10 WARNING messages shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.
 
 
 
Regards,
VINOTHKUMAR RK


More information about the openbmc mailing list