Skip to main content
Visitor II
July 25, 2022
Question

stm32f746 uclinux kernel build toolchain

  • July 25, 2022
  • 4 replies
  • 2484 views

hi,

i'm trying to build the kernel source on the stm32f746-disco

i'have forked github link of kernel source

https://github.com/KpuFish/linux-stm32f7

regarding the step discriptions,

-->>

Steps to make the uImage :

1) use `make stm32f746_disco_defconfig' to configure a kernel configuration with

support following STM32 IPs: USART, LTDC (framebuffer).

2) `sudo tar xf initdir.tar', to extract initdir.tar to initdir directory.

Note: use `sudo' to ensure `tar' will succesfull create dev nodes.

3) `export ARCH=arm'

4) `export CROSS_COMPILE=arm-uclinuxeabi-'

Note: arm-uclinuxeabi-* toolchain may be in your path.

Note: arm-uclinuxeabi- toolchain provided by sourcery in link[1]

5) `make', to compile kernel

6) to create loadable uImage:

`mkimage -A arm -a 0xc0008000 -e 0xc0008001 -n 'Linux kernel0' -C none -T kernel -d arch/arm/boot/Image networking.uImage'

i'm stuck in step (5)

i have tried many times set the PATH commands

although i also have modified bashrc same thing, it failed to build current source and not created uImage file

i think the path setting is something worng.

but i don't know what is worng

i've added path below in bashrc

export PATH=/home/djpark/downloads/stm32f746-disco_linux-master/arm-2011.03/bin:$PATH

export CROSS_COMPILE=arm-uclinuxeabi-

export ARCH=arm

and real path of...

stm32f746 source is /home/djpark/downloads/stm32f746-disco_linux

and uclinux toolchain is

/home/djpark/downloads/stm32f746-disco_linux/arm-2011.03

when i try to build using make command, it is failed.

0693W00000QM2bMQAT.jpgit means just no such files or directory ...

am i worng?

    This topic has been closed for replies.

    4 replies

    Graduate II
    July 25, 2022

    Very little interest in uclinux here, perhaps there are better forums?

    C​an you start the compiler and get version or compile something from your command prompt?

    FishAuthor
    Visitor II
    July 25, 2022

    yes, i'm also interested

    but, i 'm still having troubling compiling on uclinux. it is not easy to set up the environment variables. so there are no command prompt for version, etc.

    it is because of my lack of skills on the linux system​:grinning_face_with_sweat:

    Visitor II
    February 10, 2023

    sudo apt-get install gcc-arm-linux-gnueabi

    Super User
    February 10, 2023

    The github link you posted contains a link to the correct toolchain.

    That stuff is old, so good luck.

    Even if it runs, there are barley any hardware drivers...

    Visitor II
    February 17, 2024

    You should separate build tool folder out of linux folder.
    You should export compiler before do the make, follow this and should not put them to .bashrc, just do it when you need to compile the kernel:

    1) export PATH=<your path>/arm-2011.03/bin:$PATH

    export CROSS_COMPILE=arm-uclinuxeabi-

    export ARCH=arm

    2) `sudo tar xf initdir.tar', to extract initdir.tar to initdir directory.

    Note: use `sudo' to ensure `tar' will succesfull create dev nodes.

    3) use `make stm32f746_disco_defconfig' to configure a kernel configuration with

    5) `./make_uImage', to compile kernel

    6)to create loadable uImage:

    `mkimage -A arm -a 0xc0008000 -e 0xc0008001 -n 'Linux kernel0' -C none -T kernel -d arch/arm/boot/Image networking.uImage'