linux4sam / meta-atmel

OpenEmbedded/Yocto Project layer for for Microchip SoC (aka AT91)
https://www.linux4sam.org/bin/view/Linux4SAM/YoctoProject
MIT License
90 stars 117 forks source link

Error building at91bootstrap #254

Closed joelguittet closed 10 months ago

joelguittet commented 1 year ago

Hello

I get an error on at91bootstrap while building the image with MACHINE=at91sam9x5ek-sd bitbake core-image-minimal.

ubuntu@ubuntu-VirtualBox:~/yocto/build$ MACHINE=at91sam9x5ek-sd bitbake core-image-minimal
Loading cache: 100% |                                                                                                                                            | ETA:  --:--:--
Loaded 0 entries from dependency cache.
Parsing recipes: 100% |###########################################################################################################################################| Time: 0:01:21
Parsing of 2519 .bb files complete (0 cached, 2519 parsed). 3964 targets, 202 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION           = "2.0.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "universal"
TARGET_SYS           = "arm-poky-linux-gnueabi"
MACHINE              = "at91sam9x5ek-sd"
DISTRO               = "poky"
DISTRO_VERSION       = "4.0.11"
TUNE_FEATURES        = "arm armv5 thumb dsp"
TARGET_FPU           = "soft"
meta                 
meta-poky            
meta-yocto-bsp       = "kirkstone:84dd3d0e6c90656f2a7105aabd303a62fa49eeba"
meta-oe              
meta-python          
meta-networking      = "kirkstone:a82d92c8a6525da01524bf8f4a60bf6b35dcbb3d"
meta-arm             
meta-arm-toolchain   = "kirkstone:96aad3b29aa7a5ee4df5cf617a6336e5218fa9bd"
meta-atmel           = "kirkstone:6cba55d093151c0a4f1b76fd387fd03a98fda099"

Initialising tasks: 100% |########################################################################################################################################| Time: 0:00:06
Sstate summary: Wanted 37 Local 0 Mirrors 0 Missed 37 Current 1139 (0% match, 96% complete)
NOTE: Executing Tasks
ERROR: at91bootstrap-3.10.2+gitAUTOINC+2edb4dd141-r0 do_compile: oe_runmake failed
ERROR: at91bootstrap-3.10.2+gitAUTOINC+2edb4dd141-r0 do_compile: ExecutionError('/home/ubuntu/yocto/build/tmp/work/at91sam9x5ek_sd-poky-linux-gnueabi/at91bootstrap/3.10.2+gitAUTOINC+2edb4dd141-r0/temp/run.do_compile.2363588', 1, None, None)
ERROR: Logfile of failure stored in: /home/ubuntu/yocto/build/tmp/work/at91sam9x5ek_sd-poky-linux-gnueabi/at91bootstrap/3.10.2+gitAUTOINC+2edb4dd141-r0/temp/log.do_compile.2363588
Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 6 CROSS_COMPILE=arm-poky-linux-gnueabi- CC=arm-poky-linux-gnueabi-gcc  --sysroot=/home/ubuntu/yocto/build/tmp/work/at91sam9x5ek_sd-poky-linux-gnueabi/at91bootstrap/3.10.2+gitAUTOINC+2edb4dd141-r0/recipe-sysroot
| CC
| ========
| arm-poky-linux-gnueabi-gcc  --sysroot=/home/ubuntu/yocto/build/tmp/work/at91sam9x5ek_sd-poky-linux-gnueabi/at91bootstrap/3.10.2+gitAUTOINC+2edb4dd141-r0/recipe-sysroot 11.3.0
| 
| as FLAGS
| ========
| -g -Os -Wall -Iboard/at91sam9x5ek -Iinclude -Icontrib/include -DJUMP_ADDR=0x26F00000 -DTOP_OF_MEMORY=0x308000 -DMACH_TYPE=3373  -DLINK_ADDR="0x300000" -Dat91sam9x5ek -DMACH_TYPE=3373 -DTOP_OF_MEMORY=0x308000 -DCRYSTAL_12_000MHZ -DCONFIG_AT91SAM9X5 -mcpu=arm926ej-s -mtune=arm926ej-s -mfloat-abi=soft -DCONFIG_THUMB -mthumb-interwork -DCONFIG_AT91SAM9X5EK -DCONFIG_PMC_COMMON
| 
| gcc FLAGS
| =========
| -nostdinc -isystem "/home/ubuntu/yocto/build/tmp/work/at91sam9x5ek_sd-poky-linux-gnueabi/at91bootstrap/3.10.2+gitAUTOINC+2edb4dd141-r0/recipe-sysroot-native/usr/bin/arm-poky-linux-gnueabi/../../lib/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/11.3.0/include" -ffunction-sections -g -Os -Wall -mno-unaligned-access -fno-stack-protector -fno-common -fno-builtin -fno-jump-tables -fno-pie -Iboard/at91sam9x5ek -Icontrib/include -Iinclude -Ifs/include -Iconfig/at91bootstrap-config -DAT91BOOTSTRAP_VERSION=\"3.10.2\" -DCOMPILE_TIME="\"2021-01-15 07:29:56\"" -DIMG_ADDRESS= -DIMG_SIZE= -DJUMP_ADDR=0x26F00000 -DOF_OFFSET= -DOF_ADDRESS= -DMEM_BANK=0x20000000 -DIMAGE_NAME="\"u-boot.bin\"" -DCMDLINE="\"\"" -DCMDLINE_FILE="\"\"" -DTOP_OF_MEMORY=0x308000 -DMACH_TYPE=3373  -DMEM_SIZE=0x8000000 -DCONFIG_DEBUG -DBANNER="""\"\\n\\nAT91Bootstrap \" AT91BOOTSTRAP_VERSION \" (\" COMPILE_TIME \")\\n\\n\"""" -DCONFIG_HW_DISPLAY_BANNER -DCONFIG_HW_INIT -Dat91sam9x5ek -DMACH_TYPE=3373 -DTOP_OF_MEMORY=0x308000 -DCRYSTAL_12_000MHZ -DCONFIG_AT91SAM9X5 -mcpu=arm926ej-s -mtune=arm926ej-s -mfloat-abi=soft -DCONFIG_THUMB -mthumb -mthumb-interwork -DCONFIG_SCLK -DCONFIG_CRYSTAL_12_000MHZ -DCONFIG_CPU_CLK_400MHZ -DCONFIG_BUS_SPEED_133MHZ -DCONFIG_CPU_HAS_PIO3 -DCONFIG_LOAD_ONE_WIRE -DCONFIG_AT91SAM9X5EK -DCONFIG_DDRC -DCONFIG_DDR2 -DCONFIG_RAM_128MB -DCONFIG_SDCARD -DCONFIG_PMC_COMMON -DCONFIG_PMC_V1 -DCONFIG_PMC_PCLK_SAM9X5 -DCONFIG_PMC_UTMI_CLK -DCONFIG_PMC_PLL_CLK -DCONFIG_PMC_MCK_CLK -DBOOTSTRAP_DEBUG_LEVEL=DEBUG_INFO -DCONFIG_DISABLE_WATCHDOG -DCONFIG_LOAD_HW_INFO -DCONFIG_CPU_HAS_HSMCI0 -DCONFIG_AT91_MCI -DCONFIG_AT91_MCI0 -DCONFIG_USART -DCONFIG_RSTC
| 
| ld FLAGS
| ========
| -nostartfiles -Map=binaries/at91sam9x5ek-sdcardboot-uboot-3.10.2.map --cref -static -T elf32-littlearm.lds --gc-sections -Ttext 0x300000
| 
|   LD        at91sam9x5ek-sdcardboot-uboot-3.10.2.elf
| arm-poky-linux-gnueabi-ld: Error: unable to disambiguate: -nostartfiles (did you mean --nostartfiles ?)
| make: *** [Makefile:335: binaries/at91sam9x5ek-sdcardboot-uboot-3.10.2.bin] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
ERROR: Task (/home/ubuntu/yocto/build/../meta-atmel/recipes-bsp/at91bootstrap/at91bootstrap_3.10.2.bb:do_compile) failed with exit code '1'
NOTE: Tasks Summary: Attempted 2963 tasks of which 2954 didn't need to be rerun and 1 failed.

Summary: 1 task failed:
  /home/ubuntu/yocto/build/../meta-atmel/recipes-bsp/at91bootstrap/at91bootstrap_3.10.2.bb:do_compile
Summary: There were 2 ERROR messages, returning a non-zero exit code.

Branch: kirkstone. Dev machine: Ubuntu 20.04.

Anyone with the same issue ?

Regards, Joel

joelguittet commented 1 year ago

This is due to https://github.com/linux4sam/at91bootstrap/issues/127. Pull Request proposed at https://github.com/linux4sam/meta-atmel/pull/255 to update at91bootstrap.

joelguittet commented 10 months ago

This is because the at91bootstrap for this target need to be upgraded to 3.10.3. However, the support is not maintained for the the old at91bootstrap in this layer, so the PR was rejected. Anyone wanting to have it to support old boards should maintain the at91bootstrap in it's own layer.