cancel
Showing results for 
Search instead for 
Did you mean: 

uCLinux on STM32F429I-DISCO

tmkaran
Associate II
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
65 REPLIES 65
tmkaran
Associate II
Posted on December 18, 2013 at 09:38

It is not necessary to process romfs.bin file before flashing. You should use ''STM32 ST-LINK Utility'' for flashing. It is run on windows. 

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

Hi TMK,

How to build romfs.bin ?

 

grzegorz23
Associate II
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 II
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
tmkaran
Associate II
Posted on December 24, 2013 at 11:59

thanks mike. It is very usefull :)

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

Hi Tmk.

Thank you very much.

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

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

tmkaran
Associate II
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

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
Up vote any posts that you find helpful, it shows what's working..
Henry Dang
Associate II
Posted on January 07, 2014 at 04:10

@tmk

Thank you very much.