Skip to main content
tmkaran
Associate II
November 13, 2013
Question

uCLinux on STM32F429I-DISCO

  • November 13, 2013
  • 65 replies
  • 14865 views
Posted on November 13, 2013 at 10:54

Hi everybody,

I was very happy to see uCLinux port for Cortex-M4 and my favorite MCU STM32. This well done job was achieved by emcraft. So I wonder that is it possible to run uCLinux on my new toy STM32F429I-DISCO? I have started for it and some u-boot and kernel patching I finished my first job. You must known that code execution from SDRAM on STM32F4 much slower than from FLASH (~6x times slower). So in fact this core is not suitable code execution from SDRAM. But maybe you don't have any chance so you can accept this penalty. 

Than I modified the kernel to load romfs from flash, simple frame buffer driver, u-boot patching for SDRAM and LCD init functions. You can try and decide for yourself. This is boot-up and simple framebuffer demo video. 

http://youtu.be/avbnkhvZrVo

Emcraft original source git is https://github.com/EmcraftSystems (not including STM32F429I-DISCO board drivers)

Sample image attached to the post. This image contains u-boot, kernel and romfs. 

The serial console is USART3 and PC10->MCU TX, PC11->MCU RX. Don't forget that this interface has TTL levels.

#usart #stm32-uclinux-u-boot #usb-driver-p19-stm324f
This topic has been closed for replies.

65 replies

Henry Dang
Associate II
December 19, 2013
Posted on December 19, 2013 at 06:53

Hi TMK,

How to build romfs.bin ?

 

grzegorz23
Visitor II
December 19, 2013
Posted on December 19, 2013 at 22:23

Hi TMK

Problem is old Ubuntu (version 10).

I update Ubuntu to version 12.04.

Mkimage is working fine :)

magore
Associate
December 21, 2013
Posted on December 21, 2013 at 21:27

Hi TMK,

Thanks for your project!!

I have attached a few scripts to automatically download and builds your projects under Ubuntu 04LTS - this creates a functional image that I have tested.

(The script downloads, builds and install any and all required tools)

The compiled code works!

Flashing Under Linux only works if the user USB is not connected when flashing

________________

Attachments :

build_uclinux.zip : https://st--c.eu10.content.force.com/sfc/dist/version/download/?oid=00Db0000000YtG6&ids=0680X000006HzYo&d=%2Fa%2F0X0000000bNo%2F0LQdn1QdQAtZFOBzR1fbtSPHdciUI53.zdzhk8T8lk0&asPdf=false
Vaclav Zajic
Associate III
March 12, 2018
Posted on March 12, 2018 at 10:08

Hello Mike, I managed to build uclinux using your script and flash it to the board. It comes up with a message 'root login on ttyS2'. I tried to connect USB to TTL converter to pins PC10 and PC11 but I get nothing in minicom. Do you know where might be the problem? Thanks, Vaclav

Vaclav Zajic
Associate III
March 12, 2018
Posted on March 12, 2018 at 12:19

OK, after reset I see this in console:

U-Boot 2010.03 (Kas 12 2013 - 22:12:55)

CPU  : STM32F4 (Cortex-M4)

Freqs: SYSCLK=180MHz,HCLK=180MHz,PCLK1=45MHz,PCLK2=90MHz

Board: STM32429-DISCO board + STM-MEM add-on,Rev 2.A

DRAM:   8 MB

Using default environment

But nothing else.

On the board's display I see last message 'root login on ttyS2'.

tmkaran
tmkaranAuthor
Associate II
December 24, 2013
Posted on December 24, 2013 at 11:59

thanks mike. It is very usefull :)

polimorphic
Associate II
January 3, 2014
Posted on January 03, 2014 at 22:55

Hi Tmk.

Thank you very much.

changli
Associate II
January 4, 2014
Posted on January 04, 2014 at 19:11

nice work. I am wondering whether SQLite 3.x  has been ported into uClinux?

tmkaran
tmkaranAuthor
Associate II
January 4, 2014
Posted on January 04, 2014 at 19:56

Hi friends,

I have created busybox repos and added sample config file. You can check https://github.com/robutest/busybox.git

Tesla DeLorean
Guru
January 5, 2014
Posted on January 05, 2014 at 02:59

@tmk

Thanks for the awesome level of support you're providing here.
Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Henry Dang
Associate II
January 7, 2014
Posted on January 07, 2014 at 04:10

@tmk

Thank you very much.

tmkaran
tmkaranAuthor
Associate II
January 7, 2014
Posted on January 07, 2014 at 13:52

Thanks friends

You all welcome. The information will grow with sharing of.

Keep hacking...